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

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
@@ -2793,6 +2793,7 @@ declare const accountOperations: {
2793
2793
  displayLabel: z.ZodString;
2794
2794
  authSource: z.ZodString;
2795
2795
  }, z.core.$strip>]>>;
2796
+ embedded: z.ZodOptional<z.ZodLiteral<true>>;
2796
2797
  scopes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2797
2798
  "*": "*";
2798
2799
  "me:read": "me:read";
@@ -2896,6 +2897,7 @@ declare const accountOperations: {
2896
2897
  displayLabel: z.ZodString;
2897
2898
  authSource: z.ZodString;
2898
2899
  }, z.core.$strip>]>>;
2900
+ embedded: z.ZodOptional<z.ZodLiteral<true>>;
2899
2901
  scopes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2900
2902
  "*": "*";
2901
2903
  "me:read": "me:read";
@@ -26543,6 +26545,9 @@ declare const projectOperations: {
26543
26545
  createdByUserId: zod.ZodString;
26544
26546
  createdAt: zod.ZodISODateTime;
26545
26547
  updatedAt: zod.ZodISODateTime;
26548
+ defaultAgent: zod.ZodOptional<zod.ZodString>;
26549
+ skills: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
26550
+ knowledgeBases: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
26546
26551
  conversationCount: zod.ZodNumber;
26547
26552
  lastActivityAt: zod.ZodISODateTime;
26548
26553
  }, zod_v4_core.$strip>>;
@@ -26577,6 +26582,9 @@ declare const projectOperations: {
26577
26582
  createdByUserId: zod.ZodString;
26578
26583
  createdAt: zod.ZodISODateTime;
26579
26584
  updatedAt: zod.ZodISODateTime;
26585
+ defaultAgent: zod.ZodOptional<zod.ZodString>;
26586
+ skills: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
26587
+ knowledgeBases: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
26580
26588
  conversationCount: zod.ZodNumber;
26581
26589
  lastActivityAt: zod.ZodISODateTime;
26582
26590
  }, zod_v4_core.$strip>>;
@@ -26610,6 +26618,9 @@ declare const projectOperations: {
26610
26618
  createdByUserId: zod.ZodString;
26611
26619
  createdAt: zod.ZodISODateTime;
26612
26620
  updatedAt: zod.ZodISODateTime;
26621
+ defaultAgent: zod.ZodOptional<zod.ZodString>;
26622
+ skills: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
26623
+ knowledgeBases: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
26613
26624
  }, zod_v4_core.$strip>;
26614
26625
  };
26615
26626
  readonly errors: readonly ["NOT_FOUND"];
@@ -26649,6 +26660,9 @@ declare const projectOperations: {
26649
26660
  createdByUserId: zod.ZodString;
26650
26661
  createdAt: zod.ZodISODateTime;
26651
26662
  updatedAt: zod.ZodISODateTime;
26663
+ defaultAgent: zod.ZodOptional<zod.ZodString>;
26664
+ skills: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
26665
+ knowledgeBases: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
26652
26666
  }, zod_v4_core.$strip>;
26653
26667
  };
26654
26668
  readonly errors: readonly ["NOT_FOUND"];
@@ -26789,6 +26803,824 @@ declare const projectOperations: {
26789
26803
  readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
26790
26804
  };
26791
26805
  }>;
26806
+ "projects.setup.get": Operation<{
26807
+ readonly id: "projects.setup.get";
26808
+ readonly method: "GET";
26809
+ readonly path: "/api/v1/project-settings/:projectId/setup";
26810
+ readonly summary: "Read a project's default agent, skills and Knowledge Bases, with those the caller may choose for it";
26811
+ readonly tag: "Projects";
26812
+ readonly auth: "user";
26813
+ readonly scope: "conversation:read";
26814
+ readonly requires: readonly [];
26815
+ readonly effect: "reading";
26816
+ readonly response: {
26817
+ readonly kind: "json";
26818
+ readonly schema: zod.ZodObject<{
26819
+ defaultAgent: zod.ZodOptional<zod.ZodString>;
26820
+ skills: zod.ZodArray<zod.ZodString>;
26821
+ workspaceDefaultAgent: zod.ZodOptional<zod.ZodString>;
26822
+ agents: zod.ZodArray<zod.ZodObject<{
26823
+ name: zod.ZodString;
26824
+ displayName: zod.ZodString;
26825
+ description: zod.ZodOptional<zod.ZodString>;
26826
+ own: zod.ZodBoolean;
26827
+ refusal: zod.ZodOptional<zod.ZodEnum<{
26828
+ own_in_shared_project: "own_in_shared_project";
26829
+ not_everyone_may_use: "not_everyone_may_use";
26830
+ }>>;
26831
+ asset: zod.ZodOptional<zod.ZodObject<{
26832
+ id: zod.ZodString;
26833
+ workspaceId: zod.ZodString;
26834
+ }, zod_v4_core.$strip>>;
26835
+ }, zod_v4_core.$strip>>;
26836
+ skillChoices: zod.ZodArray<zod.ZodObject<{
26837
+ name: zod.ZodString;
26838
+ title: zod.ZodString;
26839
+ summary: zod.ZodOptional<zod.ZodString>;
26840
+ icon: zod.ZodOptional<zod.ZodString>;
26841
+ own: zod.ZodBoolean;
26842
+ refusal: zod.ZodOptional<zod.ZodEnum<{
26843
+ own_in_shared_project: "own_in_shared_project";
26844
+ not_everyone_may_use: "not_everyone_may_use";
26845
+ }>>;
26846
+ asset: zod.ZodOptional<zod.ZodObject<{
26847
+ id: zod.ZodString;
26848
+ workspaceId: zod.ZodString;
26849
+ }, zod_v4_core.$strip>>;
26850
+ }, zod_v4_core.$strip>>;
26851
+ knowledgeBases: zod.ZodArray<zod.ZodString>;
26852
+ knowledgeBaseChoices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
26853
+ name: zod.ZodString;
26854
+ title: zod.ZodString;
26855
+ description: zod.ZodOptional<zod.ZodString>;
26856
+ unpublished: zod.ZodOptional<zod.ZodBoolean>;
26857
+ own: zod.ZodBoolean;
26858
+ refusal: zod.ZodOptional<zod.ZodEnum<{
26859
+ own_in_shared_project: "own_in_shared_project";
26860
+ not_everyone_may_use: "not_everyone_may_use";
26861
+ }>>;
26862
+ asset: zod.ZodOptional<zod.ZodObject<{
26863
+ id: zod.ZodString;
26864
+ workspaceId: zod.ZodString;
26865
+ }, zod_v4_core.$strip>>;
26866
+ }, zod_v4_core.$strip>>>;
26867
+ }, zod_v4_core.$strip>;
26868
+ };
26869
+ readonly errors: readonly ["NOT_FOUND"];
26870
+ readonly rateClass: "read";
26871
+ }>;
26872
+ "projects.setup.set": Operation<{
26873
+ readonly id: "projects.setup.set";
26874
+ readonly method: "PUT";
26875
+ readonly path: "/api/v1/project-settings/:projectId/setup";
26876
+ readonly summary: "Set the agent a new chat in a project starts with and the skills and Knowledge Bases every run in it is offered";
26877
+ readonly tag: "Projects";
26878
+ readonly auth: "user";
26879
+ readonly scope: "conversation:write";
26880
+ readonly requires: readonly [];
26881
+ readonly effect: "changing";
26882
+ readonly body: zod.ZodObject<{
26883
+ defaultAgent: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
26884
+ skills: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
26885
+ knowledgeBases: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
26886
+ }, zod_v4_core.$strip>;
26887
+ readonly response: {
26888
+ readonly kind: "json";
26889
+ readonly schema: zod.ZodObject<{
26890
+ defaultAgent: zod.ZodOptional<zod.ZodString>;
26891
+ skills: zod.ZodArray<zod.ZodString>;
26892
+ workspaceDefaultAgent: zod.ZodOptional<zod.ZodString>;
26893
+ agents: zod.ZodArray<zod.ZodObject<{
26894
+ name: zod.ZodString;
26895
+ displayName: zod.ZodString;
26896
+ description: zod.ZodOptional<zod.ZodString>;
26897
+ own: zod.ZodBoolean;
26898
+ refusal: zod.ZodOptional<zod.ZodEnum<{
26899
+ own_in_shared_project: "own_in_shared_project";
26900
+ not_everyone_may_use: "not_everyone_may_use";
26901
+ }>>;
26902
+ asset: zod.ZodOptional<zod.ZodObject<{
26903
+ id: zod.ZodString;
26904
+ workspaceId: zod.ZodString;
26905
+ }, zod_v4_core.$strip>>;
26906
+ }, zod_v4_core.$strip>>;
26907
+ skillChoices: zod.ZodArray<zod.ZodObject<{
26908
+ name: zod.ZodString;
26909
+ title: zod.ZodString;
26910
+ summary: zod.ZodOptional<zod.ZodString>;
26911
+ icon: zod.ZodOptional<zod.ZodString>;
26912
+ own: zod.ZodBoolean;
26913
+ refusal: zod.ZodOptional<zod.ZodEnum<{
26914
+ own_in_shared_project: "own_in_shared_project";
26915
+ not_everyone_may_use: "not_everyone_may_use";
26916
+ }>>;
26917
+ asset: zod.ZodOptional<zod.ZodObject<{
26918
+ id: zod.ZodString;
26919
+ workspaceId: zod.ZodString;
26920
+ }, zod_v4_core.$strip>>;
26921
+ }, zod_v4_core.$strip>>;
26922
+ knowledgeBases: zod.ZodArray<zod.ZodString>;
26923
+ knowledgeBaseChoices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
26924
+ name: zod.ZodString;
26925
+ title: zod.ZodString;
26926
+ description: zod.ZodOptional<zod.ZodString>;
26927
+ unpublished: zod.ZodOptional<zod.ZodBoolean>;
26928
+ own: zod.ZodBoolean;
26929
+ refusal: zod.ZodOptional<zod.ZodEnum<{
26930
+ own_in_shared_project: "own_in_shared_project";
26931
+ not_everyone_may_use: "not_everyone_may_use";
26932
+ }>>;
26933
+ asset: zod.ZodOptional<zod.ZodObject<{
26934
+ id: zod.ZodString;
26935
+ workspaceId: zod.ZodString;
26936
+ }, zod_v4_core.$strip>>;
26937
+ }, zod_v4_core.$strip>>>;
26938
+ }, zod_v4_core.$strip>;
26939
+ };
26940
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"];
26941
+ readonly rateClass: "write";
26942
+ } & {
26943
+ readonly accepted: zod.ZodObject<{
26944
+ id: zod.ZodString;
26945
+ operation: zod.ZodString;
26946
+ effect: zod.ZodEnum<{
26947
+ reading: "reading";
26948
+ changing: "changing";
26949
+ }>;
26950
+ status: zod.ZodEnum<{
26951
+ failed: "failed";
26952
+ running: "running";
26953
+ pending_confirmation: "pending_confirmation";
26954
+ pending_approval: "pending_approval";
26955
+ done: "done";
26956
+ denied: "denied";
26957
+ expired: "expired";
26958
+ }>;
26959
+ actor: zod.ZodObject<{
26960
+ kind: zod.ZodEnum<{
26961
+ user: "user";
26962
+ service_principal: "service_principal";
26963
+ }>;
26964
+ id: zod.ZodString;
26965
+ label: zod.ZodString;
26966
+ }, zod_v4_core.$strip>;
26967
+ origin: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
26968
+ kind: zod.ZodLiteral<"agent">;
26969
+ agentRunId: zod.ZodString;
26970
+ conversationId: zod.ZodString;
26971
+ agentName: zod.ZodString;
26972
+ toolCallId: zod.ZodString;
26973
+ toolName: zod.ZodString;
26974
+ toolRevisionId: zod.ZodOptional<zod.ZodString>;
26975
+ boundBy: zod.ZodOptional<zod.ZodObject<{
26976
+ id: zod.ZodString;
26977
+ label: zod.ZodString;
26978
+ }, zod_v4_core.$strip>>;
26979
+ draft: zod.ZodOptional<zod.ZodObject<{
26980
+ kind: zod.ZodLiteral<"agent_preview">;
26981
+ asset: zod.ZodObject<{
26982
+ kind: zod.ZodString;
26983
+ id: zod.ZodString;
26984
+ name: zod.ZodString;
26985
+ }, zod_v4_core.$strip>;
26986
+ revisionId: zod.ZodString;
26987
+ part: zod.ZodString;
26988
+ }, zod_v4_core.$strip>>;
26989
+ }, zod_v4_core.$strip>, zod.ZodObject<{
26990
+ kind: zod.ZodLiteral<"user">;
26991
+ }, zod_v4_core.$strip>, zod.ZodObject<{
26992
+ kind: zod.ZodLiteral<"cli">;
26993
+ unattended: zod.ZodOptional<zod.ZodLiteral<true>>;
26994
+ }, zod_v4_core.$strip>, zod.ZodObject<{
26995
+ kind: zod.ZodLiteral<"mcp">;
26996
+ clientName: zod.ZodOptional<zod.ZodString>;
26997
+ }, zod_v4_core.$strip>, zod.ZodObject<{
26998
+ kind: zod.ZodLiteral<"app">;
26999
+ appName: zod.ZodOptional<zod.ZodString>;
27000
+ appRevisionId: zod.ZodString;
27001
+ actionName: zod.ZodString;
27002
+ pageSessionId: zod.ZodString;
27003
+ conversationId: zod.ZodOptional<zod.ZodString>;
27004
+ target: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
27005
+ connection: zod.ZodString;
27006
+ operation: zod.ZodString;
27007
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27008
+ dataStore: zod.ZodString;
27009
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27010
+ workflow: zod.ZodString;
27011
+ }, zod_v4_core.$strip>]>>;
27012
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27013
+ kind: zod.ZodLiteral<"workflow">;
27014
+ workflowRunId: zod.ZodString;
27015
+ stepRunId: zod.ZodString;
27016
+ boundBy: zod.ZodOptional<zod.ZodObject<{
27017
+ id: zod.ZodString;
27018
+ label: zod.ZodString;
27019
+ }, zod_v4_core.$strip>>;
27020
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27021
+ kind: zod.ZodLiteral<"schedule">;
27022
+ scheduleId: zod.ZodString;
27023
+ }, zod_v4_core.$strip>], "kind">;
27024
+ target: zod.ZodEnum<{
27025
+ live: "live";
27026
+ test: "test";
27027
+ dry_run: "dry_run";
27028
+ }>;
27029
+ app: zod.ZodOptional<zod.ZodObject<{
27030
+ title: zod.ZodOptional<zod.ZodString>;
27031
+ revision: zod.ZodOptional<zod.ZodNumber>;
27032
+ deleted: zod.ZodBoolean;
27033
+ }, zod_v4_core.$strip>>;
27034
+ workspaceId: zod.ZodOptional<zod.ZodString>;
27035
+ approvalRequestId: zod.ZodOptional<zod.ZodString>;
27036
+ inputHash: zod.ZodString;
27037
+ attempt: zod.ZodNumber;
27038
+ decision: zod.ZodOptional<zod.ZodObject<{
27039
+ mode: zod.ZodEnum<{
27040
+ direct: "direct";
27041
+ confirmed: "confirmed";
27042
+ approved: "approved";
27043
+ declined: "declined";
27044
+ }>;
27045
+ reason: zod.ZodOptional<zod.ZodEnum<{
27046
+ inherited_approval_not_applied: "inherited_approval_not_applied";
27047
+ workflow_publish: "workflow_publish";
27048
+ approved_by_caller: "approved_by_caller";
27049
+ }>>;
27050
+ by: zod.ZodString;
27051
+ byLabel: zod.ZodOptional<zod.ZodString>;
27052
+ at: zod.ZodISODateTime;
27053
+ comment: zod.ZodOptional<zod.ZodString>;
27054
+ }, zod_v4_core.$strip>>;
27055
+ error: zod.ZodOptional<zod.ZodObject<{
27056
+ code: zod.ZodString;
27057
+ message: zod.ZodString;
27058
+ reason: zod.ZodOptional<zod.ZodString>;
27059
+ }, zod_v4_core.$strip>>;
27060
+ usage: zod.ZodOptional<zod.ZodObject<{
27061
+ modelCalls: zod.ZodNumber;
27062
+ inputTokens: zod.ZodNumber;
27063
+ outputTokens: zod.ZodNumber;
27064
+ totalTokens: zod.ZodNumber;
27065
+ }, zod_v4_core.$strip>>;
27066
+ correlationId: zod.ZodString;
27067
+ createdAt: zod.ZodISODateTime;
27068
+ startedAt: zod.ZodOptional<zod.ZodISODateTime>;
27069
+ finishedAt: zod.ZodOptional<zod.ZodISODateTime>;
27070
+ expiresAt: zod.ZodOptional<zod.ZodISODateTime>;
27071
+ href: zod.ZodString;
27072
+ }, zod_v4_core.$strip>;
27073
+ readonly headers: {
27074
+ readonly request: readonly ["Idempotency-Key", "Catalyst-Unattended"];
27075
+ readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
27076
+ };
27077
+ }>;
27078
+ "projects.impact": Operation<{
27079
+ readonly id: "projects.impact";
27080
+ readonly method: "GET";
27081
+ readonly path: "/api/v1/project-settings/:projectId/impact";
27082
+ readonly summary: "Count what a change to the whole project reaches: its chats and files, and whose they are";
27083
+ readonly tag: "Projects";
27084
+ readonly auth: "user";
27085
+ readonly scope: "conversation:read";
27086
+ readonly requires: readonly [];
27087
+ readonly effect: "reading";
27088
+ readonly response: {
27089
+ readonly kind: "json";
27090
+ readonly schema: zod.ZodObject<{
27091
+ conversations: zod.ZodNumber;
27092
+ conversationsOfOthers: zod.ZodNumber;
27093
+ conversationsKeptPrivate: zod.ZodNumber;
27094
+ files: zod.ZodNumber;
27095
+ filesOfOthers: zod.ZodNumber;
27096
+ filesKeptPrivate: zod.ZodNumber;
27097
+ }, zod_v4_core.$strip>;
27098
+ };
27099
+ readonly errors: readonly ["NOT_FOUND"];
27100
+ readonly rateClass: "read";
27101
+ }>;
27102
+ "projects.set_audience": Operation<{
27103
+ readonly id: "projects.set_audience";
27104
+ readonly method: "PUT";
27105
+ readonly path: "/api/v1/project-settings/:projectId/audience";
27106
+ readonly summary: "Share a project with its workspace or make it private to its creator, with every chat in it";
27107
+ readonly tag: "Projects";
27108
+ readonly auth: "user";
27109
+ readonly scope: "conversation:write";
27110
+ readonly requires: readonly [];
27111
+ readonly effect: "changing";
27112
+ readonly body: zod.ZodObject<{
27113
+ audience: zod.ZodEnum<{
27114
+ workspace: "workspace";
27115
+ private: "private";
27116
+ }>;
27117
+ expectedAudience: zod.ZodEnum<{
27118
+ workspace: "workspace";
27119
+ private: "private";
27120
+ }>;
27121
+ }, zod_v4_core.$strip>;
27122
+ readonly response: {
27123
+ readonly kind: "json";
27124
+ readonly schema: zod.ZodObject<{
27125
+ project: zod.ZodObject<{
27126
+ id: zod.ZodString;
27127
+ name: zod.ZodString;
27128
+ collaborationWorkspaceId: zod.ZodString;
27129
+ title: zod.ZodString;
27130
+ description: zod.ZodOptional<zod.ZodString>;
27131
+ audience: zod.ZodEnum<{
27132
+ workspace: "workspace";
27133
+ private: "private";
27134
+ }>;
27135
+ createdByUserId: zod.ZodString;
27136
+ createdAt: zod.ZodISODateTime;
27137
+ updatedAt: zod.ZodISODateTime;
27138
+ defaultAgent: zod.ZodOptional<zod.ZodString>;
27139
+ skills: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
27140
+ knowledgeBases: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
27141
+ }, zod_v4_core.$strip>;
27142
+ conversationsShared: zod.ZodNumber;
27143
+ conversationsLeft: zod.ZodNumber;
27144
+ conversationsMadePrivate: zod.ZodNumber;
27145
+ }, zod_v4_core.$strip>;
27146
+ };
27147
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"];
27148
+ readonly rateClass: "write";
27149
+ } & {
27150
+ readonly accepted: zod.ZodObject<{
27151
+ id: zod.ZodString;
27152
+ operation: zod.ZodString;
27153
+ effect: zod.ZodEnum<{
27154
+ reading: "reading";
27155
+ changing: "changing";
27156
+ }>;
27157
+ status: zod.ZodEnum<{
27158
+ failed: "failed";
27159
+ running: "running";
27160
+ pending_confirmation: "pending_confirmation";
27161
+ pending_approval: "pending_approval";
27162
+ done: "done";
27163
+ denied: "denied";
27164
+ expired: "expired";
27165
+ }>;
27166
+ actor: zod.ZodObject<{
27167
+ kind: zod.ZodEnum<{
27168
+ user: "user";
27169
+ service_principal: "service_principal";
27170
+ }>;
27171
+ id: zod.ZodString;
27172
+ label: zod.ZodString;
27173
+ }, zod_v4_core.$strip>;
27174
+ origin: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
27175
+ kind: zod.ZodLiteral<"agent">;
27176
+ agentRunId: zod.ZodString;
27177
+ conversationId: zod.ZodString;
27178
+ agentName: zod.ZodString;
27179
+ toolCallId: zod.ZodString;
27180
+ toolName: zod.ZodString;
27181
+ toolRevisionId: zod.ZodOptional<zod.ZodString>;
27182
+ boundBy: zod.ZodOptional<zod.ZodObject<{
27183
+ id: zod.ZodString;
27184
+ label: zod.ZodString;
27185
+ }, zod_v4_core.$strip>>;
27186
+ draft: zod.ZodOptional<zod.ZodObject<{
27187
+ kind: zod.ZodLiteral<"agent_preview">;
27188
+ asset: zod.ZodObject<{
27189
+ kind: zod.ZodString;
27190
+ id: zod.ZodString;
27191
+ name: zod.ZodString;
27192
+ }, zod_v4_core.$strip>;
27193
+ revisionId: zod.ZodString;
27194
+ part: zod.ZodString;
27195
+ }, zod_v4_core.$strip>>;
27196
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27197
+ kind: zod.ZodLiteral<"user">;
27198
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27199
+ kind: zod.ZodLiteral<"cli">;
27200
+ unattended: zod.ZodOptional<zod.ZodLiteral<true>>;
27201
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27202
+ kind: zod.ZodLiteral<"mcp">;
27203
+ clientName: zod.ZodOptional<zod.ZodString>;
27204
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27205
+ kind: zod.ZodLiteral<"app">;
27206
+ appName: zod.ZodOptional<zod.ZodString>;
27207
+ appRevisionId: zod.ZodString;
27208
+ actionName: zod.ZodString;
27209
+ pageSessionId: zod.ZodString;
27210
+ conversationId: zod.ZodOptional<zod.ZodString>;
27211
+ target: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
27212
+ connection: zod.ZodString;
27213
+ operation: zod.ZodString;
27214
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27215
+ dataStore: zod.ZodString;
27216
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27217
+ workflow: zod.ZodString;
27218
+ }, zod_v4_core.$strip>]>>;
27219
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27220
+ kind: zod.ZodLiteral<"workflow">;
27221
+ workflowRunId: zod.ZodString;
27222
+ stepRunId: zod.ZodString;
27223
+ boundBy: zod.ZodOptional<zod.ZodObject<{
27224
+ id: zod.ZodString;
27225
+ label: zod.ZodString;
27226
+ }, zod_v4_core.$strip>>;
27227
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27228
+ kind: zod.ZodLiteral<"schedule">;
27229
+ scheduleId: zod.ZodString;
27230
+ }, zod_v4_core.$strip>], "kind">;
27231
+ target: zod.ZodEnum<{
27232
+ live: "live";
27233
+ test: "test";
27234
+ dry_run: "dry_run";
27235
+ }>;
27236
+ app: zod.ZodOptional<zod.ZodObject<{
27237
+ title: zod.ZodOptional<zod.ZodString>;
27238
+ revision: zod.ZodOptional<zod.ZodNumber>;
27239
+ deleted: zod.ZodBoolean;
27240
+ }, zod_v4_core.$strip>>;
27241
+ workspaceId: zod.ZodOptional<zod.ZodString>;
27242
+ approvalRequestId: zod.ZodOptional<zod.ZodString>;
27243
+ inputHash: zod.ZodString;
27244
+ attempt: zod.ZodNumber;
27245
+ decision: zod.ZodOptional<zod.ZodObject<{
27246
+ mode: zod.ZodEnum<{
27247
+ direct: "direct";
27248
+ confirmed: "confirmed";
27249
+ approved: "approved";
27250
+ declined: "declined";
27251
+ }>;
27252
+ reason: zod.ZodOptional<zod.ZodEnum<{
27253
+ inherited_approval_not_applied: "inherited_approval_not_applied";
27254
+ workflow_publish: "workflow_publish";
27255
+ approved_by_caller: "approved_by_caller";
27256
+ }>>;
27257
+ by: zod.ZodString;
27258
+ byLabel: zod.ZodOptional<zod.ZodString>;
27259
+ at: zod.ZodISODateTime;
27260
+ comment: zod.ZodOptional<zod.ZodString>;
27261
+ }, zod_v4_core.$strip>>;
27262
+ error: zod.ZodOptional<zod.ZodObject<{
27263
+ code: zod.ZodString;
27264
+ message: zod.ZodString;
27265
+ reason: zod.ZodOptional<zod.ZodString>;
27266
+ }, zod_v4_core.$strip>>;
27267
+ usage: zod.ZodOptional<zod.ZodObject<{
27268
+ modelCalls: zod.ZodNumber;
27269
+ inputTokens: zod.ZodNumber;
27270
+ outputTokens: zod.ZodNumber;
27271
+ totalTokens: zod.ZodNumber;
27272
+ }, zod_v4_core.$strip>>;
27273
+ correlationId: zod.ZodString;
27274
+ createdAt: zod.ZodISODateTime;
27275
+ startedAt: zod.ZodOptional<zod.ZodISODateTime>;
27276
+ finishedAt: zod.ZodOptional<zod.ZodISODateTime>;
27277
+ expiresAt: zod.ZodOptional<zod.ZodISODateTime>;
27278
+ href: zod.ZodString;
27279
+ }, zod_v4_core.$strip>;
27280
+ readonly headers: {
27281
+ readonly request: readonly ["Idempotency-Key", "Catalyst-Unattended"];
27282
+ readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
27283
+ };
27284
+ }>;
27285
+ "projects.move": Operation<{
27286
+ readonly id: "projects.move";
27287
+ readonly method: "POST";
27288
+ readonly path: "/api/v1/project-settings/:projectId/move";
27289
+ readonly summary: "Move a project with its chats and files to another workspace the caller is a member of";
27290
+ readonly tag: "Projects";
27291
+ readonly auth: "user";
27292
+ readonly scope: "conversation:write";
27293
+ readonly requires: readonly [];
27294
+ readonly effect: "changing";
27295
+ readonly body: zod.ZodObject<{
27296
+ collaborationWorkspaceId: zod.ZodString;
27297
+ audience: zod.ZodOptional<zod.ZodEnum<{
27298
+ workspace: "workspace";
27299
+ private: "private";
27300
+ }>>;
27301
+ }, zod_v4_core.$strip>;
27302
+ readonly response: {
27303
+ readonly kind: "json";
27304
+ readonly schema: zod.ZodObject<{
27305
+ project: zod.ZodObject<{
27306
+ id: zod.ZodString;
27307
+ name: zod.ZodString;
27308
+ collaborationWorkspaceId: zod.ZodString;
27309
+ title: zod.ZodString;
27310
+ description: zod.ZodOptional<zod.ZodString>;
27311
+ audience: zod.ZodEnum<{
27312
+ workspace: "workspace";
27313
+ private: "private";
27314
+ }>;
27315
+ createdByUserId: zod.ZodString;
27316
+ createdAt: zod.ZodISODateTime;
27317
+ updatedAt: zod.ZodISODateTime;
27318
+ defaultAgent: zod.ZodOptional<zod.ZodString>;
27319
+ skills: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
27320
+ knowledgeBases: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
27321
+ }, zod_v4_core.$strip>;
27322
+ conversationsMoved: zod.ZodNumber;
27323
+ }, zod_v4_core.$strip>;
27324
+ };
27325
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"];
27326
+ readonly rateClass: "write";
27327
+ } & {
27328
+ readonly accepted: zod.ZodObject<{
27329
+ id: zod.ZodString;
27330
+ operation: zod.ZodString;
27331
+ effect: zod.ZodEnum<{
27332
+ reading: "reading";
27333
+ changing: "changing";
27334
+ }>;
27335
+ status: zod.ZodEnum<{
27336
+ failed: "failed";
27337
+ running: "running";
27338
+ pending_confirmation: "pending_confirmation";
27339
+ pending_approval: "pending_approval";
27340
+ done: "done";
27341
+ denied: "denied";
27342
+ expired: "expired";
27343
+ }>;
27344
+ actor: zod.ZodObject<{
27345
+ kind: zod.ZodEnum<{
27346
+ user: "user";
27347
+ service_principal: "service_principal";
27348
+ }>;
27349
+ id: zod.ZodString;
27350
+ label: zod.ZodString;
27351
+ }, zod_v4_core.$strip>;
27352
+ origin: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
27353
+ kind: zod.ZodLiteral<"agent">;
27354
+ agentRunId: zod.ZodString;
27355
+ conversationId: zod.ZodString;
27356
+ agentName: zod.ZodString;
27357
+ toolCallId: zod.ZodString;
27358
+ toolName: zod.ZodString;
27359
+ toolRevisionId: zod.ZodOptional<zod.ZodString>;
27360
+ boundBy: zod.ZodOptional<zod.ZodObject<{
27361
+ id: zod.ZodString;
27362
+ label: zod.ZodString;
27363
+ }, zod_v4_core.$strip>>;
27364
+ draft: zod.ZodOptional<zod.ZodObject<{
27365
+ kind: zod.ZodLiteral<"agent_preview">;
27366
+ asset: zod.ZodObject<{
27367
+ kind: zod.ZodString;
27368
+ id: zod.ZodString;
27369
+ name: zod.ZodString;
27370
+ }, zod_v4_core.$strip>;
27371
+ revisionId: zod.ZodString;
27372
+ part: zod.ZodString;
27373
+ }, zod_v4_core.$strip>>;
27374
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27375
+ kind: zod.ZodLiteral<"user">;
27376
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27377
+ kind: zod.ZodLiteral<"cli">;
27378
+ unattended: zod.ZodOptional<zod.ZodLiteral<true>>;
27379
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27380
+ kind: zod.ZodLiteral<"mcp">;
27381
+ clientName: zod.ZodOptional<zod.ZodString>;
27382
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27383
+ kind: zod.ZodLiteral<"app">;
27384
+ appName: zod.ZodOptional<zod.ZodString>;
27385
+ appRevisionId: zod.ZodString;
27386
+ actionName: zod.ZodString;
27387
+ pageSessionId: zod.ZodString;
27388
+ conversationId: zod.ZodOptional<zod.ZodString>;
27389
+ target: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
27390
+ connection: zod.ZodString;
27391
+ operation: zod.ZodString;
27392
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27393
+ dataStore: zod.ZodString;
27394
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27395
+ workflow: zod.ZodString;
27396
+ }, zod_v4_core.$strip>]>>;
27397
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27398
+ kind: zod.ZodLiteral<"workflow">;
27399
+ workflowRunId: zod.ZodString;
27400
+ stepRunId: zod.ZodString;
27401
+ boundBy: zod.ZodOptional<zod.ZodObject<{
27402
+ id: zod.ZodString;
27403
+ label: zod.ZodString;
27404
+ }, zod_v4_core.$strip>>;
27405
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27406
+ kind: zod.ZodLiteral<"schedule">;
27407
+ scheduleId: zod.ZodString;
27408
+ }, zod_v4_core.$strip>], "kind">;
27409
+ target: zod.ZodEnum<{
27410
+ live: "live";
27411
+ test: "test";
27412
+ dry_run: "dry_run";
27413
+ }>;
27414
+ app: zod.ZodOptional<zod.ZodObject<{
27415
+ title: zod.ZodOptional<zod.ZodString>;
27416
+ revision: zod.ZodOptional<zod.ZodNumber>;
27417
+ deleted: zod.ZodBoolean;
27418
+ }, zod_v4_core.$strip>>;
27419
+ workspaceId: zod.ZodOptional<zod.ZodString>;
27420
+ approvalRequestId: zod.ZodOptional<zod.ZodString>;
27421
+ inputHash: zod.ZodString;
27422
+ attempt: zod.ZodNumber;
27423
+ decision: zod.ZodOptional<zod.ZodObject<{
27424
+ mode: zod.ZodEnum<{
27425
+ direct: "direct";
27426
+ confirmed: "confirmed";
27427
+ approved: "approved";
27428
+ declined: "declined";
27429
+ }>;
27430
+ reason: zod.ZodOptional<zod.ZodEnum<{
27431
+ inherited_approval_not_applied: "inherited_approval_not_applied";
27432
+ workflow_publish: "workflow_publish";
27433
+ approved_by_caller: "approved_by_caller";
27434
+ }>>;
27435
+ by: zod.ZodString;
27436
+ byLabel: zod.ZodOptional<zod.ZodString>;
27437
+ at: zod.ZodISODateTime;
27438
+ comment: zod.ZodOptional<zod.ZodString>;
27439
+ }, zod_v4_core.$strip>>;
27440
+ error: zod.ZodOptional<zod.ZodObject<{
27441
+ code: zod.ZodString;
27442
+ message: zod.ZodString;
27443
+ reason: zod.ZodOptional<zod.ZodString>;
27444
+ }, zod_v4_core.$strip>>;
27445
+ usage: zod.ZodOptional<zod.ZodObject<{
27446
+ modelCalls: zod.ZodNumber;
27447
+ inputTokens: zod.ZodNumber;
27448
+ outputTokens: zod.ZodNumber;
27449
+ totalTokens: zod.ZodNumber;
27450
+ }, zod_v4_core.$strip>>;
27451
+ correlationId: zod.ZodString;
27452
+ createdAt: zod.ZodISODateTime;
27453
+ startedAt: zod.ZodOptional<zod.ZodISODateTime>;
27454
+ finishedAt: zod.ZodOptional<zod.ZodISODateTime>;
27455
+ expiresAt: zod.ZodOptional<zod.ZodISODateTime>;
27456
+ href: zod.ZodString;
27457
+ }, zod_v4_core.$strip>;
27458
+ readonly headers: {
27459
+ readonly request: readonly ["Idempotency-Key", "Catalyst-Unattended"];
27460
+ readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
27461
+ };
27462
+ }>;
27463
+ "projects.delete": Operation<{
27464
+ readonly id: "projects.delete";
27465
+ readonly method: "POST";
27466
+ readonly path: "/api/v1/project-settings/:projectId/delete";
27467
+ readonly summary: "Delete a project with its files; its chats stay in the workspace or are deleted too";
27468
+ readonly tag: "Projects";
27469
+ readonly auth: "user";
27470
+ readonly scope: "conversation:write";
27471
+ readonly requires: readonly [];
27472
+ readonly effect: "changing";
27473
+ readonly body: zod.ZodObject<{
27474
+ conversations: zod.ZodEnum<{
27475
+ delete: "delete";
27476
+ keep: "keep";
27477
+ }>;
27478
+ }, zod_v4_core.$strip>;
27479
+ readonly response: {
27480
+ readonly kind: "json";
27481
+ readonly schema: zod.ZodObject<{
27482
+ conversationsDeleted: zod.ZodNumber;
27483
+ conversationsKept: zod.ZodNumber;
27484
+ }, zod_v4_core.$strip>;
27485
+ };
27486
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "FORBIDDEN"];
27487
+ readonly rateClass: "write";
27488
+ } & {
27489
+ readonly accepted: zod.ZodObject<{
27490
+ id: zod.ZodString;
27491
+ operation: zod.ZodString;
27492
+ effect: zod.ZodEnum<{
27493
+ reading: "reading";
27494
+ changing: "changing";
27495
+ }>;
27496
+ status: zod.ZodEnum<{
27497
+ failed: "failed";
27498
+ running: "running";
27499
+ pending_confirmation: "pending_confirmation";
27500
+ pending_approval: "pending_approval";
27501
+ done: "done";
27502
+ denied: "denied";
27503
+ expired: "expired";
27504
+ }>;
27505
+ actor: zod.ZodObject<{
27506
+ kind: zod.ZodEnum<{
27507
+ user: "user";
27508
+ service_principal: "service_principal";
27509
+ }>;
27510
+ id: zod.ZodString;
27511
+ label: zod.ZodString;
27512
+ }, zod_v4_core.$strip>;
27513
+ origin: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
27514
+ kind: zod.ZodLiteral<"agent">;
27515
+ agentRunId: zod.ZodString;
27516
+ conversationId: zod.ZodString;
27517
+ agentName: zod.ZodString;
27518
+ toolCallId: zod.ZodString;
27519
+ toolName: zod.ZodString;
27520
+ toolRevisionId: zod.ZodOptional<zod.ZodString>;
27521
+ boundBy: zod.ZodOptional<zod.ZodObject<{
27522
+ id: zod.ZodString;
27523
+ label: zod.ZodString;
27524
+ }, zod_v4_core.$strip>>;
27525
+ draft: zod.ZodOptional<zod.ZodObject<{
27526
+ kind: zod.ZodLiteral<"agent_preview">;
27527
+ asset: zod.ZodObject<{
27528
+ kind: zod.ZodString;
27529
+ id: zod.ZodString;
27530
+ name: zod.ZodString;
27531
+ }, zod_v4_core.$strip>;
27532
+ revisionId: zod.ZodString;
27533
+ part: zod.ZodString;
27534
+ }, zod_v4_core.$strip>>;
27535
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27536
+ kind: zod.ZodLiteral<"user">;
27537
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27538
+ kind: zod.ZodLiteral<"cli">;
27539
+ unattended: zod.ZodOptional<zod.ZodLiteral<true>>;
27540
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27541
+ kind: zod.ZodLiteral<"mcp">;
27542
+ clientName: zod.ZodOptional<zod.ZodString>;
27543
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27544
+ kind: zod.ZodLiteral<"app">;
27545
+ appName: zod.ZodOptional<zod.ZodString>;
27546
+ appRevisionId: zod.ZodString;
27547
+ actionName: zod.ZodString;
27548
+ pageSessionId: zod.ZodString;
27549
+ conversationId: zod.ZodOptional<zod.ZodString>;
27550
+ target: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
27551
+ connection: zod.ZodString;
27552
+ operation: zod.ZodString;
27553
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27554
+ dataStore: zod.ZodString;
27555
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27556
+ workflow: zod.ZodString;
27557
+ }, zod_v4_core.$strip>]>>;
27558
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27559
+ kind: zod.ZodLiteral<"workflow">;
27560
+ workflowRunId: zod.ZodString;
27561
+ stepRunId: zod.ZodString;
27562
+ boundBy: zod.ZodOptional<zod.ZodObject<{
27563
+ id: zod.ZodString;
27564
+ label: zod.ZodString;
27565
+ }, zod_v4_core.$strip>>;
27566
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27567
+ kind: zod.ZodLiteral<"schedule">;
27568
+ scheduleId: zod.ZodString;
27569
+ }, zod_v4_core.$strip>], "kind">;
27570
+ target: zod.ZodEnum<{
27571
+ live: "live";
27572
+ test: "test";
27573
+ dry_run: "dry_run";
27574
+ }>;
27575
+ app: zod.ZodOptional<zod.ZodObject<{
27576
+ title: zod.ZodOptional<zod.ZodString>;
27577
+ revision: zod.ZodOptional<zod.ZodNumber>;
27578
+ deleted: zod.ZodBoolean;
27579
+ }, zod_v4_core.$strip>>;
27580
+ workspaceId: zod.ZodOptional<zod.ZodString>;
27581
+ approvalRequestId: zod.ZodOptional<zod.ZodString>;
27582
+ inputHash: zod.ZodString;
27583
+ attempt: zod.ZodNumber;
27584
+ decision: zod.ZodOptional<zod.ZodObject<{
27585
+ mode: zod.ZodEnum<{
27586
+ direct: "direct";
27587
+ confirmed: "confirmed";
27588
+ approved: "approved";
27589
+ declined: "declined";
27590
+ }>;
27591
+ reason: zod.ZodOptional<zod.ZodEnum<{
27592
+ inherited_approval_not_applied: "inherited_approval_not_applied";
27593
+ workflow_publish: "workflow_publish";
27594
+ approved_by_caller: "approved_by_caller";
27595
+ }>>;
27596
+ by: zod.ZodString;
27597
+ byLabel: zod.ZodOptional<zod.ZodString>;
27598
+ at: zod.ZodISODateTime;
27599
+ comment: zod.ZodOptional<zod.ZodString>;
27600
+ }, zod_v4_core.$strip>>;
27601
+ error: zod.ZodOptional<zod.ZodObject<{
27602
+ code: zod.ZodString;
27603
+ message: zod.ZodString;
27604
+ reason: zod.ZodOptional<zod.ZodString>;
27605
+ }, zod_v4_core.$strip>>;
27606
+ usage: zod.ZodOptional<zod.ZodObject<{
27607
+ modelCalls: zod.ZodNumber;
27608
+ inputTokens: zod.ZodNumber;
27609
+ outputTokens: zod.ZodNumber;
27610
+ totalTokens: zod.ZodNumber;
27611
+ }, zod_v4_core.$strip>>;
27612
+ correlationId: zod.ZodString;
27613
+ createdAt: zod.ZodISODateTime;
27614
+ startedAt: zod.ZodOptional<zod.ZodISODateTime>;
27615
+ finishedAt: zod.ZodOptional<zod.ZodISODateTime>;
27616
+ expiresAt: zod.ZodOptional<zod.ZodISODateTime>;
27617
+ href: zod.ZodString;
27618
+ }, zod_v4_core.$strip>;
27619
+ readonly headers: {
27620
+ readonly request: readonly ["Idempotency-Key", "Catalyst-Unattended"];
27621
+ readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
27622
+ };
27623
+ }>;
26792
27624
  "conversations.set_project": Operation<{
26793
27625
  readonly id: "conversations.set_project";
26794
27626
  readonly method: "PUT";
@@ -26801,6 +27633,7 @@ declare const projectOperations: {
26801
27633
  readonly effect: "changing";
26802
27634
  readonly body: zod.ZodObject<{
26803
27635
  projectId: zod.ZodNullable<zod.ZodString>;
27636
+ hideFromOthers: zod.ZodOptional<zod.ZodBoolean>;
26804
27637
  }, zod_v4_core.$strip>;
26805
27638
  readonly response: {
26806
27639
  readonly kind: "json";
package/dist/index.js CHANGED
@@ -208,6 +208,7 @@ var PROJECT_ACTIONS = [
208
208
  "project.delete"
209
209
  ];
210
210
  var PROJECT_AUDIENCES = ["workspace", "private"];
211
+ var PROJECT_DELETION_CONVERSATIONS = ["keep", "delete"];
211
212
  var PROJECT_FILE_ORIGINS = ["person", "agent", "upload"];
212
213
  var PROJECT_FILE_CHANGES = [
213
214
  "created",
@@ -219,6 +220,9 @@ var PROJECT_FILE_CHANGES = [
219
220
  ];
220
221
  var PROJECT_TITLE_MAX_LENGTH = 120;
221
222
  var PROJECT_DESCRIPTION_MAX_LENGTH = 500;
223
+ var PROJECT_SKILLS_MAX = 20;
224
+ var PROJECT_KNOWLEDGE_BASES_MAX = 20;
225
+ var PROJECT_CHOICE_REFUSALS = ["own_in_shared_project", "not_everyone_may_use"];
222
226
 
223
227
  // ../asset-schemas/src/contract-values.ts
224
228
  var AUTH_SCOPE_WILDCARD = "*";
@@ -2640,7 +2644,7 @@ import { z as z64 } from "zod";
2640
2644
  // ../api-contract/package.json
2641
2645
  var package_default = {
2642
2646
  name: "@work-shape/catalyst-api-contract",
2643
- version: "0.8.0-rc.19",
2647
+ version: "0.8.0-rc.20",
2644
2648
  license: "MIT",
2645
2649
  repository: {
2646
2650
  type: "git",
@@ -3321,6 +3325,14 @@ var apiUserSchema = z23.object({
3321
3325
  principal: authPrincipalSchema.optional(),
3322
3326
  subjectUserId: z23.string().optional(),
3323
3327
  delegatedActor: delegatedActorSchema.optional(),
3328
+ /**
3329
+ * Set on the read of a caller whose request names a delegated actor: an embedding host's
3330
+ * session token, which is never the person in their own session. What is the person's alone
3331
+ * (their "Nur ich" agents, "Always allow", adding a Data Store by their click, their account,
3332
+ * personal skills and Connections, the report to the operator) is refused to such a caller,
3333
+ * so the interface leaves it out. Left out for the person's own session.
3334
+ */
3335
+ embedded: z23.literal(true).optional(),
3324
3336
  scopes: z23.array(authScopeSchema).optional(),
3325
3337
  /**
3326
3338
  * Two-factor sign-in of a person signed in with a password (TWO-FACTOR-1): whether the instance
@@ -4949,7 +4961,13 @@ var projectSchema = z30.object({
4949
4961
  audience: projectAudienceSchema,
4950
4962
  createdByUserId: z30.string(),
4951
4963
  createdAt: timestampSchema,
4952
- updatedAt: timestampSchema
4964
+ updatedAt: timestampSchema,
4965
+ /** The agent a new chat in the project starts with (PRJ-7); not a lock. */
4966
+ defaultAgent: z30.string().optional(),
4967
+ /** The skills every run in the project is offered beside its agent's own (PRJ-7). */
4968
+ skills: z30.array(z30.string()).optional(),
4969
+ /** The Knowledge Bases every run in the project may search beside its agent's own (PRJ-8). */
4970
+ knowledgeBases: z30.array(z30.string()).optional()
4953
4971
  });
4954
4972
  var projectListItemSchema = projectSchema.extend({
4955
4973
  /** The sent chats in the project; everyone who sees the project reads all of them. */
@@ -4966,7 +4984,119 @@ var createProjectRequestSchema = z30.object({
4966
4984
  audience: projectAudienceSchema.optional()
4967
4985
  });
4968
4986
  var setConversationProjectRequestSchema = z30.object({
4969
- projectId: z30.string().min(1).nullable()
4987
+ projectId: z30.string().min(1).nullable(),
4988
+ /**
4989
+ * Into a private project, a chat others read now is read by its author alone from then on:
4990
+ * `true` says the person saw that (PRJ-6). Without it such a move is refused
4991
+ * (`VALIDATION_FAILED`, `project_hides_conversation`).
4992
+ */
4993
+ hideFromOthers: z30.boolean().optional()
4994
+ });
4995
+ var projectImpactSchema = z30.object({
4996
+ /** The chats in the project. */
4997
+ conversations: z30.number().int().nonnegative(),
4998
+ /** Of those, the chats someone other than its creator started. */
4999
+ conversationsOfOthers: z30.number().int().nonnegative(),
5000
+ /** Chats that must stay private and keep the project from being shared. */
5001
+ conversationsKeptPrivate: z30.number().int().nonnegative(),
5002
+ /** The project's files as they are now. */
5003
+ files: z30.number().int().nonnegative(),
5004
+ /** Of those, the files someone other than its creator changed last. */
5005
+ filesOfOthers: z30.number().int().nonnegative(),
5006
+ /** Files a chat that must stay private wrote, or one that is gone; they keep it unshared. */
5007
+ filesKeptPrivate: z30.number().int().nonnegative()
5008
+ });
5009
+ var setProjectAudienceRequestSchema = z30.object({
5010
+ audience: projectAudienceSchema,
5011
+ /** The audience the person saw; a project changed since is refused with `CONFLICT`. */
5012
+ expectedAudience: projectAudienceSchema
5013
+ });
5014
+ var projectAudienceChangeSchema = z30.object({
5015
+ project: projectSchema,
5016
+ /** Chats every member of the workspace reads from now on. */
5017
+ conversationsShared: z30.number().int().nonnegative(),
5018
+ /** Other members' chats that left the project and stay shared in the workspace. */
5019
+ conversationsLeft: z30.number().int().nonnegative(),
5020
+ /** The creator's own chats that only the creator reads from now on. */
5021
+ conversationsMadePrivate: z30.number().int().nonnegative()
5022
+ });
5023
+ var moveProjectRequestSchema = z30.object({
5024
+ /** A workspace the caller is a member of, as of the project's own. */
5025
+ collaborationWorkspaceId: z30.string().min(1),
5026
+ /**
5027
+ * Out of a Personal Workspace only: who reads the project in the Shared Workspace. Missing:
5028
+ * only its creator. Elsewhere a project keeps its audience; into a Personal Workspace it is
5029
+ * that person's.
5030
+ */
5031
+ audience: projectAudienceSchema.optional()
5032
+ });
5033
+ var projectMoveSchema = z30.object({
5034
+ project: projectSchema,
5035
+ /** The chats that moved with the project. */
5036
+ conversationsMoved: z30.number().int().nonnegative()
5037
+ });
5038
+ var deleteProjectRequestSchema = z30.object({
5039
+ conversations: z30.enum(PROJECT_DELETION_CONVERSATIONS)
5040
+ });
5041
+ var projectDeletionSchema = z30.object({
5042
+ /** Chats deleted with the project. */
5043
+ conversationsDeleted: z30.number().int().nonnegative(),
5044
+ /** Chats that stayed in the workspace, each read as it was before. */
5045
+ conversationsKept: z30.number().int().nonnegative()
5046
+ });
5047
+ var projectChoiceRefusalSchema = z30.enum(PROJECT_CHOICE_REFUSALS);
5048
+ var projectChoiceAssetSchema = z30.object({ id: z30.string(), workspaceId: z30.string() });
5049
+ var projectAgentChoiceSchema = z30.object({
5050
+ name: z30.string(),
5051
+ displayName: z30.string(),
5052
+ description: z30.string().optional(),
5053
+ /** The person's own agent, of their Personal Workspace: a chat that uses it is theirs alone. */
5054
+ own: z30.boolean(),
5055
+ refusal: projectChoiceRefusalSchema.optional(),
5056
+ asset: projectChoiceAssetSchema.optional()
5057
+ });
5058
+ var projectSkillChoiceSchema = z30.object({
5059
+ name: z30.string(),
5060
+ title: z30.string(),
5061
+ summary: z30.string().optional(),
5062
+ /** The icon of a skill the platform ships. */
5063
+ icon: z30.string().optional(),
5064
+ /** The person's own skill, of their Personal Workspace: a chat that reads it is theirs alone. */
5065
+ own: z30.boolean(),
5066
+ refusal: projectChoiceRefusalSchema.optional(),
5067
+ asset: projectChoiceAssetSchema.optional()
5068
+ });
5069
+ var projectKnowledgeBaseChoiceSchema = z30.object({
5070
+ name: z30.string(),
5071
+ title: z30.string(),
5072
+ description: z30.string().optional(),
5073
+ /** Not published yet: attached, it answers once it is. */
5074
+ unpublished: z30.boolean().optional(),
5075
+ /** The person's own, of their Personal Workspace: only a chat they alone read searches it. */
5076
+ own: z30.boolean(),
5077
+ refusal: projectChoiceRefusalSchema.optional(),
5078
+ asset: projectChoiceAssetSchema.optional()
5079
+ });
5080
+ var projectSetupSchema = z30.object({
5081
+ defaultAgent: z30.string().optional(),
5082
+ skills: z30.array(z30.string()),
5083
+ /** The agent a new chat starts with where the project names none, or one not offered now. */
5084
+ workspaceDefaultAgent: z30.string().optional(),
5085
+ agents: z30.array(projectAgentChoiceSchema),
5086
+ skillChoices: z30.array(projectSkillChoiceSchema),
5087
+ /** The Knowledge Bases the project attaches (PRJ-8), kept where they no longer apply. */
5088
+ knowledgeBases: z30.array(z30.string()),
5089
+ /**
5090
+ * The Knowledge Bases the person may attach, those not everyone in the project's audience may
5091
+ * use greyed with the reason. Missing where the module `knowledge` is off.
5092
+ */
5093
+ knowledgeBaseChoices: z30.array(projectKnowledgeBaseChoiceSchema).optional()
5094
+ });
5095
+ var setProjectSetupRequestSchema = z30.object({
5096
+ /** `null`: new chats start with the workspace's default. */
5097
+ defaultAgent: z30.string().min(1).max(128).nullable().optional(),
5098
+ skills: z30.array(z30.string().min(1).max(128)).max(PROJECT_SKILLS_MAX).optional(),
5099
+ knowledgeBases: z30.array(z30.string().min(1).max(128)).max(PROJECT_KNOWLEDGE_BASES_MAX).optional()
4970
5100
  });
4971
5101
  var projectFileOriginSchema = z30.enum(PROJECT_FILE_ORIGINS);
4972
5102
  var projectFileSchema = z30.object({
@@ -11498,6 +11628,97 @@ var projectOperations = {
11498
11628
  errors: ["NOT_FOUND"],
11499
11629
  rateClass: "write"
11500
11630
  }),
11631
+ // A project's default agent and skills (PRJ-7) and Knowledge Bases (PRJ-8), with what the
11632
+ // caller may choose of them.
11633
+ "projects.setup.get": defineOperation({
11634
+ id: "projects.setup.get",
11635
+ method: "GET",
11636
+ path: "/api/v1/project-settings/:projectId/setup",
11637
+ summary: "Read a project's default agent, skills and Knowledge Bases, with those the caller may choose for it",
11638
+ tag: "Projects",
11639
+ auth: "user",
11640
+ scope: "conversation:read",
11641
+ requires: [],
11642
+ effect: "reading",
11643
+ response: json(projectSetupSchema),
11644
+ errors: ["NOT_FOUND"],
11645
+ rateClass: "read"
11646
+ }),
11647
+ "projects.setup.set": defineRegisteredOperation({
11648
+ id: "projects.setup.set",
11649
+ method: "PUT",
11650
+ path: "/api/v1/project-settings/:projectId/setup",
11651
+ summary: "Set the agent a new chat in a project starts with and the skills and Knowledge Bases every run in it is offered",
11652
+ tag: "Projects",
11653
+ auth: "user",
11654
+ scope: "conversation:write",
11655
+ requires: [],
11656
+ effect: "changing",
11657
+ body: setProjectSetupRequestSchema,
11658
+ response: json(projectSetupSchema),
11659
+ errors: ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"],
11660
+ rateClass: "write"
11661
+ }),
11662
+ // A whole project (PRJ-6): who reads it, its workspace, its deletion.
11663
+ "projects.impact": defineOperation({
11664
+ id: "projects.impact",
11665
+ method: "GET",
11666
+ path: "/api/v1/project-settings/:projectId/impact",
11667
+ summary: "Count what a change to the whole project reaches: its chats and files, and whose they are",
11668
+ tag: "Projects",
11669
+ auth: "user",
11670
+ scope: "conversation:read",
11671
+ requires: [],
11672
+ effect: "reading",
11673
+ response: json(projectImpactSchema),
11674
+ errors: ["NOT_FOUND"],
11675
+ rateClass: "read"
11676
+ }),
11677
+ "projects.set_audience": defineRegisteredOperation({
11678
+ id: "projects.set_audience",
11679
+ method: "PUT",
11680
+ path: "/api/v1/project-settings/:projectId/audience",
11681
+ summary: "Share a project with its workspace or make it private to its creator, with every chat in it",
11682
+ tag: "Projects",
11683
+ auth: "user",
11684
+ scope: "conversation:write",
11685
+ requires: [],
11686
+ effect: "changing",
11687
+ body: setProjectAudienceRequestSchema,
11688
+ response: json(projectAudienceChangeSchema),
11689
+ errors: ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"],
11690
+ rateClass: "write"
11691
+ }),
11692
+ "projects.move": defineRegisteredOperation({
11693
+ id: "projects.move",
11694
+ method: "POST",
11695
+ path: "/api/v1/project-settings/:projectId/move",
11696
+ summary: "Move a project with its chats and files to another workspace the caller is a member of",
11697
+ tag: "Projects",
11698
+ auth: "user",
11699
+ scope: "conversation:write",
11700
+ requires: [],
11701
+ effect: "changing",
11702
+ body: moveProjectRequestSchema,
11703
+ response: json(projectMoveSchema),
11704
+ errors: ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"],
11705
+ rateClass: "write"
11706
+ }),
11707
+ "projects.delete": defineRegisteredOperation({
11708
+ id: "projects.delete",
11709
+ method: "POST",
11710
+ path: "/api/v1/project-settings/:projectId/delete",
11711
+ summary: "Delete a project with its files; its chats stay in the workspace or are deleted too",
11712
+ tag: "Projects",
11713
+ auth: "user",
11714
+ scope: "conversation:write",
11715
+ requires: [],
11716
+ effect: "changing",
11717
+ body: deleteProjectRequestSchema,
11718
+ response: json(projectDeletionSchema),
11719
+ errors: ["NOT_FOUND", "CONFLICT", "FORBIDDEN"],
11720
+ rateClass: "write"
11721
+ }),
11501
11722
  "conversations.set_project": defineRegisteredOperation({
11502
11723
  id: "conversations.set_project",
11503
11724
  method: "PUT",
@@ -16332,6 +16553,33 @@ async function pushConfig(options) {
16332
16553
  }
16333
16554
  const api = await connectApi(instance.url, options, instance);
16334
16555
  const listing = await listRemoteAssets(api, workingCopyKinds(manifest));
16556
+ for (const asset of touched.filter((asset2) => asset2.kind === "skill")) {
16557
+ const remote = listing.get(asset.key);
16558
+ if (remote && (remote.draft?.revision ?? null) !== (baselineAssets[asset.key]?.draftRevision ?? null)) {
16559
+ writeError(
16560
+ options,
16561
+ [
16562
+ "The skill draft changed. Read it again before saving",
16563
+ formatPushConflict(
16564
+ [
16565
+ {
16566
+ kind: "skill",
16567
+ name: asset.name,
16568
+ draft: { revision: remote.draft?.revision ?? null },
16569
+ ...remote.draft ? {
16570
+ changedBy: formatDraftAuthor(remote.draft.author),
16571
+ changedAt: remote.draft.updatedAt
16572
+ } : {}
16573
+ }
16574
+ ],
16575
+ false,
16576
+ options
16577
+ )
16578
+ ].join("\n")
16579
+ );
16580
+ return 1;
16581
+ }
16582
+ }
16335
16583
  const touchedKeys = new Set(touched.map((asset) => asset.key));
16336
16584
  const localKeys = new Set(assetEntries(local).map((asset) => asset.key));
16337
16585
  const deleteAssets = options.prune ? [...listing.values()].filter((asset) => !localKeys.has(asset.key)) : [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@work-shape/catalyst-cli",
3
- "version": "0.8.0-rc.19",
3
+ "version": "0.8.0-rc.20",
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.19",
44
- "@work-shape/catalyst-api-contract": "0.8.0-rc.19",
45
- "@work-shape/catalyst-asset-schemas": "0.8.0-rc.19"
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"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsup",