@7k-inari/api-client 0.5.2 → 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,125 +1,18 @@
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/agent.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 { Any, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Any, Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_any, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { Message } from "@bufbuild/protobuf";
8
10
 
9
11
  /**
10
- * EventType enumerates every well-known event/command type carried on the
11
- * EventStream. Event.type holds the reverse-DNS string form (e.g.
12
- * "inari.agent.apply-bundle.v1"); this enum is its typed mirror for
13
- * exhaustive consumer-side handling.
14
- *
15
- * @generated from enum inari.agent.v1.EventType
12
+ * Describes the file inari/agent/v1/agent.proto.
16
13
  */
17
- export enum EventType {
18
- /**
19
- * @generated from enum value: EVENT_TYPE_UNSPECIFIED = 0;
20
- */
21
- UNSPECIFIED = 0,
22
-
23
- /**
24
- * agent→server: discovered capability changes (plan §5.3).
25
- *
26
- * @generated from enum value: EVENT_TYPE_CAPABILITY_UPDATE = 1;
27
- */
28
- CAPABILITY_UPDATE = 1,
29
-
30
- /**
31
- * agent→server: resource health/sync reporting (plan §5.3).
32
- *
33
- * @generated from enum value: EVENT_TYPE_STATUS_UPDATE = 2;
34
- */
35
- STATUS_UPDATE = 2,
36
-
37
- /**
38
- * server→agent: stream keepalive.
39
- *
40
- * @generated from enum value: EVENT_TYPE_PING = 3;
41
- */
42
- PING = 3,
43
-
44
- /**
45
- * agent→server: keepalive reply.
46
- *
47
- * @generated from enum value: EVENT_TYPE_PONG = 4;
48
- */
49
- PONG = 4,
50
-
51
- /**
52
- * server→agent: checksum mismatch, re-send full state (plan §5.2).
53
- *
54
- * @generated from enum value: EVENT_TYPE_RESYNC_REQUEST = 5;
55
- */
56
- RESYNC_REQUEST = 5,
57
-
58
- /**
59
- * agent→server: resync complete marker.
60
- *
61
- * @generated from enum value: EVENT_TYPE_RESYNC_RESPONSE = 6;
62
- */
63
- RESYNC_RESPONSE = 6,
64
-
65
- /**
66
- * server→agent: apply a rendered bundle to tenant Git (plan §5.3).
67
- *
68
- * @generated from enum value: EVENT_TYPE_APPLY_BUNDLE = 7;
69
- */
70
- APPLY_BUNDLE = 7,
71
-
72
- /**
73
- * server→agent: register a tenant-local ArgoCD Application.
74
- *
75
- * @generated from enum value: EVENT_TYPE_REGISTER_ARGOCD_APP = 8;
76
- */
77
- REGISTER_ARGOCD_APP = 8,
78
-
79
- /**
80
- * server→agent: imperative out-of-band action (ArgoCD actions etc.).
81
- *
82
- * @generated from enum value: EVENT_TYPE_INVOKE_ACTION = 9;
83
- */
84
- INVOKE_ACTION = 9,
85
-
86
- /**
87
- * server→agent: render a KRO ResourceGraphDefinition instance.
88
- *
89
- * @generated from enum value: EVENT_TYPE_RENDER_RGD_INSTANCE = 10;
90
- */
91
- RENDER_RGD_INSTANCE = 10,
92
-
93
- /**
94
- * agent→server: command outcome (success).
95
- *
96
- * @generated from enum value: EVENT_TYPE_COMMAND_ACK = 11;
97
- */
98
- COMMAND_ACK = 11,
99
-
100
- /**
101
- * agent→server: command outcome (failure).
102
- *
103
- * @generated from enum value: EVENT_TYPE_COMMAND_NACK = 12;
104
- */
105
- COMMAND_NACK = 12,
106
- }
107
- // Retrieve enum metadata with: proto3.getEnumType(EventType)
108
- proto3.util.setEnumType(EventType, "inari.agent.v1.EventType", [
109
- { no: 0, name: "EVENT_TYPE_UNSPECIFIED" },
110
- { no: 1, name: "EVENT_TYPE_CAPABILITY_UPDATE" },
111
- { no: 2, name: "EVENT_TYPE_STATUS_UPDATE" },
112
- { no: 3, name: "EVENT_TYPE_PING" },
113
- { no: 4, name: "EVENT_TYPE_PONG" },
114
- { no: 5, name: "EVENT_TYPE_RESYNC_REQUEST" },
115
- { no: 6, name: "EVENT_TYPE_RESYNC_RESPONSE" },
116
- { no: 7, name: "EVENT_TYPE_APPLY_BUNDLE" },
117
- { no: 8, name: "EVENT_TYPE_REGISTER_ARGOCD_APP" },
118
- { no: 9, name: "EVENT_TYPE_INVOKE_ACTION" },
119
- { no: 10, name: "EVENT_TYPE_RENDER_RGD_INSTANCE" },
120
- { no: 11, name: "EVENT_TYPE_COMMAND_ACK" },
121
- { no: 12, name: "EVENT_TYPE_COMMAND_NACK" },
122
- ]);
14
+ export const file_inari_agent_v1_agent: GenFile = /*@__PURE__*/
15
+ fileDesc("ChppbmFyaS9hZ2VudC92MS9hZ2VudC5wcm90bxIOaW5hcmkuYWdlbnQudjEipgEKBUV2ZW50EhAKCGV2ZW50X2lkGAEgASgJEhMKC3Jlc291cmNlX2lkGAIgASgJEgwKBHR5cGUYAyABKAkSJQoHcGF5bG9hZBgEIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSKAoEdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEAoIc2VxdWVuY2UYBiABKANKBQhkEMgBIn8KEEhhbmRzaGFrZVJlcXVlc3QSFQoNYWdlbnRfdmVyc2lvbhgBIAEoCRIRCgl0ZW5hbnRfaWQYAiABKAkSGAoQY29udHJhY3RfdmVyc2lvbhgDIAEoCRIgChhsYXN0X3NlZW5fc3RhdGVfY2hlY2tzdW0YBCABKAlKBQhkEMgBIogBChFIYW5kc2hha2VSZXNwb25zZRISCgpzZXNzaW9uX2lkGAEgASgJEiAKGHNlcnZlcl9jb250cmFjdF92ZXJzaW9ucxgCIAEoCRIXCg9yZXN5bmNfcmVxdWlyZWQYAyABKAgSHQoVZGVzaXJlZF9hZ2VudF92ZXJzaW9uGAQgASgJSgUIZBDIASI9Cg5Db25uZWN0UmVxdWVzdBIkCgVldmVudBgBIAEoCzIVLmluYXJpLmFnZW50LnYxLkV2ZW50SgUIZBDIASI+Cg9Db25uZWN0UmVzcG9uc2USJAoFZXZlbnQYASABKAsyFS5pbmFyaS5hZ2VudC52MS5FdmVudEoFCGQQyAEq0wMKCUV2ZW50VHlwZRIaChZFVkVOVF9UWVBFX1VOU1BFQ0lGSUVEEAASIAocRVZFTlRfVFlQRV9DQVBBQklMSVRZX1VQREFURRABEhwKGEVWRU5UX1RZUEVfU1RBVFVTX1VQREFURRACEhMKD0VWRU5UX1RZUEVfUElORxADEhMKD0VWRU5UX1RZUEVfUE9ORxAEEh0KGUVWRU5UX1RZUEVfUkVTWU5DX1JFUVVFU1QQBRIeChpFVkVOVF9UWVBFX1JFU1lOQ19SRVNQT05TRRAGEhsKF0VWRU5UX1RZUEVfQVBQTFlfQlVORExFEAcSIgoeRVZFTlRfVFlQRV9SRUdJU1RFUl9BUkdPQ0RfQVBQEAgSHAoYRVZFTlRfVFlQRV9JTlZPS0VfQUNUSU9OEAkSIgoeRVZFTlRfVFlQRV9SRU5ERVJfUkdEX0lOU1RBTkNFEAoSGgoWRVZFTlRfVFlQRV9DT01NQU5EX0FDSxALEhsKF0VWRU5UX1RZUEVfQ09NTUFORF9OQUNLEAwSIQodRVZFTlRfVFlQRV9TRUNSRVRfU1RPUkVfQVBQTFkQDRIiCh5FVkVOVF9UWVBFX1NFQ1JFVF9TVE9SRV9ERUxFVEUQDjJkChJFdmVudFN0cmVhbVNlcnZpY2USTgoHQ29ubmVjdBIeLmluYXJpLmFnZW50LnYxLkNvbm5lY3RSZXF1ZXN0Gh8uaW5hcmkuYWdlbnQudjEuQ29ubmVjdFJlc3BvbnNlKAEwAUI9WjtnaXRodWIuY29tLzdLLUluYXJpL2luYXJpLWFwaS9nZW4vZ28vaW5hcmkvYWdlbnQvdjE7YWdlbnR2MWIGcHJvdG8z", [file_google_protobuf_any, file_google_protobuf_timestamp]);
123
16
 
124
17
  /**
125
18
  * Event is the CloudEvents-style envelope exchanged on the agent EventStream
@@ -128,33 +21,33 @@ proto3.util.setEnumType(EventType, "inari.agent.v1.EventType", [
128
21
  *
129
22
  * @generated from message inari.agent.v1.Event
130
23
  */
131
- export class Event extends Message<Event> {
24
+ export type Event = Message<"inari.agent.v1.Event"> & {
132
25
  /**
133
26
  * @generated from field: string event_id = 1;
134
27
  */
135
- eventId = "";
28
+ eventId: string;
136
29
 
137
30
  /**
138
31
  * @generated from field: string resource_id = 2;
139
32
  */
140
- resourceId = "";
33
+ resourceId: string;
141
34
 
142
35
  /**
143
36
  * Reverse-DNS event type, e.g. inari.agent.ping.v1.
144
37
  *
145
38
  * @generated from field: string type = 3;
146
39
  */
147
- type = "";
40
+ type: string;
148
41
 
149
42
  /**
150
43
  * @generated from field: google.protobuf.Any payload = 4;
151
44
  */
152
- payload?: Any;
45
+ payload?: Any | undefined;
153
46
 
154
47
  /**
155
48
  * @generated from field: google.protobuf.Timestamp time = 5;
156
49
  */
157
- time?: Timestamp;
50
+ time?: Timestamp | undefined;
158
51
 
159
52
  /**
160
53
  * Per-agent monotonic sequence number; the gateway uses gaps to trigger
@@ -162,40 +55,15 @@ export class Event extends Message<Event> {
162
55
  *
163
56
  * @generated from field: int64 sequence = 6;
164
57
  */
165
- sequence = protoInt64.zero;
166
-
167
- constructor(data?: PartialMessage<Event>) {
168
- super();
169
- proto3.util.initPartial(data, this);
170
- }
171
-
172
- static readonly runtime: typeof proto3 = proto3;
173
- static readonly typeName = "inari.agent.v1.Event";
174
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
175
- { no: 1, name: "event_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
176
- { no: 2, name: "resource_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
- { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
178
- { no: 4, name: "payload", kind: "message", T: Any },
179
- { no: 5, name: "time", kind: "message", T: Timestamp },
180
- { no: 6, name: "sequence", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
181
- ]);
182
-
183
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Event {
184
- return new Event().fromBinary(bytes, options);
185
- }
186
-
187
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Event {
188
- return new Event().fromJson(jsonValue, options);
189
- }
190
-
191
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Event {
192
- return new Event().fromJsonString(jsonString, options);
193
- }
194
-
195
- static equals(a: Event | PlainMessage<Event> | undefined, b: Event | PlainMessage<Event> | undefined): boolean {
196
- return proto3.util.equals(Event, a, b);
197
- }
198
- }
58
+ sequence: bigint;
59
+ };
60
+
61
+ /**
62
+ * Describes the message inari.agent.v1.Event.
63
+ * Use `create(EventSchema)` to create a new message.
64
+ */
65
+ export const EventSchema: GenMessage<Event> = /*@__PURE__*/
66
+ messageDesc(file_inari_agent_v1_agent, 0);
199
67
 
200
68
  /**
201
69
  * HandshakeRequest opens a session; the agent always dials out to the control
@@ -205,23 +73,23 @@ export class Event extends Message<Event> {
205
73
  *
206
74
  * @generated from message inari.agent.v1.HandshakeRequest
207
75
  */
208
- export class HandshakeRequest extends Message<HandshakeRequest> {
76
+ export type HandshakeRequest = Message<"inari.agent.v1.HandshakeRequest"> & {
209
77
  /**
210
78
  * @generated from field: string agent_version = 1;
211
79
  */
212
- agentVersion = "";
80
+ agentVersion: string;
213
81
 
214
82
  /**
215
83
  * @generated from field: string tenant_id = 2;
216
84
  */
217
- tenantId = "";
85
+ tenantId: string;
218
86
 
219
87
  /**
220
88
  * Contract package this agent implements, e.g. "inari.agent.v1".
221
89
  *
222
90
  * @generated from field: string contract_version = 3;
223
91
  */
224
- contractVersion = "";
92
+ contractVersion: string;
225
93
 
226
94
  /**
227
95
  * Checksum of the agent state the gateway last acknowledged; a mismatch on
@@ -229,47 +97,24 @@ export class HandshakeRequest extends Message<HandshakeRequest> {
229
97
  *
230
98
  * @generated from field: string last_seen_state_checksum = 4;
231
99
  */
232
- lastSeenStateChecksum = "";
233
-
234
- constructor(data?: PartialMessage<HandshakeRequest>) {
235
- super();
236
- proto3.util.initPartial(data, this);
237
- }
238
-
239
- static readonly runtime: typeof proto3 = proto3;
240
- static readonly typeName = "inari.agent.v1.HandshakeRequest";
241
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
242
- { no: 1, name: "agent_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
243
- { no: 2, name: "tenant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
244
- { no: 3, name: "contract_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
245
- { no: 4, name: "last_seen_state_checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
246
- ]);
247
-
248
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HandshakeRequest {
249
- return new HandshakeRequest().fromBinary(bytes, options);
250
- }
251
-
252
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandshakeRequest {
253
- return new HandshakeRequest().fromJson(jsonValue, options);
254
- }
255
-
256
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandshakeRequest {
257
- return new HandshakeRequest().fromJsonString(jsonString, options);
258
- }
259
-
260
- static equals(a: HandshakeRequest | PlainMessage<HandshakeRequest> | undefined, b: HandshakeRequest | PlainMessage<HandshakeRequest> | undefined): boolean {
261
- return proto3.util.equals(HandshakeRequest, a, b);
262
- }
263
- }
100
+ lastSeenStateChecksum: string;
101
+ };
102
+
103
+ /**
104
+ * Describes the message inari.agent.v1.HandshakeRequest.
105
+ * Use `create(HandshakeRequestSchema)` to create a new message.
106
+ */
107
+ export const HandshakeRequestSchema: GenMessage<HandshakeRequest> = /*@__PURE__*/
108
+ messageDesc(file_inari_agent_v1_agent, 1);
264
109
 
265
110
  /**
266
111
  * @generated from message inari.agent.v1.HandshakeResponse
267
112
  */
268
- export class HandshakeResponse extends Message<HandshakeResponse> {
113
+ export type HandshakeResponse = Message<"inari.agent.v1.HandshakeResponse"> & {
269
114
  /**
270
115
  * @generated from field: string session_id = 1;
271
116
  */
272
- sessionId = "";
117
+ sessionId: string;
273
118
 
274
119
  /**
275
120
  * Contract versions the gateway supports (N/N−1, plan §5.11),
@@ -277,120 +122,206 @@ export class HandshakeResponse extends Message<HandshakeResponse> {
277
122
  *
278
123
  * @generated from field: string server_contract_versions = 2;
279
124
  */
280
- serverContractVersions = "";
125
+ serverContractVersions: string;
281
126
 
282
127
  /**
283
128
  * True when the agent must re-send full state (checksum mismatch or gap).
284
129
  *
285
130
  * @generated from field: bool resync_required = 3;
286
131
  */
287
- resyncRequired = false;
288
-
289
- constructor(data?: PartialMessage<HandshakeResponse>) {
290
- super();
291
- proto3.util.initPartial(data, this);
292
- }
293
-
294
- static readonly runtime: typeof proto3 = proto3;
295
- static readonly typeName = "inari.agent.v1.HandshakeResponse";
296
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
297
- { no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
298
- { no: 2, name: "server_contract_versions", kind: "scalar", T: 9 /* ScalarType.STRING */ },
299
- { no: 3, name: "resync_required", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
300
- ]);
301
-
302
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HandshakeResponse {
303
- return new HandshakeResponse().fromBinary(bytes, options);
304
- }
132
+ resyncRequired: boolean;
305
133
 
306
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandshakeResponse {
307
- return new HandshakeResponse().fromJson(jsonValue, options);
308
- }
309
-
310
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandshakeResponse {
311
- return new HandshakeResponse().fromJsonString(jsonString, options);
312
- }
134
+ /**
135
+ * Agent version the platform recommends (from the platform's agent
136
+ * compatibility declaration). Empty when the server has no
137
+ * recommendation. Agents running a different version should plan an
138
+ * upgrade.
139
+ *
140
+ * @generated from field: string desired_agent_version = 4;
141
+ */
142
+ desiredAgentVersion: string;
143
+ };
313
144
 
314
- static equals(a: HandshakeResponse | PlainMessage<HandshakeResponse> | undefined, b: HandshakeResponse | PlainMessage<HandshakeResponse> | undefined): boolean {
315
- return proto3.util.equals(HandshakeResponse, a, b);
316
- }
317
- }
145
+ /**
146
+ * Describes the message inari.agent.v1.HandshakeResponse.
147
+ * Use `create(HandshakeResponseSchema)` to create a new message.
148
+ */
149
+ export const HandshakeResponseSchema: GenMessage<HandshakeResponse> = /*@__PURE__*/
150
+ messageDesc(file_inari_agent_v1_agent, 2);
318
151
 
319
152
  /**
320
153
  * ConnectRequest carries one Event from agent to gateway on the stream.
321
154
  *
322
155
  * @generated from message inari.agent.v1.ConnectRequest
323
156
  */
324
- export class ConnectRequest extends Message<ConnectRequest> {
157
+ export type ConnectRequest = Message<"inari.agent.v1.ConnectRequest"> & {
325
158
  /**
326
159
  * @generated from field: inari.agent.v1.Event event = 1;
327
160
  */
328
- event?: Event;
329
-
330
- constructor(data?: PartialMessage<ConnectRequest>) {
331
- super();
332
- proto3.util.initPartial(data, this);
333
- }
334
-
335
- static readonly runtime: typeof proto3 = proto3;
336
- static readonly typeName = "inari.agent.v1.ConnectRequest";
337
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
338
- { no: 1, name: "event", kind: "message", T: Event },
339
- ]);
340
-
341
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectRequest {
342
- return new ConnectRequest().fromBinary(bytes, options);
343
- }
161
+ event?: Event | undefined;
162
+ };
344
163
 
345
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectRequest {
346
- return new ConnectRequest().fromJson(jsonValue, options);
347
- }
348
-
349
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectRequest {
350
- return new ConnectRequest().fromJsonString(jsonString, options);
351
- }
352
-
353
- static equals(a: ConnectRequest | PlainMessage<ConnectRequest> | undefined, b: ConnectRequest | PlainMessage<ConnectRequest> | undefined): boolean {
354
- return proto3.util.equals(ConnectRequest, a, b);
355
- }
356
- }
164
+ /**
165
+ * Describes the message inari.agent.v1.ConnectRequest.
166
+ * Use `create(ConnectRequestSchema)` to create a new message.
167
+ */
168
+ export const ConnectRequestSchema: GenMessage<ConnectRequest> = /*@__PURE__*/
169
+ messageDesc(file_inari_agent_v1_agent, 3);
357
170
 
358
171
  /**
359
172
  * ConnectResponse carries one Event from gateway to agent on the stream.
360
173
  *
361
174
  * @generated from message inari.agent.v1.ConnectResponse
362
175
  */
363
- export class ConnectResponse extends Message<ConnectResponse> {
176
+ export type ConnectResponse = Message<"inari.agent.v1.ConnectResponse"> & {
364
177
  /**
365
178
  * @generated from field: inari.agent.v1.Event event = 1;
366
179
  */
367
- event?: Event;
180
+ event?: Event | undefined;
181
+ };
368
182
 
369
- constructor(data?: PartialMessage<ConnectResponse>) {
370
- super();
371
- proto3.util.initPartial(data, this);
372
- }
183
+ /**
184
+ * Describes the message inari.agent.v1.ConnectResponse.
185
+ * Use `create(ConnectResponseSchema)` to create a new message.
186
+ */
187
+ export const ConnectResponseSchema: GenMessage<ConnectResponse> = /*@__PURE__*/
188
+ messageDesc(file_inari_agent_v1_agent, 4);
373
189
 
374
- static readonly runtime: typeof proto3 = proto3;
375
- static readonly typeName = "inari.agent.v1.ConnectResponse";
376
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
377
- { no: 1, name: "event", kind: "message", T: Event },
378
- ]);
190
+ /**
191
+ * EventType enumerates every well-known event/command type carried on the
192
+ * EventStream. Event.type holds the reverse-DNS string form (e.g.
193
+ * "inari.agent.apply-bundle.v1"); this enum is its typed mirror for
194
+ * exhaustive consumer-side handling.
195
+ *
196
+ * @generated from enum inari.agent.v1.EventType
197
+ */
198
+ export enum EventType {
199
+ /**
200
+ * @generated from enum value: EVENT_TYPE_UNSPECIFIED = 0;
201
+ */
202
+ UNSPECIFIED = 0,
379
203
 
380
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectResponse {
381
- return new ConnectResponse().fromBinary(bytes, options);
382
- }
204
+ /**
205
+ * agent→server: discovered capability changes (plan §5.3).
206
+ *
207
+ * @generated from enum value: EVENT_TYPE_CAPABILITY_UPDATE = 1;
208
+ */
209
+ CAPABILITY_UPDATE = 1,
383
210
 
384
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectResponse {
385
- return new ConnectResponse().fromJson(jsonValue, options);
386
- }
211
+ /**
212
+ * agent→server: resource health/sync reporting (plan §5.3).
213
+ *
214
+ * @generated from enum value: EVENT_TYPE_STATUS_UPDATE = 2;
215
+ */
216
+ STATUS_UPDATE = 2,
387
217
 
388
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectResponse {
389
- return new ConnectResponse().fromJsonString(jsonString, options);
390
- }
218
+ /**
219
+ * server→agent: stream keepalive.
220
+ *
221
+ * @generated from enum value: EVENT_TYPE_PING = 3;
222
+ */
223
+ PING = 3,
224
+
225
+ /**
226
+ * agent→server: keepalive reply.
227
+ *
228
+ * @generated from enum value: EVENT_TYPE_PONG = 4;
229
+ */
230
+ PONG = 4,
231
+
232
+ /**
233
+ * server→agent: checksum mismatch, re-send full state (plan §5.2).
234
+ *
235
+ * @generated from enum value: EVENT_TYPE_RESYNC_REQUEST = 5;
236
+ */
237
+ RESYNC_REQUEST = 5,
238
+
239
+ /**
240
+ * agent→server: resync complete marker.
241
+ *
242
+ * @generated from enum value: EVENT_TYPE_RESYNC_RESPONSE = 6;
243
+ */
244
+ RESYNC_RESPONSE = 6,
391
245
 
392
- static equals(a: ConnectResponse | PlainMessage<ConnectResponse> | undefined, b: ConnectResponse | PlainMessage<ConnectResponse> | undefined): boolean {
393
- return proto3.util.equals(ConnectResponse, a, b);
394
- }
246
+ /**
247
+ * server→agent: apply a rendered bundle to tenant Git (plan §5.3).
248
+ *
249
+ * @generated from enum value: EVENT_TYPE_APPLY_BUNDLE = 7;
250
+ */
251
+ APPLY_BUNDLE = 7,
252
+
253
+ /**
254
+ * server→agent: register a tenant-local ArgoCD Application.
255
+ *
256
+ * @generated from enum value: EVENT_TYPE_REGISTER_ARGOCD_APP = 8;
257
+ */
258
+ REGISTER_ARGOCD_APP = 8,
259
+
260
+ /**
261
+ * server→agent: imperative out-of-band action (ArgoCD actions etc.).
262
+ *
263
+ * @generated from enum value: EVENT_TYPE_INVOKE_ACTION = 9;
264
+ */
265
+ INVOKE_ACTION = 9,
266
+
267
+ /**
268
+ * server→agent: render a KRO ResourceGraphDefinition instance.
269
+ *
270
+ * @generated from enum value: EVENT_TYPE_RENDER_RGD_INSTANCE = 10;
271
+ */
272
+ RENDER_RGD_INSTANCE = 10,
273
+
274
+ /**
275
+ * agent→server: command outcome (success).
276
+ *
277
+ * @generated from enum value: EVENT_TYPE_COMMAND_ACK = 11;
278
+ */
279
+ COMMAND_ACK = 11,
280
+
281
+ /**
282
+ * agent→server: command outcome (failure).
283
+ *
284
+ * @generated from enum value: EVENT_TYPE_COMMAND_NACK = 12;
285
+ */
286
+ COMMAND_NACK = 12,
287
+
288
+ /**
289
+ * server→agent: deliver an ESO SecretStore to tenant Git (plan §4.1).
290
+ *
291
+ * @generated from enum value: EVENT_TYPE_SECRET_STORE_APPLY = 13;
292
+ */
293
+ SECRET_STORE_APPLY = 13,
294
+
295
+ /**
296
+ * server→agent: prune an ESO SecretStore from tenant Git (plan §4.1).
297
+ *
298
+ * @generated from enum value: EVENT_TYPE_SECRET_STORE_DELETE = 14;
299
+ */
300
+ SECRET_STORE_DELETE = 14,
395
301
  }
396
302
 
303
+ /**
304
+ * Describes the enum inari.agent.v1.EventType.
305
+ */
306
+ export const EventTypeSchema: GenEnum<EventType> = /*@__PURE__*/
307
+ enumDesc(file_inari_agent_v1_agent, 0);
308
+
309
+ /**
310
+ * EventStreamService is the bidirectional gRPC stream between an in-cluster
311
+ * agent and the Agent Gateway (plan §5.2). Delivery is at-least-once;
312
+ * command handlers must be idempotent (command_id is the idempotency key).
313
+ *
314
+ * @generated from service inari.agent.v1.EventStreamService
315
+ */
316
+ export const EventStreamService: GenService<{
317
+ /**
318
+ * @generated from rpc inari.agent.v1.EventStreamService.Connect
319
+ */
320
+ connect: {
321
+ methodKind: "bidi_streaming";
322
+ input: typeof ConnectRequestSchema;
323
+ output: typeof ConnectResponseSchema;
324
+ },
325
+ }> = /*@__PURE__*/
326
+ serviceDesc(file_inari_agent_v1_agent, 0);
327
+