@rudderhq/shared 0.7.2-canary.0 → 0.7.3
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/computer-use.d.ts +325 -0
- package/dist/computer-use.d.ts.map +1 -0
- package/dist/computer-use.js +251 -0
- package/dist/computer-use.js.map +1 -0
- package/dist/computer-use.test.d.ts +2 -0
- package/dist/computer-use.test.d.ts.map +1 -0
- package/dist/computer-use.test.js +32 -0
- package/dist/computer-use.test.js.map +1 -0
- package/dist/config-schema.d.ts +7 -7
- package/dist/constants.d.ts +46 -128
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +66 -302
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +12 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/project-mentions.d.ts +7 -0
- package/dist/project-mentions.d.ts.map +1 -1
- package/dist/project-mentions.js +34 -0
- package/dist/project-mentions.js.map +1 -1
- package/dist/project-mentions.test.js +6 -1
- package/dist/project-mentions.test.js.map +1 -1
- package/dist/types/app-builder.d.ts +1 -1
- package/dist/types/app-builder.d.ts.map +1 -1
- package/dist/types/chat.d.ts +5 -1
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/goal.d.ts +267 -1
- package/dist/types/goal.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/instance.d.ts +3 -0
- package/dist/types/instance.d.ts.map +1 -1
- package/dist/types/issue.d.ts +1 -0
- package/dist/types/issue.d.ts.map +1 -1
- package/dist/types/mcp.d.ts +7 -2
- package/dist/types/mcp.d.ts.map +1 -1
- package/dist/types/organization-skill.d.ts +1 -0
- package/dist/types/organization-skill.d.ts.map +1 -1
- package/dist/types/plugin-v1.d.ts +158 -0
- package/dist/types/plugin-v1.d.ts.map +1 -0
- package/dist/types/plugin-v1.js +2 -0
- package/dist/types/plugin-v1.js.map +1 -0
- package/dist/validators/access.d.ts +3 -3
- package/dist/validators/adapter-skills.d.ts +12 -12
- package/dist/validators/agent-issue-creation.d.ts +29 -0
- package/dist/validators/agent-issue-creation.d.ts.map +1 -0
- package/dist/validators/agent-issue-creation.js +13 -0
- package/dist/validators/agent-issue-creation.js.map +1 -0
- package/dist/validators/agent-issue-creation.test.d.ts +2 -0
- package/dist/validators/agent-issue-creation.test.d.ts.map +1 -0
- package/dist/validators/agent-issue-creation.test.js +64 -0
- package/dist/validators/agent-issue-creation.test.js.map +1 -0
- package/dist/validators/agent.d.ts +11 -11
- package/dist/validators/app-builder.d.ts +15 -15
- package/dist/validators/app-builder.d.ts.map +1 -1
- package/dist/validators/app-builder.js +13 -3
- package/dist/validators/app-builder.js.map +1 -1
- package/dist/validators/app-builder.test.js +25 -1
- package/dist/validators/app-builder.test.js.map +1 -1
- package/dist/validators/approval.d.ts +3 -3
- package/dist/validators/budget.d.ts +7 -7
- package/dist/validators/calendar.d.ts +11 -11
- package/dist/validators/chat.d.ts +18 -18
- package/dist/validators/cost.d.ts +4 -4
- package/dist/validators/finance.d.ts +13 -13
- package/dist/validators/goal.d.ts +1015 -20
- package/dist/validators/goal.d.ts.map +1 -1
- package/dist/validators/goal.js +182 -5
- package/dist/validators/goal.js.map +1 -1
- package/dist/validators/index.d.ts +3 -2
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +3 -2
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/instance.d.ts +18 -0
- package/dist/validators/instance.d.ts.map +1 -1
- package/dist/validators/instance.js +3 -0
- package/dist/validators/instance.js.map +1 -1
- package/dist/validators/instance.test.js +2 -0
- package/dist/validators/instance.test.js.map +1 -1
- package/dist/validators/issue.d.ts +15 -2
- package/dist/validators/issue.d.ts.map +1 -1
- package/dist/validators/issue.js +3 -0
- package/dist/validators/issue.js.map +1 -1
- package/dist/validators/issue.test.d.ts +2 -0
- package/dist/validators/issue.test.d.ts.map +1 -0
- package/dist/validators/issue.test.js +15 -0
- package/dist/validators/issue.test.js.map +1 -0
- package/dist/validators/mcp.d.ts +243 -55
- package/dist/validators/mcp.d.ts.map +1 -1
- package/dist/validators/mcp.js +57 -4
- package/dist/validators/mcp.js.map +1 -1
- package/dist/validators/mcp.test.js +78 -58
- package/dist/validators/mcp.test.js.map +1 -1
- package/dist/validators/organization-intelligence-profile.d.ts +3 -3
- package/dist/validators/organization-portability.d.ts +82 -82
- package/dist/validators/organization-skill.d.ts +60 -60
- package/dist/validators/plugin-v1.d.ts +183 -0
- package/dist/validators/plugin-v1.d.ts.map +1 -0
- package/dist/validators/plugin-v1.js +47 -0
- package/dist/validators/plugin-v1.js.map +1 -0
- package/dist/validators/project.d.ts +20 -20
- package/dist/validators/resource.d.ts +8 -8
- package/dist/validators/secret.d.ts +2 -2
- package/dist/validators/work-product.d.ts +8 -8
- package/package.json +10 -1
- package/dist/types/plugin.d.ts +0 -419
- package/dist/types/plugin.d.ts.map +0 -1
- package/dist/types/plugin.js +0 -2
- package/dist/types/plugin.js.map +0 -1
- package/dist/validators/plugin.d.ts +0 -1173
- package/dist/validators/plugin.d.ts.map +0 -1
- package/dist/validators/plugin.js +0 -547
- package/dist/validators/plugin.js.map +0 -1
|
@@ -60,7 +60,7 @@ export declare const createAgentSchema: z.ZodObject<{
|
|
|
60
60
|
icon: 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.ZodString, z.ZodString]>>, string | null, unknown>>;
|
|
61
61
|
capabilities: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
62
62
|
desiredSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
63
|
-
agentRuntimeType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>;
|
|
63
|
+
agentRuntimeType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_gateway", "hermes_local"]>>>;
|
|
64
64
|
agentRuntimeConfig: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>;
|
|
65
65
|
runtimeConfig: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
66
66
|
budgetMonthlyCents: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -78,7 +78,7 @@ export declare const createAgentSchema: z.ZodObject<{
|
|
|
78
78
|
seedOrganizationIntelligenceDefaults: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
80
|
role: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general";
|
|
81
|
-
agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local";
|
|
81
|
+
agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local";
|
|
82
82
|
agentRuntimeConfig: Record<string, unknown>;
|
|
83
83
|
runtimeConfig: Record<string, unknown>;
|
|
84
84
|
budgetMonthlyCents: number;
|
|
@@ -100,7 +100,7 @@ export declare const createAgentSchema: z.ZodObject<{
|
|
|
100
100
|
metadata?: Record<string, unknown> | null | undefined;
|
|
101
101
|
role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
|
|
102
102
|
capabilities?: string | null | undefined;
|
|
103
|
-
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
103
|
+
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | undefined;
|
|
104
104
|
agentRuntimeConfig?: Record<string, unknown> | undefined;
|
|
105
105
|
runtimeConfig?: Record<string, unknown> | undefined;
|
|
106
106
|
budgetMonthlyCents?: number | undefined;
|
|
@@ -119,7 +119,7 @@ export declare const createAgentHireSchema: z.ZodObject<Omit<{
|
|
|
119
119
|
icon: 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.ZodString, z.ZodString]>>, string | null, unknown>>;
|
|
120
120
|
capabilities: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
121
121
|
desiredSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
122
|
-
agentRuntimeType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"]>>>;
|
|
122
|
+
agentRuntimeType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_gateway", "hermes_local"]>>>;
|
|
123
123
|
agentRuntimeConfig: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>;
|
|
124
124
|
runtimeConfig: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
125
125
|
budgetMonthlyCents: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -140,7 +140,7 @@ export declare const createAgentHireSchema: z.ZodObject<Omit<{
|
|
|
140
140
|
sourceIssueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
142
|
role: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general";
|
|
143
|
-
agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local";
|
|
143
|
+
agentRuntimeType: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local";
|
|
144
144
|
agentRuntimeConfig: Record<string, unknown>;
|
|
145
145
|
runtimeConfig: Record<string, unknown>;
|
|
146
146
|
budgetMonthlyCents: number;
|
|
@@ -163,7 +163,7 @@ export declare const createAgentHireSchema: z.ZodObject<Omit<{
|
|
|
163
163
|
metadata?: Record<string, unknown> | null | undefined;
|
|
164
164
|
role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
|
|
165
165
|
capabilities?: string | null | undefined;
|
|
166
|
-
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
166
|
+
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | undefined;
|
|
167
167
|
agentRuntimeConfig?: Record<string, unknown> | undefined;
|
|
168
168
|
runtimeConfig?: Record<string, unknown> | undefined;
|
|
169
169
|
budgetMonthlyCents?: number | undefined;
|
|
@@ -183,7 +183,7 @@ export declare const updateAgentSchema: z.ZodObject<{
|
|
|
183
183
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
184
184
|
role: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<["ceo", "cto", "cmo", "cfo", "engineer", "designer", "pm", "qa", "devops", "researcher", "general"]>>>>;
|
|
185
185
|
capabilities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
186
|
-
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"]>>>>;
|
|
186
|
+
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_gateway", "hermes_local"]>>>>;
|
|
187
187
|
agentRuntimeConfig: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>>;
|
|
188
188
|
runtimeConfig: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
189
189
|
budgetMonthlyCents: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
@@ -201,7 +201,7 @@ export declare const updateAgentSchema: z.ZodObject<{
|
|
|
201
201
|
metadata?: Record<string, unknown> | null | undefined;
|
|
202
202
|
role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
|
|
203
203
|
capabilities?: string | null | undefined;
|
|
204
|
-
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
204
|
+
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | undefined;
|
|
205
205
|
agentRuntimeConfig?: Record<string, unknown> | undefined;
|
|
206
206
|
runtimeConfig?: Record<string, unknown> | undefined;
|
|
207
207
|
budgetMonthlyCents?: number | undefined;
|
|
@@ -217,7 +217,7 @@ export declare const updateAgentSchema: z.ZodObject<{
|
|
|
217
217
|
metadata?: Record<string, unknown> | null | undefined;
|
|
218
218
|
role?: "ceo" | "cto" | "cmo" | "cfo" | "engineer" | "designer" | "pm" | "qa" | "devops" | "researcher" | "general" | undefined;
|
|
219
219
|
capabilities?: string | null | undefined;
|
|
220
|
-
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_local" | undefined;
|
|
220
|
+
agentRuntimeType?: "process" | "http" | "claude_local" | "codex_local" | "gemini_local" | "opencode_local" | "pi_local" | "cursor" | "openclaw_gateway" | "hermes_gateway" | "hermes_local" | undefined;
|
|
221
221
|
agentRuntimeConfig?: Record<string, unknown> | undefined;
|
|
222
222
|
runtimeConfig?: Record<string, unknown> | undefined;
|
|
223
223
|
budgetMonthlyCents?: number | undefined;
|
|
@@ -258,15 +258,15 @@ export declare const wakeAgentSchema: z.ZodObject<{
|
|
|
258
258
|
forceFreshSession: boolean;
|
|
259
259
|
reason?: string | null | undefined;
|
|
260
260
|
payload?: Record<string, unknown> | null | undefined;
|
|
261
|
-
triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
|
|
262
261
|
idempotencyKey?: string | null | undefined;
|
|
262
|
+
triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
|
|
263
263
|
}, {
|
|
264
264
|
reason?: string | null | undefined;
|
|
265
265
|
source?: "automation" | "review" | "timer" | "assignment" | "on_demand" | undefined;
|
|
266
266
|
forceFreshSession?: unknown;
|
|
267
267
|
payload?: Record<string, unknown> | null | undefined;
|
|
268
|
-
triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
|
|
269
268
|
idempotencyKey?: string | null | undefined;
|
|
269
|
+
triggerDetail?: "manual" | "system" | "ping" | "callback" | undefined;
|
|
270
270
|
}>;
|
|
271
271
|
export type WakeAgent = z.infer<typeof wakeAgentSchema>;
|
|
272
272
|
export declare const resetAgentSessionSchema: z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const APP_BUILDER_SOURCE_ROOT_PATTERN: RegExp;
|
|
3
|
-
export declare const appBuilderBuildStatusSchema: z.ZodEnum<["preparing", "building", "verifying", "ready", "failed"]>;
|
|
3
|
+
export declare const appBuilderBuildStatusSchema: z.ZodEnum<["preparing", "building", "verified_source_ready", "verifying", "ready", "launch_failed", "failed"]>;
|
|
4
4
|
export declare const appBuilderRunKindSchema: z.ZodEnum<["build", "verification"]>;
|
|
5
5
|
export declare const appBuilderSourceRootSchema: z.ZodString;
|
|
6
6
|
export declare const createAppBuilderAppSchema: z.ZodObject<{
|
|
@@ -23,30 +23,30 @@ export declare const createAppBuilderAppSchema: z.ZodObject<{
|
|
|
23
23
|
conversationId?: string | null | undefined;
|
|
24
24
|
}>;
|
|
25
25
|
export declare const updateAppBuilderBuildSchema: z.ZodEffects<z.ZodObject<{
|
|
26
|
-
status: z.ZodEnum<["preparing", "building", "verifying", "ready", "failed"]>;
|
|
27
|
-
expectedStatus: z.
|
|
26
|
+
status: z.ZodEnum<["preparing", "building", "verified_source_ready", "verifying", "ready", "launch_failed", "failed"]>;
|
|
27
|
+
expectedStatus: z.ZodEnum<["preparing", "building", "verified_source_ready", "verifying", "ready", "launch_failed", "failed"]>;
|
|
28
28
|
runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
runKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["build", "verification"]>>>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
status: "ready" | "failed" | "preparing" | "building" | "verifying";
|
|
32
|
-
|
|
31
|
+
status: "ready" | "failed" | "preparing" | "building" | "verified_source_ready" | "verifying" | "launch_failed";
|
|
32
|
+
expectedStatus: "ready" | "failed" | "preparing" | "building" | "verified_source_ready" | "verifying" | "launch_failed";
|
|
33
|
+
runKind: "verification" | "build";
|
|
33
34
|
runId?: string | null | undefined;
|
|
34
|
-
expectedStatus?: "ready" | "failed" | "preparing" | "building" | "verifying" | undefined;
|
|
35
35
|
}, {
|
|
36
|
-
status: "ready" | "failed" | "preparing" | "building" | "verifying";
|
|
36
|
+
status: "ready" | "failed" | "preparing" | "building" | "verified_source_ready" | "verifying" | "launch_failed";
|
|
37
|
+
expectedStatus: "ready" | "failed" | "preparing" | "building" | "verified_source_ready" | "verifying" | "launch_failed";
|
|
37
38
|
runId?: string | null | undefined;
|
|
38
|
-
|
|
39
|
-
runKind?: "build" | "verification" | undefined;
|
|
39
|
+
runKind?: "verification" | "build" | undefined;
|
|
40
40
|
}>, {
|
|
41
|
-
status: "ready" | "failed" | "preparing" | "building" | "verifying";
|
|
42
|
-
|
|
41
|
+
status: "ready" | "failed" | "preparing" | "building" | "verified_source_ready" | "verifying" | "launch_failed";
|
|
42
|
+
expectedStatus: "ready" | "failed" | "preparing" | "building" | "verified_source_ready" | "verifying" | "launch_failed";
|
|
43
|
+
runKind: "verification" | "build";
|
|
43
44
|
runId?: string | null | undefined;
|
|
44
|
-
expectedStatus?: "ready" | "failed" | "preparing" | "building" | "verifying" | undefined;
|
|
45
45
|
}, {
|
|
46
|
-
status: "ready" | "failed" | "preparing" | "building" | "verifying";
|
|
46
|
+
status: "ready" | "failed" | "preparing" | "building" | "verified_source_ready" | "verifying" | "launch_failed";
|
|
47
|
+
expectedStatus: "ready" | "failed" | "preparing" | "building" | "verified_source_ready" | "verifying" | "launch_failed";
|
|
47
48
|
runId?: string | null | undefined;
|
|
48
|
-
|
|
49
|
-
runKind?: "build" | "verification" | undefined;
|
|
49
|
+
runKind?: "verification" | "build" | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
export declare const attachAppBuilderConversationSchema: z.ZodObject<{
|
|
52
52
|
conversationId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-builder.d.ts","sourceRoot":"","sources":["../../src/validators/app-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B,QACI,CAAC;AAEjD,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"app-builder.d.ts","sourceRoot":"","sources":["../../src/validators/app-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B,QACI,CAAC;AAEjD,eAAO,MAAM,2BAA2B,gHAQtC,CAAC;AAEH,eAAO,MAAM,uBAAuB,sCAAoC,CAAC;AAEzE,eAAO,MAAM,0BAA0B,aAOpC,CAAC;AASJ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAMpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;EAyBpC,CAAC;AAEL,eAAO,MAAM,kCAAkC;;;;;;EAE7C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAIxC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -3,8 +3,10 @@ export const APP_BUILDER_SOURCE_ROOT_PATTERN = /^apps\/[a-z0-9](?:[a-z0-9-]{0,61
|
|
|
3
3
|
export const appBuilderBuildStatusSchema = z.enum([
|
|
4
4
|
"preparing",
|
|
5
5
|
"building",
|
|
6
|
+
"verified_source_ready",
|
|
6
7
|
"verifying",
|
|
7
8
|
"ready",
|
|
9
|
+
"launch_failed",
|
|
8
10
|
"failed",
|
|
9
11
|
]);
|
|
10
12
|
export const appBuilderRunKindSchema = z.enum(["build", "verification"]);
|
|
@@ -29,16 +31,24 @@ export const createAppBuilderAppSchema = z.object({
|
|
|
29
31
|
export const updateAppBuilderBuildSchema = z
|
|
30
32
|
.object({
|
|
31
33
|
status: appBuilderBuildStatusSchema,
|
|
32
|
-
expectedStatus: appBuilderBuildStatusSchema
|
|
34
|
+
expectedStatus: appBuilderBuildStatusSchema,
|
|
33
35
|
runId: z.string().uuid().nullable().optional(),
|
|
34
36
|
runKind: appBuilderRunKindSchema.optional().default("build"),
|
|
35
37
|
})
|
|
36
38
|
.superRefine((value, context) => {
|
|
37
|
-
if (
|
|
39
|
+
if (["verified_source_ready", "verifying"].includes(value.status)
|
|
40
|
+
&& value.runKind !== "verification") {
|
|
38
41
|
context.addIssue({
|
|
39
42
|
code: z.ZodIssueCode.custom,
|
|
40
43
|
path: ["runKind"],
|
|
41
|
-
message:
|
|
44
|
+
message: `${value.status} status requires a verification run`,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
if (value.status === "verified_source_ready" && !value.runId) {
|
|
48
|
+
context.addIssue({
|
|
49
|
+
code: z.ZodIssueCode.custom,
|
|
50
|
+
path: ["runId"],
|
|
51
|
+
message: "verified_source_ready status requires the authenticated verification run ID",
|
|
42
52
|
});
|
|
43
53
|
}
|
|
44
54
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-builder.js","sourceRoot":"","sources":["../../src/validators/app-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,+BAA+B,GAC1C,8CAA8C,CAAC;AAEjD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC;IAChD,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IACP,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACxC,MAAM,EAAE;KACR,IAAI,EAAE;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,+BAA+B,EAC/B,sEAAsE,CACvE,CAAC;AAEJ,MAAM,2BAA2B,GAAG,CAAC;KAClC,MAAM,EAAE;KACR,IAAI,EAAE;KACN,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CAAC;KACR,KAAK,CAAC,kBAAkB,EAAE,8BAA8B,CAAC,CAAC;AAE7D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CA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AAM,KAAK,uBAAuB,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QAC7D,OAAO,CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,IAAI,EAAE,CAAC,OAAO,CAAC;YACf,OAAO,EAAE,6EAA6E;SACvF,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,qBAAqB,EAAE,2BAA2B;IAClD,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,2BAA2B;CAC5C,CAAC,CAAC"}
|
|
@@ -38,23 +38,47 @@ describe("App Builder validators", () => {
|
|
|
38
38
|
})).toThrow();
|
|
39
39
|
});
|
|
40
40
|
it("defaults build updates to the build run kind", () => {
|
|
41
|
-
expect(updateAppBuilderBuildSchema.parse({
|
|
41
|
+
expect(updateAppBuilderBuildSchema.parse({
|
|
42
|
+
status: "building",
|
|
43
|
+
expectedStatus: "preparing",
|
|
44
|
+
})).toEqual({
|
|
42
45
|
status: "building",
|
|
46
|
+
expectedStatus: "preparing",
|
|
43
47
|
runKind: "build",
|
|
44
48
|
});
|
|
45
49
|
});
|
|
46
50
|
it("accepts the explicit verification lifecycle status", () => {
|
|
47
51
|
expect(updateAppBuilderBuildSchema.parse({
|
|
48
52
|
status: "verifying",
|
|
53
|
+
expectedStatus: "verified_source_ready",
|
|
49
54
|
runKind: "verification",
|
|
50
55
|
})).toEqual({
|
|
51
56
|
status: "verifying",
|
|
57
|
+
expectedStatus: "verified_source_ready",
|
|
52
58
|
runKind: "verification",
|
|
53
59
|
});
|
|
54
60
|
});
|
|
55
61
|
it("requires the verification run kind when entering verification", () => {
|
|
56
62
|
expect(() => updateAppBuilderBuildSchema.parse({
|
|
57
63
|
status: "verifying",
|
|
64
|
+
expectedStatus: "verified_source_ready",
|
|
65
|
+
})).toThrow();
|
|
66
|
+
});
|
|
67
|
+
it("requires a verification run ID for the verified-source handoff", () => {
|
|
68
|
+
expect(updateAppBuilderBuildSchema.parse({
|
|
69
|
+
status: "verified_source_ready",
|
|
70
|
+
expectedStatus: "building",
|
|
71
|
+
runKind: "verification",
|
|
72
|
+
runId: "55555555-5555-4555-8555-555555555555",
|
|
73
|
+
})).toMatchObject({
|
|
74
|
+
status: "verified_source_ready",
|
|
75
|
+
expectedStatus: "building",
|
|
76
|
+
runKind: "verification",
|
|
77
|
+
});
|
|
78
|
+
expect(() => updateAppBuilderBuildSchema.parse({
|
|
79
|
+
status: "verified_source_ready",
|
|
80
|
+
expectedStatus: "building",
|
|
81
|
+
runKind: "verification",
|
|
58
82
|
})).toThrow();
|
|
59
83
|
});
|
|
60
84
|
it("accepts only bounded opaque local binding identifiers", () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-builder.test.js","sourceRoot":"","sources":["../../src/validators/app-builder.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,kBAAkB,CAAC;AAE1B,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,CACJ,yBAAyB,CAAC,KAAK,CAAC;YAC9B,IAAI,EAAE,gBAAgB;YACtB,UAAU,EAAE,qBAAqB;YACjC,eAAe,EAAE,GAAG;SACrB,CAAC,CACH,CAAC,aAAa,CAAC;YACd,UAAU,EAAE,qBAAqB;YACjC,eAAe,EAAE,GAAG;SACrB,CAAC,CAAC;IACL,CAAC,CAA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AAE,UAAU;YAC1B,OAAO,EAAE,cAAc;SACxB,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC/D,MAAM,CACJ,6BAA6B,CAAC,KAAK,CAAC;YAClC,qBAAqB,EAAE,gBAAgB;YACvC,WAAW,EAAE,YAAY;YACzB,cAAc,EAAE,gBAAgB;SACjC,CAAC,CACH,CAAC,OAAO,CAAC;YACR,qBAAqB,EAAE,gBAAgB;YACvC,WAAW,EAAE,YAAY;YACzB,cAAc,EAAE,gBAAgB;SACjC,CAAC,CAAC;QAEH,MAAM,CAAC,GAAG,EAAE,CACV,6BAA6B,CAAC,KAAK,CAAC;YAClC,qBAAqB,EAAE,sBAAsB;YAC7C,WAAW,EAAE,OAAO;YACpB,cAAc,EAAE,WAAW;SAC5B,CAAC,CACH,CAAC,OAAO,EAAE,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const createApprovalSchema: z.ZodObject<{
|
|
3
|
-
type: z.ZodEnum<["hire_agent", "approve_ceo_strategy", "budget_override_required", "chat_issue_creation", "chat_operation"]>;
|
|
3
|
+
type: z.ZodEnum<["hire_agent", "approve_ceo_strategy", "budget_override_required", "chat_issue_creation", "chat_operation", "agent_runtime", "goal_change"]>;
|
|
4
4
|
requestedByAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
5
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
6
|
issueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
type: "hire_agent" | "approve_ceo_strategy" | "budget_override_required" | "chat_issue_creation" | "chat_operation";
|
|
8
|
+
type: "hire_agent" | "approve_ceo_strategy" | "budget_override_required" | "chat_issue_creation" | "chat_operation" | "agent_runtime" | "goal_change";
|
|
9
9
|
payload: Record<string, unknown>;
|
|
10
10
|
requestedByAgentId?: string | null | undefined;
|
|
11
11
|
issueIds?: string[] | undefined;
|
|
12
12
|
}, {
|
|
13
|
-
type: "hire_agent" | "approve_ceo_strategy" | "budget_override_required" | "chat_issue_creation" | "chat_operation";
|
|
13
|
+
type: "hire_agent" | "approve_ceo_strategy" | "budget_override_required" | "chat_issue_creation" | "chat_operation" | "agent_runtime" | "goal_change";
|
|
14
14
|
payload: Record<string, unknown>;
|
|
15
15
|
requestedByAgentId?: string | null | undefined;
|
|
16
16
|
issueIds?: string[] | undefined;
|
|
@@ -10,19 +10,19 @@ export declare const upsertBudgetPolicySchema: z.ZodObject<{
|
|
|
10
10
|
notifyEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
11
|
isActive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
metric: "billed_cents";
|
|
14
|
+
amount: number;
|
|
13
15
|
scopeType: "organization" | "agent";
|
|
14
16
|
scopeId: string;
|
|
15
|
-
metric: "billed_cents";
|
|
16
17
|
windowKind: "calendar_month_utc" | "lifetime";
|
|
17
|
-
amount: number;
|
|
18
18
|
warnPercent: number;
|
|
19
19
|
hardStopEnabled: boolean;
|
|
20
20
|
notifyEnabled: boolean;
|
|
21
21
|
isActive: boolean;
|
|
22
22
|
}, {
|
|
23
|
+
amount: number;
|
|
23
24
|
scopeType: "organization" | "agent";
|
|
24
25
|
scopeId: string;
|
|
25
|
-
amount: number;
|
|
26
26
|
metric?: "billed_cents" | undefined;
|
|
27
27
|
windowKind?: "calendar_month_utc" | "lifetime" | undefined;
|
|
28
28
|
warnPercent?: number | undefined;
|
|
@@ -37,20 +37,20 @@ export declare const resolveBudgetIncidentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
37
37
|
decisionNote: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
action: "keep_paused" | "raise_budget_and_resume";
|
|
40
|
-
decisionNote?: string | null | undefined;
|
|
41
40
|
amount?: number | undefined;
|
|
41
|
+
decisionNote?: string | null | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
action: "keep_paused" | "raise_budget_and_resume";
|
|
44
|
-
decisionNote?: string | null | undefined;
|
|
45
44
|
amount?: number | undefined;
|
|
45
|
+
decisionNote?: string | null | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
action: "keep_paused" | "raise_budget_and_resume";
|
|
48
|
-
decisionNote?: string | null | undefined;
|
|
49
48
|
amount?: number | undefined;
|
|
49
|
+
decisionNote?: string | null | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
action: "keep_paused" | "raise_budget_and_resume";
|
|
52
|
-
decisionNote?: string | null | undefined;
|
|
53
52
|
amount?: number | undefined;
|
|
53
|
+
decisionNote?: string | null | undefined;
|
|
54
54
|
}>;
|
|
55
55
|
export type ResolveBudgetIncident = z.infer<typeof resolveBudgetIncidentSchema>;
|
|
56
56
|
//# sourceMappingURL=budget.d.ts.map
|
|
@@ -12,8 +12,8 @@ export declare const createCalendarSourceSchema: z.ZodObject<{
|
|
|
12
12
|
syncCursorJson: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
status: "active" | "paused" | "error" | "disconnected";
|
|
15
|
-
name: string;
|
|
16
15
|
type: "rudder_local" | "google_calendar" | "agent_work" | "system";
|
|
16
|
+
name: string;
|
|
17
17
|
visibilityDefault: "private" | "full" | "busy_only";
|
|
18
18
|
ownerType: "agent" | "system" | "user";
|
|
19
19
|
ownerAgentId?: string | null | undefined;
|
|
@@ -49,8 +49,8 @@ export declare const updateCalendarSourceSchema: z.ZodObject<{
|
|
|
49
49
|
lastSyncedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
51
|
status?: "active" | "paused" | "error" | "disconnected" | undefined;
|
|
52
|
-
name?: string | undefined;
|
|
53
52
|
type?: "rudder_local" | "google_calendar" | "agent_work" | "system" | undefined;
|
|
53
|
+
name?: string | undefined;
|
|
54
54
|
ownerAgentId?: string | null | undefined;
|
|
55
55
|
visibilityDefault?: "private" | "full" | "busy_only" | undefined;
|
|
56
56
|
externalProvider?: string | null | undefined;
|
|
@@ -61,8 +61,8 @@ export declare const updateCalendarSourceSchema: z.ZodObject<{
|
|
|
61
61
|
syncCursorJson?: Record<string, unknown> | null | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
status?: "active" | "paused" | "error" | "disconnected" | undefined;
|
|
64
|
-
name?: string | undefined;
|
|
65
64
|
type?: "rudder_local" | "google_calendar" | "agent_work" | "system" | undefined;
|
|
65
|
+
name?: string | undefined;
|
|
66
66
|
ownerAgentId?: string | null | undefined;
|
|
67
67
|
visibilityDefault?: "private" | "full" | "busy_only" | undefined;
|
|
68
68
|
externalProvider?: string | null | undefined;
|
|
@@ -115,10 +115,10 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
115
115
|
ownerAgentId?: string | null | undefined;
|
|
116
116
|
description?: string | null | undefined;
|
|
117
117
|
goalId?: string | null | undefined;
|
|
118
|
+
approvalId?: string | null | undefined;
|
|
118
119
|
externalProvider?: string | null | undefined;
|
|
119
120
|
ownerUserId?: string | null | undefined;
|
|
120
121
|
externalCalendarId?: string | null | undefined;
|
|
121
|
-
approvalId?: string | null | undefined;
|
|
122
122
|
sourceId?: string | null | undefined;
|
|
123
123
|
heartbeatRunId?: string | null | undefined;
|
|
124
124
|
activityId?: string | null | undefined;
|
|
@@ -137,11 +137,11 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
137
137
|
description?: string | null | undefined;
|
|
138
138
|
goalId?: string | null | undefined;
|
|
139
139
|
timezone?: string | undefined;
|
|
140
|
+
approvalId?: string | null | undefined;
|
|
140
141
|
externalProvider?: string | null | undefined;
|
|
141
142
|
ownerUserId?: string | null | undefined;
|
|
142
143
|
externalCalendarId?: string | null | undefined;
|
|
143
144
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
144
|
-
approvalId?: string | null | undefined;
|
|
145
145
|
sourceId?: string | null | undefined;
|
|
146
146
|
eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
|
|
147
147
|
allDay?: boolean | undefined;
|
|
@@ -167,10 +167,10 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
167
167
|
ownerAgentId?: string | null | undefined;
|
|
168
168
|
description?: string | null | undefined;
|
|
169
169
|
goalId?: string | null | undefined;
|
|
170
|
+
approvalId?: string | null | undefined;
|
|
170
171
|
externalProvider?: string | null | undefined;
|
|
171
172
|
ownerUserId?: string | null | undefined;
|
|
172
173
|
externalCalendarId?: string | null | undefined;
|
|
173
|
-
approvalId?: string | null | undefined;
|
|
174
174
|
sourceId?: string | null | undefined;
|
|
175
175
|
heartbeatRunId?: string | null | undefined;
|
|
176
176
|
activityId?: string | null | undefined;
|
|
@@ -189,11 +189,11 @@ export declare const createCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
189
189
|
description?: string | null | undefined;
|
|
190
190
|
goalId?: string | null | undefined;
|
|
191
191
|
timezone?: string | undefined;
|
|
192
|
+
approvalId?: string | null | undefined;
|
|
192
193
|
externalProvider?: string | null | undefined;
|
|
193
194
|
ownerUserId?: string | null | undefined;
|
|
194
195
|
externalCalendarId?: string | null | undefined;
|
|
195
196
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
196
|
-
approvalId?: string | null | undefined;
|
|
197
197
|
sourceId?: string | null | undefined;
|
|
198
198
|
eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
|
|
199
199
|
allDay?: boolean | undefined;
|
|
@@ -240,12 +240,12 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
240
240
|
eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
|
|
241
241
|
goalId?: string | null | undefined;
|
|
242
242
|
timezone?: string | undefined;
|
|
243
|
+
approvalId?: string | null | undefined;
|
|
243
244
|
externalProvider?: string | null | undefined;
|
|
244
245
|
ownerType?: "agent" | "system" | "user" | undefined;
|
|
245
246
|
ownerUserId?: string | null | undefined;
|
|
246
247
|
externalCalendarId?: string | null | undefined;
|
|
247
248
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
248
|
-
approvalId?: string | null | undefined;
|
|
249
249
|
sourceId?: string | null | undefined;
|
|
250
250
|
eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
|
|
251
251
|
startAt?: Date | undefined;
|
|
@@ -266,12 +266,12 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
266
266
|
eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
|
|
267
267
|
goalId?: string | null | undefined;
|
|
268
268
|
timezone?: string | undefined;
|
|
269
|
+
approvalId?: string | null | undefined;
|
|
269
270
|
externalProvider?: string | null | undefined;
|
|
270
271
|
ownerType?: "agent" | "system" | "user" | undefined;
|
|
271
272
|
ownerUserId?: string | null | undefined;
|
|
272
273
|
externalCalendarId?: string | null | undefined;
|
|
273
274
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
274
|
-
approvalId?: string | null | undefined;
|
|
275
275
|
sourceId?: string | null | undefined;
|
|
276
276
|
eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
|
|
277
277
|
startAt?: Date | undefined;
|
|
@@ -292,12 +292,12 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
292
292
|
eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
|
|
293
293
|
goalId?: string | null | undefined;
|
|
294
294
|
timezone?: string | undefined;
|
|
295
|
+
approvalId?: string | null | undefined;
|
|
295
296
|
externalProvider?: string | null | undefined;
|
|
296
297
|
ownerType?: "agent" | "system" | "user" | undefined;
|
|
297
298
|
ownerUserId?: string | null | undefined;
|
|
298
299
|
externalCalendarId?: string | null | undefined;
|
|
299
300
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
300
|
-
approvalId?: string | null | undefined;
|
|
301
301
|
sourceId?: string | null | undefined;
|
|
302
302
|
eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
|
|
303
303
|
startAt?: Date | undefined;
|
|
@@ -318,12 +318,12 @@ export declare const updateCalendarEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
318
318
|
eventKind?: "human_event" | "agent_work_block" | "external_event" | "system_event" | undefined;
|
|
319
319
|
goalId?: string | null | undefined;
|
|
320
320
|
timezone?: string | undefined;
|
|
321
|
+
approvalId?: string | null | undefined;
|
|
321
322
|
externalProvider?: string | null | undefined;
|
|
322
323
|
ownerType?: "agent" | "system" | "user" | undefined;
|
|
323
324
|
ownerUserId?: string | null | undefined;
|
|
324
325
|
externalCalendarId?: string | null | undefined;
|
|
325
326
|
visibility?: "private" | "full" | "busy_only" | undefined;
|
|
326
|
-
approvalId?: string | null | undefined;
|
|
327
327
|
sourceId?: string | null | undefined;
|
|
328
328
|
eventStatus?: "in_progress" | "cancelled" | "planned" | "actual" | "external" | "projected" | undefined;
|
|
329
329
|
startAt?: Date | undefined;
|
|
@@ -7239,22 +7239,22 @@ export declare const chatRichReferenceSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
7239
7239
|
type: "issue";
|
|
7240
7240
|
issueId?: string | undefined;
|
|
7241
7241
|
identifier?: string | undefined;
|
|
7242
|
-
display?: "
|
|
7242
|
+
display?: "card" | "inline" | undefined;
|
|
7243
7243
|
}, {
|
|
7244
7244
|
type: "issue";
|
|
7245
7245
|
issueId?: string | undefined;
|
|
7246
7246
|
identifier?: string | undefined;
|
|
7247
|
-
display?: "
|
|
7247
|
+
display?: "card" | "inline" | undefined;
|
|
7248
7248
|
}>, {
|
|
7249
7249
|
type: "issue";
|
|
7250
7250
|
issueId?: string | undefined;
|
|
7251
7251
|
identifier?: string | undefined;
|
|
7252
|
-
display?: "
|
|
7252
|
+
display?: "card" | "inline" | undefined;
|
|
7253
7253
|
}, {
|
|
7254
7254
|
type: "issue";
|
|
7255
7255
|
issueId?: string | undefined;
|
|
7256
7256
|
identifier?: string | undefined;
|
|
7257
|
-
display?: "
|
|
7257
|
+
display?: "card" | "inline" | undefined;
|
|
7258
7258
|
}>, z.ZodEffects<z.ZodObject<{
|
|
7259
7259
|
type: z.ZodLiteral<"issue_comment">;
|
|
7260
7260
|
issueId: z.ZodOptional<z.ZodString>;
|
|
@@ -7266,25 +7266,25 @@ export declare const chatRichReferenceSchema: z.ZodUnion<[z.ZodEffects<z.ZodObje
|
|
|
7266
7266
|
type: "issue_comment";
|
|
7267
7267
|
issueId?: string | undefined;
|
|
7268
7268
|
identifier?: string | undefined;
|
|
7269
|
-
display?: "
|
|
7269
|
+
display?: "card" | "inline" | undefined;
|
|
7270
7270
|
}, {
|
|
7271
7271
|
commentId: string;
|
|
7272
7272
|
type: "issue_comment";
|
|
7273
7273
|
issueId?: string | undefined;
|
|
7274
7274
|
identifier?: string | undefined;
|
|
7275
|
-
display?: "
|
|
7275
|
+
display?: "card" | "inline" | undefined;
|
|
7276
7276
|
}>, {
|
|
7277
7277
|
commentId: string;
|
|
7278
7278
|
type: "issue_comment";
|
|
7279
7279
|
issueId?: string | undefined;
|
|
7280
7280
|
identifier?: string | undefined;
|
|
7281
|
-
display?: "
|
|
7281
|
+
display?: "card" | "inline" | undefined;
|
|
7282
7282
|
}, {
|
|
7283
7283
|
commentId: string;
|
|
7284
7284
|
type: "issue_comment";
|
|
7285
7285
|
issueId?: string | undefined;
|
|
7286
7286
|
identifier?: string | undefined;
|
|
7287
|
-
display?: "
|
|
7287
|
+
display?: "card" | "inline" | undefined;
|
|
7288
7288
|
}>]>;
|
|
7289
7289
|
export declare const chatRichReferencesSchema: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
7290
7290
|
type: z.ZodLiteral<"issue">;
|
|
@@ -7295,22 +7295,22 @@ export declare const chatRichReferencesSchema: z.ZodArray<z.ZodUnion<[z.ZodEffec
|
|
|
7295
7295
|
type: "issue";
|
|
7296
7296
|
issueId?: string | undefined;
|
|
7297
7297
|
identifier?: string | undefined;
|
|
7298
|
-
display?: "
|
|
7298
|
+
display?: "card" | "inline" | undefined;
|
|
7299
7299
|
}, {
|
|
7300
7300
|
type: "issue";
|
|
7301
7301
|
issueId?: string | undefined;
|
|
7302
7302
|
identifier?: string | undefined;
|
|
7303
|
-
display?: "
|
|
7303
|
+
display?: "card" | "inline" | undefined;
|
|
7304
7304
|
}>, {
|
|
7305
7305
|
type: "issue";
|
|
7306
7306
|
issueId?: string | undefined;
|
|
7307
7307
|
identifier?: string | undefined;
|
|
7308
|
-
display?: "
|
|
7308
|
+
display?: "card" | "inline" | undefined;
|
|
7309
7309
|
}, {
|
|
7310
7310
|
type: "issue";
|
|
7311
7311
|
issueId?: string | undefined;
|
|
7312
7312
|
identifier?: string | undefined;
|
|
7313
|
-
display?: "
|
|
7313
|
+
display?: "card" | "inline" | undefined;
|
|
7314
7314
|
}>, z.ZodEffects<z.ZodObject<{
|
|
7315
7315
|
type: z.ZodLiteral<"issue_comment">;
|
|
7316
7316
|
issueId: z.ZodOptional<z.ZodString>;
|
|
@@ -7322,37 +7322,37 @@ export declare const chatRichReferencesSchema: z.ZodArray<z.ZodUnion<[z.ZodEffec
|
|
|
7322
7322
|
type: "issue_comment";
|
|
7323
7323
|
issueId?: string | undefined;
|
|
7324
7324
|
identifier?: string | undefined;
|
|
7325
|
-
display?: "
|
|
7325
|
+
display?: "card" | "inline" | undefined;
|
|
7326
7326
|
}, {
|
|
7327
7327
|
commentId: string;
|
|
7328
7328
|
type: "issue_comment";
|
|
7329
7329
|
issueId?: string | undefined;
|
|
7330
7330
|
identifier?: string | undefined;
|
|
7331
|
-
display?: "
|
|
7331
|
+
display?: "card" | "inline" | undefined;
|
|
7332
7332
|
}>, {
|
|
7333
7333
|
commentId: string;
|
|
7334
7334
|
type: "issue_comment";
|
|
7335
7335
|
issueId?: string | undefined;
|
|
7336
7336
|
identifier?: string | undefined;
|
|
7337
|
-
display?: "
|
|
7337
|
+
display?: "card" | "inline" | undefined;
|
|
7338
7338
|
}, {
|
|
7339
7339
|
commentId: string;
|
|
7340
7340
|
type: "issue_comment";
|
|
7341
7341
|
issueId?: string | undefined;
|
|
7342
7342
|
identifier?: string | undefined;
|
|
7343
|
-
display?: "
|
|
7343
|
+
display?: "card" | "inline" | undefined;
|
|
7344
7344
|
}>]>, "many">;
|
|
7345
7345
|
export declare function chatRichReferencesFromStructuredPayload(payload: unknown): ({
|
|
7346
7346
|
type: "issue";
|
|
7347
7347
|
issueId?: string | undefined;
|
|
7348
7348
|
identifier?: string | undefined;
|
|
7349
|
-
display?: "
|
|
7349
|
+
display?: "card" | "inline" | undefined;
|
|
7350
7350
|
} | {
|
|
7351
7351
|
commentId: string;
|
|
7352
7352
|
type: "issue_comment";
|
|
7353
7353
|
issueId?: string | undefined;
|
|
7354
7354
|
identifier?: string | undefined;
|
|
7355
|
-
display?: "
|
|
7355
|
+
display?: "card" | "inline" | undefined;
|
|
7356
7356
|
})[];
|
|
7357
7357
|
export declare function chatInlineAnnotationsFromStructuredPayload(payload: unknown): ChatInlineAnnotation[];
|
|
7358
7358
|
export declare function chatAskUserRequestFromStructuredPayload(payload: unknown): {
|