@handlebar/governance-schema 0.0.6-dev.7 → 0.0.6-dev.8

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.
@@ -223,7 +223,7 @@ export declare const AuditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
223
223
  code: z.ZodCustom<import("./governance-actions").GovernanceCode, import("./governance-actions").GovernanceCode>;
224
224
  matchedRuleIds: z.ZodArray<z.ZodString>;
225
225
  appliedActions: z.ZodArray<z.ZodObject<{
226
- type: z.ZodCustom<"allow" | "hitl" | "block" | "notify" | "log", "allow" | "hitl" | "block" | "notify" | "log">;
226
+ type: z.ZodCustom<"allow" | "block" | "hitl" | "notify" | "log", "allow" | "block" | "hitl" | "notify" | "log">;
227
227
  ruleId: z.ZodString;
228
228
  }, z.core.$strip>>;
229
229
  reason: z.ZodOptional<z.ZodString>;
@@ -431,15 +431,15 @@ export declare const AuditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
431
431
  data: z.ZodObject<{
432
432
  messageId: z.ZodUUID;
433
433
  role: z.ZodEnum<{
434
- tool: "tool";
435
434
  system: "system";
436
435
  developer: "developer";
437
436
  user: "user";
438
437
  assistant: "assistant";
438
+ tool: "tool";
439
439
  }>;
440
440
  kind: z.ZodEnum<{
441
- output: "output";
442
441
  input: "input";
442
+ output: "output";
443
443
  tool_call: "tool_call";
444
444
  tool_result: "tool_result";
445
445
  observation: "observation";
@@ -1,10 +1,10 @@
1
1
  import { z } from "zod";
2
2
  export declare const MessageRoleSchema: z.ZodEnum<{
3
- tool: "tool";
4
3
  system: "system";
5
4
  developer: "developer";
6
5
  user: "user";
7
6
  assistant: "assistant";
7
+ tool: "tool";
8
8
  }>;
9
9
  /**
10
10
  * Message "kind" is about how it appears in an agent flow.
@@ -18,8 +18,8 @@ export declare const MessageRoleSchema: z.ZodEnum<{
18
18
  *
19
19
  */
20
20
  export declare const MessageKindSchema: z.ZodEnum<{
21
- output: "output";
22
21
  input: "input";
22
+ output: "output";
23
23
  tool_call: "tool_call";
24
24
  tool_result: "tool_result";
25
25
  observation: "observation";
@@ -29,15 +29,15 @@ export declare const MessageKindSchema: z.ZodEnum<{
29
29
  export declare const MessageSchema: z.ZodObject<{
30
30
  messageId: z.ZodUUID;
31
31
  role: z.ZodEnum<{
32
- tool: "tool";
33
32
  system: "system";
34
33
  developer: "developer";
35
34
  user: "user";
36
35
  assistant: "assistant";
36
+ tool: "tool";
37
37
  }>;
38
38
  kind: z.ZodEnum<{
39
- output: "output";
40
39
  input: "input";
40
+ output: "output";
41
41
  tool_call: "tool_call";
42
42
  tool_result: "tool_result";
43
43
  observation: "observation";
@@ -77,15 +77,15 @@ export declare const MessageEventSchema: z.ZodObject<{
77
77
  data: z.ZodObject<{
78
78
  messageId: z.ZodUUID;
79
79
  role: z.ZodEnum<{
80
- tool: "tool";
81
80
  system: "system";
82
81
  developer: "developer";
83
82
  user: "user";
84
83
  assistant: "assistant";
84
+ tool: "tool";
85
85
  }>;
86
86
  kind: z.ZodEnum<{
87
- output: "output";
88
87
  input: "input";
88
+ output: "output";
89
89
  tool_call: "tool_call";
90
90
  tool_result: "tool_result";
91
91
  observation: "observation";
@@ -43,7 +43,7 @@ export declare const ToolDecisionEventSchema: z.ZodObject<{
43
43
  code: z.ZodCustom<import("./governance-actions").GovernanceCode, import("./governance-actions").GovernanceCode>;
44
44
  matchedRuleIds: z.ZodArray<z.ZodString>;
45
45
  appliedActions: z.ZodArray<z.ZodObject<{
46
- type: z.ZodCustom<"allow" | "hitl" | "block" | "notify" | "log", "allow" | "hitl" | "block" | "notify" | "log">;
46
+ type: z.ZodCustom<"allow" | "block" | "hitl" | "notify" | "log", "allow" | "block" | "hitl" | "notify" | "log">;
47
47
  ruleId: z.ZodString;
48
48
  }, z.core.$strip>>;
49
49
  reason: z.ZodOptional<z.ZodString>;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- export type { EndUserConfig, EndUserGroupConfig } from "./enduser.types";
2
- export * from "./rules";
3
1
  export * from "./audit/events";
4
2
  export * from "./audit/events.base";
5
3
  export * from "./audit/events.llm";
6
4
  export * from "./audit/events.tools";
7
5
  export * from "./audit/governance-actions";
8
6
  export * from "./audit/run-metrics";
7
+ export type { EndUserConfig, EndUserGroupConfig } from "./enduser.types";
8
+ export { AgentSelectorSchema, PolicySpecSchema } from "./policies";
9
+ export * from "./rules";