@7k-inari/api-client 0.3.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.
@@ -0,0 +1,681 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file inari/agent/v1/events.proto (package inari.agent.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3, protoInt64, Struct, Timestamp } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * CapabilityKind classifies a discovered cluster capability (plan §5.3
11
+ * discovery watches).
12
+ *
13
+ * @generated from enum inari.agent.v1.CapabilityKind
14
+ */
15
+ export enum CapabilityKind {
16
+ /**
17
+ * @generated from enum value: CAPABILITY_KIND_UNSPECIFIED = 0;
18
+ */
19
+ UNSPECIFIED = 0,
20
+
21
+ /**
22
+ * @generated from enum value: CAPABILITY_KIND_CRD = 1;
23
+ */
24
+ CRD = 1,
25
+
26
+ /**
27
+ * @generated from enum value: CAPABILITY_KIND_OLM_CSV = 2;
28
+ */
29
+ OLM_CSV = 2,
30
+
31
+ /**
32
+ * @generated from enum value: CAPABILITY_KIND_CROSSPLANE_XRD = 3;
33
+ */
34
+ CROSSPLANE_XRD = 3,
35
+
36
+ /**
37
+ * @generated from enum value: CAPABILITY_KIND_CROSSPLANE_PROVIDER = 4;
38
+ */
39
+ CROSSPLANE_PROVIDER = 4,
40
+
41
+ /**
42
+ * @generated from enum value: CAPABILITY_KIND_KRO_RGD = 5;
43
+ */
44
+ KRO_RGD = 5,
45
+
46
+ /**
47
+ * @generated from enum value: CAPABILITY_KIND_HELM_RELEASE = 6;
48
+ */
49
+ HELM_RELEASE = 6,
50
+
51
+ /**
52
+ * @generated from enum value: CAPABILITY_KIND_CLUSTER_ADDON = 7;
53
+ */
54
+ CLUSTER_ADDON = 7,
55
+
56
+ /**
57
+ * @generated from enum value: CAPABILITY_KIND_CLUSTER_METADATA = 8;
58
+ */
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
+ ]);
73
+
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
+ /**
82
+ * @generated from enum value: MANAGEMENT_MODE_UNSPECIFIED = 0;
83
+ */
84
+ UNSPECIFIED = 0,
85
+
86
+ /**
87
+ * Bring under Inari management (explicit, audited, per-resource).
88
+ *
89
+ * @generated from enum value: MANAGEMENT_MODE_ADOPT = 1;
90
+ */
91
+ ADOPT = 1,
92
+
93
+ /**
94
+ * Inventory without mutation (the default).
95
+ *
96
+ * @generated from enum value: MANAGEMENT_MODE_OBSERVE_ONLY = 2;
97
+ */
98
+ OBSERVE_ONLY = 2,
99
+
100
+ /**
101
+ * Excluded from inventory entirely.
102
+ *
103
+ * @generated from enum value: MANAGEMENT_MODE_IGNORE = 3;
104
+ */
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
+ ]);
114
+
115
+ /**
116
+ * CapabilityAction distinguishes upserts from removals in incremental
117
+ * capability updates.
118
+ *
119
+ * @generated from enum inari.agent.v1.CapabilityAction
120
+ */
121
+ export enum CapabilityAction {
122
+ /**
123
+ * @generated from enum value: CAPABILITY_ACTION_UNSPECIFIED = 0;
124
+ */
125
+ UNSPECIFIED = 0,
126
+
127
+ /**
128
+ * @generated from enum value: CAPABILITY_ACTION_UPSERT = 1;
129
+ */
130
+ UPSERT = 1,
131
+
132
+ /**
133
+ * @generated from enum value: CAPABILITY_ACTION_DELETE = 2;
134
+ */
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
+ ]);
143
+
144
+ /**
145
+ * HealthStatus mirrors ArgoCD-style health for reported resources.
146
+ *
147
+ * @generated from enum inari.agent.v1.HealthStatus
148
+ */
149
+ export enum HealthStatus {
150
+ /**
151
+ * @generated from enum value: HEALTH_STATUS_UNSPECIFIED = 0;
152
+ */
153
+ UNSPECIFIED = 0,
154
+
155
+ /**
156
+ * @generated from enum value: HEALTH_STATUS_UNKNOWN = 1;
157
+ */
158
+ UNKNOWN = 1,
159
+
160
+ /**
161
+ * @generated from enum value: HEALTH_STATUS_HEALTHY = 2;
162
+ */
163
+ HEALTHY = 2,
164
+
165
+ /**
166
+ * @generated from enum value: HEALTH_STATUS_PROGRESSING = 3;
167
+ */
168
+ PROGRESSING = 3,
169
+
170
+ /**
171
+ * @generated from enum value: HEALTH_STATUS_DEGRADED = 4;
172
+ */
173
+ DEGRADED = 4,
174
+
175
+ /**
176
+ * @generated from enum value: HEALTH_STATUS_SUSPENDED = 5;
177
+ */
178
+ SUSPENDED = 5,
179
+
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
+ ]);
195
+
196
+ /**
197
+ * SyncState mirrors ArgoCD-style sync state for reported resources.
198
+ *
199
+ * @generated from enum inari.agent.v1.SyncState
200
+ */
201
+ export enum SyncState {
202
+ /**
203
+ * @generated from enum value: SYNC_STATE_UNSPECIFIED = 0;
204
+ */
205
+ UNSPECIFIED = 0,
206
+
207
+ /**
208
+ * @generated from enum value: SYNC_STATE_SYNCED = 1;
209
+ */
210
+ SYNCED = 1,
211
+
212
+ /**
213
+ * @generated from enum value: SYNC_STATE_OUT_OF_SYNC = 2;
214
+ */
215
+ OUT_OF_SYNC = 2,
216
+
217
+ /**
218
+ * @generated from enum value: SYNC_STATE_ERROR = 3;
219
+ */
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
+ ]);
229
+
230
+ /**
231
+ * ResourceRef identifies a Kubernetes object the agent reports on or is
232
+ * asked to act upon.
233
+ *
234
+ * @generated from message inari.agent.v1.ResourceRef
235
+ */
236
+ export class ResourceRef extends Message<ResourceRef> {
237
+ /**
238
+ * @generated from field: string kind = 1;
239
+ */
240
+ kind = "";
241
+
242
+ /**
243
+ * @generated from field: string name = 2;
244
+ */
245
+ name = "";
246
+
247
+ /**
248
+ * @generated from field: string namespace = 3;
249
+ */
250
+ namespace = "";
251
+
252
+ /**
253
+ * @generated from field: string uid = 4;
254
+ */
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
+ }
287
+
288
+ /**
289
+ * Capability is one discovered capability: a CRD, OLM CSV, Crossplane
290
+ * XRD/provider, KRO RGD, Helm release, addon, or cluster metadata item.
291
+ *
292
+ * @generated from message inari.agent.v1.Capability
293
+ */
294
+ export class Capability extends Message<Capability> {
295
+ /**
296
+ * @generated from field: inari.agent.v1.CapabilityKind kind = 1;
297
+ */
298
+ kind = CapabilityKind.UNSPECIFIED;
299
+
300
+ /**
301
+ * @generated from field: string name = 2;
302
+ */
303
+ name = "";
304
+
305
+ /**
306
+ * @generated from field: string group = 3;
307
+ */
308
+ group = "";
309
+
310
+ /**
311
+ * @generated from field: string version = 4;
312
+ */
313
+ version = "";
314
+
315
+ /**
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;
320
+ */
321
+ schema?: Struct;
322
+
323
+ /**
324
+ * UI hints from OLM specDescriptors / x-descriptors (plan §5.5).
325
+ *
326
+ * @generated from field: google.protobuf.Struct ui_hints = 6;
327
+ */
328
+ uiHints?: Struct;
329
+
330
+ /**
331
+ * @generated from field: inari.agent.v1.ManagementMode management_mode = 7;
332
+ */
333
+ managementMode = ManagementMode.UNSPECIFIED;
334
+
335
+ /**
336
+ * @generated from field: inari.agent.v1.CapabilityAction action = 8;
337
+ */
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
+ }
373
+ }
374
+
375
+ /**
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).
379
+ *
380
+ * @generated from message inari.agent.v1.CapabilityUpdate
381
+ */
382
+ export class CapabilityUpdate extends Message<CapabilityUpdate> {
383
+ /**
384
+ * @generated from field: bool full_sync = 1;
385
+ */
386
+ fullSync = false;
387
+
388
+ /**
389
+ * @generated from field: repeated inari.agent.v1.Capability capabilities = 2;
390
+ */
391
+ capabilities: Capability[] = [];
392
+
393
+ /**
394
+ * Checksum over the agent's full capability state; the gateway compares it
395
+ * after reconnect to decide on resync (plan §5.2).
396
+ *
397
+ * @generated from field: string state_checksum = 3;
398
+ */
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
+ }
425
+
426
+ static equals(a: CapabilityUpdate | PlainMessage<CapabilityUpdate> | undefined, b: CapabilityUpdate | PlainMessage<CapabilityUpdate> | undefined): boolean {
427
+ return proto3.util.equals(CapabilityUpdate, a, b);
428
+ }
429
+ }
430
+
431
+ /**
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.
435
+ *
436
+ * @generated from message inari.agent.v1.StatusUpdate
437
+ */
438
+ export class StatusUpdate extends Message<StatusUpdate> {
439
+ /**
440
+ * @generated from field: inari.agent.v1.ResourceRef resource = 1;
441
+ */
442
+ resource?: ResourceRef;
443
+
444
+ /**
445
+ * @generated from field: inari.agent.v1.HealthStatus health = 2;
446
+ */
447
+ health = HealthStatus.UNSPECIFIED;
448
+
449
+ /**
450
+ * @generated from field: inari.agent.v1.SyncState sync = 3;
451
+ */
452
+ sync = SyncState.UNSPECIFIED;
453
+
454
+ /**
455
+ * @generated from field: string message = 4;
456
+ */
457
+ message = "";
458
+
459
+ /**
460
+ * @generated from field: google.protobuf.Timestamp observed_at = 5;
461
+ */
462
+ observedAt?: Timestamp;
463
+
464
+ /**
465
+ * Checksum over the agent's reported-state view (resync input).
466
+ *
467
+ * @generated from field: string state_checksum = 6;
468
+ */
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
+ }
503
+
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
+ /**
511
+ * @generated from field: google.protobuf.Timestamp time = 1;
512
+ */
513
+ time?: Timestamp;
514
+
515
+ /**
516
+ * @generated from field: int64 sequence = 2;
517
+ */
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
+ }
548
+
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
+ /**
556
+ * @generated from field: google.protobuf.Timestamp time = 1;
557
+ */
558
+ time?: Timestamp;
559
+
560
+ /**
561
+ * @generated from field: int64 sequence = 2;
562
+ */
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
+ }
592
+ }
593
+
594
+ /**
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
600
+ */
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
+ }
634
+
635
+ /**
636
+ * ResyncResponse marks resync completion from the agent.
637
+ *
638
+ * @generated from message inari.agent.v1.ResyncResponse
639
+ */
640
+ export class ResyncResponse extends Message<ResyncResponse> {
641
+ /**
642
+ * @generated from field: string state_checksum = 1;
643
+ */
644
+ stateChecksum = "";
645
+
646
+ /**
647
+ * Last gateway-acknowledged sequence the agent has applied state through.
648
+ *
649
+ * @generated from field: int64 applied_through_sequence = 2;
650
+ */
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
+ }
672
+
673
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResyncResponse {
674
+ return new ResyncResponse().fromJsonString(jsonString, options);
675
+ }
676
+
677
+ static equals(a: ResyncResponse | PlainMessage<ResyncResponse> | undefined, b: ResyncResponse | PlainMessage<ResyncResponse> | undefined): boolean {
678
+ return proto3.util.equals(ResyncResponse, a, b);
679
+ }
680
+ }
681
+
@@ -0,0 +1,30 @@
1
+ // @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
2
+ // @generated from file inari/agent/v1/registration.proto (package inari.agent.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { RegisterClusterRequest, RegisterClusterResponse } from "./registration_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * RegistrationService is the one-time bootstrap RPC an agent calls before it
11
+ * can open the EventStream (plan §5.3). It is unauthenticated except for the
12
+ * registration token itself.
13
+ *
14
+ * @generated from service inari.agent.v1.RegistrationService
15
+ */
16
+ export const RegistrationService = {
17
+ typeName: "inari.agent.v1.RegistrationService",
18
+ methods: {
19
+ /**
20
+ * @generated from rpc inari.agent.v1.RegistrationService.RegisterCluster
21
+ */
22
+ registerCluster: {
23
+ name: "RegisterCluster",
24
+ I: RegisterClusterRequest,
25
+ O: RegisterClusterResponse,
26
+ kind: MethodKind.Unary,
27
+ },
28
+ }
29
+ } as const;
30
+