@mindburn/helm-ai-kernel 0.5.1

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.
@@ -0,0 +1,107 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "helm.intervention.v1";
3
+ /**
4
+ * HELM Intervention Fabric Protocol Buffer Definitions
5
+ *
6
+ * Canonical IDL for intervention objects and receipts.
7
+ * Stability: v1 additive-only.
8
+ */
9
+ export declare enum InterventionReason {
10
+ INTERVENTION_REASON_UNSPECIFIED = 0,
11
+ INTERVENTION_REASON_POLICY_DENY = 1,
12
+ INTERVENTION_REASON_APPROVAL_NEEDED = 2,
13
+ INTERVENTION_REASON_EVIDENCE_GAP = 3,
14
+ INTERVENTION_REASON_RISK_THRESHOLD = 4,
15
+ INTERVENTION_REASON_MANUAL_TRIGGER = 5,
16
+ INTERVENTION_REASON_BUDGET_EXCEEDED = 6,
17
+ UNRECOGNIZED = -1
18
+ }
19
+ export declare function interventionReasonFromJSON(object: any): InterventionReason;
20
+ export declare function interventionReasonToJSON(object: InterventionReason): string;
21
+ export declare enum InterventionState {
22
+ INTERVENTION_STATE_UNSPECIFIED = 0,
23
+ INTERVENTION_STATE_PENDING = 1,
24
+ INTERVENTION_STATE_ACTIVE = 2,
25
+ INTERVENTION_STATE_RESOLVED = 3,
26
+ INTERVENTION_STATE_EXPIRED = 4,
27
+ INTERVENTION_STATE_CANCELED = 5,
28
+ UNRECOGNIZED = -1
29
+ }
30
+ export declare function interventionStateFromJSON(object: any): InterventionState;
31
+ export declare function interventionStateToJSON(object: InterventionState): string;
32
+ export declare enum InterventionDecision {
33
+ INTERVENTION_DECISION_UNSPECIFIED = 0,
34
+ INTERVENTION_DECISION_APPROVE = 1,
35
+ INTERVENTION_DECISION_DENY = 2,
36
+ INTERVENTION_DECISION_MODIFY = 3,
37
+ INTERVENTION_DECISION_ESCALATE = 4,
38
+ INTERVENTION_DECISION_CANCEL = 5,
39
+ UNRECOGNIZED = -1
40
+ }
41
+ export declare function interventionDecisionFromJSON(object: any): InterventionDecision;
42
+ export declare function interventionDecisionToJSON(object: InterventionDecision): string;
43
+ export interface InterventionScope {
44
+ targetResources: string[];
45
+ targetActions: string[];
46
+ maxBudget: number;
47
+ jurisdiction: string;
48
+ }
49
+ export interface InterventionOption {
50
+ optionId: string;
51
+ label: string;
52
+ description: string;
53
+ type: string;
54
+ }
55
+ export interface InterventionObject {
56
+ interventionId: string;
57
+ executionId: string;
58
+ principalId: string;
59
+ reason: InterventionReason;
60
+ state: InterventionState;
61
+ description: string;
62
+ effectTypes: string[];
63
+ policyEpoch: string;
64
+ scope: InterventionScope | undefined;
65
+ options: InterventionOption[];
66
+ createdAt: Date | undefined;
67
+ expiresAt: Date | undefined;
68
+ contentHash: string;
69
+ }
70
+ export interface InterventionReceipt {
71
+ receiptId: string;
72
+ interventionId: string;
73
+ deciderId: string;
74
+ deciderType: string;
75
+ decision: InterventionDecision;
76
+ selectedOption: string;
77
+ rationale: string;
78
+ conditions: string[];
79
+ policyEpoch: string;
80
+ issuedAt: Date | undefined;
81
+ signature: string;
82
+ signerPublicKey: string;
83
+ contentHash: string;
84
+ }
85
+ export declare const InterventionScope: MessageFns<InterventionScope>;
86
+ export declare const InterventionOption: MessageFns<InterventionOption>;
87
+ export declare const InterventionObject: MessageFns<InterventionObject>;
88
+ export declare const InterventionReceipt: MessageFns<InterventionReceipt>;
89
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
90
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
91
+ [K in keyof T]?: DeepPartial<T[K]>;
92
+ } : Partial<T>;
93
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
94
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
95
+ [K in keyof P]: Exact<P[K], I[K]>;
96
+ } & {
97
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
98
+ };
99
+ export interface MessageFns<T> {
100
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
101
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
102
+ fromJSON(object: any): T;
103
+ toJSON(message: T): unknown;
104
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
105
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
106
+ }
107
+ export {};