@inverted-tech/fragments 0.6.0 → 0.7.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.
@@ -1,7 +1,7 @@
1
1
  import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { GenericOneTimePaymentRecord, GenericSubscriptionFullRecord, GenericSubscriptionRecord } from "./DataRecords_pb";
3
- import type { PaymentError } from "./PaymentError_pb";
4
3
  import type { CryptoNewDetails } from "./Crypto/CryptoRecords_pb";
4
+ import type { FortisNewDetails, FortisNewOneTimeDetails } from "./Fortis/FortisRecords_pb";
5
5
  import type { ManualSubscriptionRecord } from "./Manual/ManualSubscriptionRecord_pb";
6
6
  import type { PaypalNewDetails } from "./Paypal/PaypalRecords_pb";
7
7
  import type { StripeNewDetails, StripeNewOneTimeDetails } from "./Stripe/StripeRecords_pb";
@@ -37,9 +37,9 @@ export type CancelSubscriptionResponse = Message<"IT.WebServices.Fragments.Autho
37
37
  */
38
38
  Record?: GenericSubscriptionRecord;
39
39
  /**
40
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
40
+ * @generated from field: string Error = 2;
41
41
  */
42
- Error?: PaymentError;
42
+ Error: string;
43
43
  };
44
44
  /**
45
45
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.CancelSubscriptionResponse.
@@ -55,9 +55,17 @@ export type GetNewDetailsRequest = Message<"IT.WebServices.Fragments.Authorizati
55
55
  */
56
56
  Level: number;
57
57
  /**
58
- * @generated from field: string DomainName = 2;
58
+ * @generated from field: string PostalCode = 2;
59
59
  */
60
- DomainName: string;
60
+ PostalCode: string;
61
+ /**
62
+ * @generated from field: string SuccessUrl = 11;
63
+ */
64
+ SuccessUrl: string;
65
+ /**
66
+ * @generated from field: string CancelUrl = 12;
67
+ */
68
+ CancelUrl: string;
61
69
  };
62
70
  /**
63
71
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.GetNewDetailsRequest.
@@ -72,6 +80,10 @@ export type GetNewDetailsResponse = Message<"IT.WebServices.Fragments.Authorizat
72
80
  * @generated from field: IT.WebServices.Fragments.Authorization.Payment.Crypto.CryptoNewDetails Crypto = 1;
73
81
  */
74
82
  Crypto?: CryptoNewDetails;
83
+ /**
84
+ * @generated from field: IT.WebServices.Fragments.Authorization.Payment.Fortis.FortisNewDetails Fortis = 4;
85
+ */
86
+ Fortis?: FortisNewDetails;
75
87
  /**
76
88
  * @generated from field: IT.WebServices.Fragments.Authorization.Payment.Paypal.PaypalNewDetails Paypal = 5;
77
89
  */
@@ -80,10 +92,6 @@ export type GetNewDetailsResponse = Message<"IT.WebServices.Fragments.Authorizat
80
92
  * @generated from field: IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeNewDetails Stripe = 6;
81
93
  */
82
94
  Stripe?: StripeNewDetails;
83
- /**
84
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 7;
85
- */
86
- Error?: PaymentError;
87
95
  };
88
96
  /**
89
97
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.GetNewDetailsResponse.
@@ -99,13 +107,21 @@ export type GetNewOneTimeDetailsRequest = Message<"IT.WebServices.Fragments.Auth
99
107
  */
100
108
  InternalID: string;
101
109
  /**
102
- * @generated from field: string DomainName = 2;
110
+ * @generated from field: uint32 DifferentPresetPriceCents = 2;
103
111
  */
104
- DomainName: string;
112
+ DifferentPresetPriceCents: number;
105
113
  /**
106
- * @generated from field: uint32 DifferentPresetPriceCents = 3;
114
+ * @generated from field: string PostalCode = 3;
107
115
  */
108
- DifferentPresetPriceCents: number;
116
+ PostalCode: string;
117
+ /**
118
+ * @generated from field: string SuccessUrl = 11;
119
+ */
120
+ SuccessUrl: string;
121
+ /**
122
+ * @generated from field: string CancelUrl = 12;
123
+ */
124
+ CancelUrl: string;
109
125
  };
110
126
  /**
111
127
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.GetNewOneTimeDetailsRequest.
@@ -118,15 +134,16 @@ export declare const GetNewOneTimeDetailsRequestSchema: GenMessage<GetNewOneTime
118
134
  export type GetNewOneTimeDetailsResponse = Message<"IT.WebServices.Fragments.Authorization.Payment.GetNewOneTimeDetailsResponse"> & {
119
135
  /**
120
136
  * Crypto.CryptoNewOneTimeDetails Crypto = 1;
137
+ *
138
+ * @generated from field: IT.WebServices.Fragments.Authorization.Payment.Fortis.FortisNewOneTimeDetails Fortis = 4;
139
+ */
140
+ Fortis?: FortisNewOneTimeDetails;
141
+ /**
121
142
  * Paypal.PaypalNewOneTimeDetails Paypal = 5;
122
143
  *
123
144
  * @generated from field: IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeNewOneTimeDetails Stripe = 6;
124
145
  */
125
146
  Stripe?: StripeNewOneTimeDetails;
126
- /**
127
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 7;
128
- */
129
- Error?: PaymentError;
130
147
  };
131
148
  /**
132
149
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.GetNewOneTimeDetailsResponse.
@@ -159,10 +176,6 @@ export type GetSubscriptionRecordResponse = Message<"IT.WebServices.Fragments.Au
159
176
  * @generated from field: IT.WebServices.Fragments.Authorization.Payment.Manual.ManualSubscriptionRecord Manual = 2;
160
177
  */
161
178
  Manual?: ManualSubscriptionRecord;
162
- /**
163
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 3;
164
- */
165
- Error?: PaymentError;
166
179
  };
167
180
  /**
168
181
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.GetSubscriptionRecordResponse.
@@ -190,10 +203,6 @@ export type GetSubscriptionRecordsResponse = Message<"IT.WebServices.Fragments.A
190
203
  * @generated from field: repeated IT.WebServices.Fragments.Authorization.Payment.Manual.ManualSubscriptionRecord Manual = 2;
191
204
  */
192
205
  Manual: ManualSubscriptionRecord[];
193
- /**
194
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 3;
195
- */
196
- Error?: PaymentError;
197
206
  };
198
207
  /**
199
208
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.GetSubscriptionRecordsResponse.
@@ -222,10 +231,6 @@ export type GetOneTimeRecordResponse = Message<"IT.WebServices.Fragments.Authori
222
231
  * @generated from field: IT.WebServices.Fragments.Authorization.Payment.GenericOneTimePaymentRecord Generic = 1;
223
232
  */
224
233
  Generic?: GenericOneTimePaymentRecord;
225
- /**
226
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
227
- */
228
- Error?: PaymentError;
229
234
  };
230
235
  /**
231
236
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.GetOneTimeRecordResponse.
@@ -249,10 +254,6 @@ export type GetOneTimeRecordsResponse = Message<"IT.WebServices.Fragments.Author
249
254
  * @generated from field: repeated IT.WebServices.Fragments.Authorization.Payment.GenericOneTimePaymentRecord Generic = 1;
250
255
  */
251
256
  Generic: GenericOneTimePaymentRecord[];
252
- /**
253
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
254
- */
255
- Error?: PaymentError;
256
257
  };
257
258
  /**
258
259
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.GetOneTimeRecordsResponse.
@@ -282,9 +283,9 @@ export type ReconcileSubscriptionResponse = Message<"IT.WebServices.Fragments.Au
282
283
  */
283
284
  Record?: GenericSubscriptionFullRecord;
284
285
  /**
285
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
286
+ * @generated from field: string Error = 2;
286
287
  */
287
- Error?: PaymentError;
288
+ Error: string;
288
289
  };
289
290
  /**
290
291
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.ReconcileSubscriptionResponse.
@@ -1,6 +1,5 @@
1
1
  import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { GenericSubscriptionRecord } from "../DataRecords_pb";
3
- import type { PaymentError } from "../PaymentError_pb";
4
3
  import type { Message } from "@bufbuild/protobuf";
5
4
  /**
6
5
  * Describes the file Protos/IT/WebServices/Fragments/Authorization/Payment/Paypal/PaypalInterface.proto.
@@ -29,9 +28,9 @@ export type PaypalNewOwnSubscriptionResponse = Message<"IT.WebServices.Fragments
29
28
  */
30
29
  Record?: GenericSubscriptionRecord;
31
30
  /**
32
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
31
+ * @generated from field: string Error = 2;
33
32
  */
34
- Error?: PaymentError;
33
+ Error: string;
35
34
  };
36
35
  /**
37
36
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.Paypal.PaypalNewOwnSubscriptionResponse.
@@ -2,7 +2,6 @@ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegen
2
2
  import type { GenericSubscriptionFullRecord, GenericSubscriptionRecord } from "../DataRecords_pb";
3
3
  import type { PaymentBulkAction, PaymentBulkActionProgress } from "../SharedTypes_pb";
4
4
  import type { ProductList } from "./ProductRecord_pb";
5
- import type { PaymentError } from "../PaymentError_pb";
6
5
  import type { Message } from "@bufbuild/protobuf";
7
6
  /**
8
7
  * Describes the file Protos/IT/WebServices/Fragments/Authorization/Payment/Stripe/StripeInterface.proto.
@@ -110,9 +109,9 @@ export type StripeCheckOtherSubscriptionResponse = Message<"IT.WebServices.Fragm
110
109
  */
111
110
  Records: GenericSubscriptionFullRecord[];
112
111
  /**
113
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
112
+ * @generated from field: string Error = 2;
114
113
  */
115
- Error?: PaymentError;
114
+ Error: string;
116
115
  };
117
116
  /**
118
117
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeCheckOtherSubscriptionResponse.
@@ -137,9 +136,9 @@ export type StripeCheckOwnSubscriptionResponse = Message<"IT.WebServices.Fragmen
137
136
  */
138
137
  Records: GenericSubscriptionFullRecord[];
139
138
  /**
140
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
139
+ * @generated from field: string Error = 2;
141
140
  */
142
- Error?: PaymentError;
141
+ Error: string;
143
142
  };
144
143
  /**
145
144
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeCheckOwnSubscriptionResponse.
@@ -169,9 +168,9 @@ export type StripeCheckoutSessionResponse = Message<"IT.WebServices.Fragments.Au
169
168
  */
170
169
  SessionUrl: string;
171
170
  /**
172
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
171
+ * @generated from field: string Error = 2;
173
172
  */
174
- Error?: PaymentError;
173
+ Error: string;
175
174
  };
176
175
  /**
177
176
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeCheckoutSessionResponse.
@@ -201,9 +200,9 @@ export type StripeCreateBillingPortalResponse = Message<"IT.WebServices.Fragment
201
200
  */
202
201
  Url: string;
203
202
  /**
204
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
203
+ * @generated from field: string Error = 2;
205
204
  */
206
- Error?: PaymentError;
205
+ Error: string;
207
206
  };
208
207
  /**
209
208
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeCreateBillingPortalResponse.
@@ -241,9 +240,9 @@ export type StripeCancelOtherSubscriptionResponse = Message<"IT.WebServices.Frag
241
240
  */
242
241
  Record?: GenericSubscriptionRecord;
243
242
  /**
244
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
243
+ * @generated from field: string Error = 2;
245
244
  */
246
- Error?: PaymentError;
245
+ Error: string;
247
246
  };
248
247
  /**
249
248
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeCancelOtherSubscriptionResponse.
@@ -277,15 +276,47 @@ export type StripeCancelOwnSubscriptionResponse = Message<"IT.WebServices.Fragme
277
276
  */
278
277
  Record?: GenericSubscriptionRecord;
279
278
  /**
280
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
279
+ * @generated from field: string Error = 2;
281
280
  */
282
- Error?: PaymentError;
281
+ Error: string;
283
282
  };
284
283
  /**
285
284
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeCancelOwnSubscriptionResponse.
286
285
  * Use `create(StripeCancelOwnSubscriptionResponseSchema)` to create a new message.
287
286
  */
288
287
  export declare const StripeCancelOwnSubscriptionResponseSchema: GenMessage<StripeCancelOwnSubscriptionResponse>;
288
+ /**
289
+ * @generated from message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeFinishOwnSubscriptionRequest
290
+ */
291
+ export type StripeFinishOwnSubscriptionRequest = Message<"IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeFinishOwnSubscriptionRequest"> & {
292
+ /**
293
+ * @generated from field: string ProcessorSessionID = 1;
294
+ */
295
+ ProcessorSessionID: string;
296
+ };
297
+ /**
298
+ * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeFinishOwnSubscriptionRequest.
299
+ * Use `create(StripeFinishOwnSubscriptionRequestSchema)` to create a new message.
300
+ */
301
+ export declare const StripeFinishOwnSubscriptionRequestSchema: GenMessage<StripeFinishOwnSubscriptionRequest>;
302
+ /**
303
+ * @generated from message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeFinishOwnSubscriptionResponse
304
+ */
305
+ export type StripeFinishOwnSubscriptionResponse = Message<"IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeFinishOwnSubscriptionResponse"> & {
306
+ /**
307
+ * @generated from field: IT.WebServices.Fragments.Authorization.Payment.GenericSubscriptionRecord Record = 1;
308
+ */
309
+ Record?: GenericSubscriptionRecord;
310
+ /**
311
+ * @generated from field: string Error = 2;
312
+ */
313
+ Error: string;
314
+ };
315
+ /**
316
+ * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeFinishOwnSubscriptionResponse.
317
+ * Use `create(StripeFinishOwnSubscriptionResponseSchema)` to create a new message.
318
+ */
319
+ export declare const StripeFinishOwnSubscriptionResponseSchema: GenMessage<StripeFinishOwnSubscriptionResponse>;
289
320
  /**
290
321
  * @generated from message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeGetAccountDetailsRequest
291
322
  */
@@ -364,46 +395,6 @@ export type StripeGetOwnSubscriptionRecordsResponse = Message<"IT.WebServices.Fr
364
395
  * Use `create(StripeGetOwnSubscriptionRecordsResponseSchema)` to create a new message.
365
396
  */
366
397
  export declare const StripeGetOwnSubscriptionRecordsResponseSchema: GenMessage<StripeGetOwnSubscriptionRecordsResponse>;
367
- /**
368
- * @generated from message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeNewOwnSubscriptionRequest
369
- */
370
- export type StripeNewOwnSubscriptionRequest = Message<"IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeNewOwnSubscriptionRequest"> & {
371
- /**
372
- * @generated from field: string SubscriptionID = 1;
373
- */
374
- SubscriptionID: string;
375
- /**
376
- * @generated from field: uint32 SubscriptionPrice = 2;
377
- */
378
- SubscriptionPrice: number;
379
- /**
380
- * @generated from field: string CustomerID = 3;
381
- */
382
- CustomerID: string;
383
- };
384
- /**
385
- * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeNewOwnSubscriptionRequest.
386
- * Use `create(StripeNewOwnSubscriptionRequestSchema)` to create a new message.
387
- */
388
- export declare const StripeNewOwnSubscriptionRequestSchema: GenMessage<StripeNewOwnSubscriptionRequest>;
389
- /**
390
- * @generated from message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeNewOwnSubscriptionResponse
391
- */
392
- export type StripeNewOwnSubscriptionResponse = Message<"IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeNewOwnSubscriptionResponse"> & {
393
- /**
394
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.GenericSubscriptionRecord Record = 1;
395
- */
396
- Record?: GenericSubscriptionRecord;
397
- /**
398
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
399
- */
400
- Error?: PaymentError;
401
- };
402
- /**
403
- * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeNewOwnSubscriptionResponse.
404
- * Use `create(StripeNewOwnSubscriptionResponseSchema)` to create a new message.
405
- */
406
- export declare const StripeNewOwnSubscriptionResponseSchema: GenMessage<StripeNewOwnSubscriptionResponse>;
407
398
  /**
408
399
  * @generated from message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeEnsureOneTimeProductRequest
409
400
  */
@@ -435,9 +426,9 @@ export declare const StripeEnsureOneTimeProductRequestSchema: GenMessage<StripeE
435
426
  */
436
427
  export type StripeEnsureOneTimeProductResponse = Message<"IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeEnsureOneTimeProductResponse"> & {
437
428
  /**
438
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 1;
429
+ * @generated from field: string Error = 1;
439
430
  */
440
- Error?: PaymentError;
431
+ Error: string;
441
432
  };
442
433
  /**
443
434
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeEnsureOneTimeProductResponse.
@@ -471,9 +462,9 @@ export type StripeReconcileOtherSubscriptionResponse = Message<"IT.WebServices.F
471
462
  */
472
463
  Record?: GenericSubscriptionFullRecord;
473
464
  /**
474
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
465
+ * @generated from field: string Error = 2;
475
466
  */
476
- Error?: PaymentError;
467
+ Error: string;
477
468
  };
478
469
  /**
479
470
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeReconcileOtherSubscriptionResponse.
@@ -503,9 +494,9 @@ export type StripeReconcileOwnSubscriptionResponse = Message<"IT.WebServices.Fra
503
494
  */
504
495
  Record?: GenericSubscriptionFullRecord;
505
496
  /**
506
- * @generated from field: IT.WebServices.Fragments.Authorization.Payment.PaymentError Error = 2;
497
+ * @generated from field: string Error = 2;
507
498
  */
508
- Error?: PaymentError;
499
+ Error: string;
509
500
  };
510
501
  /**
511
502
  * Describes the message IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeReconcileOwnSubscriptionResponse.
@@ -541,12 +532,12 @@ export declare const StripeInterface: GenService<{
541
532
  output: typeof StripeGetAccountDetailsResponseSchema;
542
533
  };
543
534
  /**
544
- * @generated from rpc IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeInterface.StripeNewOwnSubscription
535
+ * @generated from rpc IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeInterface.StripeFinishOwnSubscription
545
536
  */
546
- stripeNewOwnSubscription: {
537
+ stripeFinishOwnSubscription: {
547
538
  methodKind: "unary";
548
- input: typeof StripeNewOwnSubscriptionRequestSchema;
549
- output: typeof StripeNewOwnSubscriptionResponseSchema;
539
+ input: typeof StripeFinishOwnSubscriptionRequestSchema;
540
+ output: typeof StripeFinishOwnSubscriptionResponseSchema;
550
541
  };
551
542
  /**
552
543
  * @generated from rpc IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeInterface.StripeCreateBillingPortal
@@ -32,10 +32,10 @@ export declare const StripeInterface: {
32
32
  readonly kind: any;
33
33
  };
34
34
  /**
35
- * @generated from rpc IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeInterface.StripeNewOwnSubscription
35
+ * @generated from rpc IT.WebServices.Fragments.Authorization.Payment.Stripe.StripeInterface.StripeFinishOwnSubscription
36
36
  */
37
- readonly stripeNewOwnSubscription: {
38
- readonly name: "StripeNewOwnSubscription";
37
+ readonly stripeFinishOwnSubscription: {
38
+ readonly name: "StripeFinishOwnSubscription";
39
39
  readonly I: any;
40
40
  readonly O: any;
41
41
  readonly kind: any;
@@ -1,5 +1,5 @@
1
1
  import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
- import type { Duration, FieldDescriptorProto_Type, FieldOptions, MessageOptions, OneofOptions, Timestamp } from "@bufbuild/protobuf/wkt";
2
+ import type { Duration, FieldDescriptorProto_Type, FieldMask, FieldOptions, MessageOptions, OneofOptions, Timestamp } from "@bufbuild/protobuf/wkt";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
5
5
  * Describes the file buf/validate/validate.proto.
@@ -63,6 +63,29 @@ export declare const RuleSchema: GenMessage<Rule>;
63
63
  * @generated from message buf.validate.MessageRules
64
64
  */
65
65
  export type MessageRules = Message<"buf.validate.MessageRules"> & {
66
+ /**
67
+ * `cel_expression` is a repeated field CEL expressions. Each expression specifies a validation
68
+ * rule to be applied to this message. These rules are written in Common Expression Language (CEL) syntax.
69
+ *
70
+ * This is a simplified form of the `cel` Rule field, where only `expression` is set. This allows for
71
+ * simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will
72
+ * be same as the `expression`.
73
+ *
74
+ * For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).
75
+ *
76
+ * ```proto
77
+ * message MyMessage {
78
+ * // The field `foo` must be greater than 42.
79
+ * option (buf.validate.message).cel_expression = "this.foo > 42";
80
+ * // The field `foo` must be less than 84.
81
+ * option (buf.validate.message).cel_expression = "this.foo < 84";
82
+ * optional int32 foo = 1;
83
+ * }
84
+ * ```
85
+ *
86
+ * @generated from field: repeated string cel_expression = 5;
87
+ */
88
+ celExpression: string[];
66
89
  /**
67
90
  * `cel` is a repeated field of type Rule. Each Rule specifies a validation rule to be applied to this message.
68
91
  * These rules are written in Common Expression Language (CEL) syntax. For more information,
@@ -194,6 +217,26 @@ export declare const OneofRulesSchema: GenMessage<OneofRules>;
194
217
  * @generated from message buf.validate.FieldRules
195
218
  */
196
219
  export type FieldRules = Message<"buf.validate.FieldRules"> & {
220
+ /**
221
+ * `cel_expression` is a repeated field CEL expressions. Each expression specifies a validation
222
+ * rule to be applied to this message. These rules are written in Common Expression Language (CEL) syntax.
223
+ *
224
+ * This is a simplified form of the `cel` Rule field, where only `expression` is set. This allows for
225
+ * simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will
226
+ * be same as the `expression`.
227
+ *
228
+ * For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).
229
+ *
230
+ * ```proto
231
+ * message MyMessage {
232
+ * // The field `value` must be greater than 42.
233
+ * optional int32 value = 1 [(buf.validate.field).cel_expression = "this > 42"];
234
+ * }
235
+ * ```
236
+ *
237
+ * @generated from field: repeated string cel_expression = 29;
238
+ */
239
+ celExpression: string[];
197
240
  /**
198
241
  * `cel` is a repeated field used to represent a textual expression
199
242
  * in the Common Expression Language (CEL) syntax. For more information,
@@ -420,6 +463,12 @@ export type FieldRules = Message<"buf.validate.FieldRules"> & {
420
463
  */
421
464
  value: DurationRules;
422
465
  case: "duration";
466
+ } | {
467
+ /**
468
+ * @generated from field: buf.validate.FieldMaskRules field_mask = 28;
469
+ */
470
+ value: FieldMaskRules;
471
+ case: "fieldMask";
423
472
  } | {
424
473
  /**
425
474
  * @generated from field: buf.validate.TimestampRules timestamp = 22;
@@ -3157,6 +3206,23 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
3157
3206
  */
3158
3207
  value: boolean;
3159
3208
  case: "hostAndPort";
3209
+ } | {
3210
+ /**
3211
+ * `ulid` specifies that the field value must be a valid ULID (Universally Unique
3212
+ * Lexicographically Sortable Identifier) as defined by the [ULID specification](https://github.com/ulid/spec).
3213
+ * If the field value isn't a valid ULID, an error message will be generated.
3214
+ *
3215
+ * ```proto
3216
+ * message MyString {
3217
+ * // value must be a valid ULID
3218
+ * string value = 1 [(buf.validate.field).string.ulid = true];
3219
+ * }
3220
+ * ```
3221
+ *
3222
+ * @generated from field: bool ulid = 35;
3223
+ */
3224
+ value: boolean;
3225
+ case: "ulid";
3160
3226
  } | {
3161
3227
  /**
3162
3228
  * `well_known_regex` specifies a common well-known pattern
@@ -3345,7 +3411,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3345
3411
  * the string.
3346
3412
  * If the field value doesn't meet the requirement, an error message is generated.
3347
3413
  *
3348
- * ```protobuf
3414
+ * ```proto
3349
3415
  * message MyBytes {
3350
3416
  * // value does not contain \x02\x03
3351
3417
  * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
@@ -3360,7 +3426,7 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3360
3426
  * values. If the field value doesn't match any of the specified values, an
3361
3427
  * error message is generated.
3362
3428
  *
3363
- * ```protobuf
3429
+ * ```proto
3364
3430
  * message MyBytes {
3365
3431
  * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
3366
3432
  * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
@@ -3439,6 +3505,25 @@ export type BytesRules = Message<"buf.validate.BytesRules"> & {
3439
3505
  */
3440
3506
  value: boolean;
3441
3507
  case: "ipv6";
3508
+ } | {
3509
+ /**
3510
+ * `uuid` ensures that the field `value` encodes the 128-bit UUID data as
3511
+ * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2).
3512
+ * The field must contain exactly 16 bytes
3513
+ * representing the UUID. If the field value isn't a valid UUID, an error
3514
+ * message will be generated.
3515
+ *
3516
+ * ```proto
3517
+ * message MyBytes {
3518
+ * // value must be a valid UUID
3519
+ * optional bytes value = 1 [(buf.validate.field).bytes.uuid = true];
3520
+ * }
3521
+ * ```
3522
+ *
3523
+ * @generated from field: bool uuid = 15;
3524
+ */
3525
+ value: boolean;
3526
+ case: "uuid";
3442
3527
  } | {
3443
3528
  case: undefined;
3444
3529
  value?: undefined;
@@ -3961,6 +4046,90 @@ export type DurationRules = Message<"buf.validate.DurationRules"> & {
3961
4046
  * Use `create(DurationRulesSchema)` to create a new message.
3962
4047
  */
3963
4048
  export declare const DurationRulesSchema: GenMessage<DurationRules>;
4049
+ /**
4050
+ * FieldMaskRules describe rules applied exclusively to the `google.protobuf.FieldMask` well-known type.
4051
+ *
4052
+ * @generated from message buf.validate.FieldMaskRules
4053
+ */
4054
+ export type FieldMaskRules = Message<"buf.validate.FieldMaskRules"> & {
4055
+ /**
4056
+ * `const` dictates that the field must match the specified value of the `google.protobuf.FieldMask` type exactly.
4057
+ * If the field's value deviates from the specified value, an error message
4058
+ * will be generated.
4059
+ *
4060
+ * ```proto
4061
+ * message MyFieldMask {
4062
+ * // value must equal ["a"]
4063
+ * google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask.const = {
4064
+ * paths: ["a"]
4065
+ * }];
4066
+ * }
4067
+ * ```
4068
+ *
4069
+ * @generated from field: optional google.protobuf.FieldMask const = 1;
4070
+ */
4071
+ const?: FieldMask;
4072
+ /**
4073
+ * `in` requires the field value to only contain paths matching specified
4074
+ * values or their subpaths.
4075
+ * If any of the field value's paths doesn't match the rule,
4076
+ * an error message is generated.
4077
+ * See: https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask
4078
+ *
4079
+ * ```proto
4080
+ * message MyFieldMask {
4081
+ * // The `value` FieldMask must only contain paths listed in `in`.
4082
+ * google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask = {
4083
+ * in: ["a", "b", "c.a"]
4084
+ * }];
4085
+ * }
4086
+ * ```
4087
+ *
4088
+ * @generated from field: repeated string in = 2;
4089
+ */
4090
+ in: string[];
4091
+ /**
4092
+ * `not_in` requires the field value to not contain paths matching specified
4093
+ * values or their subpaths.
4094
+ * If any of the field value's paths matches the rule,
4095
+ * an error message is generated.
4096
+ * See: https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask
4097
+ *
4098
+ * ```proto
4099
+ * message MyFieldMask {
4100
+ * // The `value` FieldMask shall not contain paths listed in `not_in`.
4101
+ * google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask = {
4102
+ * not_in: ["forbidden", "immutable", "c.a"]
4103
+ * }];
4104
+ * }
4105
+ * ```
4106
+ *
4107
+ * @generated from field: repeated string not_in = 3;
4108
+ */
4109
+ notIn: string[];
4110
+ /**
4111
+ * `example` specifies values that the field may have. These values SHOULD
4112
+ * conform to other rules. `example` values will not impact validation
4113
+ * but may be used as helpful guidance on how to populate the given field.
4114
+ *
4115
+ * ```proto
4116
+ * message MyFieldMask {
4117
+ * google.protobuf.FieldMask value = 1 [
4118
+ * (buf.validate.field).field_mask.example = { paths: ["a", "b"] },
4119
+ * (buf.validate.field).field_mask.example = { paths: ["c.a", "d"] },
4120
+ * ];
4121
+ * }
4122
+ * ```
4123
+ *
4124
+ * @generated from field: repeated google.protobuf.FieldMask example = 4;
4125
+ */
4126
+ example: FieldMask[];
4127
+ };
4128
+ /**
4129
+ * Describes the message buf.validate.FieldMaskRules.
4130
+ * Use `create(FieldMaskRulesSchema)` to create a new message.
4131
+ */
4132
+ export declare const FieldMaskRulesSchema: GenMessage<FieldMaskRules>;
3964
4133
  /**
3965
4134
  * TimestampRules describe the rules applied exclusively to the `google.protobuf.Timestamp` well-known type.
3966
4135
  *