@7k-inari/api-client 0.6.0 → 0.7.0-4ef5c1f

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,10 +1,191 @@
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";
10
+
11
+ /**
12
+ * Describes the file inari/agent/v1/agent.proto.
13
+ */
14
+ export const file_inari_agent_v1_agent: GenFile = /*@__PURE__*/
15
+ fileDesc("ChppbmFyaS9hZ2VudC92MS9hZ2VudC5wcm90bxIOaW5hcmkuYWdlbnQudjEipgEKBUV2ZW50EhAKCGV2ZW50X2lkGAEgASgJEhMKC3Jlc291cmNlX2lkGAIgASgJEgwKBHR5cGUYAyABKAkSJQoHcGF5bG9hZBgEIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSKAoEdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEAoIc2VxdWVuY2UYBiABKANKBQhkEMgBIn8KEEhhbmRzaGFrZVJlcXVlc3QSFQoNYWdlbnRfdmVyc2lvbhgBIAEoCRIRCgl0ZW5hbnRfaWQYAiABKAkSGAoQY29udHJhY3RfdmVyc2lvbhgDIAEoCRIgChhsYXN0X3NlZW5fc3RhdGVfY2hlY2tzdW0YBCABKAlKBQhkEMgBIogBChFIYW5kc2hha2VSZXNwb25zZRISCgpzZXNzaW9uX2lkGAEgASgJEiAKGHNlcnZlcl9jb250cmFjdF92ZXJzaW9ucxgCIAEoCRIXCg9yZXN5bmNfcmVxdWlyZWQYAyABKAgSHQoVZGVzaXJlZF9hZ2VudF92ZXJzaW9uGAQgASgJSgUIZBDIASI9Cg5Db25uZWN0UmVxdWVzdBIkCgVldmVudBgBIAEoCzIVLmluYXJpLmFnZW50LnYxLkV2ZW50SgUIZBDIASI+Cg9Db25uZWN0UmVzcG9uc2USJAoFZXZlbnQYASABKAsyFS5pbmFyaS5hZ2VudC52MS5FdmVudEoFCGQQyAEq0wMKCUV2ZW50VHlwZRIaChZFVkVOVF9UWVBFX1VOU1BFQ0lGSUVEEAASIAocRVZFTlRfVFlQRV9DQVBBQklMSVRZX1VQREFURRABEhwKGEVWRU5UX1RZUEVfU1RBVFVTX1VQREFURRACEhMKD0VWRU5UX1RZUEVfUElORxADEhMKD0VWRU5UX1RZUEVfUE9ORxAEEh0KGUVWRU5UX1RZUEVfUkVTWU5DX1JFUVVFU1QQBRIeChpFVkVOVF9UWVBFX1JFU1lOQ19SRVNQT05TRRAGEhsKF0VWRU5UX1RZUEVfQVBQTFlfQlVORExFEAcSIgoeRVZFTlRfVFlQRV9SRUdJU1RFUl9BUkdPQ0RfQVBQEAgSHAoYRVZFTlRfVFlQRV9JTlZPS0VfQUNUSU9OEAkSIgoeRVZFTlRfVFlQRV9SRU5ERVJfUkdEX0lOU1RBTkNFEAoSGgoWRVZFTlRfVFlQRV9DT01NQU5EX0FDSxALEhsKF0VWRU5UX1RZUEVfQ09NTUFORF9OQUNLEAwSIQodRVZFTlRfVFlQRV9TRUNSRVRfU1RPUkVfQVBQTFkQDRIiCh5FVkVOVF9UWVBFX1NFQ1JFVF9TVE9SRV9ERUxFVEUQDjJkChJFdmVudFN0cmVhbVNlcnZpY2USTgoHQ29ubmVjdBIeLmluYXJpLmFnZW50LnYxLkNvbm5lY3RSZXF1ZXN0Gh8uaW5hcmkuYWdlbnQudjEuQ29ubmVjdFJlc3BvbnNlKAEwAUI9WjtnaXRodWIuY29tLzdLLUluYXJpL2luYXJpLWFwaS9nZW4vZ28vaW5hcmkvYWdlbnQvdjE7YWdlbnR2MWIGcHJvdG8z", [file_google_protobuf_any, file_google_protobuf_timestamp]);
16
+
17
+ /**
18
+ * Event is the CloudEvents-style envelope exchanged on the agent EventStream
19
+ * (plan §4.3). Concrete payloads are typed messages packed into `payload`
20
+ * (google.protobuf.Any); see events.proto and commands.proto.
21
+ *
22
+ * @generated from message inari.agent.v1.Event
23
+ */
24
+ export type Event = Message<"inari.agent.v1.Event"> & {
25
+ /**
26
+ * @generated from field: string event_id = 1;
27
+ */
28
+ eventId: string;
29
+
30
+ /**
31
+ * @generated from field: string resource_id = 2;
32
+ */
33
+ resourceId: string;
34
+
35
+ /**
36
+ * Reverse-DNS event type, e.g. inari.agent.ping.v1.
37
+ *
38
+ * @generated from field: string type = 3;
39
+ */
40
+ type: string;
41
+
42
+ /**
43
+ * @generated from field: google.protobuf.Any payload = 4;
44
+ */
45
+ payload?: Any | undefined;
46
+
47
+ /**
48
+ * @generated from field: google.protobuf.Timestamp time = 5;
49
+ */
50
+ time?: Timestamp | undefined;
51
+
52
+ /**
53
+ * Per-agent monotonic sequence number; the gateway uses gaps to trigger
54
+ * checksum-based resync after reconnects (plan §5.2).
55
+ *
56
+ * @generated from field: int64 sequence = 6;
57
+ */
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);
67
+
68
+ /**
69
+ * HandshakeRequest opens a session; the agent always dials out to the control
70
+ * plane (pull, never push). Authentication is the per-cluster OIDC JWT with a
71
+ * hardcoded cluster_id claim (plan §5.3) — the handshake only negotiates
72
+ * contract versions and resync state.
73
+ *
74
+ * @generated from message inari.agent.v1.HandshakeRequest
75
+ */
76
+ export type HandshakeRequest = Message<"inari.agent.v1.HandshakeRequest"> & {
77
+ /**
78
+ * @generated from field: string agent_version = 1;
79
+ */
80
+ agentVersion: string;
81
+
82
+ /**
83
+ * @generated from field: string tenant_id = 2;
84
+ */
85
+ tenantId: string;
86
+
87
+ /**
88
+ * Contract package this agent implements, e.g. "inari.agent.v1".
89
+ *
90
+ * @generated from field: string contract_version = 3;
91
+ */
92
+ contractVersion: string;
93
+
94
+ /**
95
+ * Checksum of the agent state the gateway last acknowledged; a mismatch on
96
+ * the server side triggers a resync (plan §5.2).
97
+ *
98
+ * @generated from field: string last_seen_state_checksum = 4;
99
+ */
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);
109
+
110
+ /**
111
+ * @generated from message inari.agent.v1.HandshakeResponse
112
+ */
113
+ export type HandshakeResponse = Message<"inari.agent.v1.HandshakeResponse"> & {
114
+ /**
115
+ * @generated from field: string session_id = 1;
116
+ */
117
+ sessionId: string;
118
+
119
+ /**
120
+ * Contract versions the gateway supports (N/N−1, plan §5.11),
121
+ * comma-separated, e.g. "inari.agent.v1".
122
+ *
123
+ * @generated from field: string server_contract_versions = 2;
124
+ */
125
+ serverContractVersions: string;
126
+
127
+ /**
128
+ * True when the agent must re-send full state (checksum mismatch or gap).
129
+ *
130
+ * @generated from field: bool resync_required = 3;
131
+ */
132
+ resyncRequired: boolean;
133
+
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
+ };
144
+
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);
151
+
152
+ /**
153
+ * ConnectRequest carries one Event from agent to gateway on the stream.
154
+ *
155
+ * @generated from message inari.agent.v1.ConnectRequest
156
+ */
157
+ export type ConnectRequest = Message<"inari.agent.v1.ConnectRequest"> & {
158
+ /**
159
+ * @generated from field: inari.agent.v1.Event event = 1;
160
+ */
161
+ event?: Event | undefined;
162
+ };
163
+
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);
170
+
171
+ /**
172
+ * ConnectResponse carries one Event from gateway to agent on the stream.
173
+ *
174
+ * @generated from message inari.agent.v1.ConnectResponse
175
+ */
176
+ export type ConnectResponse = Message<"inari.agent.v1.ConnectResponse"> & {
177
+ /**
178
+ * @generated from field: inari.agent.v1.Event event = 1;
179
+ */
180
+ event?: Event | undefined;
181
+ };
182
+
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);
8
189
 
9
190
  /**
10
191
  * EventType enumerates every well-known event/command type carried on the
@@ -118,295 +299,29 @@ export enum EventType {
118
299
  */
119
300
  SECRET_STORE_DELETE = 14,
120
301
  }
121
- // Retrieve enum metadata with: proto3.getEnumType(EventType)
122
- proto3.util.setEnumType(EventType, "inari.agent.v1.EventType", [
123
- { no: 0, name: "EVENT_TYPE_UNSPECIFIED" },
124
- { no: 1, name: "EVENT_TYPE_CAPABILITY_UPDATE" },
125
- { no: 2, name: "EVENT_TYPE_STATUS_UPDATE" },
126
- { no: 3, name: "EVENT_TYPE_PING" },
127
- { no: 4, name: "EVENT_TYPE_PONG" },
128
- { no: 5, name: "EVENT_TYPE_RESYNC_REQUEST" },
129
- { no: 6, name: "EVENT_TYPE_RESYNC_RESPONSE" },
130
- { no: 7, name: "EVENT_TYPE_APPLY_BUNDLE" },
131
- { no: 8, name: "EVENT_TYPE_REGISTER_ARGOCD_APP" },
132
- { no: 9, name: "EVENT_TYPE_INVOKE_ACTION" },
133
- { no: 10, name: "EVENT_TYPE_RENDER_RGD_INSTANCE" },
134
- { no: 11, name: "EVENT_TYPE_COMMAND_ACK" },
135
- { no: 12, name: "EVENT_TYPE_COMMAND_NACK" },
136
- { no: 13, name: "EVENT_TYPE_SECRET_STORE_APPLY" },
137
- { no: 14, name: "EVENT_TYPE_SECRET_STORE_DELETE" },
138
- ]);
139
302
 
140
303
  /**
141
- * Event is the CloudEvents-style envelope exchanged on the agent EventStream
142
- * (plan §4.3). Concrete payloads are typed messages packed into `payload`
143
- * (google.protobuf.Any); see events.proto and commands.proto.
144
- *
145
- * @generated from message inari.agent.v1.Event
304
+ * Describes the enum inari.agent.v1.EventType.
146
305
  */
147
- export class Event extends Message<Event> {
148
- /**
149
- * @generated from field: string event_id = 1;
150
- */
151
- eventId = "";
152
-
153
- /**
154
- * @generated from field: string resource_id = 2;
155
- */
156
- resourceId = "";
157
-
158
- /**
159
- * Reverse-DNS event type, e.g. inari.agent.ping.v1.
160
- *
161
- * @generated from field: string type = 3;
162
- */
163
- type = "";
164
-
165
- /**
166
- * @generated from field: google.protobuf.Any payload = 4;
167
- */
168
- payload?: Any;
169
-
170
- /**
171
- * @generated from field: google.protobuf.Timestamp time = 5;
172
- */
173
- time?: Timestamp;
174
-
175
- /**
176
- * Per-agent monotonic sequence number; the gateway uses gaps to trigger
177
- * checksum-based resync after reconnects (plan §5.2).
178
- *
179
- * @generated from field: int64 sequence = 6;
180
- */
181
- sequence = protoInt64.zero;
182
-
183
- constructor(data?: PartialMessage<Event>) {
184
- super();
185
- proto3.util.initPartial(data, this);
186
- }
187
-
188
- static readonly runtime: typeof proto3 = proto3;
189
- static readonly typeName = "inari.agent.v1.Event";
190
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
191
- { no: 1, name: "event_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
192
- { no: 2, name: "resource_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
193
- { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
194
- { no: 4, name: "payload", kind: "message", T: Any },
195
- { no: 5, name: "time", kind: "message", T: Timestamp },
196
- { no: 6, name: "sequence", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
197
- ]);
198
-
199
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Event {
200
- return new Event().fromBinary(bytes, options);
201
- }
202
-
203
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Event {
204
- return new Event().fromJson(jsonValue, options);
205
- }
206
-
207
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Event {
208
- return new Event().fromJsonString(jsonString, options);
209
- }
210
-
211
- static equals(a: Event | PlainMessage<Event> | undefined, b: Event | PlainMessage<Event> | undefined): boolean {
212
- return proto3.util.equals(Event, a, b);
213
- }
214
- }
306
+ export const EventTypeSchema: GenEnum<EventType> = /*@__PURE__*/
307
+ enumDesc(file_inari_agent_v1_agent, 0);
215
308
 
216
309
  /**
217
- * HandshakeRequest opens a session; the agent always dials out to the control
218
- * plane (pull, never push). Authentication is the per-cluster OIDC JWT with a
219
- * hardcoded cluster_id claim (plan §5.3) — the handshake only negotiates
220
- * contract versions and resync state.
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).
221
313
  *
222
- * @generated from message inari.agent.v1.HandshakeRequest
314
+ * @generated from service inari.agent.v1.EventStreamService
223
315
  */
224
- export class HandshakeRequest extends Message<HandshakeRequest> {
225
- /**
226
- * @generated from field: string agent_version = 1;
227
- */
228
- agentVersion = "";
229
-
230
- /**
231
- * @generated from field: string tenant_id = 2;
232
- */
233
- tenantId = "";
234
-
316
+ export const EventStreamService: GenService<{
235
317
  /**
236
- * Contract package this agent implements, e.g. "inari.agent.v1".
237
- *
238
- * @generated from field: string contract_version = 3;
239
- */
240
- contractVersion = "";
241
-
242
- /**
243
- * Checksum of the agent state the gateway last acknowledged; a mismatch on
244
- * the server side triggers a resync (plan §5.2).
245
- *
246
- * @generated from field: string last_seen_state_checksum = 4;
318
+ * @generated from rpc inari.agent.v1.EventStreamService.Connect
247
319
  */
248
- lastSeenStateChecksum = "";
249
-
250
- constructor(data?: PartialMessage<HandshakeRequest>) {
251
- super();
252
- proto3.util.initPartial(data, this);
253
- }
254
-
255
- static readonly runtime: typeof proto3 = proto3;
256
- static readonly typeName = "inari.agent.v1.HandshakeRequest";
257
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
258
- { no: 1, name: "agent_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
259
- { no: 2, name: "tenant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
260
- { no: 3, name: "contract_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
261
- { no: 4, name: "last_seen_state_checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
262
- ]);
263
-
264
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HandshakeRequest {
265
- return new HandshakeRequest().fromBinary(bytes, options);
266
- }
267
-
268
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandshakeRequest {
269
- return new HandshakeRequest().fromJson(jsonValue, options);
270
- }
271
-
272
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandshakeRequest {
273
- return new HandshakeRequest().fromJsonString(jsonString, options);
274
- }
275
-
276
- static equals(a: HandshakeRequest | PlainMessage<HandshakeRequest> | undefined, b: HandshakeRequest | PlainMessage<HandshakeRequest> | undefined): boolean {
277
- return proto3.util.equals(HandshakeRequest, a, b);
278
- }
279
- }
280
-
281
- /**
282
- * @generated from message inari.agent.v1.HandshakeResponse
283
- */
284
- export class HandshakeResponse extends Message<HandshakeResponse> {
285
- /**
286
- * @generated from field: string session_id = 1;
287
- */
288
- sessionId = "";
289
-
290
- /**
291
- * Contract versions the gateway supports (N/N−1, plan §5.11),
292
- * comma-separated, e.g. "inari.agent.v1".
293
- *
294
- * @generated from field: string server_contract_versions = 2;
295
- */
296
- serverContractVersions = "";
297
-
298
- /**
299
- * True when the agent must re-send full state (checksum mismatch or gap).
300
- *
301
- * @generated from field: bool resync_required = 3;
302
- */
303
- resyncRequired = false;
304
-
305
- constructor(data?: PartialMessage<HandshakeResponse>) {
306
- super();
307
- proto3.util.initPartial(data, this);
308
- }
309
-
310
- static readonly runtime: typeof proto3 = proto3;
311
- static readonly typeName = "inari.agent.v1.HandshakeResponse";
312
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
313
- { no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
314
- { no: 2, name: "server_contract_versions", kind: "scalar", T: 9 /* ScalarType.STRING */ },
315
- { no: 3, name: "resync_required", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
316
- ]);
317
-
318
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HandshakeResponse {
319
- return new HandshakeResponse().fromBinary(bytes, options);
320
- }
321
-
322
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HandshakeResponse {
323
- return new HandshakeResponse().fromJson(jsonValue, options);
324
- }
325
-
326
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HandshakeResponse {
327
- return new HandshakeResponse().fromJsonString(jsonString, options);
328
- }
329
-
330
- static equals(a: HandshakeResponse | PlainMessage<HandshakeResponse> | undefined, b: HandshakeResponse | PlainMessage<HandshakeResponse> | undefined): boolean {
331
- return proto3.util.equals(HandshakeResponse, a, b);
332
- }
333
- }
334
-
335
- /**
336
- * ConnectRequest carries one Event from agent to gateway on the stream.
337
- *
338
- * @generated from message inari.agent.v1.ConnectRequest
339
- */
340
- export class ConnectRequest extends Message<ConnectRequest> {
341
- /**
342
- * @generated from field: inari.agent.v1.Event event = 1;
343
- */
344
- event?: Event;
345
-
346
- constructor(data?: PartialMessage<ConnectRequest>) {
347
- super();
348
- proto3.util.initPartial(data, this);
349
- }
350
-
351
- static readonly runtime: typeof proto3 = proto3;
352
- static readonly typeName = "inari.agent.v1.ConnectRequest";
353
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
354
- { no: 1, name: "event", kind: "message", T: Event },
355
- ]);
356
-
357
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectRequest {
358
- return new ConnectRequest().fromBinary(bytes, options);
359
- }
360
-
361
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectRequest {
362
- return new ConnectRequest().fromJson(jsonValue, options);
363
- }
364
-
365
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectRequest {
366
- return new ConnectRequest().fromJsonString(jsonString, options);
367
- }
368
-
369
- static equals(a: ConnectRequest | PlainMessage<ConnectRequest> | undefined, b: ConnectRequest | PlainMessage<ConnectRequest> | undefined): boolean {
370
- return proto3.util.equals(ConnectRequest, a, b);
371
- }
372
- }
373
-
374
- /**
375
- * ConnectResponse carries one Event from gateway to agent on the stream.
376
- *
377
- * @generated from message inari.agent.v1.ConnectResponse
378
- */
379
- export class ConnectResponse extends Message<ConnectResponse> {
380
- /**
381
- * @generated from field: inari.agent.v1.Event event = 1;
382
- */
383
- event?: Event;
384
-
385
- constructor(data?: PartialMessage<ConnectResponse>) {
386
- super();
387
- proto3.util.initPartial(data, this);
388
- }
389
-
390
- static readonly runtime: typeof proto3 = proto3;
391
- static readonly typeName = "inari.agent.v1.ConnectResponse";
392
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
393
- { no: 1, name: "event", kind: "message", T: Event },
394
- ]);
395
-
396
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectResponse {
397
- return new ConnectResponse().fromBinary(bytes, options);
398
- }
399
-
400
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectResponse {
401
- return new ConnectResponse().fromJson(jsonValue, options);
402
- }
403
-
404
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectResponse {
405
- return new ConnectResponse().fromJsonString(jsonString, options);
406
- }
407
-
408
- static equals(a: ConnectResponse | PlainMessage<ConnectResponse> | undefined, b: ConnectResponse | PlainMessage<ConnectResponse> | undefined): boolean {
409
- return proto3.util.equals(ConnectResponse, a, b);
410
- }
411
- }
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);
412
327