@reallyme/jose 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,1411 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file reallyme/jose/v1/jose.proto.
5
+ */
6
+ export declare const file_reallyme_jose_v1_jose: GenFile;
7
+ /**
8
+ * JoseError is the public, non-PII error envelope for JOSE boundary failures.
9
+ * The oneof keeps caller-owned input/primitive failures, provider availability
10
+ * failures, and backend/internal failures distinct while JoseErrorReason keeps
11
+ * the exact JOSE-specific reason stable end-to-end.
12
+ *
13
+ * @generated from message reallyme.jose.v1.JoseError
14
+ */
15
+ export type JoseError = Message<"reallyme.jose.v1.JoseError"> & {
16
+ /**
17
+ * @generated from oneof reallyme.jose.v1.JoseError.error
18
+ */
19
+ error: {
20
+ /**
21
+ * @generated from field: reallyme.jose.v1.JosePrimitiveError primitive = 1;
22
+ */
23
+ value: JosePrimitiveError;
24
+ case: "primitive";
25
+ } | {
26
+ /**
27
+ * @generated from field: reallyme.jose.v1.JoseProviderError provider = 2;
28
+ */
29
+ value: JoseProviderError;
30
+ case: "provider";
31
+ } | {
32
+ /**
33
+ * @generated from field: reallyme.jose.v1.JoseBackendError backend = 3;
34
+ */
35
+ value: JoseBackendError;
36
+ case: "backend";
37
+ } | {
38
+ case: undefined;
39
+ value?: undefined;
40
+ };
41
+ };
42
+ /**
43
+ * Describes the message reallyme.jose.v1.JoseError.
44
+ * Use `create(JoseErrorSchema)` to create a new message.
45
+ */
46
+ export declare const JoseErrorSchema: GenMessage<JoseError>;
47
+ /**
48
+ * JosePrimitiveError describes caller-owned protobuf/JSON input, compact
49
+ * serialization, protected-header policy, key material, signature,
50
+ * authentication, claims, and payload failures.
51
+ *
52
+ * @generated from message reallyme.jose.v1.JosePrimitiveError
53
+ */
54
+ export type JosePrimitiveError = Message<"reallyme.jose.v1.JosePrimitiveError"> & {
55
+ /**
56
+ * @generated from field: reallyme.jose.v1.JoseErrorReason reason = 1;
57
+ */
58
+ reason: JoseErrorReason;
59
+ };
60
+ /**
61
+ * Describes the message reallyme.jose.v1.JosePrimitiveError.
62
+ * Use `create(JosePrimitiveErrorSchema)` to create a new message.
63
+ */
64
+ export declare const JosePrimitiveErrorSchema: GenMessage<JosePrimitiveError>;
65
+ /**
66
+ * JoseProviderError describes unsupported algorithms, unavailable providers,
67
+ * and platform randomness failures.
68
+ *
69
+ * @generated from message reallyme.jose.v1.JoseProviderError
70
+ */
71
+ export type JoseProviderError = Message<"reallyme.jose.v1.JoseProviderError"> & {
72
+ /**
73
+ * @generated from field: reallyme.jose.v1.JoseErrorReason reason = 1;
74
+ */
75
+ reason: JoseErrorReason;
76
+ };
77
+ /**
78
+ * Describes the message reallyme.jose.v1.JoseProviderError.
79
+ * Use `create(JoseProviderErrorSchema)` to create a new message.
80
+ */
81
+ export declare const JoseProviderErrorSchema: GenMessage<JoseProviderError>;
82
+ /**
83
+ * JoseBackendError describes output serialization, cryptographic backend, FFI,
84
+ * WASM, and internal failures that are not safe to expose as backend exception
85
+ * text. Malformed caller input does not belong to this branch.
86
+ *
87
+ * @generated from message reallyme.jose.v1.JoseBackendError
88
+ */
89
+ export type JoseBackendError = Message<"reallyme.jose.v1.JoseBackendError"> & {
90
+ /**
91
+ * @generated from field: reallyme.jose.v1.JoseErrorReason reason = 1;
92
+ */
93
+ reason: JoseErrorReason;
94
+ };
95
+ /**
96
+ * Describes the message reallyme.jose.v1.JoseBackendError.
97
+ * Use `create(JoseBackendErrorSchema)` to create a new message.
98
+ */
99
+ export declare const JoseBackendErrorSchema: GenMessage<JoseBackendError>;
100
+ /**
101
+ * JoseOperationResponse is the canonical 0.3.0 executable response. The low
102
+ * field-number range remains reserved so future revisions cannot reuse or
103
+ * ambiguously reinterpret it. Boundary errors are limited to failures before
104
+ * a trusted operation variant can be selected; operation failures remain
105
+ * nested under the selected operation.
106
+ *
107
+ * @generated from message reallyme.jose.v1.JoseOperationResponse
108
+ */
109
+ export type JoseOperationResponse = Message<"reallyme.jose.v1.JoseOperationResponse"> & {
110
+ /**
111
+ * @generated from field: reallyme.jose.v1.JoseOperationContractVersion contract_version = 10;
112
+ */
113
+ contractVersion: JoseOperationContractVersion;
114
+ /**
115
+ * @generated from oneof reallyme.jose.v1.JoseOperationResponse.response
116
+ */
117
+ response: {
118
+ /**
119
+ * @generated from field: reallyme.jose.v1.JoseError boundary_error = 900;
120
+ */
121
+ value: JoseError;
122
+ case: "boundaryError";
123
+ } | {
124
+ /**
125
+ * Compact JWS operations: 1000-1999.
126
+ *
127
+ * @generated from field: reallyme.jose.v1.JoseJwsSignResponse jws_sign = 1000;
128
+ */
129
+ value: JoseJwsSignResponse;
130
+ case: "jwsSign";
131
+ } | {
132
+ /**
133
+ * @generated from field: reallyme.jose.v1.JoseJwsVerifyResponse jws_verify = 1001;
134
+ */
135
+ value: JoseJwsVerifyResponse;
136
+ case: "jwsVerify";
137
+ } | {
138
+ /**
139
+ * JWT operations: 2000-2999.
140
+ *
141
+ * @generated from field: reallyme.jose.v1.JoseJwtEncodeUnsignedResponse jwt_encode_unsigned = 2000;
142
+ */
143
+ value: JoseJwtEncodeUnsignedResponse;
144
+ case: "jwtEncodeUnsigned";
145
+ } | {
146
+ /**
147
+ * @generated from field: reallyme.jose.v1.JoseJwtDecodeUnsignedResponse jwt_decode_unsigned = 2001;
148
+ */
149
+ value: JoseJwtDecodeUnsignedResponse;
150
+ case: "jwtDecodeUnsigned";
151
+ } | {
152
+ /**
153
+ * @generated from field: reallyme.jose.v1.JoseJwtSignResponse jwt_sign = 2002;
154
+ */
155
+ value: JoseJwtSignResponse;
156
+ case: "jwtSign";
157
+ } | {
158
+ /**
159
+ * @generated from field: reallyme.jose.v1.JoseJwtVerifyResponse jwt_verify = 2003;
160
+ */
161
+ value: JoseJwtVerifyResponse;
162
+ case: "jwtVerify";
163
+ } | {
164
+ /**
165
+ * Compact JWE operations: 3000-3999.
166
+ *
167
+ * @generated from field: reallyme.jose.v1.JoseJweEncryptResponse jwe_encrypt = 3000;
168
+ */
169
+ value: JoseJweEncryptResponse;
170
+ case: "jweEncrypt";
171
+ } | {
172
+ /**
173
+ * @generated from field: reallyme.jose.v1.JoseJweDecryptResponse jwe_decrypt = 3001;
174
+ */
175
+ value: JoseJweDecryptResponse;
176
+ case: "jweDecrypt";
177
+ } | {
178
+ case: undefined;
179
+ value?: undefined;
180
+ };
181
+ };
182
+ /**
183
+ * Describes the message reallyme.jose.v1.JoseOperationResponse.
184
+ * Use `create(JoseOperationResponseSchema)` to create a new message.
185
+ */
186
+ export declare const JoseOperationResponseSchema: GenMessage<JoseOperationResponse>;
187
+ /**
188
+ * JoseOperationRequest is the single executable protobuf entrypoint for
189
+ * FFI, JNI, WASM, and other operation adapters. Native SDKs should keep
190
+ * using typed methods; adapters can use this generated oneof to avoid
191
+ * hand-rolled operation routing and error-envelope plumbing.
192
+ *
193
+ * @generated from message reallyme.jose.v1.JoseOperationRequest
194
+ */
195
+ export type JoseOperationRequest = Message<"reallyme.jose.v1.JoseOperationRequest"> & {
196
+ /**
197
+ * @generated from oneof reallyme.jose.v1.JoseOperationRequest.operation
198
+ */
199
+ operation: {
200
+ /**
201
+ * Compact JWS operations: 1000-1999.
202
+ *
203
+ * @generated from field: reallyme.jose.v1.JoseJwsSignRequest jws_sign = 1000;
204
+ */
205
+ value: JoseJwsSignRequest;
206
+ case: "jwsSign";
207
+ } | {
208
+ /**
209
+ * @generated from field: reallyme.jose.v1.JoseJwsVerifyRequest jws_verify = 1001;
210
+ */
211
+ value: JoseJwsVerifyRequest;
212
+ case: "jwsVerify";
213
+ } | {
214
+ /**
215
+ * JWT operations: 2000-2999.
216
+ *
217
+ * @generated from field: reallyme.jose.v1.JoseJwtEncodeUnsignedRequest jwt_encode_unsigned = 2000;
218
+ */
219
+ value: JoseJwtEncodeUnsignedRequest;
220
+ case: "jwtEncodeUnsigned";
221
+ } | {
222
+ /**
223
+ * @generated from field: reallyme.jose.v1.JoseJwtDecodeUnsignedRequest jwt_decode_unsigned = 2001;
224
+ */
225
+ value: JoseJwtDecodeUnsignedRequest;
226
+ case: "jwtDecodeUnsigned";
227
+ } | {
228
+ /**
229
+ * @generated from field: reallyme.jose.v1.JoseJwtSignRequest jwt_sign = 2002;
230
+ */
231
+ value: JoseJwtSignRequest;
232
+ case: "jwtSign";
233
+ } | {
234
+ /**
235
+ * @generated from field: reallyme.jose.v1.JoseJwtVerifyRequest jwt_verify = 2003;
236
+ */
237
+ value: JoseJwtVerifyRequest;
238
+ case: "jwtVerify";
239
+ } | {
240
+ /**
241
+ * Compact JWE operations: 3000-3999.
242
+ *
243
+ * @generated from field: reallyme.jose.v1.JoseJweEncryptRequest jwe_encrypt = 3000;
244
+ */
245
+ value: JoseJweEncryptRequest;
246
+ case: "jweEncrypt";
247
+ } | {
248
+ /**
249
+ * @generated from field: reallyme.jose.v1.JoseJweDecryptRequest jwe_decrypt = 3001;
250
+ */
251
+ value: JoseJweDecryptRequest;
252
+ case: "jweDecrypt";
253
+ } | {
254
+ case: undefined;
255
+ value?: undefined;
256
+ };
257
+ };
258
+ /**
259
+ * Describes the message reallyme.jose.v1.JoseOperationRequest.
260
+ * Use `create(JoseOperationRequestSchema)` to create a new message.
261
+ */
262
+ export declare const JoseOperationRequestSchema: GenMessage<JoseOperationRequest>;
263
+ /**
264
+ * @generated from message reallyme.jose.v1.JoseJwsSignRequest
265
+ */
266
+ export type JoseJwsSignRequest = Message<"reallyme.jose.v1.JoseJwsSignRequest"> & {
267
+ /**
268
+ * @generated from field: reallyme.jose.v1.JoseSignatureAlgorithm algorithm = 1;
269
+ */
270
+ algorithm: JoseSignatureAlgorithm;
271
+ /**
272
+ * Sensitive signing key bytes. Adapters must zeroize after dispatch and must
273
+ * not log, trace, or include this field in errors.
274
+ *
275
+ * @generated from field: bytes private_key = 2;
276
+ */
277
+ privateKey: Uint8Array;
278
+ /**
279
+ * Payload bytes for compact JWS signing. The current native SDK facade signs
280
+ * UTF-8 payloads; non-UTF-8 wire payloads fail closed with
281
+ * JOSE_ERROR_REASON_JWS_INVALID_PAYLOAD_UTF8.
282
+ *
283
+ * @generated from field: bytes payload = 3;
284
+ */
285
+ payload: Uint8Array;
286
+ };
287
+ /**
288
+ * Describes the message reallyme.jose.v1.JoseJwsSignRequest.
289
+ * Use `create(JoseJwsSignRequestSchema)` to create a new message.
290
+ */
291
+ export declare const JoseJwsSignRequestSchema: GenMessage<JoseJwsSignRequest>;
292
+ /**
293
+ * @generated from message reallyme.jose.v1.JoseCompactResult
294
+ */
295
+ export type JoseCompactResult = Message<"reallyme.jose.v1.JoseCompactResult"> & {
296
+ /**
297
+ * @generated from field: string compact = 1;
298
+ */
299
+ compact: string;
300
+ };
301
+ /**
302
+ * Describes the message reallyme.jose.v1.JoseCompactResult.
303
+ * Use `create(JoseCompactResultSchema)` to create a new message.
304
+ */
305
+ export declare const JoseCompactResultSchema: GenMessage<JoseCompactResult>;
306
+ /**
307
+ * @generated from message reallyme.jose.v1.JoseJwsVerifyRequest
308
+ */
309
+ export type JoseJwsVerifyRequest = Message<"reallyme.jose.v1.JoseJwsVerifyRequest"> & {
310
+ /**
311
+ * @generated from field: reallyme.jose.v1.JoseSignatureAlgorithm algorithm = 1;
312
+ */
313
+ algorithm: JoseSignatureAlgorithm;
314
+ /**
315
+ * @generated from field: string compact = 2;
316
+ */
317
+ compact: string;
318
+ /**
319
+ * Public verification key bytes. Public material is still boundary data and
320
+ * must not be copied into errors or telemetry.
321
+ *
322
+ * @generated from field: bytes public_key = 3;
323
+ */
324
+ publicKey: Uint8Array;
325
+ };
326
+ /**
327
+ * Describes the message reallyme.jose.v1.JoseJwsVerifyRequest.
328
+ * Use `create(JoseJwsVerifyRequestSchema)` to create a new message.
329
+ */
330
+ export declare const JoseJwsVerifyRequestSchema: GenMessage<JoseJwsVerifyRequest>;
331
+ /**
332
+ * Empty success message. Verification success is represented by envelope
333
+ * status = RESULT; verification failure is represented by a structured
334
+ * JoseError envelope and must not be inferred from message fields.
335
+ *
336
+ * @generated from message reallyme.jose.v1.JoseVerifyResult
337
+ */
338
+ export type JoseVerifyResult = Message<"reallyme.jose.v1.JoseVerifyResult"> & {};
339
+ /**
340
+ * Describes the message reallyme.jose.v1.JoseVerifyResult.
341
+ * Use `create(JoseVerifyResultSchema)` to create a new message.
342
+ */
343
+ export declare const JoseVerifyResultSchema: GenMessage<JoseVerifyResult>;
344
+ /**
345
+ * @generated from message reallyme.jose.v1.JoseJwtEncodeUnsignedRequest
346
+ */
347
+ export type JoseJwtEncodeUnsignedRequest = Message<"reallyme.jose.v1.JoseJwtEncodeUnsignedRequest"> & {
348
+ /**
349
+ * Claims JSON bytes. Claims can contain PII and must be zeroized after use.
350
+ *
351
+ * @generated from field: bytes claims_json = 1;
352
+ */
353
+ claimsJson: Uint8Array;
354
+ };
355
+ /**
356
+ * Describes the message reallyme.jose.v1.JoseJwtEncodeUnsignedRequest.
357
+ * Use `create(JoseJwtEncodeUnsignedRequestSchema)` to create a new message.
358
+ */
359
+ export declare const JoseJwtEncodeUnsignedRequestSchema: GenMessage<JoseJwtEncodeUnsignedRequest>;
360
+ /**
361
+ * @generated from message reallyme.jose.v1.JoseJwtDecodeUnsignedRequest
362
+ */
363
+ export type JoseJwtDecodeUnsignedRequest = Message<"reallyme.jose.v1.JoseJwtDecodeUnsignedRequest"> & {
364
+ /**
365
+ * @generated from field: string compact = 1;
366
+ */
367
+ compact: string;
368
+ };
369
+ /**
370
+ * Describes the message reallyme.jose.v1.JoseJwtDecodeUnsignedRequest.
371
+ * Use `create(JoseJwtDecodeUnsignedRequestSchema)` to create a new message.
372
+ */
373
+ export declare const JoseJwtDecodeUnsignedRequestSchema: GenMessage<JoseJwtDecodeUnsignedRequest>;
374
+ /**
375
+ * @generated from message reallyme.jose.v1.JoseJwtClaimsResult
376
+ */
377
+ export type JoseJwtClaimsResult = Message<"reallyme.jose.v1.JoseJwtClaimsResult"> & {
378
+ /**
379
+ * Original claims JSON bytes preserved by the wire adapter. These bytes can
380
+ * contain PII and must be zeroized after use.
381
+ *
382
+ * @generated from field: bytes claims_json = 1;
383
+ */
384
+ claimsJson: Uint8Array;
385
+ };
386
+ /**
387
+ * Describes the message reallyme.jose.v1.JoseJwtClaimsResult.
388
+ * Use `create(JoseJwtClaimsResultSchema)` to create a new message.
389
+ */
390
+ export declare const JoseJwtClaimsResultSchema: GenMessage<JoseJwtClaimsResult>;
391
+ /**
392
+ * @generated from message reallyme.jose.v1.JoseJwtSignRequest
393
+ */
394
+ export type JoseJwtSignRequest = Message<"reallyme.jose.v1.JoseJwtSignRequest"> & {
395
+ /**
396
+ * Claims JSON bytes. Claims can contain PII and must be zeroized after use.
397
+ *
398
+ * @generated from field: bytes claims_json = 1;
399
+ */
400
+ claimsJson: Uint8Array;
401
+ /**
402
+ * JWK JSON bytes used for algorithm and key-id binding. Adapters must treat
403
+ * this as sensitive boundary input and avoid logging it.
404
+ *
405
+ * @generated from field: bytes jwk_json = 2;
406
+ */
407
+ jwkJson: Uint8Array;
408
+ /**
409
+ * Sensitive signing key bytes. Adapters must zeroize after dispatch and must
410
+ * not log, trace, or include this field in errors.
411
+ *
412
+ * @generated from field: bytes private_key = 3;
413
+ */
414
+ privateKey: Uint8Array;
415
+ /**
416
+ * Optional protected-header typ. Empty means the native SDK default typ.
417
+ *
418
+ * @generated from field: string typ = 4;
419
+ */
420
+ typ: string;
421
+ };
422
+ /**
423
+ * Describes the message reallyme.jose.v1.JoseJwtSignRequest.
424
+ * Use `create(JoseJwtSignRequestSchema)` to create a new message.
425
+ */
426
+ export declare const JoseJwtSignRequestSchema: GenMessage<JoseJwtSignRequest>;
427
+ /**
428
+ * @generated from message reallyme.jose.v1.JoseJwtVerifyRequest
429
+ */
430
+ export type JoseJwtVerifyRequest = Message<"reallyme.jose.v1.JoseJwtVerifyRequest"> & {
431
+ /**
432
+ * @generated from field: string compact = 1;
433
+ */
434
+ compact: string;
435
+ /**
436
+ * JWK JSON bytes used for algorithm and key-id binding. Adapters must treat
437
+ * this as sensitive boundary input and avoid logging it.
438
+ *
439
+ * @generated from field: bytes jwk_json = 2;
440
+ */
441
+ jwkJson: Uint8Array;
442
+ /**
443
+ * Public verification key bytes. Public material is still boundary data and
444
+ * must not be copied into errors or telemetry.
445
+ *
446
+ * @generated from field: bytes public_key = 3;
447
+ */
448
+ publicKey: Uint8Array;
449
+ /**
450
+ * Presence-sensitive policy. If absent/unset, the standard JWT header policy
451
+ * is used. If present, every field is interpreted literally; in particular,
452
+ * an empty accepted_typ_values list means no present typ value is accepted.
453
+ *
454
+ * @generated from field: reallyme.jose.v1.JoseJwtHeaderValidationPolicy header_policy = 4;
455
+ */
456
+ headerPolicy?: JoseJwtHeaderValidationPolicy | undefined;
457
+ /**
458
+ * Presence-sensitive temporal policy. If absent/unset, signature-only
459
+ * verification is performed only when signature_only is true. If present,
460
+ * every boolean, skew, and timestamp field is interpreted literally.
461
+ *
462
+ * @generated from field: reallyme.jose.v1.JoseJwtTemporalValidationPolicy temporal_policy = 5;
463
+ */
464
+ temporalPolicy?: JoseJwtTemporalValidationPolicy | undefined;
465
+ /**
466
+ * Required when temporal_policy is absent. This makes signature-only
467
+ * verification an explicit adapter choice rather than a proto3 default.
468
+ *
469
+ * @generated from field: bool signature_only = 6;
470
+ */
471
+ signatureOnly: boolean;
472
+ };
473
+ /**
474
+ * Describes the message reallyme.jose.v1.JoseJwtVerifyRequest.
475
+ * Use `create(JoseJwtVerifyRequestSchema)` to create a new message.
476
+ */
477
+ export declare const JoseJwtVerifyRequestSchema: GenMessage<JoseJwtVerifyRequest>;
478
+ /**
479
+ * @generated from message reallyme.jose.v1.JoseJwtHeaderValidationPolicy
480
+ */
481
+ export type JoseJwtHeaderValidationPolicy = Message<"reallyme.jose.v1.JoseJwtHeaderValidationPolicy"> & {
482
+ /**
483
+ * @generated from field: bool allow_missing_typ = 1;
484
+ */
485
+ allowMissingTyp: boolean;
486
+ /**
487
+ * @generated from field: bool allow_embedded_key_header = 2;
488
+ */
489
+ allowEmbeddedKeyHeader: boolean;
490
+ /**
491
+ * @generated from field: repeated string accepted_typ_values = 3;
492
+ */
493
+ acceptedTypValues: string[];
494
+ };
495
+ /**
496
+ * Describes the message reallyme.jose.v1.JoseJwtHeaderValidationPolicy.
497
+ * Use `create(JoseJwtHeaderValidationPolicySchema)` to create a new message.
498
+ */
499
+ export declare const JoseJwtHeaderValidationPolicySchema: GenMessage<JoseJwtHeaderValidationPolicy>;
500
+ /**
501
+ * @generated from message reallyme.jose.v1.JoseJwtTemporalValidationPolicy
502
+ */
503
+ export type JoseJwtTemporalValidationPolicy = Message<"reallyme.jose.v1.JoseJwtTemporalValidationPolicy"> & {
504
+ /**
505
+ * @generated from field: bool require_exp = 1;
506
+ */
507
+ requireExp: boolean;
508
+ /**
509
+ * @generated from field: bool require_nbf = 2;
510
+ */
511
+ requireNbf: boolean;
512
+ /**
513
+ * @generated from field: bool require_iat = 3;
514
+ */
515
+ requireIat: boolean;
516
+ /**
517
+ * @generated from field: uint64 clock_skew_seconds = 4;
518
+ */
519
+ clockSkewSeconds: bigint;
520
+ /**
521
+ * @generated from field: uint64 max_future_iat_skew_seconds = 5;
522
+ */
523
+ maxFutureIatSkewSeconds: bigint;
524
+ /**
525
+ * Required to be nonzero. Zero is rejected at the wire boundary because
526
+ * proto3 otherwise makes an omitted timestamp indistinguishable from the Unix
527
+ * epoch, which would make expiration validation fail open.
528
+ *
529
+ * @generated from field: uint64 now_unix = 6;
530
+ */
531
+ nowUnix: bigint;
532
+ /**
533
+ * Required recipient identifier. Temporal verification fails closed when
534
+ * this value is empty or the JWT aud claim does not contain it.
535
+ *
536
+ * @generated from field: string expected_audience = 7;
537
+ */
538
+ expectedAudience: string;
539
+ /**
540
+ * Optional exact issuer constraint. Empty means no issuer constraint.
541
+ *
542
+ * @generated from field: string expected_issuer = 8;
543
+ */
544
+ expectedIssuer: string;
545
+ /**
546
+ * Optional exact subject constraint. Empty means no subject constraint.
547
+ *
548
+ * @generated from field: string expected_subject = 9;
549
+ */
550
+ expectedSubject: string;
551
+ };
552
+ /**
553
+ * Describes the message reallyme.jose.v1.JoseJwtTemporalValidationPolicy.
554
+ * Use `create(JoseJwtTemporalValidationPolicySchema)` to create a new message.
555
+ */
556
+ export declare const JoseJwtTemporalValidationPolicySchema: GenMessage<JoseJwtTemporalValidationPolicy>;
557
+ /**
558
+ * @generated from message reallyme.jose.v1.JoseJweEncryptRequest
559
+ */
560
+ export type JoseJweEncryptRequest = Message<"reallyme.jose.v1.JoseJweEncryptRequest"> & {
561
+ /**
562
+ * @generated from field: reallyme.jose.v1.JoseJweKeyManagementAlgorithm key_management_algorithm = 1;
563
+ */
564
+ keyManagementAlgorithm: JoseJweKeyManagementAlgorithm;
565
+ /**
566
+ * @generated from field: reallyme.jose.v1.JoseJweContentEncryptionAlgorithm content_encryption_algorithm = 2;
567
+ */
568
+ contentEncryptionAlgorithm: JoseJweContentEncryptionAlgorithm;
569
+ /**
570
+ * Sensitive direct CEK or recipient public/agreement key bytes, depending on
571
+ * key_management_algorithm. Adapters must zeroize after dispatch.
572
+ *
573
+ * @generated from field: bytes key = 3;
574
+ */
575
+ key: Uint8Array;
576
+ /**
577
+ * Sensitive plaintext bytes. Adapters must zeroize after dispatch and must
578
+ * not log, trace, or include this field in errors.
579
+ *
580
+ * @generated from field: bytes plaintext = 4;
581
+ */
582
+ plaintext: Uint8Array;
583
+ /**
584
+ * @generated from field: string kid = 5;
585
+ */
586
+ kid: string;
587
+ /**
588
+ * Agreement PartyUInfo. This can be correlating protocol metadata and must
589
+ * not be copied into errors or telemetry.
590
+ *
591
+ * @generated from field: bytes apu = 6;
592
+ */
593
+ apu: Uint8Array;
594
+ /**
595
+ * Agreement PartyVInfo. This can be correlating protocol metadata and must
596
+ * not be copied into errors or telemetry.
597
+ *
598
+ * @generated from field: bytes apv = 7;
599
+ */
600
+ apv: Uint8Array;
601
+ /**
602
+ * @generated from field: string typ = 8;
603
+ */
604
+ typ: string;
605
+ /**
606
+ * @generated from field: string cty = 9;
607
+ */
608
+ cty: string;
609
+ };
610
+ /**
611
+ * Describes the message reallyme.jose.v1.JoseJweEncryptRequest.
612
+ * Use `create(JoseJweEncryptRequestSchema)` to create a new message.
613
+ */
614
+ export declare const JoseJweEncryptRequestSchema: GenMessage<JoseJweEncryptRequest>;
615
+ /**
616
+ * @generated from message reallyme.jose.v1.JoseJweDecryptRequest
617
+ */
618
+ export type JoseJweDecryptRequest = Message<"reallyme.jose.v1.JoseJweDecryptRequest"> & {
619
+ /**
620
+ * @generated from field: string compact = 1;
621
+ */
622
+ compact: string;
623
+ /**
624
+ * @generated from field: reallyme.jose.v1.JoseJweKeyManagementAlgorithm key_management_algorithm = 2;
625
+ */
626
+ keyManagementAlgorithm: JoseJweKeyManagementAlgorithm;
627
+ /**
628
+ * @generated from field: reallyme.jose.v1.JoseJweContentEncryptionAlgorithm content_encryption_algorithm = 3;
629
+ */
630
+ contentEncryptionAlgorithm: JoseJweContentEncryptionAlgorithm;
631
+ /**
632
+ * Sensitive direct CEK or recipient private/agreement key bytes, depending on
633
+ * key_management_algorithm. Adapters must zeroize after dispatch.
634
+ *
635
+ * @generated from field: bytes key = 4;
636
+ */
637
+ key: Uint8Array;
638
+ /**
639
+ * Presence-sensitive protected-header validation policy. Absence means only
640
+ * algorithm binding and structural JOSE validation are enforced.
641
+ *
642
+ * @generated from field: reallyme.jose.v1.JoseJweHeaderValidationPolicy header_policy = 5;
643
+ */
644
+ headerPolicy?: JoseJweHeaderValidationPolicy | undefined;
645
+ };
646
+ /**
647
+ * Describes the message reallyme.jose.v1.JoseJweDecryptRequest.
648
+ * Use `create(JoseJweDecryptRequestSchema)` to create a new message.
649
+ */
650
+ export declare const JoseJweDecryptRequestSchema: GenMessage<JoseJweDecryptRequest>;
651
+ /**
652
+ * @generated from message reallyme.jose.v1.JoseExpectedString
653
+ */
654
+ export type JoseExpectedString = Message<"reallyme.jose.v1.JoseExpectedString"> & {
655
+ /**
656
+ * @generated from field: string value = 1;
657
+ */
658
+ value: string;
659
+ };
660
+ /**
661
+ * Describes the message reallyme.jose.v1.JoseExpectedString.
662
+ * Use `create(JoseExpectedStringSchema)` to create a new message.
663
+ */
664
+ export declare const JoseExpectedStringSchema: GenMessage<JoseExpectedString>;
665
+ /**
666
+ * @generated from message reallyme.jose.v1.JoseExpectedBytes
667
+ */
668
+ export type JoseExpectedBytes = Message<"reallyme.jose.v1.JoseExpectedBytes"> & {
669
+ /**
670
+ * @generated from field: bytes value = 1;
671
+ */
672
+ value: Uint8Array;
673
+ };
674
+ /**
675
+ * Describes the message reallyme.jose.v1.JoseExpectedBytes.
676
+ * Use `create(JoseExpectedBytesSchema)` to create a new message.
677
+ */
678
+ export declare const JoseExpectedBytesSchema: GenMessage<JoseExpectedBytes>;
679
+ /**
680
+ * @generated from message reallyme.jose.v1.JoseJweHeaderValidationPolicy
681
+ */
682
+ export type JoseJweHeaderValidationPolicy = Message<"reallyme.jose.v1.JoseJweHeaderValidationPolicy"> & {
683
+ /**
684
+ * @generated from field: bool require_kid = 1;
685
+ */
686
+ requireKid: boolean;
687
+ /**
688
+ * @generated from field: reallyme.jose.v1.JoseExpectedString expected_kid = 2;
689
+ */
690
+ expectedKid?: JoseExpectedString | undefined;
691
+ /**
692
+ * @generated from field: reallyme.jose.v1.JoseExpectedString expected_typ = 3;
693
+ */
694
+ expectedTyp?: JoseExpectedString | undefined;
695
+ /**
696
+ * @generated from field: reallyme.jose.v1.JoseExpectedString expected_cty = 4;
697
+ */
698
+ expectedCty?: JoseExpectedString | undefined;
699
+ /**
700
+ * @generated from field: reallyme.jose.v1.JoseExpectedBytes expected_apu = 5;
701
+ */
702
+ expectedApu?: JoseExpectedBytes | undefined;
703
+ /**
704
+ * @generated from field: reallyme.jose.v1.JoseExpectedBytes expected_apv = 6;
705
+ */
706
+ expectedApv?: JoseExpectedBytes | undefined;
707
+ };
708
+ /**
709
+ * Describes the message reallyme.jose.v1.JoseJweHeaderValidationPolicy.
710
+ * Use `create(JoseJweHeaderValidationPolicySchema)` to create a new message.
711
+ */
712
+ export declare const JoseJweHeaderValidationPolicySchema: GenMessage<JoseJweHeaderValidationPolicy>;
713
+ /**
714
+ * @generated from message reallyme.jose.v1.JoseJwePlaintextResult
715
+ */
716
+ export type JoseJwePlaintextResult = Message<"reallyme.jose.v1.JoseJwePlaintextResult"> & {
717
+ /**
718
+ * Sensitive decrypted plaintext bytes. Adapters must zeroize after use and
719
+ * must not log, trace, or include this field in errors.
720
+ *
721
+ * @generated from field: bytes plaintext = 1;
722
+ */
723
+ plaintext: Uint8Array;
724
+ };
725
+ /**
726
+ * Describes the message reallyme.jose.v1.JoseJwePlaintextResult.
727
+ * Use `create(JoseJwePlaintextResultSchema)` to create a new message.
728
+ */
729
+ export declare const JoseJwePlaintextResultSchema: GenMessage<JoseJwePlaintextResult>;
730
+ /**
731
+ * @generated from message reallyme.jose.v1.JoseJwsSignResponse
732
+ */
733
+ export type JoseJwsSignResponse = Message<"reallyme.jose.v1.JoseJwsSignResponse"> & {
734
+ /**
735
+ * @generated from oneof reallyme.jose.v1.JoseJwsSignResponse.outcome
736
+ */
737
+ outcome: {
738
+ /**
739
+ * @generated from field: reallyme.jose.v1.JoseCompactResult result = 1;
740
+ */
741
+ value: JoseCompactResult;
742
+ case: "result";
743
+ } | {
744
+ /**
745
+ * @generated from field: reallyme.jose.v1.JoseError error = 2;
746
+ */
747
+ value: JoseError;
748
+ case: "error";
749
+ } | {
750
+ case: undefined;
751
+ value?: undefined;
752
+ };
753
+ };
754
+ /**
755
+ * Describes the message reallyme.jose.v1.JoseJwsSignResponse.
756
+ * Use `create(JoseJwsSignResponseSchema)` to create a new message.
757
+ */
758
+ export declare const JoseJwsSignResponseSchema: GenMessage<JoseJwsSignResponse>;
759
+ /**
760
+ * @generated from message reallyme.jose.v1.JoseJwsVerifyResponse
761
+ */
762
+ export type JoseJwsVerifyResponse = Message<"reallyme.jose.v1.JoseJwsVerifyResponse"> & {
763
+ /**
764
+ * @generated from oneof reallyme.jose.v1.JoseJwsVerifyResponse.outcome
765
+ */
766
+ outcome: {
767
+ /**
768
+ * @generated from field: reallyme.jose.v1.JoseVerifyResult result = 1;
769
+ */
770
+ value: JoseVerifyResult;
771
+ case: "result";
772
+ } | {
773
+ /**
774
+ * @generated from field: reallyme.jose.v1.JoseError error = 2;
775
+ */
776
+ value: JoseError;
777
+ case: "error";
778
+ } | {
779
+ case: undefined;
780
+ value?: undefined;
781
+ };
782
+ };
783
+ /**
784
+ * Describes the message reallyme.jose.v1.JoseJwsVerifyResponse.
785
+ * Use `create(JoseJwsVerifyResponseSchema)` to create a new message.
786
+ */
787
+ export declare const JoseJwsVerifyResponseSchema: GenMessage<JoseJwsVerifyResponse>;
788
+ /**
789
+ * @generated from message reallyme.jose.v1.JoseJwtEncodeUnsignedResponse
790
+ */
791
+ export type JoseJwtEncodeUnsignedResponse = Message<"reallyme.jose.v1.JoseJwtEncodeUnsignedResponse"> & {
792
+ /**
793
+ * @generated from oneof reallyme.jose.v1.JoseJwtEncodeUnsignedResponse.outcome
794
+ */
795
+ outcome: {
796
+ /**
797
+ * @generated from field: reallyme.jose.v1.JoseCompactResult result = 1;
798
+ */
799
+ value: JoseCompactResult;
800
+ case: "result";
801
+ } | {
802
+ /**
803
+ * @generated from field: reallyme.jose.v1.JoseError error = 2;
804
+ */
805
+ value: JoseError;
806
+ case: "error";
807
+ } | {
808
+ case: undefined;
809
+ value?: undefined;
810
+ };
811
+ };
812
+ /**
813
+ * Describes the message reallyme.jose.v1.JoseJwtEncodeUnsignedResponse.
814
+ * Use `create(JoseJwtEncodeUnsignedResponseSchema)` to create a new message.
815
+ */
816
+ export declare const JoseJwtEncodeUnsignedResponseSchema: GenMessage<JoseJwtEncodeUnsignedResponse>;
817
+ /**
818
+ * @generated from message reallyme.jose.v1.JoseJwtDecodeUnsignedResponse
819
+ */
820
+ export type JoseJwtDecodeUnsignedResponse = Message<"reallyme.jose.v1.JoseJwtDecodeUnsignedResponse"> & {
821
+ /**
822
+ * @generated from oneof reallyme.jose.v1.JoseJwtDecodeUnsignedResponse.outcome
823
+ */
824
+ outcome: {
825
+ /**
826
+ * @generated from field: reallyme.jose.v1.JoseJwtClaimsResult result = 1;
827
+ */
828
+ value: JoseJwtClaimsResult;
829
+ case: "result";
830
+ } | {
831
+ /**
832
+ * @generated from field: reallyme.jose.v1.JoseError error = 2;
833
+ */
834
+ value: JoseError;
835
+ case: "error";
836
+ } | {
837
+ case: undefined;
838
+ value?: undefined;
839
+ };
840
+ };
841
+ /**
842
+ * Describes the message reallyme.jose.v1.JoseJwtDecodeUnsignedResponse.
843
+ * Use `create(JoseJwtDecodeUnsignedResponseSchema)` to create a new message.
844
+ */
845
+ export declare const JoseJwtDecodeUnsignedResponseSchema: GenMessage<JoseJwtDecodeUnsignedResponse>;
846
+ /**
847
+ * @generated from message reallyme.jose.v1.JoseJwtSignResponse
848
+ */
849
+ export type JoseJwtSignResponse = Message<"reallyme.jose.v1.JoseJwtSignResponse"> & {
850
+ /**
851
+ * @generated from oneof reallyme.jose.v1.JoseJwtSignResponse.outcome
852
+ */
853
+ outcome: {
854
+ /**
855
+ * @generated from field: reallyme.jose.v1.JoseCompactResult result = 1;
856
+ */
857
+ value: JoseCompactResult;
858
+ case: "result";
859
+ } | {
860
+ /**
861
+ * @generated from field: reallyme.jose.v1.JoseError error = 2;
862
+ */
863
+ value: JoseError;
864
+ case: "error";
865
+ } | {
866
+ case: undefined;
867
+ value?: undefined;
868
+ };
869
+ };
870
+ /**
871
+ * Describes the message reallyme.jose.v1.JoseJwtSignResponse.
872
+ * Use `create(JoseJwtSignResponseSchema)` to create a new message.
873
+ */
874
+ export declare const JoseJwtSignResponseSchema: GenMessage<JoseJwtSignResponse>;
875
+ /**
876
+ * @generated from message reallyme.jose.v1.JoseJwtVerifyResponse
877
+ */
878
+ export type JoseJwtVerifyResponse = Message<"reallyme.jose.v1.JoseJwtVerifyResponse"> & {
879
+ /**
880
+ * @generated from oneof reallyme.jose.v1.JoseJwtVerifyResponse.outcome
881
+ */
882
+ outcome: {
883
+ /**
884
+ * @generated from field: reallyme.jose.v1.JoseJwtClaimsResult result = 1;
885
+ */
886
+ value: JoseJwtClaimsResult;
887
+ case: "result";
888
+ } | {
889
+ /**
890
+ * @generated from field: reallyme.jose.v1.JoseError error = 2;
891
+ */
892
+ value: JoseError;
893
+ case: "error";
894
+ } | {
895
+ case: undefined;
896
+ value?: undefined;
897
+ };
898
+ };
899
+ /**
900
+ * Describes the message reallyme.jose.v1.JoseJwtVerifyResponse.
901
+ * Use `create(JoseJwtVerifyResponseSchema)` to create a new message.
902
+ */
903
+ export declare const JoseJwtVerifyResponseSchema: GenMessage<JoseJwtVerifyResponse>;
904
+ /**
905
+ * @generated from message reallyme.jose.v1.JoseJweEncryptResponse
906
+ */
907
+ export type JoseJweEncryptResponse = Message<"reallyme.jose.v1.JoseJweEncryptResponse"> & {
908
+ /**
909
+ * @generated from oneof reallyme.jose.v1.JoseJweEncryptResponse.outcome
910
+ */
911
+ outcome: {
912
+ /**
913
+ * @generated from field: reallyme.jose.v1.JoseCompactResult result = 1;
914
+ */
915
+ value: JoseCompactResult;
916
+ case: "result";
917
+ } | {
918
+ /**
919
+ * @generated from field: reallyme.jose.v1.JoseError error = 2;
920
+ */
921
+ value: JoseError;
922
+ case: "error";
923
+ } | {
924
+ case: undefined;
925
+ value?: undefined;
926
+ };
927
+ };
928
+ /**
929
+ * Describes the message reallyme.jose.v1.JoseJweEncryptResponse.
930
+ * Use `create(JoseJweEncryptResponseSchema)` to create a new message.
931
+ */
932
+ export declare const JoseJweEncryptResponseSchema: GenMessage<JoseJweEncryptResponse>;
933
+ /**
934
+ * @generated from message reallyme.jose.v1.JoseJweDecryptResponse
935
+ */
936
+ export type JoseJweDecryptResponse = Message<"reallyme.jose.v1.JoseJweDecryptResponse"> & {
937
+ /**
938
+ * @generated from oneof reallyme.jose.v1.JoseJweDecryptResponse.outcome
939
+ */
940
+ outcome: {
941
+ /**
942
+ * @generated from field: reallyme.jose.v1.JoseJwePlaintextResult result = 1;
943
+ */
944
+ value: JoseJwePlaintextResult;
945
+ case: "result";
946
+ } | {
947
+ /**
948
+ * @generated from field: reallyme.jose.v1.JoseError error = 2;
949
+ */
950
+ value: JoseError;
951
+ case: "error";
952
+ } | {
953
+ case: undefined;
954
+ value?: undefined;
955
+ };
956
+ };
957
+ /**
958
+ * Describes the message reallyme.jose.v1.JoseJweDecryptResponse.
959
+ * Use `create(JoseJweDecryptResponseSchema)` to create a new message.
960
+ */
961
+ export declare const JoseJweDecryptResponseSchema: GenMessage<JoseJweDecryptResponse>;
962
+ /**
963
+ * JoseErrorReason is the component-owned reason-code enum for reallyme/jose.
964
+ * Values are stable public boundary codes; internal Rust, Swift, Kotlin, and
965
+ * TypeScript errors must map into one of these before crossing RPC, SDK, FFI,
966
+ * storage, audit, or telemetry boundaries.
967
+ *
968
+ * @generated from enum reallyme.jose.v1.JoseErrorReason
969
+ */
970
+ export declare enum JoseErrorReason {
971
+ /**
972
+ * @generated from enum value: JOSE_ERROR_REASON_UNSPECIFIED = 0;
973
+ */
974
+ UNSPECIFIED = 0,
975
+ /**
976
+ * Compact JWS structure and parser policy: 100-119.
977
+ *
978
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_INVALID_COMPACT = 100;
979
+ */
980
+ JWS_INVALID_COMPACT = 100,
981
+ /**
982
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_INPUT_TOO_LARGE = 101;
983
+ */
984
+ JWS_INPUT_TOO_LARGE = 101,
985
+ /**
986
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_LENGTH_OVERFLOW = 102;
987
+ */
988
+ JWS_LENGTH_OVERFLOW = 102,
989
+ /**
990
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_INVALID_PAYLOAD_UTF8 = 103;
991
+ */
992
+ JWS_INVALID_PAYLOAD_UTF8 = 103,
993
+ /**
994
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_BAD_PAYLOAD_BASE64 = 104;
995
+ */
996
+ JWS_BAD_PAYLOAD_BASE64 = 104,
997
+ /**
998
+ * Compact JWS protected-header policy: 120-139.
999
+ *
1000
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_BAD_HEADER_BASE64 = 120;
1001
+ */
1002
+ JWS_BAD_HEADER_BASE64 = 120,
1003
+ /**
1004
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_BAD_HEADER_UTF8 = 121;
1005
+ */
1006
+ JWS_BAD_HEADER_UTF8 = 121,
1007
+ /**
1008
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_HEADER_MISMATCH = 122;
1009
+ */
1010
+ JWS_HEADER_MISMATCH = 122,
1011
+ /**
1012
+ * Compact JWS signature encoding and verification: 140-159.
1013
+ *
1014
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_BAD_SIGNATURE_BASE64 = 140;
1015
+ */
1016
+ JWS_BAD_SIGNATURE_BASE64 = 140,
1017
+ /**
1018
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_BAD_RAW_SIGNATURE = 141;
1019
+ */
1020
+ JWS_BAD_RAW_SIGNATURE = 141,
1021
+ /**
1022
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_INVALID_SIGNATURE = 142;
1023
+ */
1024
+ JWS_INVALID_SIGNATURE = 142,
1025
+ /**
1026
+ * Compact JWS signing: 160-179.
1027
+ *
1028
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_SIGN_FAILED = 160;
1029
+ */
1030
+ JWS_SIGN_FAILED = 160,
1031
+ /**
1032
+ * @generated from enum value: JOSE_ERROR_REASON_JWS_BAD_DER_SIGNATURE = 161;
1033
+ */
1034
+ JWS_BAD_DER_SIGNATURE = 161,
1035
+ /**
1036
+ * Compact JWE structure and segment encoding: 200-219.
1037
+ *
1038
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_INVALID_COMPACT = 200;
1039
+ */
1040
+ JWE_INVALID_COMPACT = 200,
1041
+ /**
1042
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_INPUT_TOO_LARGE = 201;
1043
+ */
1044
+ JWE_INPUT_TOO_LARGE = 201,
1045
+ /**
1046
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_INVALID_ENCODING = 202;
1047
+ */
1048
+ JWE_INVALID_ENCODING = 202,
1049
+ /**
1050
+ * Compact JWE protected-header policy: 220-239.
1051
+ *
1052
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_INVALID_HEADER = 220;
1053
+ */
1054
+ JWE_INVALID_HEADER = 220,
1055
+ /**
1056
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_UNSUPPORTED_KEY_MANAGEMENT_ALGORITHM = 221;
1057
+ */
1058
+ JWE_UNSUPPORTED_KEY_MANAGEMENT_ALGORITHM = 221,
1059
+ /**
1060
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_UNSUPPORTED_CONTENT_ENCRYPTION_ALGORITHM = 222;
1061
+ */
1062
+ JWE_UNSUPPORTED_CONTENT_ENCRYPTION_ALGORITHM = 222,
1063
+ /**
1064
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_MISSING_REQUIRED_HEADER_PARAMETER = 223;
1065
+ */
1066
+ JWE_MISSING_REQUIRED_HEADER_PARAMETER = 223,
1067
+ /**
1068
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_HEADER_POLICY_MISMATCH = 224;
1069
+ */
1070
+ JWE_HEADER_POLICY_MISMATCH = 224,
1071
+ /**
1072
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_KID_POLICY_MISMATCH = 225;
1073
+ */
1074
+ JWE_KID_POLICY_MISMATCH = 225,
1075
+ /**
1076
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_APU_POLICY_MISMATCH = 226;
1077
+ */
1078
+ JWE_APU_POLICY_MISMATCH = 226,
1079
+ /**
1080
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_APV_POLICY_MISMATCH = 227;
1081
+ */
1082
+ JWE_APV_POLICY_MISMATCH = 227,
1083
+ /**
1084
+ * Compact JWE key-management and content-encryption failures: 240-259.
1085
+ *
1086
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_INVALID_ENCRYPTED_KEY = 240;
1087
+ */
1088
+ JWE_INVALID_ENCRYPTED_KEY = 240,
1089
+ /**
1090
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_INVALID_CONTENT_ENCRYPTION_KEY = 241;
1091
+ */
1092
+ JWE_INVALID_CONTENT_ENCRYPTION_KEY = 241,
1093
+ /**
1094
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_INVALID_CONTENT_CIPHER_INPUT = 242;
1095
+ */
1096
+ JWE_INVALID_CONTENT_CIPHER_INPUT = 242,
1097
+ /**
1098
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_DECRYPT_FAILED = 243;
1099
+ */
1100
+ JWE_DECRYPT_FAILED = 243,
1101
+ /**
1102
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_ENCRYPT_FAILED = 244;
1103
+ */
1104
+ JWE_ENCRYPT_FAILED = 244,
1105
+ /**
1106
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_INVALID_KEY_AGREEMENT_KEY = 245;
1107
+ */
1108
+ JWE_INVALID_KEY_AGREEMENT_KEY = 245,
1109
+ /**
1110
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_LENGTH_OVERFLOW = 246;
1111
+ */
1112
+ JWE_LENGTH_OVERFLOW = 246,
1113
+ /**
1114
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_INVALID_SHARED_SECRET = 247;
1115
+ */
1116
+ JWE_INVALID_SHARED_SECRET = 247,
1117
+ /**
1118
+ * Compact JWE plaintext handling: 260-279.
1119
+ *
1120
+ * @generated from enum value: JOSE_ERROR_REASON_JWE_INVALID_PAYLOAD_JSON = 260;
1121
+ */
1122
+ JWE_INVALID_PAYLOAD_JSON = 260,
1123
+ /**
1124
+ * JWT compact structure and encoding: 300-319.
1125
+ *
1126
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INVALID_COMPACT = 300;
1127
+ */
1128
+ JWT_INVALID_COMPACT = 300,
1129
+ /**
1130
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INPUT_TOO_LARGE = 301;
1131
+ */
1132
+ JWT_INPUT_TOO_LARGE = 301,
1133
+ /**
1134
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_BASE64URL_DECODE_FAILED = 302;
1135
+ */
1136
+ JWT_BASE64URL_DECODE_FAILED = 302,
1137
+ /**
1138
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_LENGTH_OVERFLOW = 303;
1139
+ */
1140
+ JWT_LENGTH_OVERFLOW = 303,
1141
+ /**
1142
+ * JWT JOSE-header policy and algorithm/key binding: 320-339.
1143
+ *
1144
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INVALID_HEADER = 320;
1145
+ */
1146
+ JWT_INVALID_HEADER = 320,
1147
+ /**
1148
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_UNSUPPORTED_ALGORITHM = 321;
1149
+ */
1150
+ JWT_UNSUPPORTED_ALGORITHM = 321,
1151
+ /**
1152
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_ALGORITHM_MISMATCH = 322;
1153
+ */
1154
+ JWT_ALGORITHM_MISMATCH = 322,
1155
+ /**
1156
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_MISSING_ALGORITHM = 323;
1157
+ */
1158
+ JWT_MISSING_ALGORITHM = 323,
1159
+ /**
1160
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_MISSING_PRIVATE_KEY = 324;
1161
+ */
1162
+ JWT_MISSING_PRIVATE_KEY = 324,
1163
+ /**
1164
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_MISSING_PUBLIC_KEY = 325;
1165
+ */
1166
+ JWT_MISSING_PUBLIC_KEY = 325,
1167
+ /**
1168
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_KID_POLICY_MISMATCH = 326;
1169
+ */
1170
+ JWT_KID_POLICY_MISMATCH = 326,
1171
+ /**
1172
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_PUBLIC_KEY_MISMATCH = 327;
1173
+ */
1174
+ JWT_PUBLIC_KEY_MISMATCH = 327,
1175
+ /**
1176
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INVALID_PUBLIC_KEY = 328;
1177
+ */
1178
+ JWT_INVALID_PUBLIC_KEY = 328,
1179
+ /**
1180
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INVALID_JWK = 329;
1181
+ */
1182
+ JWT_INVALID_JWK = 329,
1183
+ /**
1184
+ * JWT signature and cryptographic failures: 340-359.
1185
+ *
1186
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INVALID_SIGNATURE = 340;
1187
+ */
1188
+ JWT_INVALID_SIGNATURE = 340,
1189
+ /**
1190
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_CRYPTO_FAILED = 341;
1191
+ */
1192
+ JWT_CRYPTO_FAILED = 341,
1193
+ /**
1194
+ * JWT claims and serialization failures: 360-379.
1195
+ *
1196
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INVALID_CLAIMS = 360;
1197
+ */
1198
+ JWT_INVALID_CLAIMS = 360,
1199
+ /**
1200
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_SERIALIZATION_FAILED = 361;
1201
+ */
1202
+ JWT_SERIALIZATION_FAILED = 361,
1203
+ /**
1204
+ * JWT temporal claim policy: 380-399.
1205
+ *
1206
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_MISSING_REQUIRED_TEMPORAL_CLAIM = 380;
1207
+ */
1208
+ JWT_MISSING_REQUIRED_TEMPORAL_CLAIM = 380,
1209
+ /**
1210
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INVALID_TEMPORAL_CLAIM_VALUE = 381;
1211
+ */
1212
+ JWT_INVALID_TEMPORAL_CLAIM_VALUE = 381,
1213
+ /**
1214
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_EXPIRED = 382;
1215
+ */
1216
+ JWT_EXPIRED = 382,
1217
+ /**
1218
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_NOT_YET_VALID = 383;
1219
+ */
1220
+ JWT_NOT_YET_VALID = 383,
1221
+ /**
1222
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_ISSUED_AT_IN_FUTURE = 384;
1223
+ */
1224
+ JWT_ISSUED_AT_IN_FUTURE = 384,
1225
+ /**
1226
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INVALID_VERIFICATION_TIME = 385;
1227
+ */
1228
+ JWT_INVALID_VERIFICATION_TIME = 385,
1229
+ /**
1230
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INVALID_VERIFICATION_POLICY = 386;
1231
+ */
1232
+ JWT_INVALID_VERIFICATION_POLICY = 386,
1233
+ /**
1234
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_SIGNING_KEY_MISMATCH = 387;
1235
+ */
1236
+ JWT_SIGNING_KEY_MISMATCH = 387,
1237
+ /**
1238
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_MISSING_REQUIRED_REGISTERED_CLAIM = 388;
1239
+ */
1240
+ JWT_MISSING_REQUIRED_REGISTERED_CLAIM = 388,
1241
+ /**
1242
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_INVALID_REGISTERED_CLAIM_VALUE = 389;
1243
+ */
1244
+ JWT_INVALID_REGISTERED_CLAIM_VALUE = 389,
1245
+ /**
1246
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_AUDIENCE_MISMATCH = 390;
1247
+ */
1248
+ JWT_AUDIENCE_MISMATCH = 390,
1249
+ /**
1250
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_ISSUER_MISMATCH = 391;
1251
+ */
1252
+ JWT_ISSUER_MISMATCH = 391,
1253
+ /**
1254
+ * @generated from enum value: JOSE_ERROR_REASON_JWT_SUBJECT_MISMATCH = 392;
1255
+ */
1256
+ JWT_SUBJECT_MISMATCH = 392,
1257
+ /**
1258
+ * Common operation execution boundary failures: 700-799.
1259
+ *
1260
+ * @generated from enum value: JOSE_ERROR_REASON_COMMON_MALFORMED_PROTOBUF = 700;
1261
+ */
1262
+ COMMON_MALFORMED_PROTOBUF = 700,
1263
+ /**
1264
+ * @generated from enum value: JOSE_ERROR_REASON_COMMON_MALFORMED_JSON = 701;
1265
+ */
1266
+ COMMON_MALFORMED_JSON = 701,
1267
+ /**
1268
+ * @generated from enum value: JOSE_ERROR_REASON_COMMON_MISSING_OPERATION = 702;
1269
+ */
1270
+ COMMON_MISSING_OPERATION = 702,
1271
+ /**
1272
+ * @generated from enum value: JOSE_ERROR_REASON_COMMON_RESOURCE_LIMIT_EXCEEDED = 703;
1273
+ */
1274
+ COMMON_RESOURCE_LIMIT_EXCEEDED = 703,
1275
+ /**
1276
+ * Provider failures: 800-899.
1277
+ * Defined for service wrappers that own runtime provider selection. The
1278
+ * current Rust operation adapter only emits unsupported-provider and
1279
+ * randomness-unavailable provider failures directly.
1280
+ *
1281
+ * @generated from enum value: JOSE_ERROR_REASON_PROVIDER_UNAVAILABLE = 800;
1282
+ */
1283
+ PROVIDER_UNAVAILABLE = 800,
1284
+ /**
1285
+ * @generated from enum value: JOSE_ERROR_REASON_PROVIDER_UNSUPPORTED = 801;
1286
+ */
1287
+ PROVIDER_UNSUPPORTED = 801,
1288
+ /**
1289
+ * @generated from enum value: JOSE_ERROR_REASON_PROVIDER_RANDOMNESS_UNAVAILABLE = 802;
1290
+ */
1291
+ PROVIDER_RANDOMNESS_UNAVAILABLE = 802,
1292
+ /**
1293
+ * Backend failures: 900-999.
1294
+ *
1295
+ * @generated from enum value: JOSE_ERROR_REASON_BACKEND_INTERNAL = 900;
1296
+ */
1297
+ BACKEND_INTERNAL = 900,
1298
+ /**
1299
+ * @generated from enum value: JOSE_ERROR_REASON_BACKEND_JSON_SERIALIZATION = 901;
1300
+ */
1301
+ BACKEND_JSON_SERIALIZATION = 901,
1302
+ /**
1303
+ * @generated from enum value: JOSE_ERROR_REASON_BACKEND_KEY_DERIVATION_FAILED = 902;
1304
+ */
1305
+ BACKEND_KEY_DERIVATION_FAILED = 902
1306
+ }
1307
+ /**
1308
+ * Describes the enum reallyme.jose.v1.JoseErrorReason.
1309
+ */
1310
+ export declare const JoseErrorReasonSchema: GenEnum<JoseErrorReason>;
1311
+ /**
1312
+ * @generated from enum reallyme.jose.v1.JoseSignatureAlgorithm
1313
+ */
1314
+ export declare enum JoseSignatureAlgorithm {
1315
+ /**
1316
+ * @generated from enum value: JOSE_SIGNATURE_ALGORITHM_UNSPECIFIED = 0;
1317
+ */
1318
+ UNSPECIFIED = 0,
1319
+ /**
1320
+ * EdDSA: 100-199; elliptic-curve signatures: 200-299.
1321
+ *
1322
+ * @generated from enum value: JOSE_SIGNATURE_ALGORITHM_EDDSA = 100;
1323
+ */
1324
+ EDDSA = 100,
1325
+ /**
1326
+ * @generated from enum value: JOSE_SIGNATURE_ALGORITHM_ES256 = 200;
1327
+ */
1328
+ ES256 = 200
1329
+ }
1330
+ /**
1331
+ * Describes the enum reallyme.jose.v1.JoseSignatureAlgorithm.
1332
+ */
1333
+ export declare const JoseSignatureAlgorithmSchema: GenEnum<JoseSignatureAlgorithm>;
1334
+ /**
1335
+ * @generated from enum reallyme.jose.v1.JoseJweKeyManagementAlgorithm
1336
+ */
1337
+ export declare enum JoseJweKeyManagementAlgorithm {
1338
+ /**
1339
+ * @generated from enum value: JOSE_JWE_KEY_MANAGEMENT_ALGORITHM_UNSPECIFIED = 0;
1340
+ */
1341
+ UNSPECIFIED = 0,
1342
+ /**
1343
+ * Direct key use: 100-199; ECDH-ES: 200-299.
1344
+ *
1345
+ * @generated from enum value: JOSE_JWE_KEY_MANAGEMENT_ALGORITHM_DIRECT = 100;
1346
+ */
1347
+ DIRECT = 100,
1348
+ /**
1349
+ * @generated from enum value: JOSE_JWE_KEY_MANAGEMENT_ALGORITHM_ECDH_ES_P256 = 200;
1350
+ */
1351
+ ECDH_ES_P256 = 200,
1352
+ /**
1353
+ * @generated from enum value: JOSE_JWE_KEY_MANAGEMENT_ALGORITHM_ECDH_ES_P384 = 210;
1354
+ */
1355
+ ECDH_ES_P384 = 210,
1356
+ /**
1357
+ * @generated from enum value: JOSE_JWE_KEY_MANAGEMENT_ALGORITHM_ECDH_ES_P521 = 220;
1358
+ */
1359
+ ECDH_ES_P521 = 220
1360
+ }
1361
+ /**
1362
+ * Describes the enum reallyme.jose.v1.JoseJweKeyManagementAlgorithm.
1363
+ */
1364
+ export declare const JoseJweKeyManagementAlgorithmSchema: GenEnum<JoseJweKeyManagementAlgorithm>;
1365
+ /**
1366
+ * @generated from enum reallyme.jose.v1.JoseJweContentEncryptionAlgorithm
1367
+ */
1368
+ export declare enum JoseJweContentEncryptionAlgorithm {
1369
+ /**
1370
+ * @generated from enum value: JOSE_JWE_CONTENT_ENCRYPTION_ALGORITHM_UNSPECIFIED = 0;
1371
+ */
1372
+ UNSPECIFIED = 0,
1373
+ /**
1374
+ * AES-GCM content encryption: 100-199.
1375
+ *
1376
+ * @generated from enum value: JOSE_JWE_CONTENT_ENCRYPTION_ALGORITHM_A128GCM = 100;
1377
+ */
1378
+ A128GCM = 100,
1379
+ /**
1380
+ * @generated from enum value: JOSE_JWE_CONTENT_ENCRYPTION_ALGORITHM_A192GCM = 110;
1381
+ */
1382
+ A192GCM = 110,
1383
+ /**
1384
+ * @generated from enum value: JOSE_JWE_CONTENT_ENCRYPTION_ALGORITHM_A256GCM = 120;
1385
+ */
1386
+ A256GCM = 120
1387
+ }
1388
+ /**
1389
+ * Describes the enum reallyme.jose.v1.JoseJweContentEncryptionAlgorithm.
1390
+ */
1391
+ export declare const JoseJweContentEncryptionAlgorithmSchema: GenEnum<JoseJweContentEncryptionAlgorithm>;
1392
+ /**
1393
+ * JoseOperationContractVersion is validated exactly by every executable
1394
+ * response decoder. Unknown and unspecified versions fail closed.
1395
+ *
1396
+ * @generated from enum reallyme.jose.v1.JoseOperationContractVersion
1397
+ */
1398
+ export declare enum JoseOperationContractVersion {
1399
+ /**
1400
+ * @generated from enum value: JOSE_OPERATION_CONTRACT_VERSION_UNSPECIFIED = 0;
1401
+ */
1402
+ UNSPECIFIED = 0,
1403
+ /**
1404
+ * @generated from enum value: JOSE_OPERATION_CONTRACT_VERSION_V1 = 1;
1405
+ */
1406
+ V1 = 1
1407
+ }
1408
+ /**
1409
+ * Describes the enum reallyme.jose.v1.JoseOperationContractVersion.
1410
+ */
1411
+ export declare const JoseOperationContractVersionSchema: GenEnum<JoseOperationContractVersion>;