@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,599 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file inari/agent/v1/commands.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 { Duration, Message, proto3, Struct } from "@bufbuild/protobuf";
8
+ import { ResourceRef } from "./events_pb.js";
9
+
10
+ /**
11
+ * CommitPolicy selects how rendered manifests reach tenant Git (per-tenant
12
+ * policy, plan §5.3 GitOps decisions).
13
+ *
14
+ * @generated from enum inari.agent.v1.CommitPolicy
15
+ */
16
+ export enum CommitPolicy {
17
+ /**
18
+ * @generated from enum value: COMMIT_POLICY_UNSPECIFIED = 0;
19
+ */
20
+ UNSPECIFIED = 0,
21
+
22
+ /**
23
+ * @generated from enum value: COMMIT_POLICY_DIRECT_COMMIT = 1;
24
+ */
25
+ DIRECT_COMMIT = 1,
26
+
27
+ /**
28
+ * @generated from enum value: COMMIT_POLICY_PULL_REQUEST = 2;
29
+ */
30
+ PULL_REQUEST = 2,
31
+ }
32
+ // Retrieve enum metadata with: proto3.getEnumType(CommitPolicy)
33
+ proto3.util.setEnumType(CommitPolicy, "inari.agent.v1.CommitPolicy", [
34
+ { no: 0, name: "COMMIT_POLICY_UNSPECIFIED" },
35
+ { no: 1, name: "COMMIT_POLICY_DIRECT_COMMIT" },
36
+ { no: 2, name: "COMMIT_POLICY_PULL_REQUEST" },
37
+ ]);
38
+
39
+ /**
40
+ * CommandResult is the outcome reported in a CommandAck.
41
+ *
42
+ * @generated from enum inari.agent.v1.CommandResult
43
+ */
44
+ export enum CommandResult {
45
+ /**
46
+ * @generated from enum value: COMMAND_RESULT_UNSPECIFIED = 0;
47
+ */
48
+ UNSPECIFIED = 0,
49
+
50
+ /**
51
+ * Accepted and queued by the agent.
52
+ *
53
+ * @generated from enum value: COMMAND_RESULT_ACCEPTED = 1;
54
+ */
55
+ ACCEPTED = 1,
56
+
57
+ /**
58
+ * Fully applied in the tenant environment.
59
+ *
60
+ * @generated from enum value: COMMAND_RESULT_APPLIED = 2;
61
+ */
62
+ APPLIED = 2,
63
+
64
+ /**
65
+ * Failed; message carries the reason.
66
+ *
67
+ * @generated from enum value: COMMAND_RESULT_FAILED = 3;
68
+ */
69
+ FAILED = 3,
70
+ }
71
+ // Retrieve enum metadata with: proto3.getEnumType(CommandResult)
72
+ proto3.util.setEnumType(CommandResult, "inari.agent.v1.CommandResult", [
73
+ { no: 0, name: "COMMAND_RESULT_UNSPECIFIED" },
74
+ { no: 1, name: "COMMAND_RESULT_ACCEPTED" },
75
+ { no: 2, name: "COMMAND_RESULT_APPLIED" },
76
+ { no: 3, name: "COMMAND_RESULT_FAILED" },
77
+ ]);
78
+
79
+ /**
80
+ * GitTarget identifies a repository + path rendered output is written to.
81
+ * The default is the platform-owned `<tenant>-inari-state` repository
82
+ * (plan §5.3 GitOps decisions); application repos stay untouched.
83
+ *
84
+ * @generated from message inari.agent.v1.GitTarget
85
+ */
86
+ export class GitTarget extends Message<GitTarget> {
87
+ /**
88
+ * @generated from field: string repo = 1;
89
+ */
90
+ repo = "";
91
+
92
+ /**
93
+ * @generated from field: string path = 2;
94
+ */
95
+ path = "";
96
+
97
+ /**
98
+ * Branch for direct commits, or base branch for pull requests.
99
+ *
100
+ * @generated from field: string branch = 3;
101
+ */
102
+ branch = "";
103
+
104
+ constructor(data?: PartialMessage<GitTarget>) {
105
+ super();
106
+ proto3.util.initPartial(data, this);
107
+ }
108
+
109
+ static readonly runtime: typeof proto3 = proto3;
110
+ static readonly typeName = "inari.agent.v1.GitTarget";
111
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
112
+ { no: 1, name: "repo", kind: "scalar", T: 9 /* ScalarType.STRING */ },
113
+ { no: 2, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
114
+ { no: 3, name: "branch", kind: "scalar", T: 9 /* ScalarType.STRING */ },
115
+ ]);
116
+
117
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitTarget {
118
+ return new GitTarget().fromBinary(bytes, options);
119
+ }
120
+
121
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitTarget {
122
+ return new GitTarget().fromJson(jsonValue, options);
123
+ }
124
+
125
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitTarget {
126
+ return new GitTarget().fromJsonString(jsonString, options);
127
+ }
128
+
129
+ static equals(a: GitTarget | PlainMessage<GitTarget> | undefined, b: GitTarget | PlainMessage<GitTarget> | undefined): boolean {
130
+ return proto3.util.equals(GitTarget, a, b);
131
+ }
132
+ }
133
+
134
+ /**
135
+ * ApplyBundle directs the agent to render a bundle (Helm/KRO/plain manifests)
136
+ * and write it to tenant Git (plan §5.3 step "Reconcile desired state").
137
+ *
138
+ * @generated from message inari.agent.v1.ApplyBundle
139
+ */
140
+ export class ApplyBundle extends Message<ApplyBundle> {
141
+ /**
142
+ * @generated from field: string command_id = 1;
143
+ */
144
+ commandId = "";
145
+
146
+ /**
147
+ * @generated from oneof inari.agent.v1.ApplyBundle.source
148
+ */
149
+ source: {
150
+ /**
151
+ * Signed OCI artifact reference, e.g. oci://registry/bundle:v1.2.3.
152
+ *
153
+ * @generated from field: string oci_ref = 2;
154
+ */
155
+ value: string;
156
+ case: "ociRef";
157
+ } | {
158
+ /**
159
+ * Git source URL for bundle content.
160
+ *
161
+ * @generated from field: string git_url = 3;
162
+ */
163
+ value: string;
164
+ case: "gitUrl";
165
+ } | { case: undefined; value?: undefined } = { case: undefined };
166
+
167
+ /**
168
+ * @generated from field: inari.agent.v1.GitTarget target = 4;
169
+ */
170
+ target?: GitTarget;
171
+
172
+ /**
173
+ * @generated from field: inari.agent.v1.CommitPolicy policy = 5;
174
+ */
175
+ policy = CommitPolicy.UNSPECIFIED;
176
+
177
+ /**
178
+ * Expected content checksum; the agent verifies before applying.
179
+ *
180
+ * @generated from field: string checksum = 6;
181
+ */
182
+ checksum = "";
183
+
184
+ constructor(data?: PartialMessage<ApplyBundle>) {
185
+ super();
186
+ proto3.util.initPartial(data, this);
187
+ }
188
+
189
+ static readonly runtime: typeof proto3 = proto3;
190
+ static readonly typeName = "inari.agent.v1.ApplyBundle";
191
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
192
+ { no: 1, name: "command_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
193
+ { no: 2, name: "oci_ref", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" },
194
+ { no: 3, name: "git_url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "source" },
195
+ { no: 4, name: "target", kind: "message", T: GitTarget },
196
+ { no: 5, name: "policy", kind: "enum", T: proto3.getEnumType(CommitPolicy) },
197
+ { no: 6, name: "checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
198
+ ]);
199
+
200
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApplyBundle {
201
+ return new ApplyBundle().fromBinary(bytes, options);
202
+ }
203
+
204
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApplyBundle {
205
+ return new ApplyBundle().fromJson(jsonValue, options);
206
+ }
207
+
208
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApplyBundle {
209
+ return new ApplyBundle().fromJsonString(jsonString, options);
210
+ }
211
+
212
+ static equals(a: ApplyBundle | PlainMessage<ApplyBundle> | undefined, b: ApplyBundle | PlainMessage<ApplyBundle> | undefined): boolean {
213
+ return proto3.util.equals(ApplyBundle, a, b);
214
+ }
215
+ }
216
+
217
+ /**
218
+ * ApplicationSource describes the ArgoCD Application source.
219
+ *
220
+ * @generated from message inari.agent.v1.ApplicationSource
221
+ */
222
+ export class ApplicationSource extends Message<ApplicationSource> {
223
+ /**
224
+ * @generated from field: string repo_url = 1;
225
+ */
226
+ repoUrl = "";
227
+
228
+ /**
229
+ * @generated from field: string path = 2;
230
+ */
231
+ path = "";
232
+
233
+ /**
234
+ * Helm chart name when the source is a chart instead of a path.
235
+ *
236
+ * @generated from field: string chart = 3;
237
+ */
238
+ chart = "";
239
+
240
+ /**
241
+ * @generated from field: string target_revision = 4;
242
+ */
243
+ targetRevision = "";
244
+
245
+ constructor(data?: PartialMessage<ApplicationSource>) {
246
+ super();
247
+ proto3.util.initPartial(data, this);
248
+ }
249
+
250
+ static readonly runtime: typeof proto3 = proto3;
251
+ static readonly typeName = "inari.agent.v1.ApplicationSource";
252
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
253
+ { no: 1, name: "repo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
254
+ { no: 2, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
255
+ { no: 3, name: "chart", kind: "scalar", T: 9 /* ScalarType.STRING */ },
256
+ { no: 4, name: "target_revision", kind: "scalar", T: 9 /* ScalarType.STRING */ },
257
+ ]);
258
+
259
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApplicationSource {
260
+ return new ApplicationSource().fromBinary(bytes, options);
261
+ }
262
+
263
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApplicationSource {
264
+ return new ApplicationSource().fromJson(jsonValue, options);
265
+ }
266
+
267
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApplicationSource {
268
+ return new ApplicationSource().fromJsonString(jsonString, options);
269
+ }
270
+
271
+ static equals(a: ApplicationSource | PlainMessage<ApplicationSource> | undefined, b: ApplicationSource | PlainMessage<ApplicationSource> | undefined): boolean {
272
+ return proto3.util.equals(ApplicationSource, a, b);
273
+ }
274
+ }
275
+
276
+ /**
277
+ * SyncPolicy mirrors the ArgoCD Application sync policy knobs Inari manages.
278
+ *
279
+ * @generated from message inari.agent.v1.SyncPolicy
280
+ */
281
+ export class SyncPolicy extends Message<SyncPolicy> {
282
+ /**
283
+ * @generated from field: bool automated = 1;
284
+ */
285
+ automated = false;
286
+
287
+ /**
288
+ * @generated from field: bool self_heal = 2;
289
+ */
290
+ selfHeal = false;
291
+
292
+ /**
293
+ * @generated from field: bool prune = 3;
294
+ */
295
+ prune = false;
296
+
297
+ constructor(data?: PartialMessage<SyncPolicy>) {
298
+ super();
299
+ proto3.util.initPartial(data, this);
300
+ }
301
+
302
+ static readonly runtime: typeof proto3 = proto3;
303
+ static readonly typeName = "inari.agent.v1.SyncPolicy";
304
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
305
+ { no: 1, name: "automated", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
306
+ { no: 2, name: "self_heal", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
307
+ { no: 3, name: "prune", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
308
+ ]);
309
+
310
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SyncPolicy {
311
+ return new SyncPolicy().fromBinary(bytes, options);
312
+ }
313
+
314
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SyncPolicy {
315
+ return new SyncPolicy().fromJson(jsonValue, options);
316
+ }
317
+
318
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SyncPolicy {
319
+ return new SyncPolicy().fromJsonString(jsonString, options);
320
+ }
321
+
322
+ static equals(a: SyncPolicy | PlainMessage<SyncPolicy> | undefined, b: SyncPolicy | PlainMessage<SyncPolicy> | undefined): boolean {
323
+ return proto3.util.equals(SyncPolicy, a, b);
324
+ }
325
+ }
326
+
327
+ /**
328
+ * RegisterArgoCDApp directs the agent to register (or update/remove) a
329
+ * tenant-local ArgoCD Application (plan §5.3).
330
+ *
331
+ * @generated from message inari.agent.v1.RegisterArgoCDApp
332
+ */
333
+ export class RegisterArgoCDApp extends Message<RegisterArgoCDApp> {
334
+ /**
335
+ * @generated from field: string command_id = 1;
336
+ */
337
+ commandId = "";
338
+
339
+ /**
340
+ * @generated from field: string name = 2;
341
+ */
342
+ name = "";
343
+
344
+ /**
345
+ * @generated from field: string project = 3;
346
+ */
347
+ project = "";
348
+
349
+ /**
350
+ * @generated from field: inari.agent.v1.ApplicationSource source = 4;
351
+ */
352
+ source?: ApplicationSource;
353
+
354
+ /**
355
+ * @generated from field: string destination_server = 5;
356
+ */
357
+ destinationServer = "";
358
+
359
+ /**
360
+ * @generated from field: string destination_namespace = 6;
361
+ */
362
+ destinationNamespace = "";
363
+
364
+ /**
365
+ * @generated from field: inari.agent.v1.SyncPolicy sync_policy = 7;
366
+ */
367
+ syncPolicy?: SyncPolicy;
368
+
369
+ constructor(data?: PartialMessage<RegisterArgoCDApp>) {
370
+ super();
371
+ proto3.util.initPartial(data, this);
372
+ }
373
+
374
+ static readonly runtime: typeof proto3 = proto3;
375
+ static readonly typeName = "inari.agent.v1.RegisterArgoCDApp";
376
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
377
+ { no: 1, name: "command_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
378
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
379
+ { no: 3, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ },
380
+ { no: 4, name: "source", kind: "message", T: ApplicationSource },
381
+ { no: 5, name: "destination_server", kind: "scalar", T: 9 /* ScalarType.STRING */ },
382
+ { no: 6, name: "destination_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
383
+ { no: 7, name: "sync_policy", kind: "message", T: SyncPolicy },
384
+ ]);
385
+
386
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterArgoCDApp {
387
+ return new RegisterArgoCDApp().fromBinary(bytes, options);
388
+ }
389
+
390
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterArgoCDApp {
391
+ return new RegisterArgoCDApp().fromJson(jsonValue, options);
392
+ }
393
+
394
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterArgoCDApp {
395
+ return new RegisterArgoCDApp().fromJsonString(jsonString, options);
396
+ }
397
+
398
+ static equals(a: RegisterArgoCDApp | PlainMessage<RegisterArgoCDApp> | undefined, b: RegisterArgoCDApp | PlainMessage<RegisterArgoCDApp> | undefined): boolean {
399
+ return proto3.util.equals(RegisterArgoCDApp, a, b);
400
+ }
401
+ }
402
+
403
+ /**
404
+ * InvokeAction is an imperative out-of-band operation (sync/refresh/rollback,
405
+ * ArgoCD resource actions incl. Lua custom actions) executed through the
406
+ * tenant-local ArgoCD API, scoped to Inari-managed resources. The agent must
407
+ * fail closed when disconnected (plan §5.3).
408
+ *
409
+ * @generated from message inari.agent.v1.InvokeAction
410
+ */
411
+ export class InvokeAction extends Message<InvokeAction> {
412
+ /**
413
+ * @generated from field: string command_id = 1;
414
+ */
415
+ commandId = "";
416
+
417
+ /**
418
+ * @generated from field: string action = 2;
419
+ */
420
+ action = "";
421
+
422
+ /**
423
+ * @generated from field: inari.agent.v1.ResourceRef resource = 3;
424
+ */
425
+ resource?: ResourceRef;
426
+
427
+ /**
428
+ * @generated from field: google.protobuf.Struct parameters = 4;
429
+ */
430
+ parameters?: Struct;
431
+
432
+ /**
433
+ * @generated from field: google.protobuf.Duration timeout = 5;
434
+ */
435
+ timeout?: Duration;
436
+
437
+ constructor(data?: PartialMessage<InvokeAction>) {
438
+ super();
439
+ proto3.util.initPartial(data, this);
440
+ }
441
+
442
+ static readonly runtime: typeof proto3 = proto3;
443
+ static readonly typeName = "inari.agent.v1.InvokeAction";
444
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
445
+ { no: 1, name: "command_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
446
+ { no: 2, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
447
+ { no: 3, name: "resource", kind: "message", T: ResourceRef },
448
+ { no: 4, name: "parameters", kind: "message", T: Struct },
449
+ { no: 5, name: "timeout", kind: "message", T: Duration },
450
+ ]);
451
+
452
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InvokeAction {
453
+ return new InvokeAction().fromBinary(bytes, options);
454
+ }
455
+
456
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InvokeAction {
457
+ return new InvokeAction().fromJson(jsonValue, options);
458
+ }
459
+
460
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InvokeAction {
461
+ return new InvokeAction().fromJsonString(jsonString, options);
462
+ }
463
+
464
+ static equals(a: InvokeAction | PlainMessage<InvokeAction> | undefined, b: InvokeAction | PlainMessage<InvokeAction> | undefined): boolean {
465
+ return proto3.util.equals(InvokeAction, a, b);
466
+ }
467
+ }
468
+
469
+ /**
470
+ * RenderRgdInstance directs the agent to render a KRO ResourceGraphDefinition
471
+ * instance and write it to tenant Git (plan §5.2 Orchestrator, §5.5).
472
+ *
473
+ * @generated from message inari.agent.v1.RenderRgdInstance
474
+ */
475
+ export class RenderRgdInstance extends Message<RenderRgdInstance> {
476
+ /**
477
+ * @generated from field: string command_id = 1;
478
+ */
479
+ commandId = "";
480
+
481
+ /**
482
+ * Signed OCI reference of the RGD package from inari-catalog.
483
+ *
484
+ * @generated from field: string rgd_ref = 2;
485
+ */
486
+ rgdRef = "";
487
+
488
+ /**
489
+ * @generated from field: string instance_name = 3;
490
+ */
491
+ instanceName = "";
492
+
493
+ /**
494
+ * @generated from field: string target_namespace = 4;
495
+ */
496
+ targetNamespace = "";
497
+
498
+ /**
499
+ * @generated from field: google.protobuf.Struct parameters = 5;
500
+ */
501
+ parameters?: Struct;
502
+
503
+ /**
504
+ * @generated from field: inari.agent.v1.GitTarget target = 6;
505
+ */
506
+ target?: GitTarget;
507
+
508
+ /**
509
+ * @generated from field: inari.agent.v1.CommitPolicy policy = 7;
510
+ */
511
+ policy = CommitPolicy.UNSPECIFIED;
512
+
513
+ constructor(data?: PartialMessage<RenderRgdInstance>) {
514
+ super();
515
+ proto3.util.initPartial(data, this);
516
+ }
517
+
518
+ static readonly runtime: typeof proto3 = proto3;
519
+ static readonly typeName = "inari.agent.v1.RenderRgdInstance";
520
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
521
+ { no: 1, name: "command_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
522
+ { no: 2, name: "rgd_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ },
523
+ { no: 3, name: "instance_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
524
+ { no: 4, name: "target_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
525
+ { no: 5, name: "parameters", kind: "message", T: Struct },
526
+ { no: 6, name: "target", kind: "message", T: GitTarget },
527
+ { no: 7, name: "policy", kind: "enum", T: proto3.getEnumType(CommitPolicy) },
528
+ ]);
529
+
530
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RenderRgdInstance {
531
+ return new RenderRgdInstance().fromBinary(bytes, options);
532
+ }
533
+
534
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RenderRgdInstance {
535
+ return new RenderRgdInstance().fromJson(jsonValue, options);
536
+ }
537
+
538
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RenderRgdInstance {
539
+ return new RenderRgdInstance().fromJsonString(jsonString, options);
540
+ }
541
+
542
+ static equals(a: RenderRgdInstance | PlainMessage<RenderRgdInstance> | undefined, b: RenderRgdInstance | PlainMessage<RenderRgdInstance> | undefined): boolean {
543
+ return proto3.util.equals(RenderRgdInstance, a, b);
544
+ }
545
+ }
546
+
547
+ /**
548
+ * CommandAck reports the outcome of a command back to the gateway. Sent as an
549
+ * agent→server event (EVENT_TYPE_COMMAND_ACK or, with
550
+ * COMMAND_RESULT_FAILED, EVENT_TYPE_COMMAND_NACK).
551
+ *
552
+ * @generated from message inari.agent.v1.CommandAck
553
+ */
554
+ export class CommandAck extends Message<CommandAck> {
555
+ /**
556
+ * @generated from field: string command_id = 1;
557
+ */
558
+ commandId = "";
559
+
560
+ /**
561
+ * @generated from field: inari.agent.v1.CommandResult result = 2;
562
+ */
563
+ result = CommandResult.UNSPECIFIED;
564
+
565
+ /**
566
+ * @generated from field: string message = 3;
567
+ */
568
+ message = "";
569
+
570
+ constructor(data?: PartialMessage<CommandAck>) {
571
+ super();
572
+ proto3.util.initPartial(data, this);
573
+ }
574
+
575
+ static readonly runtime: typeof proto3 = proto3;
576
+ static readonly typeName = "inari.agent.v1.CommandAck";
577
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
578
+ { no: 1, name: "command_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
579
+ { no: 2, name: "result", kind: "enum", T: proto3.getEnumType(CommandResult) },
580
+ { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
581
+ ]);
582
+
583
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CommandAck {
584
+ return new CommandAck().fromBinary(bytes, options);
585
+ }
586
+
587
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CommandAck {
588
+ return new CommandAck().fromJson(jsonValue, options);
589
+ }
590
+
591
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CommandAck {
592
+ return new CommandAck().fromJsonString(jsonString, options);
593
+ }
594
+
595
+ static equals(a: CommandAck | PlainMessage<CommandAck> | undefined, b: CommandAck | PlainMessage<CommandAck> | undefined): boolean {
596
+ return proto3.util.equals(CommandAck, a, b);
597
+ }
598
+ }
599
+