@trylimbo/sdk-issuer 0.2.25 → 0.3.0-canary.41
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/gen/ffi/index.d.ts +675 -733
- package/gen/ffi/index.js +907 -902
- package/gen/grpc/buf/validate/validate_pb.d.ts +30 -24
- package/gen/grpc/buf/validate/validate_pb.js +2 -2
- package/gen/grpc/trylimbo/signer/v2/signer_pb.d.ts +829 -764
- package/gen/grpc/trylimbo/signer/v2/signer_pb.js +214 -182
- package/package.json +3 -3
- package/gen/grpc/trylimbo/version/v1/version_pb.d.ts +0 -59
- package/gen/grpc/trylimbo/version/v1/version_pb.js +0 -32
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
// [Go](https://github.com/bufbuild/protovalidate-go),
|
|
43
43
|
// [JavaScript/TypeScript](https://github.com/bufbuild/protovalidate-es),
|
|
44
44
|
// [Java](https://github.com/bufbuild/protovalidate-java),
|
|
45
|
-
// [Python](https://github.com/bufbuild/protovalidate-
|
|
45
|
+
// [Python](https://github.com/bufbuild/protovalidate-py),
|
|
46
46
|
// or [C++](https://github.com/bufbuild/protovalidate-cc).
|
|
47
47
|
|
|
48
48
|
import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -58,7 +58,7 @@ export declare const file_buf_validate_validate: GenFile;
|
|
|
58
58
|
* `Rule` represents a validation rule written in the Common Expression
|
|
59
59
|
* Language (CEL) syntax. Each Rule includes a unique identifier, an
|
|
60
60
|
* optional error message, and the CEL expression to evaluate. For more
|
|
61
|
-
* information, [see our documentation](https://
|
|
61
|
+
* information, [see our documentation](https://protovalidate.com/schemas/custom-rules/).
|
|
62
62
|
*
|
|
63
63
|
* ```proto
|
|
64
64
|
* message Foo {
|
|
@@ -124,7 +124,7 @@ export declare type MessageRules = Message<"buf.validate.MessageRules"> & {
|
|
|
124
124
|
* simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will
|
|
125
125
|
* be same as the `expression`.
|
|
126
126
|
*
|
|
127
|
-
* For more information, [see our documentation](https://
|
|
127
|
+
* For more information, [see our documentation](https://protovalidate.com/schemas/custom-rules/).
|
|
128
128
|
*
|
|
129
129
|
* ```proto
|
|
130
130
|
* message MyMessage {
|
|
@@ -143,7 +143,7 @@ export declare type MessageRules = Message<"buf.validate.MessageRules"> & {
|
|
|
143
143
|
/**
|
|
144
144
|
* `cel` is a repeated field of type Rule. Each Rule specifies a validation rule to be applied to this message.
|
|
145
145
|
* These rules are written in Common Expression Language (CEL) syntax. For more information,
|
|
146
|
-
* [see our documentation](https://
|
|
146
|
+
* [see our documentation](https://protovalidate.com/schemas/custom-rules/).
|
|
147
147
|
*
|
|
148
148
|
*
|
|
149
149
|
* ```proto
|
|
@@ -287,7 +287,7 @@ export declare type FieldRules = Message<"buf.validate.FieldRules"> & {
|
|
|
287
287
|
* simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will
|
|
288
288
|
* be same as the `expression`.
|
|
289
289
|
*
|
|
290
|
-
* For more information, [see our documentation](https://
|
|
290
|
+
* For more information, [see our documentation](https://protovalidate.com/schemas/custom-rules/).
|
|
291
291
|
*
|
|
292
292
|
* ```proto
|
|
293
293
|
* message MyMessage {
|
|
@@ -303,7 +303,7 @@ export declare type FieldRules = Message<"buf.validate.FieldRules"> & {
|
|
|
303
303
|
/**
|
|
304
304
|
* `cel` is a repeated field used to represent a textual expression
|
|
305
305
|
* in the Common Expression Language (CEL) syntax. For more information,
|
|
306
|
-
* [see our documentation](https://
|
|
306
|
+
* [see our documentation](https://protovalidate.com/schemas/custom-rules/).
|
|
307
307
|
*
|
|
308
308
|
* ```proto
|
|
309
309
|
* message MyMessage {
|
|
@@ -560,7 +560,7 @@ export declare type PredefinedRules = Message<"buf.validate.PredefinedRules"> &
|
|
|
560
560
|
/**
|
|
561
561
|
* `cel` is a repeated field used to represent a textual expression
|
|
562
562
|
* in the Common Expression Language (CEL) syntax. For more information,
|
|
563
|
-
* [see our documentation](https://
|
|
563
|
+
* [see our documentation](https://protovalidate.com/schemas/predefined-rules/).
|
|
564
564
|
*
|
|
565
565
|
* ```proto
|
|
566
566
|
* message MyMessage {
|
|
@@ -1622,7 +1622,7 @@ export declare type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
|
|
|
1622
1622
|
* message MyUInt64 {
|
|
1623
1623
|
* uint64 value = 1 [
|
|
1624
1624
|
* (buf.validate.field).uint64.example = 1,
|
|
1625
|
-
* (buf.validate.field).uint64.example =
|
|
1625
|
+
* (buf.validate.field).uint64.example = 10
|
|
1626
1626
|
* ];
|
|
1627
1627
|
* }
|
|
1628
1628
|
* ```
|
|
@@ -2700,8 +2700,8 @@ export declare type BoolRules = Message<"buf.validate.BoolRules"> & {
|
|
|
2700
2700
|
* ```proto
|
|
2701
2701
|
* message MyBool {
|
|
2702
2702
|
* bool value = 1 [
|
|
2703
|
-
* (buf.validate.field).bool.example =
|
|
2704
|
-
* (buf.validate.field).bool.example =
|
|
2703
|
+
* (buf.validate.field).bool.example = true,
|
|
2704
|
+
* (buf.validate.field).bool.example = false
|
|
2705
2705
|
* ];
|
|
2706
2706
|
* }
|
|
2707
2707
|
* ```
|
|
@@ -2929,7 +2929,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
2929
2929
|
* ```proto
|
|
2930
2930
|
* message MyString {
|
|
2931
2931
|
* // must be in list ["apple", "banana"]
|
|
2932
|
-
* string value = 1 [(buf.validate.field).string
|
|
2932
|
+
* string value = 1 [(buf.validate.field).string = { in: ["apple", "banana"] }];
|
|
2933
2933
|
* }
|
|
2934
2934
|
* ```
|
|
2935
2935
|
*
|
|
@@ -2944,7 +2944,7 @@ export declare type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
2944
2944
|
* ```proto
|
|
2945
2945
|
* message MyString {
|
|
2946
2946
|
* // value must not be in list ["orange", "grape"]
|
|
2947
|
-
* string value = 1 [(buf.validate.field).string
|
|
2947
|
+
* string value = 1 [(buf.validate.field).string = { not_in: ["orange", "grape"] }];
|
|
2948
2948
|
* }
|
|
2949
2949
|
* ```
|
|
2950
2950
|
*
|
|
@@ -3598,7 +3598,7 @@ export declare type BytesRules = Message<"buf.validate.BytesRules"> & {
|
|
|
3598
3598
|
* ```proto
|
|
3599
3599
|
* message MyBytes {
|
|
3600
3600
|
* // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
|
|
3601
|
-
* optional bytes value = 1 [(buf.validate.field).bytes
|
|
3601
|
+
* optional bytes value = 1 [(buf.validate.field).bytes = { in: ["\x01\x02", "\x02\x03", "\x03\x04"] }];
|
|
3602
3602
|
* }
|
|
3603
3603
|
* ```
|
|
3604
3604
|
*
|
|
@@ -3615,7 +3615,7 @@ export declare type BytesRules = Message<"buf.validate.BytesRules"> & {
|
|
|
3615
3615
|
* ```proto
|
|
3616
3616
|
* message MyBytes {
|
|
3617
3617
|
* // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
|
|
3618
|
-
* optional bytes value = 1 [(buf.validate.field).bytes
|
|
3618
|
+
* optional bytes value = 1 [(buf.validate.field).bytes = { not_in: ["\x01\x02", "\x02\x03", "\x03\x04"] }];
|
|
3619
3619
|
* }
|
|
3620
3620
|
* ```
|
|
3621
3621
|
*
|
|
@@ -3826,8 +3826,10 @@ export declare type EnumRules = Message<"buf.validate.EnumRules"> & {
|
|
|
3826
3826
|
* }
|
|
3827
3827
|
*
|
|
3828
3828
|
* message MyMessage {
|
|
3829
|
+
* MyEnum value = 1 [
|
|
3829
3830
|
* (buf.validate.field).enum.example = 1,
|
|
3830
3831
|
* (buf.validate.field).enum.example = 2
|
|
3832
|
+
* ];
|
|
3831
3833
|
* }
|
|
3832
3834
|
* ```
|
|
3833
3835
|
*
|
|
@@ -4076,7 +4078,7 @@ export declare type DurationRules = Message<"buf.validate.DurationRules"> & {
|
|
|
4076
4078
|
* ```proto
|
|
4077
4079
|
* message MyDuration {
|
|
4078
4080
|
* // value must equal 5s
|
|
4079
|
-
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.const =
|
|
4081
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = { seconds: 5 }];
|
|
4080
4082
|
* }
|
|
4081
4083
|
* ```
|
|
4082
4084
|
*
|
|
@@ -4096,7 +4098,7 @@ export declare type DurationRules = Message<"buf.validate.DurationRules"> & {
|
|
|
4096
4098
|
* ```proto
|
|
4097
4099
|
* message MyDuration {
|
|
4098
4100
|
* // must be less than 5s
|
|
4099
|
-
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt =
|
|
4101
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 5 }];
|
|
4100
4102
|
* }
|
|
4101
4103
|
* ```
|
|
4102
4104
|
*
|
|
@@ -4113,7 +4115,7 @@ export declare type DurationRules = Message<"buf.validate.DurationRules"> & {
|
|
|
4113
4115
|
* ```proto
|
|
4114
4116
|
* message MyDuration {
|
|
4115
4117
|
* // must be less than or equal to 10s
|
|
4116
|
-
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte =
|
|
4118
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = { seconds: 10 }];
|
|
4117
4119
|
* }
|
|
4118
4120
|
* ```
|
|
4119
4121
|
*
|
|
@@ -4186,7 +4188,9 @@ export declare type DurationRules = Message<"buf.validate.DurationRules"> & {
|
|
|
4186
4188
|
* ```proto
|
|
4187
4189
|
* message MyDuration {
|
|
4188
4190
|
* // must be in list [1s, 2s, 3s]
|
|
4189
|
-
* google.protobuf.Duration value = 1 [(buf.validate.field).duration
|
|
4191
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration = {
|
|
4192
|
+
* in: [{ seconds: 1 }, { seconds: 2 }, { seconds: 3 }]
|
|
4193
|
+
* }];
|
|
4190
4194
|
* }
|
|
4191
4195
|
* ```
|
|
4192
4196
|
*
|
|
@@ -4203,7 +4207,9 @@ export declare type DurationRules = Message<"buf.validate.DurationRules"> & {
|
|
|
4203
4207
|
* ```proto
|
|
4204
4208
|
* message MyDuration {
|
|
4205
4209
|
* // value must not be in list [1s, 2s, 3s]
|
|
4206
|
-
* google.protobuf.Duration value = 1 [(buf.validate.field).duration
|
|
4210
|
+
* google.protobuf.Duration value = 1 [(buf.validate.field).duration = {
|
|
4211
|
+
* not_in: [{ seconds: 1 }, { seconds: 2 }, { seconds: 3 }]
|
|
4212
|
+
* }];
|
|
4207
4213
|
* }
|
|
4208
4214
|
* ```
|
|
4209
4215
|
*
|
|
@@ -4220,7 +4226,7 @@ export declare type DurationRules = Message<"buf.validate.DurationRules"> & {
|
|
|
4220
4226
|
* message MyDuration {
|
|
4221
4227
|
* google.protobuf.Duration value = 1 [
|
|
4222
4228
|
* (buf.validate.field).duration.example = { seconds: 1 },
|
|
4223
|
-
* (buf.validate.field).duration.example = { seconds: 2 }
|
|
4229
|
+
* (buf.validate.field).duration.example = { seconds: 2 }
|
|
4224
4230
|
* ];
|
|
4225
4231
|
* }
|
|
4226
4232
|
* ```
|
|
@@ -4309,7 +4315,7 @@ export declare type FieldMaskRules = Message<"buf.validate.FieldMaskRules"> & {
|
|
|
4309
4315
|
* message MyFieldMask {
|
|
4310
4316
|
* google.protobuf.FieldMask value = 1 [
|
|
4311
4317
|
* (buf.validate.field).field_mask.example = { paths: ["a", "b"] },
|
|
4312
|
-
* (buf.validate.field).field_mask.example = { paths: ["c.a", "d"] }
|
|
4318
|
+
* (buf.validate.field).field_mask.example = { paths: ["c.a", "d"] }
|
|
4313
4319
|
* ];
|
|
4314
4320
|
* }
|
|
4315
4321
|
* ```
|
|
@@ -4488,7 +4494,7 @@ export declare type TimestampRules = Message<"buf.validate.TimestampRules"> & {
|
|
|
4488
4494
|
* message MyTimestamp {
|
|
4489
4495
|
* google.protobuf.Timestamp value = 1 [
|
|
4490
4496
|
* (buf.validate.field).timestamp.example = { seconds: 1672444800 },
|
|
4491
|
-
* (buf.validate.field).timestamp.example = { seconds: 1672531200 }
|
|
4497
|
+
* (buf.validate.field).timestamp.example = { seconds: 1672531200 }
|
|
4492
4498
|
* ];
|
|
4493
4499
|
* }
|
|
4494
4500
|
* ```
|
|
@@ -4612,7 +4618,7 @@ export declare type Violation = Message<"buf.validate.Violation"> & {
|
|
|
4612
4618
|
* bool b = 2 [(buf.validate.field).cel = {
|
|
4613
4619
|
* id: "custom_rule",
|
|
4614
4620
|
* expression: "!this ? 'b must be true': ''"
|
|
4615
|
-
* }]
|
|
4621
|
+
* }];
|
|
4616
4622
|
* }
|
|
4617
4623
|
* ```
|
|
4618
4624
|
*
|
|
@@ -4969,7 +4975,7 @@ export declare const field: GenExtension<FieldOptions, FieldRules>;
|
|
|
4969
4975
|
*
|
|
4970
4976
|
* ```proto
|
|
4971
4977
|
* extend buf.validate.Int32Rules {
|
|
4972
|
-
* bool is_zero [(buf.validate.predefined).cel = {
|
|
4978
|
+
* bool is_zero = 1001 [(buf.validate.predefined).cel = {
|
|
4973
4979
|
* id: "int32.is_zero",
|
|
4974
4980
|
* message: "must be zero",
|
|
4975
4981
|
* expression: "!rule || this == 0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
// [Go](https://github.com/bufbuild/protovalidate-go),
|
|
43
43
|
// [JavaScript/TypeScript](https://github.com/bufbuild/protovalidate-es),
|
|
44
44
|
// [Java](https://github.com/bufbuild/protovalidate-java),
|
|
45
|
-
// [Python](https://github.com/bufbuild/protovalidate-
|
|
45
|
+
// [Python](https://github.com/bufbuild/protovalidate-py),
|
|
46
46
|
// or [C++](https://github.com/bufbuild/protovalidate-cc).
|
|
47
47
|
|
|
48
48
|
import { enumDesc, extDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -340,7 +340,7 @@ export const field = /*@__PURE__*/
|
|
|
340
340
|
*
|
|
341
341
|
* ```proto
|
|
342
342
|
* extend buf.validate.Int32Rules {
|
|
343
|
-
* bool is_zero [(buf.validate.predefined).cel = {
|
|
343
|
+
* bool is_zero = 1001 [(buf.validate.predefined).cel = {
|
|
344
344
|
* id: "int32.is_zero",
|
|
345
345
|
* message: "must be zero",
|
|
346
346
|
* expression: "!rule || this == 0",
|