@rudderhq/shared 0.2.0-canary.8 → 0.2.0-canary.9
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/types/chat.d.ts +2 -2
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/organization.d.ts +1 -3
- package/dist/types/organization.d.ts.map +1 -1
- package/dist/validators/agent.d.ts +7 -7
- package/dist/validators/organization-portability.d.ts +6 -6
- package/dist/validators/organization-skill.d.ts +6 -6
- package/dist/validators/organization.d.ts +0 -12
- package/dist/validators/organization.d.ts.map +1 -1
- package/dist/validators/organization.js +1 -9
- package/dist/validators/organization.js.map +1 -1
- package/package.json +1 -1
package/dist/types/chat.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface ChatPrimaryIssueSummary {
|
|
|
45
45
|
priority: string;
|
|
46
46
|
}
|
|
47
47
|
export interface ChatRuntimeDescriptor {
|
|
48
|
-
sourceType: "agent" | "
|
|
48
|
+
sourceType: "agent" | "unconfigured";
|
|
49
49
|
sourceLabel: string;
|
|
50
50
|
runtimeAgentId: string | null;
|
|
51
51
|
agentRuntimeType: string | null;
|
|
@@ -92,7 +92,7 @@ export interface ChatMessage {
|
|
|
92
92
|
approval: Approval | null;
|
|
93
93
|
attachments: ChatAttachment[];
|
|
94
94
|
transcript?: ChatStreamTranscriptEntry[];
|
|
95
|
-
/** Agent whose runtime produced this assistant message
|
|
95
|
+
/** Agent whose runtime produced this assistant message. */
|
|
96
96
|
replyingAgentId: string | null;
|
|
97
97
|
/** Groups user+assistant rows for one logical turn; new variant on edit/regenerate. */
|
|
98
98
|
chatTurnId: string | null;
|
package/dist/types/chat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,gBAAgB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EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,WAAW,GAAG,YAAY,GAAG,SAAS,CAAC;CAC/C;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,yBAAyB,CAAC;CAClC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,MAAM,eAAe,GACvB,kBAAkB,GAClB,6BAA6B,GAC7B,6BAA6B,GAC7B,8BAA8B,GAC9B,oBAAoB,GACpB,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentRole,
|
|
1
|
+
import type { AgentRole, OrganizationStatus, PauseReason } from "../constants.js";
|
|
2
2
|
import type { ChatIssueCreationMode } from "../constants.js";
|
|
3
3
|
import type { ProjectWorkspaceSourceType } from "./project.js";
|
|
4
4
|
export interface OrganizationWorkspace {
|
|
@@ -57,8 +57,6 @@ export interface Organization {
|
|
|
57
57
|
spentMonthlyCents: number;
|
|
58
58
|
requireBoardApprovalForNewAgents: boolean;
|
|
59
59
|
defaultChatIssueCreationMode: ChatIssueCreationMode;
|
|
60
|
-
defaultChatAgentRuntimeType: AgentRuntimeType | null;
|
|
61
|
-
defaultChatAgentRuntimeConfig: Record<string, unknown> | null;
|
|
62
60
|
workspace: OrganizationWorkspace | null;
|
|
63
61
|
brandColor: string | null;
|
|
64
62
|
logoAssetId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/types/organization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/types/organization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE/D,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,0BAA0B,CAAC;IACvC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,MAAM,+BAA+B,GAAG,UAAU,CAAC;AAEzD,MAAM,MAAM,wCAAwC,GAAG,iBAAiB,CAAC;AAEzE,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,wCAAwC,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,+BAA+B,CAAC;IACxC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE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;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -62,9 +62,9 @@ export declare const createAgentSchema: z.ZodObject<{
|
|
|
62
62
|
}>>;
|
|
63
63
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
|
-
agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local";
|
|
66
65
|
budgetMonthlyCents: number;
|
|
67
66
|
role: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general";
|
|
67
|
+
agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local";
|
|
68
68
|
agentRuntimeConfig: Record<string, unknown>;
|
|
69
69
|
runtimeConfig: Record<string, unknown>;
|
|
70
70
|
title?: string | null | undefined;
|
|
@@ -80,10 +80,10 @@ export declare const createAgentSchema: z.ZodObject<{
|
|
|
80
80
|
}, {
|
|
81
81
|
title?: string | null | undefined;
|
|
82
82
|
name?: unknown;
|
|
83
|
-
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
84
83
|
budgetMonthlyCents?: number | undefined;
|
|
85
84
|
metadata?: Record<string, unknown> | null | undefined;
|
|
86
85
|
role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
|
|
86
|
+
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
87
87
|
desiredSkills?: string[] | undefined;
|
|
88
88
|
icon?: unknown;
|
|
89
89
|
capabilities?: string | null | undefined;
|
|
@@ -119,9 +119,9 @@ export declare const createAgentHireSchema: z.ZodObject<{
|
|
|
119
119
|
sourceIssueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
120
120
|
sourceIssueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local";
|
|
123
122
|
budgetMonthlyCents: number;
|
|
124
123
|
role: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general";
|
|
124
|
+
agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local";
|
|
125
125
|
agentRuntimeConfig: Record<string, unknown>;
|
|
126
126
|
runtimeConfig: Record<string, unknown>;
|
|
127
127
|
title?: string | null | undefined;
|
|
@@ -139,10 +139,10 @@ export declare const createAgentHireSchema: z.ZodObject<{
|
|
|
139
139
|
}, {
|
|
140
140
|
title?: string | null | undefined;
|
|
141
141
|
name?: unknown;
|
|
142
|
-
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
143
142
|
budgetMonthlyCents?: number | undefined;
|
|
144
143
|
metadata?: Record<string, unknown> | null | undefined;
|
|
145
144
|
role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
|
|
145
|
+
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
146
146
|
desiredSkills?: string[] | undefined;
|
|
147
147
|
icon?: unknown;
|
|
148
148
|
capabilities?: string | null | undefined;
|
|
@@ -159,10 +159,10 @@ export type CreateAgentHire = z.infer<typeof createAgentHireSchema>;
|
|
|
159
159
|
export declare const updateAgentSchema: z.ZodObject<{
|
|
160
160
|
title: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
161
161
|
name: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>>;
|
|
162
|
-
agentRuntimeType: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>>;
|
|
163
162
|
budgetMonthlyCents: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
164
163
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
165
164
|
role: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["ceo", "cto", "cmo", "cfo", "engineer", "designer", "pm", "qa", "devops", "researcher", "general"]>>>>;
|
|
165
|
+
agentRuntimeType: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>>;
|
|
166
166
|
desiredSkills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
167
167
|
icon: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["bot", "cpu", "brain", "zap", "rocket", "code", "terminal", "shield", "eye", "search", "wrench", "hammer", "lightbulb", "sparkles", "star", "heart", "flame", "bug", "cog", "database", "globe", "lock", "mail", "message-square", "file-code", "git-branch", "package", "puzzle", "target", "wand", "atom", "circuit-board", "radar", "swords", "telescope", "microscope", "crown", "gem", "hexagon", "pentagon", "fingerprint"]>, z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>]>>, string | null, unknown>>>;
|
|
168
168
|
capabilities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -178,11 +178,11 @@ export declare const updateAgentSchema: z.ZodObject<{
|
|
|
178
178
|
status?: "active" | "paused" | "idle" | "running" | "error" | "pending_approval" | "terminated" | undefined;
|
|
179
179
|
title?: string | null | undefined;
|
|
180
180
|
name?: string | undefined;
|
|
181
|
-
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
182
181
|
budgetMonthlyCents?: number | undefined;
|
|
183
182
|
spentMonthlyCents?: number | undefined;
|
|
184
183
|
metadata?: Record<string, unknown> | null | undefined;
|
|
185
184
|
role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
|
|
185
|
+
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
186
186
|
desiredSkills?: string[] | undefined;
|
|
187
187
|
icon?: string | null | undefined;
|
|
188
188
|
capabilities?: string | null | undefined;
|
|
@@ -195,11 +195,11 @@ export declare const updateAgentSchema: z.ZodObject<{
|
|
|
195
195
|
status?: "active" | "paused" | "idle" | "running" | "error" | "pending_approval" | "terminated" | undefined;
|
|
196
196
|
title?: string | null | undefined;
|
|
197
197
|
name?: unknown;
|
|
198
|
-
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
199
198
|
budgetMonthlyCents?: number | undefined;
|
|
200
199
|
spentMonthlyCents?: number | undefined;
|
|
201
200
|
metadata?: Record<string, unknown> | null | undefined;
|
|
202
201
|
role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
|
|
202
|
+
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
203
203
|
desiredSkills?: string[] | undefined;
|
|
204
204
|
icon?: unknown;
|
|
205
205
|
capabilities?: string | null | undefined;
|
|
@@ -108,11 +108,11 @@ export declare const portabilityAgentManifestEntrySchema: z.ZodObject<{
|
|
|
108
108
|
path: string;
|
|
109
109
|
title: string | null;
|
|
110
110
|
name: string;
|
|
111
|
-
agentRuntimeType: string;
|
|
112
111
|
budgetMonthlyCents: number;
|
|
113
112
|
metadata: Record<string, unknown> | null;
|
|
114
113
|
role: string;
|
|
115
114
|
slug: string;
|
|
115
|
+
agentRuntimeType: string;
|
|
116
116
|
skills: string[];
|
|
117
117
|
icon: string | null;
|
|
118
118
|
capabilities: string | null;
|
|
@@ -124,11 +124,11 @@ export declare const portabilityAgentManifestEntrySchema: z.ZodObject<{
|
|
|
124
124
|
path: string;
|
|
125
125
|
title: string | null;
|
|
126
126
|
name: string;
|
|
127
|
-
agentRuntimeType: string;
|
|
128
127
|
budgetMonthlyCents: number;
|
|
129
128
|
metadata: Record<string, unknown> | null;
|
|
130
129
|
role: string;
|
|
131
130
|
slug: string;
|
|
131
|
+
agentRuntimeType: string;
|
|
132
132
|
icon: string | null;
|
|
133
133
|
capabilities: string | null;
|
|
134
134
|
reportsToSlug: string | null;
|
|
@@ -588,11 +588,11 @@ export declare const portabilityManifestSchema: z.ZodObject<{
|
|
|
588
588
|
path: string;
|
|
589
589
|
title: string | null;
|
|
590
590
|
name: string;
|
|
591
|
-
agentRuntimeType: string;
|
|
592
591
|
budgetMonthlyCents: number;
|
|
593
592
|
metadata: Record<string, unknown> | null;
|
|
594
593
|
role: string;
|
|
595
594
|
slug: string;
|
|
595
|
+
agentRuntimeType: string;
|
|
596
596
|
skills: string[];
|
|
597
597
|
icon: string | null;
|
|
598
598
|
capabilities: string | null;
|
|
@@ -604,11 +604,11 @@ export declare const portabilityManifestSchema: z.ZodObject<{
|
|
|
604
604
|
path: string;
|
|
605
605
|
title: string | null;
|
|
606
606
|
name: string;
|
|
607
|
-
agentRuntimeType: string;
|
|
608
607
|
budgetMonthlyCents: number;
|
|
609
608
|
metadata: Record<string, unknown> | null;
|
|
610
609
|
role: string;
|
|
611
610
|
slug: string;
|
|
611
|
+
agentRuntimeType: string;
|
|
612
612
|
icon: string | null;
|
|
613
613
|
capabilities: string | null;
|
|
614
614
|
reportsToSlug: string | null;
|
|
@@ -980,11 +980,11 @@ export declare const portabilityManifestSchema: z.ZodObject<{
|
|
|
980
980
|
path: string;
|
|
981
981
|
title: string | null;
|
|
982
982
|
name: string;
|
|
983
|
-
agentRuntimeType: string;
|
|
984
983
|
budgetMonthlyCents: number;
|
|
985
984
|
metadata: Record<string, unknown> | null;
|
|
986
985
|
role: string;
|
|
987
986
|
slug: string;
|
|
987
|
+
agentRuntimeType: string;
|
|
988
988
|
skills: string[];
|
|
989
989
|
icon: string | null;
|
|
990
990
|
capabilities: string | null;
|
|
@@ -1075,11 +1075,11 @@ export declare const portabilityManifestSchema: z.ZodObject<{
|
|
|
1075
1075
|
path: string;
|
|
1076
1076
|
title: string | null;
|
|
1077
1077
|
name: string;
|
|
1078
|
-
agentRuntimeType: string;
|
|
1079
1078
|
budgetMonthlyCents: number;
|
|
1080
1079
|
metadata: Record<string, unknown> | null;
|
|
1081
1080
|
role: string;
|
|
1082
1081
|
slug: string;
|
|
1082
|
+
agentRuntimeType: string;
|
|
1083
1083
|
icon: string | null;
|
|
1084
1084
|
capabilities: string | null;
|
|
1085
1085
|
reportsToSlug: string | null;
|
|
@@ -179,15 +179,15 @@ export declare const organizationSkillUsageAgentSchema: z.ZodObject<{
|
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
id: string;
|
|
181
181
|
name: string;
|
|
182
|
-
agentRuntimeType: string;
|
|
183
182
|
urlKey: string;
|
|
183
|
+
agentRuntimeType: string;
|
|
184
184
|
desired: boolean;
|
|
185
185
|
actualState: string | null;
|
|
186
186
|
}, {
|
|
187
187
|
id: string;
|
|
188
188
|
name: string;
|
|
189
|
-
agentRuntimeType: string;
|
|
190
189
|
urlKey: string;
|
|
190
|
+
agentRuntimeType: string;
|
|
191
191
|
desired: boolean;
|
|
192
192
|
actualState: string | null;
|
|
193
193
|
}>;
|
|
@@ -229,15 +229,15 @@ export declare const organizationSkillDetailSchema: z.ZodObject<{
|
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
230
|
id: string;
|
|
231
231
|
name: string;
|
|
232
|
-
agentRuntimeType: string;
|
|
233
232
|
urlKey: string;
|
|
233
|
+
agentRuntimeType: string;
|
|
234
234
|
desired: boolean;
|
|
235
235
|
actualState: string | null;
|
|
236
236
|
}, {
|
|
237
237
|
id: string;
|
|
238
238
|
name: string;
|
|
239
|
-
agentRuntimeType: string;
|
|
240
239
|
urlKey: string;
|
|
240
|
+
agentRuntimeType: string;
|
|
241
241
|
desired: boolean;
|
|
242
242
|
actualState: string | null;
|
|
243
243
|
}>, "many">>;
|
|
@@ -277,8 +277,8 @@ export declare const organizationSkillDetailSchema: z.ZodObject<{
|
|
|
277
277
|
usedByAgents: {
|
|
278
278
|
id: string;
|
|
279
279
|
name: string;
|
|
280
|
-
agentRuntimeType: string;
|
|
281
280
|
urlKey: string;
|
|
281
|
+
agentRuntimeType: string;
|
|
282
282
|
desired: boolean;
|
|
283
283
|
actualState: string | null;
|
|
284
284
|
}[];
|
|
@@ -312,8 +312,8 @@ export declare const organizationSkillDetailSchema: z.ZodObject<{
|
|
|
312
312
|
usedByAgents?: {
|
|
313
313
|
id: string;
|
|
314
314
|
name: string;
|
|
315
|
-
agentRuntimeType: string;
|
|
316
315
|
urlKey: string;
|
|
316
|
+
agentRuntimeType: string;
|
|
317
317
|
desired: boolean;
|
|
318
318
|
actualState: string | null;
|
|
319
319
|
}[] | undefined;
|
|
@@ -4,8 +4,6 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
4
4
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
5
|
budgetMonthlyCents: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
6
6
|
defaultChatIssueCreationMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["manual_approval", "auto_create"]>>>;
|
|
7
|
-
defaultChatAgentRuntimeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>;
|
|
8
|
-
defaultChatAgentRuntimeConfig: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>;
|
|
9
7
|
brandColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
8
|
requireBoardApprovalForNewAgents: z.ZodOptional<z.ZodBoolean>;
|
|
11
9
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -13,8 +11,6 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
13
11
|
budgetMonthlyCents: number;
|
|
14
12
|
defaultChatIssueCreationMode: "manual_approval" | "auto_create";
|
|
15
13
|
description?: string | null | undefined;
|
|
16
|
-
defaultChatAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
|
|
17
|
-
defaultChatAgentRuntimeConfig?: Record<string, unknown> | null | undefined;
|
|
18
14
|
brandColor?: string | null | undefined;
|
|
19
15
|
requireBoardApprovalForNewAgents?: boolean | undefined;
|
|
20
16
|
}, {
|
|
@@ -22,8 +18,6 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
22
18
|
description?: string | null | undefined;
|
|
23
19
|
budgetMonthlyCents?: number | undefined;
|
|
24
20
|
defaultChatIssueCreationMode?: "manual_approval" | "auto_create" | undefined;
|
|
25
|
-
defaultChatAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
|
|
26
|
-
defaultChatAgentRuntimeConfig?: Record<string, unknown> | null | undefined;
|
|
27
21
|
brandColor?: string | null | undefined;
|
|
28
22
|
requireBoardApprovalForNewAgents?: boolean | undefined;
|
|
29
23
|
}>;
|
|
@@ -37,8 +31,6 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
37
31
|
spentMonthlyCents: z.ZodOptional<z.ZodNumber>;
|
|
38
32
|
requireBoardApprovalForNewAgents: z.ZodOptional<z.ZodBoolean>;
|
|
39
33
|
defaultChatIssueCreationMode: z.ZodOptional<z.ZodEnum<["manual_approval", "auto_create"]>>;
|
|
40
|
-
defaultChatAgentRuntimeType: z.ZodNullable<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>;
|
|
41
|
-
defaultChatAgentRuntimeConfig: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>;
|
|
42
34
|
brandColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
35
|
logoAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
36
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -47,8 +39,6 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
47
39
|
name?: string | undefined;
|
|
48
40
|
budgetMonthlyCents?: number | undefined;
|
|
49
41
|
defaultChatIssueCreationMode?: "manual_approval" | "auto_create" | undefined;
|
|
50
|
-
defaultChatAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
|
|
51
|
-
defaultChatAgentRuntimeConfig?: Record<string, unknown> | null | undefined;
|
|
52
42
|
brandColor?: string | null | undefined;
|
|
53
43
|
requireBoardApprovalForNewAgents?: boolean | undefined;
|
|
54
44
|
spentMonthlyCents?: number | undefined;
|
|
@@ -59,8 +49,6 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
59
49
|
name?: string | undefined;
|
|
60
50
|
budgetMonthlyCents?: number | undefined;
|
|
61
51
|
defaultChatIssueCreationMode?: "manual_approval" | "auto_create" | undefined;
|
|
62
|
-
defaultChatAgentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | null | undefined;
|
|
63
|
-
defaultChatAgentRuntimeConfig?: Record<string, unknown> | null | undefined;
|
|
64
52
|
brandColor?: string | null | undefined;
|
|
65
53
|
requireBoardApprovalForNewAgents?: boolean | undefined;
|
|
66
54
|
spentMonthlyCents?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/validators/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/validators/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASjC,CAAC;AAEL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;EAe1C,CAAC;AAEJ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,qCAAqC;;;;;;EAEhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
import { validateModelFallbacksConfig } from "./model-fallbacks.js";
|
|
2
|
+
import { CHAT_ISSUE_CREATION_MODES, ORGANIZATION_STATUSES } from "../constants.js";
|
|
4
3
|
const logoAssetIdSchema = z.string().uuid().nullable().optional();
|
|
5
4
|
const brandColorSchema = z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional();
|
|
6
|
-
const defaultChatRuntimeConfigSchema = z.record(z.unknown()).superRefine((value, ctx) => {
|
|
7
|
-
validateModelFallbacksConfig(value, ctx, []);
|
|
8
|
-
});
|
|
9
5
|
export const createOrganizationSchema = z.object({
|
|
10
6
|
name: z.string().min(1),
|
|
11
7
|
description: z.string().optional().nullable(),
|
|
12
8
|
budgetMonthlyCents: z.number().int().nonnegative().optional().default(0),
|
|
13
9
|
defaultChatIssueCreationMode: z.enum(CHAT_ISSUE_CREATION_MODES).optional().default("manual_approval"),
|
|
14
|
-
defaultChatAgentRuntimeType: z.enum(AGENT_RUNTIME_TYPES).optional().nullable(),
|
|
15
|
-
defaultChatAgentRuntimeConfig: defaultChatRuntimeConfigSchema.optional().nullable(),
|
|
16
10
|
brandColor: brandColorSchema,
|
|
17
11
|
requireBoardApprovalForNewAgents: z.boolean().optional(),
|
|
18
12
|
});
|
|
@@ -23,8 +17,6 @@ export const updateOrganizationSchema = createOrganizationSchema
|
|
|
23
17
|
spentMonthlyCents: z.number().int().nonnegative().optional(),
|
|
24
18
|
requireBoardApprovalForNewAgents: z.boolean().optional(),
|
|
25
19
|
defaultChatIssueCreationMode: z.enum(CHAT_ISSUE_CREATION_MODES).optional(),
|
|
26
|
-
defaultChatAgentRuntimeType: z.enum(AGENT_RUNTIME_TYPES).optional().nullable(),
|
|
27
|
-
defaultChatAgentRuntimeConfig: defaultChatRuntimeConfigSchema.optional().nullable(),
|
|
28
20
|
brandColor: brandColorSchema,
|
|
29
21
|
logoAssetId: logoAssetIdSchema,
|
|
30
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/validators/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/validators/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAEnF,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC;AAClE,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC;AACrF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACxE,4BAA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