@eide/foir-proto-ts 0.36.0 → 0.37.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eide/foir-proto-ts",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./analytics/v1/analytics_pb": "./src/analytics/v1/analytics_pb.js",
@@ -35,6 +35,8 @@
35
35
  "./records/v1/records_connect": "./src/records/v1/records_connect.js",
36
36
  "./schedules/v1/schedules_pb": "./src/schedules/v1/schedules_pb.js",
37
37
  "./schedules/v1/schedules_connect": "./src/schedules/v1/schedules_connect.js",
38
+ "./secrets/v1/secrets_pb": "./src/secrets/v1/secrets_pb.js",
39
+ "./secrets/v1/secrets_connect": "./src/secrets/v1/secrets_connect.js",
38
40
  "./segments/v1/segments_pb": "./src/segments/v1/segments_pb.js",
39
41
  "./segments/v1/segments_connect": "./src/segments/v1/segments_connect.js",
40
42
  "./settings/v1/settings_pb": "./src/settings/v1/settings_pb.js",
@@ -0,0 +1,80 @@
1
+ // @generated by protoc-gen-connect-es v1.6.1 with parameter "import_extension=js"
2
+ // @generated from file secrets/v1/secrets.proto (package secrets.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { DeleteSecretRequest, DeleteSecretResponse, GetSecretRequest, GetSecretResponse, ListSecretsRequest, ListSecretsResponse, PurgeSoftDeletedRequest, PurgeSoftDeletedResponse, PutSecretRequest, PutSecretResponse, RestoreSecretRequest, RestoreSecretResponse, RotateSecretRequest, RotateSecretResponse } from "./secrets_pbjs";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from service secrets.v1.SecretsService
11
+ */
12
+ export declare const SecretsService: {
13
+ readonly typeName: "secrets.v1.SecretsService",
14
+ readonly methods: {
15
+ /**
16
+ * @generated from rpc secrets.v1.SecretsService.PutSecret
17
+ */
18
+ readonly putSecret: {
19
+ readonly name: "PutSecret",
20
+ readonly I: typeof PutSecretRequest,
21
+ readonly O: typeof PutSecretResponse,
22
+ readonly kind: MethodKind.Unary,
23
+ },
24
+ /**
25
+ * @generated from rpc secrets.v1.SecretsService.GetSecret
26
+ */
27
+ readonly getSecret: {
28
+ readonly name: "GetSecret",
29
+ readonly I: typeof GetSecretRequest,
30
+ readonly O: typeof GetSecretResponse,
31
+ readonly kind: MethodKind.Unary,
32
+ },
33
+ /**
34
+ * @generated from rpc secrets.v1.SecretsService.ListSecrets
35
+ */
36
+ readonly listSecrets: {
37
+ readonly name: "ListSecrets",
38
+ readonly I: typeof ListSecretsRequest,
39
+ readonly O: typeof ListSecretsResponse,
40
+ readonly kind: MethodKind.Unary,
41
+ },
42
+ /**
43
+ * @generated from rpc secrets.v1.SecretsService.RotateSecret
44
+ */
45
+ readonly rotateSecret: {
46
+ readonly name: "RotateSecret",
47
+ readonly I: typeof RotateSecretRequest,
48
+ readonly O: typeof RotateSecretResponse,
49
+ readonly kind: MethodKind.Unary,
50
+ },
51
+ /**
52
+ * @generated from rpc secrets.v1.SecretsService.DeleteSecret
53
+ */
54
+ readonly deleteSecret: {
55
+ readonly name: "DeleteSecret",
56
+ readonly I: typeof DeleteSecretRequest,
57
+ readonly O: typeof DeleteSecretResponse,
58
+ readonly kind: MethodKind.Unary,
59
+ },
60
+ /**
61
+ * @generated from rpc secrets.v1.SecretsService.RestoreSecret
62
+ */
63
+ readonly restoreSecret: {
64
+ readonly name: "RestoreSecret",
65
+ readonly I: typeof RestoreSecretRequest,
66
+ readonly O: typeof RestoreSecretResponse,
67
+ readonly kind: MethodKind.Unary,
68
+ },
69
+ /**
70
+ * @generated from rpc secrets.v1.SecretsService.PurgeSoftDeleted
71
+ */
72
+ readonly purgeSoftDeleted: {
73
+ readonly name: "PurgeSoftDeleted",
74
+ readonly I: typeof PurgeSoftDeletedRequest,
75
+ readonly O: typeof PurgeSoftDeletedResponse,
76
+ readonly kind: MethodKind.Unary,
77
+ },
78
+ }
79
+ };
80
+
@@ -0,0 +1,80 @@
1
+ // @generated by protoc-gen-connect-es v1.6.1 with parameter "import_extension=js"
2
+ // @generated from file secrets/v1/secrets.proto (package secrets.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { DeleteSecretRequest, DeleteSecretResponse, GetSecretRequest, GetSecretResponse, ListSecretsRequest, ListSecretsResponse, PurgeSoftDeletedRequest, PurgeSoftDeletedResponse, PutSecretRequest, PutSecretResponse, RestoreSecretRequest, RestoreSecretResponse, RotateSecretRequest, RotateSecretResponse } from "./secrets_pbjs";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from service secrets.v1.SecretsService
11
+ */
12
+ export const SecretsService = {
13
+ typeName: "secrets.v1.SecretsService",
14
+ methods: {
15
+ /**
16
+ * @generated from rpc secrets.v1.SecretsService.PutSecret
17
+ */
18
+ putSecret: {
19
+ name: "PutSecret",
20
+ I: PutSecretRequest,
21
+ O: PutSecretResponse,
22
+ kind: MethodKind.Unary,
23
+ },
24
+ /**
25
+ * @generated from rpc secrets.v1.SecretsService.GetSecret
26
+ */
27
+ getSecret: {
28
+ name: "GetSecret",
29
+ I: GetSecretRequest,
30
+ O: GetSecretResponse,
31
+ kind: MethodKind.Unary,
32
+ },
33
+ /**
34
+ * @generated from rpc secrets.v1.SecretsService.ListSecrets
35
+ */
36
+ listSecrets: {
37
+ name: "ListSecrets",
38
+ I: ListSecretsRequest,
39
+ O: ListSecretsResponse,
40
+ kind: MethodKind.Unary,
41
+ },
42
+ /**
43
+ * @generated from rpc secrets.v1.SecretsService.RotateSecret
44
+ */
45
+ rotateSecret: {
46
+ name: "RotateSecret",
47
+ I: RotateSecretRequest,
48
+ O: RotateSecretResponse,
49
+ kind: MethodKind.Unary,
50
+ },
51
+ /**
52
+ * @generated from rpc secrets.v1.SecretsService.DeleteSecret
53
+ */
54
+ deleteSecret: {
55
+ name: "DeleteSecret",
56
+ I: DeleteSecretRequest,
57
+ O: DeleteSecretResponse,
58
+ kind: MethodKind.Unary,
59
+ },
60
+ /**
61
+ * @generated from rpc secrets.v1.SecretsService.RestoreSecret
62
+ */
63
+ restoreSecret: {
64
+ name: "RestoreSecret",
65
+ I: RestoreSecretRequest,
66
+ O: RestoreSecretResponse,
67
+ kind: MethodKind.Unary,
68
+ },
69
+ /**
70
+ * @generated from rpc secrets.v1.SecretsService.PurgeSoftDeleted
71
+ */
72
+ purgeSoftDeleted: {
73
+ name: "PurgeSoftDeleted",
74
+ I: PurgeSoftDeletedRequest,
75
+ O: PurgeSoftDeletedResponse,
76
+ kind: MethodKind.Unary,
77
+ },
78
+ }
79
+ };
80
+
@@ -0,0 +1,546 @@
1
+ // @generated by protoc-gen-es v2.12.0 with parameter "import_extension=js"
2
+ // @generated from file secrets/v1/secrets.proto (package secrets.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
+
9
+ /**
10
+ * Describes the file secrets/v1/secrets.proto.
11
+ */
12
+ export declare const file_secrets_v1_secrets: GenFile;
13
+
14
+ /**
15
+ * SecretMetadata is the listing-shape — never carries plaintext.
16
+ *
17
+ * @generated from message secrets.v1.SecretMetadata
18
+ */
19
+ export declare type SecretMetadata = Message<"secrets.v1.SecretMetadata"> & {
20
+ /**
21
+ * @generated from field: string ref = 1;
22
+ */
23
+ ref: string;
24
+
25
+ /**
26
+ * @generated from field: string tenant_id = 2;
27
+ */
28
+ tenantId: string;
29
+
30
+ /**
31
+ * @generated from field: string project_id = 3;
32
+ */
33
+ projectId: string;
34
+
35
+ /**
36
+ * @generated from field: secrets.v1.OwnerKind owner_kind = 4;
37
+ */
38
+ ownerKind: OwnerKind;
39
+
40
+ /**
41
+ * Empty when owner_kind = PROJECT.
42
+ *
43
+ * @generated from field: string owner_id = 5;
44
+ */
45
+ ownerId: string;
46
+
47
+ /**
48
+ * @generated from field: string kind = 6;
49
+ */
50
+ kind: string;
51
+
52
+ /**
53
+ * @generated from field: string label = 7;
54
+ */
55
+ label: string;
56
+
57
+ /**
58
+ * @generated from field: optional google.protobuf.Timestamp expires_at = 8;
59
+ */
60
+ expiresAt?: Timestamp | undefined;
61
+
62
+ /**
63
+ * @generated from field: optional google.protobuf.Timestamp last_read_at = 9;
64
+ */
65
+ lastReadAt?: Timestamp | undefined;
66
+
67
+ /**
68
+ * @generated from field: google.protobuf.Timestamp last_written_at = 10;
69
+ */
70
+ lastWrittenAt?: Timestamp | undefined;
71
+
72
+ /**
73
+ * @generated from field: google.protobuf.Timestamp created_at = 11;
74
+ */
75
+ createdAt?: Timestamp | undefined;
76
+
77
+ /**
78
+ * @generated from field: optional string created_by = 12;
79
+ */
80
+ createdBy?: string | undefined;
81
+
82
+ /**
83
+ * @generated from field: optional google.protobuf.Timestamp soft_deleted_at = 13;
84
+ */
85
+ softDeletedAt?: Timestamp | undefined;
86
+
87
+ /**
88
+ * @generated from field: optional google.protobuf.Timestamp purge_after = 14;
89
+ */
90
+ purgeAfter?: Timestamp | undefined;
91
+ };
92
+
93
+ /**
94
+ * Describes the message secrets.v1.SecretMetadata.
95
+ * Use `create(SecretMetadataSchema)` to create a new message.
96
+ */
97
+ export declare const SecretMetadataSchema: GenMessage<SecretMetadata>;
98
+
99
+ /**
100
+ * -----------------------------------------------------------------------------
101
+ * PutSecret — write a new secret, return its ref.
102
+ *
103
+ * The caller is responsible for binding the returned ref to a record
104
+ * (writing it into a SecretRef field + a secret_references row in the main
105
+ * DB). A failure of that follow-up step leaves an orphaned vault row that
106
+ * the orphan sweeper soft-deletes after a grace window.
107
+ * -----------------------------------------------------------------------------
108
+ *
109
+ * @generated from message secrets.v1.PutSecretRequest
110
+ */
111
+ export declare type PutSecretRequest = Message<"secrets.v1.PutSecretRequest"> & {
112
+ /**
113
+ * @generated from field: string tenant_id = 1;
114
+ */
115
+ tenantId: string;
116
+
117
+ /**
118
+ * @generated from field: string project_id = 2;
119
+ */
120
+ projectId: string;
121
+
122
+ /**
123
+ * @generated from field: secrets.v1.OwnerKind owner_kind = 3;
124
+ */
125
+ ownerKind: OwnerKind;
126
+
127
+ /**
128
+ * REQUIRED when owner_kind = APP (the app name) or CUSTOMER (the customer id).
129
+ * MUST be empty when owner_kind = PROJECT.
130
+ *
131
+ * @generated from field: string owner_id = 4;
132
+ */
133
+ ownerId: string;
134
+
135
+ /**
136
+ * Free-form secret kind tag (e.g. "apns_p8", "oauth_token", "generic").
137
+ * Conventional set documented in docs/platform/secret-vault.md.
138
+ *
139
+ * @generated from field: string kind = 5;
140
+ */
141
+ kind: string;
142
+
143
+ /**
144
+ * Optional human-friendly label — stored verbatim, surfaced in admin UI.
145
+ *
146
+ * @generated from field: string label = 6;
147
+ */
148
+ label: string;
149
+
150
+ /**
151
+ * @generated from field: bytes plaintext = 7;
152
+ */
153
+ plaintext: Uint8Array;
154
+
155
+ /**
156
+ * @generated from field: optional google.protobuf.Timestamp expires_at = 8;
157
+ */
158
+ expiresAt?: Timestamp | undefined;
159
+ };
160
+
161
+ /**
162
+ * Describes the message secrets.v1.PutSecretRequest.
163
+ * Use `create(PutSecretRequestSchema)` to create a new message.
164
+ */
165
+ export declare const PutSecretRequestSchema: GenMessage<PutSecretRequest>;
166
+
167
+ /**
168
+ * @generated from message secrets.v1.PutSecretResponse
169
+ */
170
+ export declare type PutSecretResponse = Message<"secrets.v1.PutSecretResponse"> & {
171
+ /**
172
+ * @generated from field: string ref = 1;
173
+ */
174
+ ref: string;
175
+ };
176
+
177
+ /**
178
+ * Describes the message secrets.v1.PutSecretResponse.
179
+ * Use `create(PutSecretResponseSchema)` to create a new message.
180
+ */
181
+ export declare const PutSecretResponseSchema: GenMessage<PutSecretResponse>;
182
+
183
+ /**
184
+ * -----------------------------------------------------------------------------
185
+ * GetSecret — fetch plaintext, audit-logged with caller-supplied purpose.
186
+ * -----------------------------------------------------------------------------
187
+ *
188
+ * @generated from message secrets.v1.GetSecretRequest
189
+ */
190
+ export declare type GetSecretRequest = Message<"secrets.v1.GetSecretRequest"> & {
191
+ /**
192
+ * @generated from field: string ref = 1;
193
+ */
194
+ ref: string;
195
+
196
+ /**
197
+ * OPTIONAL human-readable reason recorded into secret_events.purpose.
198
+ * Conventionally describes the consumer's domain action — "mint_apns_jwt",
199
+ * "shopify_admin_api_call", "fcm_v1_dispatch" — so the audit trail says why
200
+ * a decrypt happened, not just that one did.
201
+ *
202
+ * @generated from field: string purpose = 2;
203
+ */
204
+ purpose: string;
205
+ };
206
+
207
+ /**
208
+ * Describes the message secrets.v1.GetSecretRequest.
209
+ * Use `create(GetSecretRequestSchema)` to create a new message.
210
+ */
211
+ export declare const GetSecretRequestSchema: GenMessage<GetSecretRequest>;
212
+
213
+ /**
214
+ * @generated from message secrets.v1.GetSecretResponse
215
+ */
216
+ export declare type GetSecretResponse = Message<"secrets.v1.GetSecretResponse"> & {
217
+ /**
218
+ * @generated from field: bytes plaintext = 1;
219
+ */
220
+ plaintext: Uint8Array;
221
+
222
+ /**
223
+ * @generated from field: secrets.v1.SecretMetadata metadata = 2;
224
+ */
225
+ metadata?: SecretMetadata | undefined;
226
+ };
227
+
228
+ /**
229
+ * Describes the message secrets.v1.GetSecretResponse.
230
+ * Use `create(GetSecretResponseSchema)` to create a new message.
231
+ */
232
+ export declare const GetSecretResponseSchema: GenMessage<GetSecretResponse>;
233
+
234
+ /**
235
+ * -----------------------------------------------------------------------------
236
+ * ListSecrets — metadata-only listing, scoped by owner filters.
237
+ * -----------------------------------------------------------------------------
238
+ *
239
+ * @generated from message secrets.v1.ListSecretsRequest
240
+ */
241
+ export declare type ListSecretsRequest = Message<"secrets.v1.ListSecretsRequest"> & {
242
+ /**
243
+ * @generated from field: string tenant_id = 1;
244
+ */
245
+ tenantId: string;
246
+
247
+ /**
248
+ * @generated from field: string project_id = 2;
249
+ */
250
+ projectId: string;
251
+
252
+ /**
253
+ * OWNER_KIND_UNSPECIFIED returns all visible owner kinds for the caller.
254
+ *
255
+ * @generated from field: secrets.v1.OwnerKind owner_kind = 3;
256
+ */
257
+ ownerKind: OwnerKind;
258
+
259
+ /**
260
+ * @generated from field: string owner_id = 4;
261
+ */
262
+ ownerId: string;
263
+
264
+ /**
265
+ * @generated from field: string kind = 5;
266
+ */
267
+ kind: string;
268
+
269
+ /**
270
+ * Defaults to false — soft-deleted rows are hidden.
271
+ *
272
+ * @generated from field: bool include_soft_deleted = 6;
273
+ */
274
+ includeSoftDeleted: boolean;
275
+ };
276
+
277
+ /**
278
+ * Describes the message secrets.v1.ListSecretsRequest.
279
+ * Use `create(ListSecretsRequestSchema)` to create a new message.
280
+ */
281
+ export declare const ListSecretsRequestSchema: GenMessage<ListSecretsRequest>;
282
+
283
+ /**
284
+ * @generated from message secrets.v1.ListSecretsResponse
285
+ */
286
+ export declare type ListSecretsResponse = Message<"secrets.v1.ListSecretsResponse"> & {
287
+ /**
288
+ * @generated from field: repeated secrets.v1.SecretMetadata secrets = 1;
289
+ */
290
+ secrets: SecretMetadata[];
291
+ };
292
+
293
+ /**
294
+ * Describes the message secrets.v1.ListSecretsResponse.
295
+ * Use `create(ListSecretsResponseSchema)` to create a new message.
296
+ */
297
+ export declare const ListSecretsResponseSchema: GenMessage<ListSecretsResponse>;
298
+
299
+ /**
300
+ * -----------------------------------------------------------------------------
301
+ * RotateSecret — write new plaintext, swap every reference, soft-delete the
302
+ * old vault row, atomically.
303
+ * -----------------------------------------------------------------------------
304
+ *
305
+ * @generated from message secrets.v1.RotateSecretRequest
306
+ */
307
+ export declare type RotateSecretRequest = Message<"secrets.v1.RotateSecretRequest"> & {
308
+ /**
309
+ * @generated from field: string ref = 1;
310
+ */
311
+ ref: string;
312
+
313
+ /**
314
+ * @generated from field: bytes plaintext = 2;
315
+ */
316
+ plaintext: Uint8Array;
317
+
318
+ /**
319
+ * @generated from field: optional google.protobuf.Timestamp expires_at = 3;
320
+ */
321
+ expiresAt?: Timestamp | undefined;
322
+ };
323
+
324
+ /**
325
+ * Describes the message secrets.v1.RotateSecretRequest.
326
+ * Use `create(RotateSecretRequestSchema)` to create a new message.
327
+ */
328
+ export declare const RotateSecretRequestSchema: GenMessage<RotateSecretRequest>;
329
+
330
+ /**
331
+ * @generated from message secrets.v1.RotateSecretResponse
332
+ */
333
+ export declare type RotateSecretResponse = Message<"secrets.v1.RotateSecretResponse"> & {
334
+ /**
335
+ * @generated from field: string new_ref = 1;
336
+ */
337
+ newRef: string;
338
+ };
339
+
340
+ /**
341
+ * Describes the message secrets.v1.RotateSecretResponse.
342
+ * Use `create(RotateSecretResponseSchema)` to create a new message.
343
+ */
344
+ export declare const RotateSecretResponseSchema: GenMessage<RotateSecretResponse>;
345
+
346
+ /**
347
+ * -----------------------------------------------------------------------------
348
+ * DeleteSecret — soft-delete with TTL. Restorable via RestoreSecret until
349
+ * purge_after passes; PurgeSoftDeleted then drops the row.
350
+ *
351
+ * If the secret is referenced from any record in the main DB, the on_delete
352
+ * directive on the SecretRef field decides between block (CodeFailedPrecondition)
353
+ * and cascade (clears the field + soft-deletes).
354
+ * -----------------------------------------------------------------------------
355
+ *
356
+ * @generated from message secrets.v1.DeleteSecretRequest
357
+ */
358
+ export declare type DeleteSecretRequest = Message<"secrets.v1.DeleteSecretRequest"> & {
359
+ /**
360
+ * @generated from field: string ref = 1;
361
+ */
362
+ ref: string;
363
+ };
364
+
365
+ /**
366
+ * Describes the message secrets.v1.DeleteSecretRequest.
367
+ * Use `create(DeleteSecretRequestSchema)` to create a new message.
368
+ */
369
+ export declare const DeleteSecretRequestSchema: GenMessage<DeleteSecretRequest>;
370
+
371
+ /**
372
+ * @generated from message secrets.v1.DeleteSecretResponse
373
+ */
374
+ export declare type DeleteSecretResponse = Message<"secrets.v1.DeleteSecretResponse"> & {
375
+ };
376
+
377
+ /**
378
+ * Describes the message secrets.v1.DeleteSecretResponse.
379
+ * Use `create(DeleteSecretResponseSchema)` to create a new message.
380
+ */
381
+ export declare const DeleteSecretResponseSchema: GenMessage<DeleteSecretResponse>;
382
+
383
+ /**
384
+ * @generated from message secrets.v1.RestoreSecretRequest
385
+ */
386
+ export declare type RestoreSecretRequest = Message<"secrets.v1.RestoreSecretRequest"> & {
387
+ /**
388
+ * @generated from field: string ref = 1;
389
+ */
390
+ ref: string;
391
+ };
392
+
393
+ /**
394
+ * Describes the message secrets.v1.RestoreSecretRequest.
395
+ * Use `create(RestoreSecretRequestSchema)` to create a new message.
396
+ */
397
+ export declare const RestoreSecretRequestSchema: GenMessage<RestoreSecretRequest>;
398
+
399
+ /**
400
+ * @generated from message secrets.v1.RestoreSecretResponse
401
+ */
402
+ export declare type RestoreSecretResponse = Message<"secrets.v1.RestoreSecretResponse"> & {
403
+ };
404
+
405
+ /**
406
+ * Describes the message secrets.v1.RestoreSecretResponse.
407
+ * Use `create(RestoreSecretResponseSchema)` to create a new message.
408
+ */
409
+ export declare const RestoreSecretResponseSchema: GenMessage<RestoreSecretResponse>;
410
+
411
+ /**
412
+ * @generated from message secrets.v1.PurgeSoftDeletedRequest
413
+ */
414
+ export declare type PurgeSoftDeletedRequest = Message<"secrets.v1.PurgeSoftDeletedRequest"> & {
415
+ /**
416
+ * OPTIONAL. When unset, all eligible rows across every project the caller
417
+ * is authorized for are purged. Operators run this from CLI.
418
+ *
419
+ * @generated from field: string tenant_id = 1;
420
+ */
421
+ tenantId: string;
422
+
423
+ /**
424
+ * @generated from field: string project_id = 2;
425
+ */
426
+ projectId: string;
427
+ };
428
+
429
+ /**
430
+ * Describes the message secrets.v1.PurgeSoftDeletedRequest.
431
+ * Use `create(PurgeSoftDeletedRequestSchema)` to create a new message.
432
+ */
433
+ export declare const PurgeSoftDeletedRequestSchema: GenMessage<PurgeSoftDeletedRequest>;
434
+
435
+ /**
436
+ * @generated from message secrets.v1.PurgeSoftDeletedResponse
437
+ */
438
+ export declare type PurgeSoftDeletedResponse = Message<"secrets.v1.PurgeSoftDeletedResponse"> & {
439
+ /**
440
+ * @generated from field: int64 purged_count = 1;
441
+ */
442
+ purgedCount: bigint;
443
+ };
444
+
445
+ /**
446
+ * Describes the message secrets.v1.PurgeSoftDeletedResponse.
447
+ * Use `create(PurgeSoftDeletedResponseSchema)` to create a new message.
448
+ */
449
+ export declare const PurgeSoftDeletedResponseSchema: GenMessage<PurgeSoftDeletedResponse>;
450
+
451
+ /**
452
+ * OwnerKind identifies the entity that owns a secret. Tenant-wide secrets
453
+ * are intentionally excluded — tenants are workspaces of projects, not data
454
+ * containers.
455
+ *
456
+ * @generated from enum secrets.v1.OwnerKind
457
+ */
458
+ export enum OwnerKind {
459
+ /**
460
+ * @generated from enum value: OWNER_KIND_UNSPECIFIED = 0;
461
+ */
462
+ UNSPECIFIED = 0,
463
+
464
+ /**
465
+ * @generated from enum value: OWNER_KIND_PROJECT = 1;
466
+ */
467
+ PROJECT = 1,
468
+
469
+ /**
470
+ * @generated from enum value: OWNER_KIND_APP = 2;
471
+ */
472
+ APP = 2,
473
+
474
+ /**
475
+ * @generated from enum value: OWNER_KIND_CUSTOMER = 3;
476
+ */
477
+ CUSTOMER = 3,
478
+ }
479
+
480
+ /**
481
+ * Describes the enum secrets.v1.OwnerKind.
482
+ */
483
+ export declare const OwnerKindSchema: GenEnum<OwnerKind>;
484
+
485
+ /**
486
+ * @generated from service secrets.v1.SecretsService
487
+ */
488
+ export declare const SecretsService: GenService<{
489
+ /**
490
+ * @generated from rpc secrets.v1.SecretsService.PutSecret
491
+ */
492
+ putSecret: {
493
+ methodKind: "unary";
494
+ input: typeof PutSecretRequestSchema;
495
+ output: typeof PutSecretResponseSchema;
496
+ },
497
+ /**
498
+ * @generated from rpc secrets.v1.SecretsService.GetSecret
499
+ */
500
+ getSecret: {
501
+ methodKind: "unary";
502
+ input: typeof GetSecretRequestSchema;
503
+ output: typeof GetSecretResponseSchema;
504
+ },
505
+ /**
506
+ * @generated from rpc secrets.v1.SecretsService.ListSecrets
507
+ */
508
+ listSecrets: {
509
+ methodKind: "unary";
510
+ input: typeof ListSecretsRequestSchema;
511
+ output: typeof ListSecretsResponseSchema;
512
+ },
513
+ /**
514
+ * @generated from rpc secrets.v1.SecretsService.RotateSecret
515
+ */
516
+ rotateSecret: {
517
+ methodKind: "unary";
518
+ input: typeof RotateSecretRequestSchema;
519
+ output: typeof RotateSecretResponseSchema;
520
+ },
521
+ /**
522
+ * @generated from rpc secrets.v1.SecretsService.DeleteSecret
523
+ */
524
+ deleteSecret: {
525
+ methodKind: "unary";
526
+ input: typeof DeleteSecretRequestSchema;
527
+ output: typeof DeleteSecretResponseSchema;
528
+ },
529
+ /**
530
+ * @generated from rpc secrets.v1.SecretsService.RestoreSecret
531
+ */
532
+ restoreSecret: {
533
+ methodKind: "unary";
534
+ input: typeof RestoreSecretRequestSchema;
535
+ output: typeof RestoreSecretResponseSchema;
536
+ },
537
+ /**
538
+ * @generated from rpc secrets.v1.SecretsService.PurgeSoftDeleted
539
+ */
540
+ purgeSoftDeleted: {
541
+ methodKind: "unary";
542
+ input: typeof PurgeSoftDeletedRequestSchema;
543
+ output: typeof PurgeSoftDeletedResponseSchema;
544
+ },
545
+ }>;
546
+
@@ -0,0 +1,141 @@
1
+ // @generated by protoc-gen-es v2.12.0 with parameter "import_extension=js"
2
+ // @generated from file secrets/v1/secrets.proto (package secrets.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
6
+ import { file_buf_validate_validate } from "../../buf/validate/validate_pb.js";
7
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
8
+
9
+ /**
10
+ * Describes the file secrets/v1/secrets.proto.
11
+ */
12
+ export const file_secrets_v1_secrets = /*@__PURE__*/
13
+ fileDesc("ChhzZWNyZXRzL3YxL3NlY3JldHMucHJvdG8SCnNlY3JldHMudjEiywQKDlNlY3JldE1ldGFkYXRhEgsKA3JlZhgBIAEoC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XRodWIuY29tL2VpZGVzdHVkaW8vZm9pci9nZW4vcHJvdG8vc2VjcmV0cy92MTtzZWNyZXRzdjFiBnByb3RvMw", [file_buf_validate_validate, file_google_protobuf_timestamp]);
14
+
15
+ /**
16
+ * Describes the message secrets.v1.SecretMetadata.
17
+ * Use `create(SecretMetadataSchema)` to create a new message.
18
+ */
19
+ export const SecretMetadataSchema = /*@__PURE__*/
20
+ messageDesc(file_secrets_v1_secrets, 0);
21
+
22
+ /**
23
+ * Describes the message secrets.v1.PutSecretRequest.
24
+ * Use `create(PutSecretRequestSchema)` to create a new message.
25
+ */
26
+ export const PutSecretRequestSchema = /*@__PURE__*/
27
+ messageDesc(file_secrets_v1_secrets, 1);
28
+
29
+ /**
30
+ * Describes the message secrets.v1.PutSecretResponse.
31
+ * Use `create(PutSecretResponseSchema)` to create a new message.
32
+ */
33
+ export const PutSecretResponseSchema = /*@__PURE__*/
34
+ messageDesc(file_secrets_v1_secrets, 2);
35
+
36
+ /**
37
+ * Describes the message secrets.v1.GetSecretRequest.
38
+ * Use `create(GetSecretRequestSchema)` to create a new message.
39
+ */
40
+ export const GetSecretRequestSchema = /*@__PURE__*/
41
+ messageDesc(file_secrets_v1_secrets, 3);
42
+
43
+ /**
44
+ * Describes the message secrets.v1.GetSecretResponse.
45
+ * Use `create(GetSecretResponseSchema)` to create a new message.
46
+ */
47
+ export const GetSecretResponseSchema = /*@__PURE__*/
48
+ messageDesc(file_secrets_v1_secrets, 4);
49
+
50
+ /**
51
+ * Describes the message secrets.v1.ListSecretsRequest.
52
+ * Use `create(ListSecretsRequestSchema)` to create a new message.
53
+ */
54
+ export const ListSecretsRequestSchema = /*@__PURE__*/
55
+ messageDesc(file_secrets_v1_secrets, 5);
56
+
57
+ /**
58
+ * Describes the message secrets.v1.ListSecretsResponse.
59
+ * Use `create(ListSecretsResponseSchema)` to create a new message.
60
+ */
61
+ export const ListSecretsResponseSchema = /*@__PURE__*/
62
+ messageDesc(file_secrets_v1_secrets, 6);
63
+
64
+ /**
65
+ * Describes the message secrets.v1.RotateSecretRequest.
66
+ * Use `create(RotateSecretRequestSchema)` to create a new message.
67
+ */
68
+ export const RotateSecretRequestSchema = /*@__PURE__*/
69
+ messageDesc(file_secrets_v1_secrets, 7);
70
+
71
+ /**
72
+ * Describes the message secrets.v1.RotateSecretResponse.
73
+ * Use `create(RotateSecretResponseSchema)` to create a new message.
74
+ */
75
+ export const RotateSecretResponseSchema = /*@__PURE__*/
76
+ messageDesc(file_secrets_v1_secrets, 8);
77
+
78
+ /**
79
+ * Describes the message secrets.v1.DeleteSecretRequest.
80
+ * Use `create(DeleteSecretRequestSchema)` to create a new message.
81
+ */
82
+ export const DeleteSecretRequestSchema = /*@__PURE__*/
83
+ messageDesc(file_secrets_v1_secrets, 9);
84
+
85
+ /**
86
+ * Describes the message secrets.v1.DeleteSecretResponse.
87
+ * Use `create(DeleteSecretResponseSchema)` to create a new message.
88
+ */
89
+ export const DeleteSecretResponseSchema = /*@__PURE__*/
90
+ messageDesc(file_secrets_v1_secrets, 10);
91
+
92
+ /**
93
+ * Describes the message secrets.v1.RestoreSecretRequest.
94
+ * Use `create(RestoreSecretRequestSchema)` to create a new message.
95
+ */
96
+ export const RestoreSecretRequestSchema = /*@__PURE__*/
97
+ messageDesc(file_secrets_v1_secrets, 11);
98
+
99
+ /**
100
+ * Describes the message secrets.v1.RestoreSecretResponse.
101
+ * Use `create(RestoreSecretResponseSchema)` to create a new message.
102
+ */
103
+ export const RestoreSecretResponseSchema = /*@__PURE__*/
104
+ messageDesc(file_secrets_v1_secrets, 12);
105
+
106
+ /**
107
+ * Describes the message secrets.v1.PurgeSoftDeletedRequest.
108
+ * Use `create(PurgeSoftDeletedRequestSchema)` to create a new message.
109
+ */
110
+ export const PurgeSoftDeletedRequestSchema = /*@__PURE__*/
111
+ messageDesc(file_secrets_v1_secrets, 13);
112
+
113
+ /**
114
+ * Describes the message secrets.v1.PurgeSoftDeletedResponse.
115
+ * Use `create(PurgeSoftDeletedResponseSchema)` to create a new message.
116
+ */
117
+ export const PurgeSoftDeletedResponseSchema = /*@__PURE__*/
118
+ messageDesc(file_secrets_v1_secrets, 14);
119
+
120
+ /**
121
+ * Describes the enum secrets.v1.OwnerKind.
122
+ */
123
+ export const OwnerKindSchema = /*@__PURE__*/
124
+ enumDesc(file_secrets_v1_secrets, 0);
125
+
126
+ /**
127
+ * OwnerKind identifies the entity that owns a secret. Tenant-wide secrets
128
+ * are intentionally excluded — tenants are workspaces of projects, not data
129
+ * containers.
130
+ *
131
+ * @generated from enum secrets.v1.OwnerKind
132
+ */
133
+ export const OwnerKind = /*@__PURE__*/
134
+ tsEnum(OwnerKindSchema);
135
+
136
+ /**
137
+ * @generated from service secrets.v1.SecretsService
138
+ */
139
+ export const SecretsService = /*@__PURE__*/
140
+ serviceDesc(file_secrets_v1_secrets, 0);
141
+