signet-client 0.6.0

Rust client for signet, generated from bytepunx/signet-proto
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
// @generated
// This file is @generated by prost-build.
// --- AdminService messages ---

#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnsealKeyRequest {
    #[prost(bytes="vec", tag="1")]
    pub key: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnsealKeyResponse {
    #[prost(bool, tag="1")]
    pub unsealed: bool,
    #[prost(int32, tag="2")]
    pub shares_received: i32,
    #[prost(int32, tag="3")]
    pub shares_required: i32,
    #[prost(string, tag="4")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnsealShareRequest {
    #[prost(bytes="vec", tag="1")]
    pub share: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnsealShareResponse {
    #[prost(bool, tag="1")]
    pub unsealed: bool,
    #[prost(int32, tag="2")]
    pub shares_received: i32,
    #[prost(int32, tag="3")]
    pub shares_required: i32,
    #[prost(string, tag="4")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SealRequest {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SealResponse {
    #[prost(string, tag="1")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StatusRequest {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StatusResponse {
    #[prost(enumeration="status_response::State", tag="1")]
    pub state: i32,
    #[prost(int32, tag="2")]
    pub shares_received: i32,
    #[prost(int32, tag="3")]
    pub shares_required: i32,
    #[prost(string, tag="4")]
    pub version: ::prost::alloc::string::String,
}
/// Nested message and enum types in `StatusResponse`.
pub mod status_response {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum State {
        Unspecified = 0,
        Sealed = 1,
        Unsealing = 2,
        Unsealed = 3,
    }
    impl State {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::Unspecified => "STATE_UNSPECIFIED",
                Self::Sealed => "STATE_SEALED",
                Self::Unsealing => "STATE_UNSEALING",
                Self::Unsealed => "STATE_UNSEALED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STATE_UNSPECIFIED" => Some(Self::Unspecified),
                "STATE_SEALED" => Some(Self::Sealed),
                "STATE_UNSEALING" => Some(Self::Unsealing),
                "STATE_UNSEALED" => Some(Self::Unsealed),
                _ => None,
            }
        }
    }
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RotateKekRequest {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RotateKekResponse {
    #[prost(string, tag="1")]
    pub new_kek_id: ::prost::alloc::string::String,
    /// old_kek_id is retained (deactivated, not deleted) so DEKs wrapped before
    /// rotation completes remain decryptable until PruneKEK is called.
    #[prost(string, tag="2")]
    pub old_kek_id: ::prost::alloc::string::String,
    /// secrets_rewrapped is the number of DEKs successfully re-wrapped under
    /// the new KEK during this call.
    #[prost(int32, tag="3")]
    pub secrets_rewrapped: i32,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListKeKsRequest {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct KekInfo {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
    #[prost(bool, tag="2")]
    pub is_active: bool,
    #[prost(string, tag="3")]
    pub created_at: ::prost::alloc::string::String,
    /// empty if still active
    #[prost(string, tag="4")]
    pub deactivated_at: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListKeKsResponse {
    #[prost(message, repeated, tag="1")]
    pub keks: ::prost::alloc::vec::Vec<KekInfo>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PruneKekRequest {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PruneKekResponse {
    #[prost(string, tag="1")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RotateMasterKeyRequest {
    /// new_key must be exactly 32 bytes.
    #[prost(bytes="vec", tag="1")]
    pub new_key: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RotateMasterKeyResponse {
    #[prost(string, tag="1")]
    pub message: ::prost::alloc::string::String,
    #[prost(int32, tag="2")]
    pub keks_rewrapped: i32,
}
// --- Policy messages ---

#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreatePolicyRequest {
    /// spiffe_id is a glob matched against the caller's SPIFFE ID. '*' matches
    /// any single path segment (does not cross '/'); e.g.
    /// "spiffe://cluster.local/ns/*/sa/echo" matches the "echo" service account
    /// in any namespace. To grant access to every workload in the trust domain,
    /// use "spiffe://cluster.local/ns/*/sa/*" — a bare "**" is NOT supported
    /// (this is Go's path.Match, not a shell/gitignore-style glob engine).
    #[prost(string, tag="1")]
    pub spiffe_id: ::prost::alloc::string::String,
    /// namespace is the target secret's namespace, or "*" for any namespace.
    #[prost(string, tag="2")]
    pub namespace: ::prost::alloc::string::String,
    /// service is the target secret's service. Combined with secret_name into
    /// a "namespace/service/secret_name" pattern evaluated the same way.
    #[prost(string, tag="3")]
    pub service: ::prost::alloc::string::String,
    /// secret_name is a glob for the secret name within namespace/service.
    /// Defaults to "*" (every secret in that namespace/service) if empty.
    #[prost(string, tag="4")]
    pub secret_name: ::prost::alloc::string::String,
    /// permissions granted, e.g. \["read"\]. "*" grants every permission.
    /// Defaults to \["read"\] if empty.
    #[prost(string, repeated, tag="5")]
    pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreatePolicyResponse {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListPoliciesRequest {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PolicyInfo {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub spiffe_id: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub namespace: ::prost::alloc::string::String,
    /// pattern is the full "namespace/service/secret_name"-shaped glob as
    /// stored — service and secret_name are not tracked as separate fields.
    #[prost(string, tag="4")]
    pub pattern: ::prost::alloc::string::String,
    #[prost(string, repeated, tag="5")]
    pub permissions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, tag="6")]
    pub created_at: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPoliciesResponse {
    #[prost(message, repeated, tag="1")]
    pub policies: ::prost::alloc::vec::Vec<PolicyInfo>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeletePolicyRequest {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeletePolicyResponse {
    #[prost(string, tag="1")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteSecretRequest {
    #[prost(string, tag="1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub service: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub secret_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteSecretResponse {
    #[prost(string, tag="1")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteConfigRequest {
    #[prost(string, tag="1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub service: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteConfigResponse {
    #[prost(string, tag="1")]
    pub message: ::prost::alloc::string::String,
}
// --- GitOpsService messages ---

#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetSopsPublicKeyRequest {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetSopsPublicKeyResponse {
    /// age public key in bech32 format (age1...). Add to .sops.yaml as an age recipient.
    #[prost(string, tag="1")]
    pub public_key: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub fingerprint: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub created_at: ::prost::alloc::string::String,
    /// environment this key is scoped to; empty = global (usable by any environment).
    #[prost(string, tag="4")]
    pub environment: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RotateSopsKeyRequest {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RotateSopsKeyResponse {
    #[prost(string, tag="1")]
    pub new_public_key: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub new_fingerprint: ::prost::alloc::string::String,
    /// old_public_key is retained for decryption until pruned.
    #[prost(string, tag="3")]
    pub old_public_key: ::prost::alloc::string::String,
    /// environment the new key is scoped to; empty = global.
    #[prost(string, tag="4")]
    pub new_environment: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListSopsKeysRequest {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SopsKeyInfo {
    #[prost(string, tag="1")]
    pub public_key: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub fingerprint: ::prost::alloc::string::String,
    #[prost(bool, tag="3")]
    pub is_active: bool,
    #[prost(string, tag="4")]
    pub created_at: ::prost::alloc::string::String,
    /// empty if still active
    #[prost(string, tag="5")]
    pub deactivated_at: ::prost::alloc::string::String,
    /// environment this key is scoped to; empty = global.
    #[prost(string, tag="6")]
    pub environment: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSopsKeysResponse {
    #[prost(message, repeated, tag="1")]
    pub keys: ::prost::alloc::vec::Vec<SopsKeyInfo>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PruneSopsKeyRequest {
    #[prost(string, tag="1")]
    pub public_key: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PruneSopsKeyResponse {
    #[prost(string, tag="1")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RegisterRepositoryRequest {
    /// human alias, e.g. "infra-secrets"
    #[prost(string, tag="1")]
    pub name: ::prost::alloc::string::String,
    /// <https://github.com/org/repo>
    #[prost(string, tag="2")]
    pub repo_url: ::prost::alloc::string::String,
    /// e.g. "main"
    #[prost(string, tag="3")]
    pub branch: ::prost::alloc::string::String,
    /// path within repo, e.g. "secrets/"
    #[prost(string, tag="4")]
    pub secrets_path: ::prost::alloc::string::String,
    /// PEM-encoded SSH private key for read-only deploy access.
    #[prost(bytes="vec", tag="5")]
    pub deploy_key: ::prost::alloc::vec::Vec<u8>,
    /// config_path is the directory prefix within the repo that holds plain YAML
    /// config files, e.g. "config/". Leave empty to disable config sync.
    #[prost(string, tag="6")]
    pub config_path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RegisterRepositoryResponse {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
    /// webhook_url is the endpoint to configure in GitHub (Settings → Webhooks).
    #[prost(string, tag="2")]
    pub webhook_url: ::prost::alloc::string::String,
    /// webhook_secret is the shared HMAC secret to configure in GitHub.
    /// Shown only on registration; not retrievable afterwards.
    #[prost(string, tag="3")]
    pub webhook_secret: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListRepositoriesRequest {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RepositoryInfo {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub repo_url: ::prost::alloc::string::String,
    #[prost(string, tag="4")]
    pub branch: ::prost::alloc::string::String,
    #[prost(string, tag="5")]
    pub secrets_path: ::prost::alloc::string::String,
    #[prost(string, tag="6")]
    pub last_sync_sha: ::prost::alloc::string::String,
    #[prost(string, tag="7")]
    pub last_sync_at: ::prost::alloc::string::String,
    #[prost(string, tag="8")]
    pub config_path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRepositoriesResponse {
    #[prost(message, repeated, tag="1")]
    pub repositories: ::prost::alloc::vec::Vec<RepositoryInfo>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveRepositoryRequest {
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RemoveRepositoryResponse {
    #[prost(string, tag="1")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TriggerSyncRequest {
    /// repository id
    #[prost(string, tag="1")]
    pub id: ::prost::alloc::string::String,
    /// force resolves any config sync conflict (see PatchServiceConfig and
    /// bytepunx/signet#45) by taking git's version, discarding whatever local
    /// PatchServiceConfig changes hadn't yet been reflected in git. Without
    /// force, a conflicted config is left untouched and keeps being reported
    /// in configs_conflicted on every sync until explicitly resolved.
    #[prost(bool, tag="2")]
    pub force: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TriggerSyncResponse {
    #[prost(int32, tag="1")]
    pub secrets_added: i32,
    #[prost(int32, tag="2")]
    pub secrets_updated: i32,
    #[prost(int32, tag="3")]
    pub secrets_deleted: i32,
    #[prost(string, tag="4")]
    pub sync_sha: ::prost::alloc::string::String,
    #[prost(string, repeated, tag="5")]
    pub errors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(int32, tag="6")]
    pub configs_synced: i32,
    /// configs_conflicted counts configs where a JSON path changed on both the
    /// git side and the live (PatchServiceConfig-derived) side since the last
    /// sync — signet refuses to silently pick a winner for these. Re-run with
    /// force=true to take git's version, or resolve the divergence out of band.
    #[prost(int32, tag="7")]
    pub configs_conflicted: i32,
}
// --- SyncBundle messages ---

/// SyncBundleChunk is a single streaming message for the SyncBundle RPC.
/// The first message must contain a SyncBundleHeader; all subsequent messages
/// must contain raw tar.gz archive bytes.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SyncBundleChunk {
    #[prost(oneof="sync_bundle_chunk::Payload", tags="1, 2")]
    pub payload: ::core::option::Option<sync_bundle_chunk::Payload>,
}
/// Nested message and enum types in `SyncBundleChunk`.
pub mod sync_bundle_chunk {
    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
    pub enum Payload {
        #[prost(message, tag="1")]
        Header(super::SyncBundleHeader),
        #[prost(bytes, tag="2")]
        Data(::prost::alloc::vec::Vec<u8>),
    }
}
/// SyncBundleHeader carries metadata sent as the first SyncBundleChunk.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SyncBundleHeader {
    /// secrets_path is the directory prefix within the repo that holds secrets,
    /// e.g. "secrets/". Defaults to "secrets/" if empty.
    #[prost(string, tag="1")]
    pub secrets_path: ::prost::alloc::string::String,
    /// head_sha is the HEAD commit SHA of the local repo, used for audit logging.
    /// May be empty for non-git sources.
    #[prost(string, tag="2")]
    pub head_sha: ::prost::alloc::string::String,
    /// config_path is the directory prefix for plain YAML config files, e.g. "config/".
    /// Leave empty to skip config sync.
    #[prost(string, tag="3")]
    pub config_path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SyncBundleResponse {
    #[prost(int32, tag="1")]
    pub secrets_added: i32,
    #[prost(int32, tag="2")]
    pub secrets_updated: i32,
    #[prost(int32, tag="3")]
    pub secrets_deleted: i32,
    #[prost(string, tag="4")]
    pub sync_sha: ::prost::alloc::string::String,
    #[prost(string, repeated, tag="5")]
    pub errors: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(int32, tag="6")]
    pub configs_synced: i32,
}
// --- PatchServiceConfig messages ---

/// JsonPatchOperation is one operation of an RFC 6902 JSON Patch document.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JsonPatchOperation {
    /// op is one of "add", "remove", "replace", "move", "copy", "test" per
    /// RFC 6902 §4. Unrecognised values are rejected.
    #[prost(string, tag="1")]
    pub op: ::prost::alloc::string::String,
    /// path is an RFC 6901 JSON Pointer into the config document, e.g.
    /// "/tenants/acme/sessionKeyGenerations/-" — a path segment of "-" as the
    /// final component of an "add" path appends to the end of an array, which
    /// is how a single new entry is added to an existing list without reading
    /// it first.
    #[prost(string, tag="2")]
    pub path: ::prost::alloc::string::String,
    /// from is required for "move"/"copy" operations (the source JSON Pointer);
    /// unused otherwise.
    #[prost(string, tag="3")]
    pub from: ::prost::alloc::string::String,
    /// value is required for "add"/"replace"/"test" operations; unused for
    /// "remove"/"move"/"copy".
    #[prost(message, optional, tag="4")]
    pub value: ::core::option::Option<::prost_types::Value>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PatchServiceConfigRequest {
    #[prost(string, tag="1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub service: ::prost::alloc::string::String,
    /// operations are applied in order as a single RFC 6902 JSON Patch document
    /// against the current stored config; the whole patch either fully applies
    /// or the call fails with no partial effect (if any operation fails, e.g. a
    /// "test" precondition or an out-of-bounds path, none of the operations are
    /// committed).
    #[prost(message, repeated, tag="3")]
    pub operations: ::prost::alloc::vec::Vec<JsonPatchOperation>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PatchServiceConfigResponse {
    /// version is the config document's version after this patch was applied.
    #[prost(int32, tag="1")]
    pub version: i32,
}
// --- GetServiceConfig messages ---

#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetServiceConfigRequest {
    #[prost(string, tag="1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub service: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetServiceConfigResponse {
    /// content is the full config document as stored, e.g. to compute exact
    /// array indices before submitting a targeted PatchServiceConfig. The race
    /// between this read and a follow-up patch is guarded by PatchServiceConfig
    /// itself, not by this field -- a "test" operation asserting the exact
    /// value at the specific path about to be removed (built from this same
    /// content) fails the whole patch if anything changed in between, rather
    /// than a document-level version check (RFC 6902 has no such concept; the
    /// store's version is per-document metadata, not part of the JSON content
    /// a "test" op could reference).
    #[prost(message, optional, tag="1")]
    pub content: ::core::option::Option<::prost_types::Value>,
    /// version is the config document's current version (informational --
    /// matches PatchServiceConfigResponse's own field of the same name/meaning).
    #[prost(int32, tag="2")]
    pub version: i32,
}
// --- PutServiceConfig messages ---

#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PutServiceConfigRequest {
    #[prost(string, tag="1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub service: ::prost::alloc::string::String,
    /// content replaces the entire config document -- unlike
    /// PatchServiceConfigRequest.operations, this is not a diff.
    #[prost(message, optional, tag="3")]
    pub content: ::core::option::Option<::prost_types::Value>,
    /// expected_version guards this write with optimistic concurrency:
    ///    0        -- create-only; fails ALREADY_EXISTS if a document already exists.
    ///    non-zero -- replace-only-if-currently-at-exactly-this-version; fails
    ///                ABORTED if the document has changed since the caller last
    ///                read it (matches GetServiceConfigResponse.version /
    ///                PatchServiceConfigResponse.version). There is no way to
    ///                request an unconditional overwrite; every caller must
    ///                state what they expect the current state to be.
    #[prost(int32, tag="4")]
    pub expected_version: i32,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PutServiceConfigResponse {
    /// version is the config document's version after this write.
    #[prost(int32, tag="1")]
    pub version: i32,
}
include!("admin.v1.tonic.rs");
// @@protoc_insertion_point(module)