weave-typescript 0.16.0 → 0.18.0

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.
@@ -1,5 +1,71 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  export declare const protobufPackage = "weaveapi.atc.v1";
3
+ export declare enum InspectionCategory {
4
+ INSPECTION_CATEGORY_UNSPECIFIED = 0,
5
+ INSPECTION_CATEGORY_MEMORY = 1,
6
+ INSPECTION_CATEGORY_ARTIFACT = 2,
7
+ INSPECTION_CATEGORY_SECRET = 3,
8
+ INSPECTION_CATEGORY_POLICY = 4,
9
+ INSPECTION_CATEGORY_API = 5,
10
+ INSPECTION_CATEGORY_STORAGE = 6,
11
+ INSPECTION_CATEGORY_PROCESS = 7,
12
+ UNRECOGNIZED = -1
13
+ }
14
+ export declare function inspectionCategoryFromJSON(object: any): InspectionCategory;
15
+ export declare function inspectionCategoryToJSON(object: InspectionCategory): string;
16
+ export declare enum InspectionAction {
17
+ INSPECTION_ACTION_UNSPECIFIED = 0,
18
+ INSPECTION_ACTION_READ = 1,
19
+ INSPECTION_ACTION_WRITE = 2,
20
+ INSPECTION_ACTION_QUERY = 3,
21
+ INSPECTION_ACTION_REQUEST = 4,
22
+ INSPECTION_ACTION_RESPOND = 5,
23
+ INSPECTION_ACTION_STREAM = 6,
24
+ INSPECTION_ACTION_SCAN = 7,
25
+ INSPECTION_ACTION_EVALUATE = 8,
26
+ UNRECOGNIZED = -1
27
+ }
28
+ export declare function inspectionActionFromJSON(object: any): InspectionAction;
29
+ export declare function inspectionActionToJSON(object: InspectionAction): string;
30
+ export declare enum InspectionOutcome {
31
+ INSPECTION_OUTCOME_UNSPECIFIED = 0,
32
+ INSPECTION_OUTCOME_ALLOWED = 1,
33
+ INSPECTION_OUTCOME_DENIED = 2,
34
+ INSPECTION_OUTCOME_ERROR = 3,
35
+ INSPECTION_OUTCOME_SUCCESS = 4,
36
+ INSPECTION_OUTCOME_PARTIAL = 5,
37
+ UNRECOGNIZED = -1
38
+ }
39
+ export declare function inspectionOutcomeFromJSON(object: any): InspectionOutcome;
40
+ export declare function inspectionOutcomeToJSON(object: InspectionOutcome): string;
41
+ export declare enum InspectionSubjectKind {
42
+ INSPECTION_SUBJECT_KIND_UNSPECIFIED = 0,
43
+ INSPECTION_SUBJECT_KIND_RUN = 1,
44
+ INSPECTION_SUBJECT_KIND_PROCESS = 2,
45
+ INSPECTION_SUBJECT_KIND_MEMORY_NAMESPACE = 3,
46
+ INSPECTION_SUBJECT_KIND_ARTIFACT = 4,
47
+ INSPECTION_SUBJECT_KIND_ARTIFACT_SPACE = 5,
48
+ INSPECTION_SUBJECT_KIND_SECRET = 6,
49
+ INSPECTION_SUBJECT_KIND_POLICY = 7,
50
+ INSPECTION_SUBJECT_KIND_POLICY_VERSION = 8,
51
+ INSPECTION_SUBJECT_KIND_TENANT = 9,
52
+ INSPECTION_SUBJECT_KIND_TOOL_RUN = 10,
53
+ INSPECTION_SUBJECT_KIND_REVIEW = 11,
54
+ UNRECOGNIZED = -1
55
+ }
56
+ export declare function inspectionSubjectKindFromJSON(object: any): InspectionSubjectKind;
57
+ export declare function inspectionSubjectKindToJSON(object: InspectionSubjectKind): string;
58
+ export declare enum InspectionActorKind {
59
+ INSPECTION_ACTOR_KIND_UNSPECIFIED = 0,
60
+ INSPECTION_ACTOR_KIND_USER = 1,
61
+ INSPECTION_ACTOR_KIND_AGENT_PROCESS = 2,
62
+ INSPECTION_ACTOR_KIND_SYSTEM = 3,
63
+ INSPECTION_ACTOR_KIND_API_CALLER = 4,
64
+ INSPECTION_ACTOR_KIND_SUPERVISOR = 5,
65
+ UNRECOGNIZED = -1
66
+ }
67
+ export declare function inspectionActorKindFromJSON(object: any): InspectionActorKind;
68
+ export declare function inspectionActorKindToJSON(object: InspectionActorKind): string;
3
69
  /** Event is an immutable record in the append-only run history. */
4
70
  export interface Event {
5
71
  eventId: string;
@@ -11,7 +77,42 @@ export interface Event {
11
77
  correlationId: string;
12
78
  occurredAt: Date | undefined;
13
79
  }
80
+ export interface InspectionSubject {
81
+ kind: InspectionSubjectKind;
82
+ id: string;
83
+ }
84
+ export interface InspectionActor {
85
+ kind: InspectionActorKind;
86
+ id: string;
87
+ }
88
+ /**
89
+ * InspectionEvent is an immutable observation recorded outside the durable
90
+ * run history.
91
+ */
92
+ export interface InspectionEvent {
93
+ eventId: string;
94
+ tenantId: string;
95
+ eventType: string;
96
+ category: InspectionCategory;
97
+ subject: InspectionSubject | undefined;
98
+ actor: InspectionActor | undefined;
99
+ runId: string;
100
+ processId: string;
101
+ action: InspectionAction;
102
+ outcome: InspectionOutcome;
103
+ reason: string;
104
+ correlationId: string;
105
+ causationId: string;
106
+ data: Uint8Array;
107
+ schemaVersion: number;
108
+ sequence: number;
109
+ occurredAt: Date | undefined;
110
+ expiresAt: Date | undefined;
111
+ }
14
112
  export declare const Event: MessageFns<Event>;
113
+ export declare const InspectionSubject: MessageFns<InspectionSubject>;
114
+ export declare const InspectionActor: MessageFns<InspectionActor>;
115
+ export declare const InspectionEvent: MessageFns<InspectionEvent>;
15
116
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
16
117
  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 {} ? {
17
118
  [K in keyof T]?: DeepPartial<T[K]>;