@7k-inari/api-client 0.6.0 → 0.7.0-0933ff8

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,681 +1,497 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=ts"
2
2
  // @generated from file inari/agent/v1/events.proto (package inari.agent.v1, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
4
 
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { Message, proto3, protoInt64, Struct, Timestamp } from "@bufbuild/protobuf";
5
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
8
10
 
9
11
  /**
10
- * CapabilityKind classifies a discovered cluster capability (plan §5.3
11
- * discovery watches).
12
+ * Describes the file inari/agent/v1/events.proto.
13
+ */
14
+ export const file_inari_agent_v1_events: GenFile = /*@__PURE__*/
15
+ fileDesc("ChtpbmFyaS9hZ2VudC92MS9ldmVudHMucHJvdG8SDmluYXJpLmFnZW50LnYxIlAKC1Jlc291cmNlUmVmEgwKBGtpbmQYASABKAkSDAoEbmFtZRgCIAEoCRIRCgluYW1lc3BhY2UYAyABKAkSCwoDdWlkGAQgASgJSgUIZBDIASKuAgoKQ2FwYWJpbGl0eRIsCgRraW5kGAEgASgOMh4uaW5hcmkuYWdlbnQudjEuQ2FwYWJpbGl0eUtpbmQSDAoEbmFtZRgCIAEoCRINCgVncm91cBgDIAEoCRIPCgd2ZXJzaW9uGAQgASgJEicKBnNjaGVtYRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSKQoIdWlfaGludHMYBiABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EjcKD21hbmFnZW1lbnRfbW9kZRgHIAEoDjIeLmluYXJpLmFnZW50LnYxLk1hbmFnZW1lbnRNb2RlEjAKBmFjdGlvbhgIIAEoDjIgLmluYXJpLmFnZW50LnYxLkNhcGFiaWxpdHlBY3Rpb25KBQhkEMgBInYKEENhcGFiaWxpdHlVcGRhdGUSEQoJZnVsbF9zeW5jGAEgASgIEjAKDGNhcGFiaWxpdGllcxgCIAMoCzIaLmluYXJpLmFnZW50LnYxLkNhcGFiaWxpdHkSFgoOc3RhdGVfY2hlY2tzdW0YAyABKAlKBQhkEMgBIvUBCgxTdGF0dXNVcGRhdGUSLQoIcmVzb3VyY2UYASABKAsyGy5pbmFyaS5hZ2VudC52MS5SZXNvdXJjZVJlZhIsCgZoZWFsdGgYAiABKA4yHC5pbmFyaS5hZ2VudC52MS5IZWFsdGhTdGF0dXMSJwoEc3luYxgDIAEoDjIZLmluYXJpLmFnZW50LnYxLlN5bmNTdGF0ZRIPCgdtZXNzYWdlGAQgASgJEi8KC29ic2VydmVkX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIWCg5zdGF0ZV9jaGVja3N1bRgGIAEoCUoFCGQQyAEiSQoEUGluZxIoCgR0aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIQCghzZXF1ZW5jZRgCIAEoA0oFCGQQyAEiSQoEUG9uZxIoCgR0aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIQCghzZXF1ZW5jZRgCIAEoA0oFCGQQyAEiJgoNUmVzeW5jUmVxdWVzdBIOCgZyZWFzb24YASABKAlKBQhkEMgBIlEKDlJlc3luY1Jlc3BvbnNlEhYKDnN0YXRlX2NoZWNrc3VtGAEgASgJEiAKGGFwcGxpZWRfdGhyb3VnaF9zZXF1ZW5jZRgCIAEoA0oFCGQQyAEqvAIKDkNhcGFiaWxpdHlLaW5kEh8KG0NBUEFCSUxJVFlfS0lORF9VTlNQRUNJRklFRBAAEhcKE0NBUEFCSUxJVFlfS0lORF9DUkQQARIbChdDQVBBQklMSVRZX0tJTkRfT0xNX0NTVhACEiIKHkNBUEFCSUxJVFlfS0lORF9DUk9TU1BMQU5FX1hSRBADEicKI0NBUEFCSUxJVFlfS0lORF9DUk9TU1BMQU5FX1BST1ZJREVSEAQSGwoXQ0FQQUJJTElUWV9LSU5EX0tST19SR0QQBRIgChxDQVBBQklMSVRZX0tJTkRfSEVMTV9SRUxFQVNFEAYSIQodQ0FQQUJJTElUWV9LSU5EX0NMVVNURVJfQURET04QBxIkCiBDQVBBQklMSVRZX0tJTkRfQ0xVU1RFUl9NRVRBREFUQRAIKooBCg5NYW5hZ2VtZW50TW9kZRIfChtNQU5BR0VNRU5UX01PREVfVU5TUEVDSUZJRUQQABIZChVNQU5BR0VNRU5UX01PREVfQURPUFQQARIgChxNQU5BR0VNRU5UX01PREVfT0JTRVJWRV9PTkxZEAISGgoWTUFOQUdFTUVOVF9NT0RFX0lHTk9SRRADKnEKEENhcGFiaWxpdHlBY3Rpb24SIQodQ0FQQUJJTElUWV9BQ1RJT05fVU5TUEVDSUZJRUQQABIcChhDQVBBQklMSVRZX0FDVElPTl9VUFNFUlQQARIcChhDQVBBQklMSVRZX0FDVElPTl9ERUxFVEUQAirWAQoMSGVhbHRoU3RhdHVzEh0KGUhFQUxUSF9TVEFUVVNfVU5TUEVDSUZJRUQQABIZChVIRUFMVEhfU1RBVFVTX1VOS05PV04QARIZChVIRUFMVEhfU1RBVFVTX0hFQUxUSFkQAhIdChlIRUFMVEhfU1RBVFVTX1BST0dSRVNTSU5HEAMSGgoWSEVBTFRIX1NUQVRVU19ERUdSQURFRBAEEhsKF0hFQUxUSF9TVEFUVVNfU1VTUEVOREVEEAUSGQoVSEVBTFRIX1NUQVRVU19NSVNTSU5HEAYqcAoJU3luY1N0YXRlEhoKFlNZTkNfU1RBVEVfVU5TUEVDSUZJRUQQABIVChFTWU5DX1NUQVRFX1NZTkNFRBABEhoKFlNZTkNfU1RBVEVfT1VUX09GX1NZTkMQAhIUChBTWU5DX1NUQVRFX0VSUk9SEANCPVo7Z2l0aHViLmNvbS83Sy1JbmFyaS9pbmFyaS1hcGkvZ2VuL2dvL2luYXJpL2FnZW50L3YxO2FnZW50djFiBnByb3RvMw", [file_google_protobuf_struct, file_google_protobuf_timestamp]);
16
+
17
+ /**
18
+ * ResourceRef identifies a Kubernetes object the agent reports on or is
19
+ * asked to act upon.
12
20
  *
13
- * @generated from enum inari.agent.v1.CapabilityKind
21
+ * @generated from message inari.agent.v1.ResourceRef
14
22
  */
15
- export enum CapabilityKind {
23
+ export type ResourceRef = Message<"inari.agent.v1.ResourceRef"> & {
16
24
  /**
17
- * @generated from enum value: CAPABILITY_KIND_UNSPECIFIED = 0;
25
+ * @generated from field: string kind = 1;
18
26
  */
19
- UNSPECIFIED = 0,
27
+ kind: string;
20
28
 
21
29
  /**
22
- * @generated from enum value: CAPABILITY_KIND_CRD = 1;
30
+ * @generated from field: string name = 2;
23
31
  */
24
- CRD = 1,
32
+ name: string;
25
33
 
26
34
  /**
27
- * @generated from enum value: CAPABILITY_KIND_OLM_CSV = 2;
35
+ * @generated from field: string namespace = 3;
28
36
  */
29
- OLM_CSV = 2,
37
+ namespace: string;
30
38
 
31
39
  /**
32
- * @generated from enum value: CAPABILITY_KIND_CROSSPLANE_XRD = 3;
40
+ * @generated from field: string uid = 4;
33
41
  */
34
- CROSSPLANE_XRD = 3,
42
+ uid: string;
43
+ };
35
44
 
36
- /**
37
- * @generated from enum value: CAPABILITY_KIND_CROSSPLANE_PROVIDER = 4;
38
- */
39
- CROSSPLANE_PROVIDER = 4,
45
+ /**
46
+ * Describes the message inari.agent.v1.ResourceRef.
47
+ * Use `create(ResourceRefSchema)` to create a new message.
48
+ */
49
+ export const ResourceRefSchema: GenMessage<ResourceRef> = /*@__PURE__*/
50
+ messageDesc(file_inari_agent_v1_events, 0);
40
51
 
52
+ /**
53
+ * Capability is one discovered capability: a CRD, OLM CSV, Crossplane
54
+ * XRD/provider, KRO RGD, Helm release, addon, or cluster metadata item.
55
+ *
56
+ * @generated from message inari.agent.v1.Capability
57
+ */
58
+ export type Capability = Message<"inari.agent.v1.Capability"> & {
41
59
  /**
42
- * @generated from enum value: CAPABILITY_KIND_KRO_RGD = 5;
60
+ * @generated from field: inari.agent.v1.CapabilityKind kind = 1;
43
61
  */
44
- KRO_RGD = 5,
62
+ kind: CapabilityKind;
45
63
 
46
64
  /**
47
- * @generated from enum value: CAPABILITY_KIND_HELM_RELEASE = 6;
65
+ * @generated from field: string name = 2;
48
66
  */
49
- HELM_RELEASE = 6,
67
+ name: string;
50
68
 
51
69
  /**
52
- * @generated from enum value: CAPABILITY_KIND_CLUSTER_ADDON = 7;
70
+ * @generated from field: string group = 3;
53
71
  */
54
- CLUSTER_ADDON = 7,
72
+ group: string;
55
73
 
56
74
  /**
57
- * @generated from enum value: CAPABILITY_KIND_CLUSTER_METADATA = 8;
75
+ * @generated from field: string version = 4;
58
76
  */
59
- CLUSTER_METADATA = 8,
60
- }
61
- // Retrieve enum metadata with: proto3.getEnumType(CapabilityKind)
62
- proto3.util.setEnumType(CapabilityKind, "inari.agent.v1.CapabilityKind", [
63
- { no: 0, name: "CAPABILITY_KIND_UNSPECIFIED" },
64
- { no: 1, name: "CAPABILITY_KIND_CRD" },
65
- { no: 2, name: "CAPABILITY_KIND_OLM_CSV" },
66
- { no: 3, name: "CAPABILITY_KIND_CROSSPLANE_XRD" },
67
- { no: 4, name: "CAPABILITY_KIND_CROSSPLANE_PROVIDER" },
68
- { no: 5, name: "CAPABILITY_KIND_KRO_RGD" },
69
- { no: 6, name: "CAPABILITY_KIND_HELM_RELEASE" },
70
- { no: 7, name: "CAPABILITY_KIND_CLUSTER_ADDON" },
71
- { no: 8, name: "CAPABILITY_KIND_CLUSTER_METADATA" },
72
- ]);
77
+ version: string;
73
78
 
74
- /**
75
- * ManagementMode is the brownfield adoption classification for pre-existing
76
- * resources (plan §5.3): nothing is mutated on first connect.
77
- *
78
- * @generated from enum inari.agent.v1.ManagementMode
79
- */
80
- export enum ManagementMode {
81
79
  /**
82
- * @generated from enum value: MANAGEMENT_MODE_UNSPECIFIED = 0;
80
+ * OpenAPI v3 schema (for CRD/XRD/RGD kinds), used to render catalog forms
81
+ * (plan §5.5).
82
+ *
83
+ * @generated from field: google.protobuf.Struct schema = 5;
83
84
  */
84
- UNSPECIFIED = 0,
85
+ schema?: JsonObject | undefined;
85
86
 
86
87
  /**
87
- * Bring under Inari management (explicit, audited, per-resource).
88
+ * UI hints from OLM specDescriptors / x-descriptors (plan §5.5).
88
89
  *
89
- * @generated from enum value: MANAGEMENT_MODE_ADOPT = 1;
90
+ * @generated from field: google.protobuf.Struct ui_hints = 6;
90
91
  */
91
- ADOPT = 1,
92
+ uiHints?: JsonObject | undefined;
92
93
 
93
94
  /**
94
- * Inventory without mutation (the default).
95
- *
96
- * @generated from enum value: MANAGEMENT_MODE_OBSERVE_ONLY = 2;
95
+ * @generated from field: inari.agent.v1.ManagementMode management_mode = 7;
97
96
  */
98
- OBSERVE_ONLY = 2,
97
+ managementMode: ManagementMode;
99
98
 
100
99
  /**
101
- * Excluded from inventory entirely.
102
- *
103
- * @generated from enum value: MANAGEMENT_MODE_IGNORE = 3;
100
+ * @generated from field: inari.agent.v1.CapabilityAction action = 8;
104
101
  */
105
- IGNORE = 3,
106
- }
107
- // Retrieve enum metadata with: proto3.getEnumType(ManagementMode)
108
- proto3.util.setEnumType(ManagementMode, "inari.agent.v1.ManagementMode", [
109
- { no: 0, name: "MANAGEMENT_MODE_UNSPECIFIED" },
110
- { no: 1, name: "MANAGEMENT_MODE_ADOPT" },
111
- { no: 2, name: "MANAGEMENT_MODE_OBSERVE_ONLY" },
112
- { no: 3, name: "MANAGEMENT_MODE_IGNORE" },
113
- ]);
102
+ action: CapabilityAction;
103
+ };
114
104
 
115
105
  /**
116
- * CapabilityAction distinguishes upserts from removals in incremental
117
- * capability updates.
106
+ * Describes the message inari.agent.v1.Capability.
107
+ * Use `create(CapabilitySchema)` to create a new message.
108
+ */
109
+ export const CapabilitySchema: GenMessage<Capability> = /*@__PURE__*/
110
+ messageDesc(file_inari_agent_v1_events, 1);
111
+
112
+ /**
113
+ * CapabilityUpdate streams discovered capabilities upstream (plan §5.3 step
114
+ * "Discover"). Sent incrementally on watch events, or as a full snapshot on
115
+ * connect/resync (full_sync = true).
118
116
  *
119
- * @generated from enum inari.agent.v1.CapabilityAction
117
+ * @generated from message inari.agent.v1.CapabilityUpdate
120
118
  */
121
- export enum CapabilityAction {
119
+ export type CapabilityUpdate = Message<"inari.agent.v1.CapabilityUpdate"> & {
122
120
  /**
123
- * @generated from enum value: CAPABILITY_ACTION_UNSPECIFIED = 0;
121
+ * @generated from field: bool full_sync = 1;
124
122
  */
125
- UNSPECIFIED = 0,
123
+ fullSync: boolean;
126
124
 
127
125
  /**
128
- * @generated from enum value: CAPABILITY_ACTION_UPSERT = 1;
126
+ * @generated from field: repeated inari.agent.v1.Capability capabilities = 2;
129
127
  */
130
- UPSERT = 1,
128
+ capabilities: Capability[];
131
129
 
132
130
  /**
133
- * @generated from enum value: CAPABILITY_ACTION_DELETE = 2;
131
+ * Checksum over the agent's full capability state; the gateway compares it
132
+ * after reconnect to decide on resync (plan §5.2).
133
+ *
134
+ * @generated from field: string state_checksum = 3;
134
135
  */
135
- DELETE = 2,
136
- }
137
- // Retrieve enum metadata with: proto3.getEnumType(CapabilityAction)
138
- proto3.util.setEnumType(CapabilityAction, "inari.agent.v1.CapabilityAction", [
139
- { no: 0, name: "CAPABILITY_ACTION_UNSPECIFIED" },
140
- { no: 1, name: "CAPABILITY_ACTION_UPSERT" },
141
- { no: 2, name: "CAPABILITY_ACTION_DELETE" },
142
- ]);
136
+ stateChecksum: string;
137
+ };
143
138
 
144
139
  /**
145
- * HealthStatus mirrors ArgoCD-style health for reported resources.
140
+ * Describes the message inari.agent.v1.CapabilityUpdate.
141
+ * Use `create(CapabilityUpdateSchema)` to create a new message.
142
+ */
143
+ export const CapabilityUpdateSchema: GenMessage<CapabilityUpdate> = /*@__PURE__*/
144
+ messageDesc(file_inari_agent_v1_events, 2);
145
+
146
+ /**
147
+ * StatusUpdate streams resource health/sync upstream (plan §5.3 step
148
+ * "Report") — near-real-time inventory without the control plane polling
149
+ * tenant APIs.
146
150
  *
147
- * @generated from enum inari.agent.v1.HealthStatus
151
+ * @generated from message inari.agent.v1.StatusUpdate
148
152
  */
149
- export enum HealthStatus {
153
+ export type StatusUpdate = Message<"inari.agent.v1.StatusUpdate"> & {
150
154
  /**
151
- * @generated from enum value: HEALTH_STATUS_UNSPECIFIED = 0;
155
+ * @generated from field: inari.agent.v1.ResourceRef resource = 1;
152
156
  */
153
- UNSPECIFIED = 0,
157
+ resource?: ResourceRef | undefined;
154
158
 
155
159
  /**
156
- * @generated from enum value: HEALTH_STATUS_UNKNOWN = 1;
160
+ * @generated from field: inari.agent.v1.HealthStatus health = 2;
157
161
  */
158
- UNKNOWN = 1,
162
+ health: HealthStatus;
159
163
 
160
164
  /**
161
- * @generated from enum value: HEALTH_STATUS_HEALTHY = 2;
165
+ * @generated from field: inari.agent.v1.SyncState sync = 3;
162
166
  */
163
- HEALTHY = 2,
167
+ sync: SyncState;
164
168
 
165
169
  /**
166
- * @generated from enum value: HEALTH_STATUS_PROGRESSING = 3;
170
+ * @generated from field: string message = 4;
167
171
  */
168
- PROGRESSING = 3,
172
+ message: string;
169
173
 
170
174
  /**
171
- * @generated from enum value: HEALTH_STATUS_DEGRADED = 4;
175
+ * @generated from field: google.protobuf.Timestamp observed_at = 5;
172
176
  */
173
- DEGRADED = 4,
177
+ observedAt?: Timestamp | undefined;
174
178
 
175
179
  /**
176
- * @generated from enum value: HEALTH_STATUS_SUSPENDED = 5;
180
+ * Checksum over the agent's reported-state view (resync input).
181
+ *
182
+ * @generated from field: string state_checksum = 6;
177
183
  */
178
- SUSPENDED = 5,
184
+ stateChecksum: string;
185
+ };
179
186
 
180
- /**
181
- * @generated from enum value: HEALTH_STATUS_MISSING = 6;
182
- */
183
- MISSING = 6,
184
- }
185
- // Retrieve enum metadata with: proto3.getEnumType(HealthStatus)
186
- proto3.util.setEnumType(HealthStatus, "inari.agent.v1.HealthStatus", [
187
- { no: 0, name: "HEALTH_STATUS_UNSPECIFIED" },
188
- { no: 1, name: "HEALTH_STATUS_UNKNOWN" },
189
- { no: 2, name: "HEALTH_STATUS_HEALTHY" },
190
- { no: 3, name: "HEALTH_STATUS_PROGRESSING" },
191
- { no: 4, name: "HEALTH_STATUS_DEGRADED" },
192
- { no: 5, name: "HEALTH_STATUS_SUSPENDED" },
193
- { no: 6, name: "HEALTH_STATUS_MISSING" },
194
- ]);
187
+ /**
188
+ * Describes the message inari.agent.v1.StatusUpdate.
189
+ * Use `create(StatusUpdateSchema)` to create a new message.
190
+ */
191
+ export const StatusUpdateSchema: GenMessage<StatusUpdate> = /*@__PURE__*/
192
+ messageDesc(file_inari_agent_v1_events, 3);
195
193
 
196
194
  /**
197
- * SyncState mirrors ArgoCD-style sync state for reported resources.
195
+ * Ping is the server→agent stream keepalive (plan §5.3).
198
196
  *
199
- * @generated from enum inari.agent.v1.SyncState
197
+ * @generated from message inari.agent.v1.Ping
200
198
  */
201
- export enum SyncState {
199
+ export type Ping = Message<"inari.agent.v1.Ping"> & {
202
200
  /**
203
- * @generated from enum value: SYNC_STATE_UNSPECIFIED = 0;
201
+ * @generated from field: google.protobuf.Timestamp time = 1;
204
202
  */
205
- UNSPECIFIED = 0,
203
+ time?: Timestamp | undefined;
206
204
 
207
205
  /**
208
- * @generated from enum value: SYNC_STATE_SYNCED = 1;
206
+ * @generated from field: int64 sequence = 2;
209
207
  */
210
- SYNCED = 1,
208
+ sequence: bigint;
209
+ };
210
+
211
+ /**
212
+ * Describes the message inari.agent.v1.Ping.
213
+ * Use `create(PingSchema)` to create a new message.
214
+ */
215
+ export const PingSchema: GenMessage<Ping> = /*@__PURE__*/
216
+ messageDesc(file_inari_agent_v1_events, 4);
211
217
 
218
+ /**
219
+ * Pong is the agent→server keepalive reply, echoing the ping.
220
+ *
221
+ * @generated from message inari.agent.v1.Pong
222
+ */
223
+ export type Pong = Message<"inari.agent.v1.Pong"> & {
212
224
  /**
213
- * @generated from enum value: SYNC_STATE_OUT_OF_SYNC = 2;
225
+ * @generated from field: google.protobuf.Timestamp time = 1;
214
226
  */
215
- OUT_OF_SYNC = 2,
227
+ time?: Timestamp | undefined;
216
228
 
217
229
  /**
218
- * @generated from enum value: SYNC_STATE_ERROR = 3;
230
+ * @generated from field: int64 sequence = 2;
219
231
  */
220
- ERROR = 3,
221
- }
222
- // Retrieve enum metadata with: proto3.getEnumType(SyncState)
223
- proto3.util.setEnumType(SyncState, "inari.agent.v1.SyncState", [
224
- { no: 0, name: "SYNC_STATE_UNSPECIFIED" },
225
- { no: 1, name: "SYNC_STATE_SYNCED" },
226
- { no: 2, name: "SYNC_STATE_OUT_OF_SYNC" },
227
- { no: 3, name: "SYNC_STATE_ERROR" },
228
- ]);
232
+ sequence: bigint;
233
+ };
229
234
 
230
235
  /**
231
- * ResourceRef identifies a Kubernetes object the agent reports on or is
232
- * asked to act upon.
236
+ * Describes the message inari.agent.v1.Pong.
237
+ * Use `create(PongSchema)` to create a new message.
238
+ */
239
+ export const PongSchema: GenMessage<Pong> = /*@__PURE__*/
240
+ messageDesc(file_inari_agent_v1_events, 5);
241
+
242
+ /**
243
+ * ResyncRequest is sent by the gateway when the agent's reported checksum or
244
+ * event sequence no longer matches (plan §5.2); the agent must re-send full
245
+ * state (CapabilityUpdate with full_sync = true, plus current status).
233
246
  *
234
- * @generated from message inari.agent.v1.ResourceRef
247
+ * @generated from message inari.agent.v1.ResyncRequest
235
248
  */
236
- export class ResourceRef extends Message<ResourceRef> {
249
+ export type ResyncRequest = Message<"inari.agent.v1.ResyncRequest"> & {
237
250
  /**
238
- * @generated from field: string kind = 1;
251
+ * @generated from field: string reason = 1;
239
252
  */
240
- kind = "";
253
+ reason: string;
254
+ };
241
255
 
242
- /**
243
- * @generated from field: string name = 2;
244
- */
245
- name = "";
256
+ /**
257
+ * Describes the message inari.agent.v1.ResyncRequest.
258
+ * Use `create(ResyncRequestSchema)` to create a new message.
259
+ */
260
+ export const ResyncRequestSchema: GenMessage<ResyncRequest> = /*@__PURE__*/
261
+ messageDesc(file_inari_agent_v1_events, 6);
246
262
 
263
+ /**
264
+ * ResyncResponse marks resync completion from the agent.
265
+ *
266
+ * @generated from message inari.agent.v1.ResyncResponse
267
+ */
268
+ export type ResyncResponse = Message<"inari.agent.v1.ResyncResponse"> & {
247
269
  /**
248
- * @generated from field: string namespace = 3;
270
+ * @generated from field: string state_checksum = 1;
249
271
  */
250
- namespace = "";
272
+ stateChecksum: string;
251
273
 
252
274
  /**
253
- * @generated from field: string uid = 4;
275
+ * Last gateway-acknowledged sequence the agent has applied state through.
276
+ *
277
+ * @generated from field: int64 applied_through_sequence = 2;
254
278
  */
255
- uid = "";
256
-
257
- constructor(data?: PartialMessage<ResourceRef>) {
258
- super();
259
- proto3.util.initPartial(data, this);
260
- }
261
-
262
- static readonly runtime: typeof proto3 = proto3;
263
- static readonly typeName = "inari.agent.v1.ResourceRef";
264
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
265
- { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ },
266
- { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
267
- { no: 3, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
268
- { no: 4, name: "uid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
269
- ]);
270
-
271
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResourceRef {
272
- return new ResourceRef().fromBinary(bytes, options);
273
- }
274
-
275
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResourceRef {
276
- return new ResourceRef().fromJson(jsonValue, options);
277
- }
278
-
279
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResourceRef {
280
- return new ResourceRef().fromJsonString(jsonString, options);
281
- }
282
-
283
- static equals(a: ResourceRef | PlainMessage<ResourceRef> | undefined, b: ResourceRef | PlainMessage<ResourceRef> | undefined): boolean {
284
- return proto3.util.equals(ResourceRef, a, b);
285
- }
286
- }
279
+ appliedThroughSequence: bigint;
280
+ };
287
281
 
288
282
  /**
289
- * Capability is one discovered capability: a CRD, OLM CSV, Crossplane
290
- * XRD/provider, KRO RGD, Helm release, addon, or cluster metadata item.
283
+ * Describes the message inari.agent.v1.ResyncResponse.
284
+ * Use `create(ResyncResponseSchema)` to create a new message.
285
+ */
286
+ export const ResyncResponseSchema: GenMessage<ResyncResponse> = /*@__PURE__*/
287
+ messageDesc(file_inari_agent_v1_events, 7);
288
+
289
+ /**
290
+ * CapabilityKind classifies a discovered cluster capability (plan §5.3
291
+ * discovery watches).
291
292
  *
292
- * @generated from message inari.agent.v1.Capability
293
+ * @generated from enum inari.agent.v1.CapabilityKind
293
294
  */
294
- export class Capability extends Message<Capability> {
295
+ export enum CapabilityKind {
295
296
  /**
296
- * @generated from field: inari.agent.v1.CapabilityKind kind = 1;
297
+ * @generated from enum value: CAPABILITY_KIND_UNSPECIFIED = 0;
297
298
  */
298
- kind = CapabilityKind.UNSPECIFIED;
299
+ UNSPECIFIED = 0,
299
300
 
300
301
  /**
301
- * @generated from field: string name = 2;
302
+ * @generated from enum value: CAPABILITY_KIND_CRD = 1;
302
303
  */
303
- name = "";
304
+ CRD = 1,
304
305
 
305
306
  /**
306
- * @generated from field: string group = 3;
307
+ * @generated from enum value: CAPABILITY_KIND_OLM_CSV = 2;
307
308
  */
308
- group = "";
309
+ OLM_CSV = 2,
309
310
 
310
311
  /**
311
- * @generated from field: string version = 4;
312
+ * @generated from enum value: CAPABILITY_KIND_CROSSPLANE_XRD = 3;
312
313
  */
313
- version = "";
314
+ CROSSPLANE_XRD = 3,
314
315
 
315
316
  /**
316
- * OpenAPI v3 schema (for CRD/XRD/RGD kinds), used to render catalog forms
317
- * (plan §5.5).
318
- *
319
- * @generated from field: google.protobuf.Struct schema = 5;
317
+ * @generated from enum value: CAPABILITY_KIND_CROSSPLANE_PROVIDER = 4;
320
318
  */
321
- schema?: Struct;
319
+ CROSSPLANE_PROVIDER = 4,
322
320
 
323
321
  /**
324
- * UI hints from OLM specDescriptors / x-descriptors (plan §5.5).
325
- *
326
- * @generated from field: google.protobuf.Struct ui_hints = 6;
322
+ * @generated from enum value: CAPABILITY_KIND_KRO_RGD = 5;
327
323
  */
328
- uiHints?: Struct;
324
+ KRO_RGD = 5,
329
325
 
330
326
  /**
331
- * @generated from field: inari.agent.v1.ManagementMode management_mode = 7;
327
+ * @generated from enum value: CAPABILITY_KIND_HELM_RELEASE = 6;
332
328
  */
333
- managementMode = ManagementMode.UNSPECIFIED;
329
+ HELM_RELEASE = 6,
334
330
 
335
331
  /**
336
- * @generated from field: inari.agent.v1.CapabilityAction action = 8;
332
+ * @generated from enum value: CAPABILITY_KIND_CLUSTER_ADDON = 7;
333
+ */
334
+ CLUSTER_ADDON = 7,
335
+
336
+ /**
337
+ * @generated from enum value: CAPABILITY_KIND_CLUSTER_METADATA = 8;
337
338
  */
338
- action = CapabilityAction.UNSPECIFIED;
339
-
340
- constructor(data?: PartialMessage<Capability>) {
341
- super();
342
- proto3.util.initPartial(data, this);
343
- }
344
-
345
- static readonly runtime: typeof proto3 = proto3;
346
- static readonly typeName = "inari.agent.v1.Capability";
347
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
348
- { no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(CapabilityKind) },
349
- { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
350
- { no: 3, name: "group", kind: "scalar", T: 9 /* ScalarType.STRING */ },
351
- { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
352
- { no: 5, name: "schema", kind: "message", T: Struct },
353
- { no: 6, name: "ui_hints", kind: "message", T: Struct },
354
- { no: 7, name: "management_mode", kind: "enum", T: proto3.getEnumType(ManagementMode) },
355
- { no: 8, name: "action", kind: "enum", T: proto3.getEnumType(CapabilityAction) },
356
- ]);
357
-
358
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Capability {
359
- return new Capability().fromBinary(bytes, options);
360
- }
361
-
362
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Capability {
363
- return new Capability().fromJson(jsonValue, options);
364
- }
365
-
366
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Capability {
367
- return new Capability().fromJsonString(jsonString, options);
368
- }
369
-
370
- static equals(a: Capability | PlainMessage<Capability> | undefined, b: Capability | PlainMessage<Capability> | undefined): boolean {
371
- return proto3.util.equals(Capability, a, b);
372
- }
339
+ CLUSTER_METADATA = 8,
373
340
  }
374
341
 
375
342
  /**
376
- * CapabilityUpdate streams discovered capabilities upstream (plan §5.3 step
377
- * "Discover"). Sent incrementally on watch events, or as a full snapshot on
378
- * connect/resync (full_sync = true).
343
+ * Describes the enum inari.agent.v1.CapabilityKind.
344
+ */
345
+ export const CapabilityKindSchema: GenEnum<CapabilityKind> = /*@__PURE__*/
346
+ enumDesc(file_inari_agent_v1_events, 0);
347
+
348
+ /**
349
+ * ManagementMode is the brownfield adoption classification for pre-existing
350
+ * resources (plan §5.3): nothing is mutated on first connect.
379
351
  *
380
- * @generated from message inari.agent.v1.CapabilityUpdate
352
+ * @generated from enum inari.agent.v1.ManagementMode
381
353
  */
382
- export class CapabilityUpdate extends Message<CapabilityUpdate> {
354
+ export enum ManagementMode {
383
355
  /**
384
- * @generated from field: bool full_sync = 1;
356
+ * @generated from enum value: MANAGEMENT_MODE_UNSPECIFIED = 0;
385
357
  */
386
- fullSync = false;
358
+ UNSPECIFIED = 0,
387
359
 
388
360
  /**
389
- * @generated from field: repeated inari.agent.v1.Capability capabilities = 2;
361
+ * Bring under Inari management (explicit, audited, per-resource).
362
+ *
363
+ * @generated from enum value: MANAGEMENT_MODE_ADOPT = 1;
390
364
  */
391
- capabilities: Capability[] = [];
365
+ ADOPT = 1,
392
366
 
393
367
  /**
394
- * Checksum over the agent's full capability state; the gateway compares it
395
- * after reconnect to decide on resync (plan §5.2).
368
+ * Inventory without mutation (the default).
396
369
  *
397
- * @generated from field: string state_checksum = 3;
370
+ * @generated from enum value: MANAGEMENT_MODE_OBSERVE_ONLY = 2;
398
371
  */
399
- stateChecksum = "";
400
-
401
- constructor(data?: PartialMessage<CapabilityUpdate>) {
402
- super();
403
- proto3.util.initPartial(data, this);
404
- }
405
-
406
- static readonly runtime: typeof proto3 = proto3;
407
- static readonly typeName = "inari.agent.v1.CapabilityUpdate";
408
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
409
- { no: 1, name: "full_sync", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
410
- { no: 2, name: "capabilities", kind: "message", T: Capability, repeated: true },
411
- { no: 3, name: "state_checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
412
- ]);
413
-
414
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CapabilityUpdate {
415
- return new CapabilityUpdate().fromBinary(bytes, options);
416
- }
417
-
418
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CapabilityUpdate {
419
- return new CapabilityUpdate().fromJson(jsonValue, options);
420
- }
421
-
422
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CapabilityUpdate {
423
- return new CapabilityUpdate().fromJsonString(jsonString, options);
424
- }
372
+ OBSERVE_ONLY = 2,
425
373
 
426
- static equals(a: CapabilityUpdate | PlainMessage<CapabilityUpdate> | undefined, b: CapabilityUpdate | PlainMessage<CapabilityUpdate> | undefined): boolean {
427
- return proto3.util.equals(CapabilityUpdate, a, b);
428
- }
374
+ /**
375
+ * Excluded from inventory entirely.
376
+ *
377
+ * @generated from enum value: MANAGEMENT_MODE_IGNORE = 3;
378
+ */
379
+ IGNORE = 3,
429
380
  }
430
381
 
431
382
  /**
432
- * StatusUpdate streams resource health/sync upstream (plan §5.3 step
433
- * "Report") — near-real-time inventory without the control plane polling
434
- * tenant APIs.
383
+ * Describes the enum inari.agent.v1.ManagementMode.
384
+ */
385
+ export const ManagementModeSchema: GenEnum<ManagementMode> = /*@__PURE__*/
386
+ enumDesc(file_inari_agent_v1_events, 1);
387
+
388
+ /**
389
+ * CapabilityAction distinguishes upserts from removals in incremental
390
+ * capability updates.
435
391
  *
436
- * @generated from message inari.agent.v1.StatusUpdate
392
+ * @generated from enum inari.agent.v1.CapabilityAction
437
393
  */
438
- export class StatusUpdate extends Message<StatusUpdate> {
394
+ export enum CapabilityAction {
439
395
  /**
440
- * @generated from field: inari.agent.v1.ResourceRef resource = 1;
396
+ * @generated from enum value: CAPABILITY_ACTION_UNSPECIFIED = 0;
441
397
  */
442
- resource?: ResourceRef;
398
+ UNSPECIFIED = 0,
443
399
 
444
400
  /**
445
- * @generated from field: inari.agent.v1.HealthStatus health = 2;
401
+ * @generated from enum value: CAPABILITY_ACTION_UPSERT = 1;
446
402
  */
447
- health = HealthStatus.UNSPECIFIED;
403
+ UPSERT = 1,
448
404
 
449
405
  /**
450
- * @generated from field: inari.agent.v1.SyncState sync = 3;
406
+ * @generated from enum value: CAPABILITY_ACTION_DELETE = 2;
451
407
  */
452
- sync = SyncState.UNSPECIFIED;
408
+ DELETE = 2,
409
+ }
410
+
411
+ /**
412
+ * Describes the enum inari.agent.v1.CapabilityAction.
413
+ */
414
+ export const CapabilityActionSchema: GenEnum<CapabilityAction> = /*@__PURE__*/
415
+ enumDesc(file_inari_agent_v1_events, 2);
453
416
 
417
+ /**
418
+ * HealthStatus mirrors ArgoCD-style health for reported resources.
419
+ *
420
+ * @generated from enum inari.agent.v1.HealthStatus
421
+ */
422
+ export enum HealthStatus {
454
423
  /**
455
- * @generated from field: string message = 4;
424
+ * @generated from enum value: HEALTH_STATUS_UNSPECIFIED = 0;
456
425
  */
457
- message = "";
426
+ UNSPECIFIED = 0,
458
427
 
459
428
  /**
460
- * @generated from field: google.protobuf.Timestamp observed_at = 5;
429
+ * @generated from enum value: HEALTH_STATUS_UNKNOWN = 1;
461
430
  */
462
- observedAt?: Timestamp;
431
+ UNKNOWN = 1,
463
432
 
464
433
  /**
465
- * Checksum over the agent's reported-state view (resync input).
466
- *
467
- * @generated from field: string state_checksum = 6;
434
+ * @generated from enum value: HEALTH_STATUS_HEALTHY = 2;
468
435
  */
469
- stateChecksum = "";
470
-
471
- constructor(data?: PartialMessage<StatusUpdate>) {
472
- super();
473
- proto3.util.initPartial(data, this);
474
- }
475
-
476
- static readonly runtime: typeof proto3 = proto3;
477
- static readonly typeName = "inari.agent.v1.StatusUpdate";
478
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
479
- { no: 1, name: "resource", kind: "message", T: ResourceRef },
480
- { no: 2, name: "health", kind: "enum", T: proto3.getEnumType(HealthStatus) },
481
- { no: 3, name: "sync", kind: "enum", T: proto3.getEnumType(SyncState) },
482
- { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
483
- { no: 5, name: "observed_at", kind: "message", T: Timestamp },
484
- { no: 6, name: "state_checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
485
- ]);
486
-
487
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StatusUpdate {
488
- return new StatusUpdate().fromBinary(bytes, options);
489
- }
490
-
491
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StatusUpdate {
492
- return new StatusUpdate().fromJson(jsonValue, options);
493
- }
494
-
495
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StatusUpdate {
496
- return new StatusUpdate().fromJsonString(jsonString, options);
497
- }
498
-
499
- static equals(a: StatusUpdate | PlainMessage<StatusUpdate> | undefined, b: StatusUpdate | PlainMessage<StatusUpdate> | undefined): boolean {
500
- return proto3.util.equals(StatusUpdate, a, b);
501
- }
502
- }
436
+ HEALTHY = 2,
503
437
 
504
- /**
505
- * Ping is the server→agent stream keepalive (plan §5.3).
506
- *
507
- * @generated from message inari.agent.v1.Ping
508
- */
509
- export class Ping extends Message<Ping> {
510
438
  /**
511
- * @generated from field: google.protobuf.Timestamp time = 1;
439
+ * @generated from enum value: HEALTH_STATUS_PROGRESSING = 3;
512
440
  */
513
- time?: Timestamp;
441
+ PROGRESSING = 3,
514
442
 
515
443
  /**
516
- * @generated from field: int64 sequence = 2;
444
+ * @generated from enum value: HEALTH_STATUS_DEGRADED = 4;
517
445
  */
518
- sequence = protoInt64.zero;
519
-
520
- constructor(data?: PartialMessage<Ping>) {
521
- super();
522
- proto3.util.initPartial(data, this);
523
- }
524
-
525
- static readonly runtime: typeof proto3 = proto3;
526
- static readonly typeName = "inari.agent.v1.Ping";
527
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
528
- { no: 1, name: "time", kind: "message", T: Timestamp },
529
- { no: 2, name: "sequence", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
530
- ]);
531
-
532
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Ping {
533
- return new Ping().fromBinary(bytes, options);
534
- }
535
-
536
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Ping {
537
- return new Ping().fromJson(jsonValue, options);
538
- }
539
-
540
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Ping {
541
- return new Ping().fromJsonString(jsonString, options);
542
- }
543
-
544
- static equals(a: Ping | PlainMessage<Ping> | undefined, b: Ping | PlainMessage<Ping> | undefined): boolean {
545
- return proto3.util.equals(Ping, a, b);
546
- }
547
- }
446
+ DEGRADED = 4,
548
447
 
549
- /**
550
- * Pong is the agent→server keepalive reply, echoing the ping.
551
- *
552
- * @generated from message inari.agent.v1.Pong
553
- */
554
- export class Pong extends Message<Pong> {
555
448
  /**
556
- * @generated from field: google.protobuf.Timestamp time = 1;
449
+ * @generated from enum value: HEALTH_STATUS_SUSPENDED = 5;
557
450
  */
558
- time?: Timestamp;
451
+ SUSPENDED = 5,
559
452
 
560
453
  /**
561
- * @generated from field: int64 sequence = 2;
454
+ * @generated from enum value: HEALTH_STATUS_MISSING = 6;
562
455
  */
563
- sequence = protoInt64.zero;
564
-
565
- constructor(data?: PartialMessage<Pong>) {
566
- super();
567
- proto3.util.initPartial(data, this);
568
- }
569
-
570
- static readonly runtime: typeof proto3 = proto3;
571
- static readonly typeName = "inari.agent.v1.Pong";
572
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
573
- { no: 1, name: "time", kind: "message", T: Timestamp },
574
- { no: 2, name: "sequence", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
575
- ]);
576
-
577
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pong {
578
- return new Pong().fromBinary(bytes, options);
579
- }
580
-
581
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pong {
582
- return new Pong().fromJson(jsonValue, options);
583
- }
584
-
585
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pong {
586
- return new Pong().fromJsonString(jsonString, options);
587
- }
588
-
589
- static equals(a: Pong | PlainMessage<Pong> | undefined, b: Pong | PlainMessage<Pong> | undefined): boolean {
590
- return proto3.util.equals(Pong, a, b);
591
- }
456
+ MISSING = 6,
592
457
  }
593
458
 
594
459
  /**
595
- * ResyncRequest is sent by the gateway when the agent's reported checksum or
596
- * event sequence no longer matches (plan §5.2); the agent must re-send full
597
- * state (CapabilityUpdate with full_sync = true, plus current status).
598
- *
599
- * @generated from message inari.agent.v1.ResyncRequest
460
+ * Describes the enum inari.agent.v1.HealthStatus.
600
461
  */
601
- export class ResyncRequest extends Message<ResyncRequest> {
602
- /**
603
- * @generated from field: string reason = 1;
604
- */
605
- reason = "";
606
-
607
- constructor(data?: PartialMessage<ResyncRequest>) {
608
- super();
609
- proto3.util.initPartial(data, this);
610
- }
611
-
612
- static readonly runtime: typeof proto3 = proto3;
613
- static readonly typeName = "inari.agent.v1.ResyncRequest";
614
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
615
- { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
616
- ]);
617
-
618
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResyncRequest {
619
- return new ResyncRequest().fromBinary(bytes, options);
620
- }
621
-
622
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResyncRequest {
623
- return new ResyncRequest().fromJson(jsonValue, options);
624
- }
625
-
626
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResyncRequest {
627
- return new ResyncRequest().fromJsonString(jsonString, options);
628
- }
629
-
630
- static equals(a: ResyncRequest | PlainMessage<ResyncRequest> | undefined, b: ResyncRequest | PlainMessage<ResyncRequest> | undefined): boolean {
631
- return proto3.util.equals(ResyncRequest, a, b);
632
- }
633
- }
462
+ export const HealthStatusSchema: GenEnum<HealthStatus> = /*@__PURE__*/
463
+ enumDesc(file_inari_agent_v1_events, 3);
634
464
 
635
465
  /**
636
- * ResyncResponse marks resync completion from the agent.
466
+ * SyncState mirrors ArgoCD-style sync state for reported resources.
637
467
  *
638
- * @generated from message inari.agent.v1.ResyncResponse
468
+ * @generated from enum inari.agent.v1.SyncState
639
469
  */
640
- export class ResyncResponse extends Message<ResyncResponse> {
470
+ export enum SyncState {
641
471
  /**
642
- * @generated from field: string state_checksum = 1;
472
+ * @generated from enum value: SYNC_STATE_UNSPECIFIED = 0;
643
473
  */
644
- stateChecksum = "";
474
+ UNSPECIFIED = 0,
645
475
 
646
476
  /**
647
- * Last gateway-acknowledged sequence the agent has applied state through.
648
- *
649
- * @generated from field: int64 applied_through_sequence = 2;
477
+ * @generated from enum value: SYNC_STATE_SYNCED = 1;
650
478
  */
651
- appliedThroughSequence = protoInt64.zero;
652
-
653
- constructor(data?: PartialMessage<ResyncResponse>) {
654
- super();
655
- proto3.util.initPartial(data, this);
656
- }
657
-
658
- static readonly runtime: typeof proto3 = proto3;
659
- static readonly typeName = "inari.agent.v1.ResyncResponse";
660
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
661
- { no: 1, name: "state_checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
662
- { no: 2, name: "applied_through_sequence", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
663
- ]);
664
-
665
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResyncResponse {
666
- return new ResyncResponse().fromBinary(bytes, options);
667
- }
668
-
669
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResyncResponse {
670
- return new ResyncResponse().fromJson(jsonValue, options);
671
- }
479
+ SYNCED = 1,
672
480
 
673
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResyncResponse {
674
- return new ResyncResponse().fromJsonString(jsonString, options);
675
- }
481
+ /**
482
+ * @generated from enum value: SYNC_STATE_OUT_OF_SYNC = 2;
483
+ */
484
+ OUT_OF_SYNC = 2,
676
485
 
677
- static equals(a: ResyncResponse | PlainMessage<ResyncResponse> | undefined, b: ResyncResponse | PlainMessage<ResyncResponse> | undefined): boolean {
678
- return proto3.util.equals(ResyncResponse, a, b);
679
- }
486
+ /**
487
+ * @generated from enum value: SYNC_STATE_ERROR = 3;
488
+ */
489
+ ERROR = 3,
680
490
  }
681
491
 
492
+ /**
493
+ * Describes the enum inari.agent.v1.SyncState.
494
+ */
495
+ export const SyncStateSchema: GenEnum<SyncState> = /*@__PURE__*/
496
+ enumDesc(file_inari_agent_v1_events, 4);
497
+