@zshannon/streamstore 0.22.3 → 0.22.6
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/dist/cjs/auth/biscuit.d.ts +7 -5
- package/dist/cjs/auth/biscuit.d.ts.map +1 -1
- package/dist/cjs/auth/biscuit.js +136 -39
- package/dist/cjs/auth/biscuit.js.map +1 -1
- package/dist/cjs/auth/index.d.ts +3 -3
- package/dist/cjs/auth/index.d.ts.map +1 -1
- package/dist/cjs/auth/index.js +4 -4
- package/dist/cjs/auth/index.js.map +1 -1
- package/dist/cjs/auth/pki-auth.d.ts +1 -1
- package/dist/cjs/auth/pki-auth.d.ts.map +1 -1
- package/dist/cjs/auth/pki-auth.js +23 -5
- package/dist/cjs/auth/pki-auth.js.map +1 -1
- package/dist/cjs/auth/proto/schema_pb.d.ts +1052 -0
- package/dist/cjs/auth/proto/schema_pb.d.ts.map +1 -0
- package/dist/cjs/auth/proto/schema_pb.js +413 -0
- package/dist/cjs/auth/proto/schema_pb.js.map +1 -0
- package/dist/cjs/auth/sign.d.ts.map +1 -1
- package/dist/cjs/auth/sign.js +6 -1
- package/dist/cjs/auth/sign.js.map +1 -1
- package/dist/cjs/basin.d.ts.map +1 -1
- package/dist/cjs/basin.js.map +1 -1
- package/dist/cjs/basins.d.ts.map +1 -1
- package/dist/cjs/basins.js +6 -2
- package/dist/cjs/basins.js.map +1 -1
- package/dist/cjs/error.d.ts.map +1 -1
- package/dist/cjs/error.js +9 -1
- package/dist/cjs/error.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +4 -9
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/internal/mappers.d.ts +0 -1
- package/dist/cjs/internal/mappers.d.ts.map +1 -1
- package/dist/cjs/internal/mappers.js +0 -3
- package/dist/cjs/internal/mappers.js.map +1 -1
- package/dist/cjs/lib/event-stream.js +37 -11
- package/dist/cjs/lib/event-stream.js.map +1 -1
- package/dist/cjs/lib/paginate.d.ts +9 -0
- package/dist/cjs/lib/paginate.d.ts.map +1 -1
- package/dist/cjs/lib/paginate.js +20 -0
- package/dist/cjs/lib/paginate.js.map +1 -1
- package/dist/cjs/lib/retry.d.ts +1 -0
- package/dist/cjs/lib/retry.d.ts.map +1 -1
- package/dist/cjs/lib/retry.js +34 -32
- package/dist/cjs/lib/retry.js.map +1 -1
- package/dist/cjs/lib/stream/runtime.d.ts +1 -1
- package/dist/cjs/lib/stream/runtime.d.ts.map +1 -1
- package/dist/cjs/lib/stream/runtime.js +4 -1
- package/dist/cjs/lib/stream/runtime.js.map +1 -1
- package/dist/cjs/lib/stream/transport/fetch/index.d.ts.map +1 -1
- package/dist/cjs/lib/stream/transport/fetch/index.js +2 -18
- package/dist/cjs/lib/stream/transport/fetch/index.js.map +1 -1
- package/dist/cjs/lib/stream/transport/fetch/shared.js +6 -6
- package/dist/cjs/lib/stream/transport/fetch/shared.js.map +1 -1
- package/dist/cjs/lib/stream/transport/proto.d.ts +15 -1
- package/dist/cjs/lib/stream/transport/proto.d.ts.map +1 -1
- package/dist/cjs/lib/stream/transport/proto.js +33 -0
- package/dist/cjs/lib/stream/transport/proto.js.map +1 -1
- package/dist/cjs/lib/stream/transport/s2s/index.d.ts.map +1 -1
- package/dist/cjs/lib/stream/transport/s2s/index.js +5 -25
- package/dist/cjs/lib/stream/transport/s2s/index.js.map +1 -1
- package/dist/cjs/lib/stream/types.d.ts +1 -0
- package/dist/cjs/lib/stream/types.d.ts.map +1 -1
- package/dist/cjs/lib/stream/types.js.map +1 -1
- package/dist/cjs/s2.d.ts.map +1 -1
- package/dist/cjs/s2.js +5 -1
- package/dist/cjs/s2.js.map +1 -1
- package/dist/cjs/stream.d.ts.map +1 -1
- package/dist/cjs/stream.js +10 -1
- package/dist/cjs/stream.js.map +1 -1
- package/dist/cjs/streams.d.ts.map +1 -1
- package/dist/cjs/streams.js +6 -2
- package/dist/cjs/streams.js.map +1 -1
- package/dist/cjs/tests/helpers.d.ts +8 -0
- package/dist/cjs/tests/helpers.d.ts.map +1 -0
- package/dist/cjs/tests/helpers.js +42 -0
- package/dist/cjs/tests/helpers.js.map +1 -0
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/types.js +10 -0
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/utils.d.ts +7 -0
- package/dist/cjs/utils.d.ts.map +1 -1
- package/dist/cjs/utils.js +22 -17
- package/dist/cjs/utils.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/auth/biscuit.d.ts +7 -5
- package/dist/esm/auth/biscuit.d.ts.map +1 -1
- package/dist/esm/auth/biscuit.js +136 -39
- package/dist/esm/auth/biscuit.js.map +1 -1
- package/dist/esm/auth/index.d.ts +3 -3
- package/dist/esm/auth/index.d.ts.map +1 -1
- package/dist/esm/auth/index.js +3 -3
- package/dist/esm/auth/index.js.map +1 -1
- package/dist/esm/auth/pki-auth.d.ts +1 -1
- package/dist/esm/auth/pki-auth.d.ts.map +1 -1
- package/dist/esm/auth/pki-auth.js +24 -6
- package/dist/esm/auth/pki-auth.js.map +1 -1
- package/dist/esm/auth/proto/schema_pb.d.ts +1052 -0
- package/dist/esm/auth/proto/schema_pb.d.ts.map +1 -0
- package/dist/esm/auth/proto/schema_pb.js +410 -0
- package/dist/esm/auth/proto/schema_pb.js.map +1 -0
- package/dist/esm/auth/sign.d.ts.map +1 -1
- package/dist/esm/auth/sign.js +6 -1
- package/dist/esm/auth/sign.js.map +1 -1
- package/dist/esm/basin.d.ts.map +1 -1
- package/dist/esm/basin.js +2 -2
- package/dist/esm/basin.js.map +1 -1
- package/dist/esm/basins.d.ts.map +1 -1
- package/dist/esm/basins.js +7 -3
- package/dist/esm/basins.js.map +1 -1
- package/dist/esm/error.d.ts.map +1 -1
- package/dist/esm/error.js +9 -1
- package/dist/esm/error.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +4 -9
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal/mappers.d.ts +0 -1
- package/dist/esm/internal/mappers.d.ts.map +1 -1
- package/dist/esm/internal/mappers.js +0 -3
- package/dist/esm/internal/mappers.js.map +1 -1
- package/dist/esm/lib/event-stream.js +37 -11
- package/dist/esm/lib/event-stream.js.map +1 -1
- package/dist/esm/lib/paginate.d.ts +9 -0
- package/dist/esm/lib/paginate.d.ts.map +1 -1
- package/dist/esm/lib/paginate.js +19 -0
- package/dist/esm/lib/paginate.js.map +1 -1
- package/dist/esm/lib/retry.d.ts +1 -0
- package/dist/esm/lib/retry.d.ts.map +1 -1
- package/dist/esm/lib/retry.js +35 -33
- package/dist/esm/lib/retry.js.map +1 -1
- package/dist/esm/lib/stream/runtime.d.ts +1 -1
- package/dist/esm/lib/stream/runtime.d.ts.map +1 -1
- package/dist/esm/lib/stream/runtime.js +4 -1
- package/dist/esm/lib/stream/runtime.js.map +1 -1
- package/dist/esm/lib/stream/transport/fetch/index.d.ts.map +1 -1
- package/dist/esm/lib/stream/transport/fetch/index.js +4 -20
- package/dist/esm/lib/stream/transport/fetch/index.js.map +1 -1
- package/dist/esm/lib/stream/transport/fetch/shared.js +6 -6
- package/dist/esm/lib/stream/transport/fetch/shared.js.map +1 -1
- package/dist/esm/lib/stream/transport/proto.d.ts +15 -1
- package/dist/esm/lib/stream/transport/proto.d.ts.map +1 -1
- package/dist/esm/lib/stream/transport/proto.js +32 -1
- package/dist/esm/lib/stream/transport/proto.js.map +1 -1
- package/dist/esm/lib/stream/transport/s2s/index.d.ts.map +1 -1
- package/dist/esm/lib/stream/transport/s2s/index.js +6 -26
- package/dist/esm/lib/stream/transport/s2s/index.js.map +1 -1
- package/dist/esm/lib/stream/types.d.ts +1 -0
- package/dist/esm/lib/stream/types.d.ts.map +1 -1
- package/dist/esm/lib/stream/types.js.map +1 -1
- package/dist/esm/s2.d.ts.map +1 -1
- package/dist/esm/s2.js +7 -3
- package/dist/esm/s2.js.map +1 -1
- package/dist/esm/stream.d.ts.map +1 -1
- package/dist/esm/stream.js +10 -1
- package/dist/esm/stream.js.map +1 -1
- package/dist/esm/streams.d.ts.map +1 -1
- package/dist/esm/streams.js +7 -3
- package/dist/esm/streams.js.map +1 -1
- package/dist/esm/tests/helpers.d.ts +8 -0
- package/dist/esm/tests/helpers.d.ts.map +1 -0
- package/dist/esm/tests/helpers.js +34 -0
- package/dist/esm/tests/helpers.js.map +1 -0
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/types.js +11 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/utils.d.ts +7 -0
- package/dist/esm/utils.d.ts.map +1 -1
- package/dist/esm/utils.js +21 -17
- package/dist/esm/utils.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1,1052 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file schema.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_schema: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message biscuit.format.schema.Biscuit
|
|
9
|
+
*/
|
|
10
|
+
export type Biscuit = Message<"biscuit.format.schema.Biscuit"> & {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: optional uint32 rootKeyId = 1;
|
|
13
|
+
*/
|
|
14
|
+
rootKeyId: number;
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: required biscuit.format.schema.SignedBlock authority = 2;
|
|
17
|
+
*/
|
|
18
|
+
authority?: SignedBlock;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: repeated biscuit.format.schema.SignedBlock blocks = 3;
|
|
21
|
+
*/
|
|
22
|
+
blocks: SignedBlock[];
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: required biscuit.format.schema.Proof proof = 4;
|
|
25
|
+
*/
|
|
26
|
+
proof?: Proof;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message biscuit.format.schema.Biscuit.
|
|
30
|
+
* Use `create(BiscuitSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
export declare const BiscuitSchema: GenMessage<Biscuit>;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from message biscuit.format.schema.SignedBlock
|
|
35
|
+
*/
|
|
36
|
+
export type SignedBlock = Message<"biscuit.format.schema.SignedBlock"> & {
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: required bytes block = 1;
|
|
39
|
+
*/
|
|
40
|
+
block: Uint8Array;
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: required biscuit.format.schema.PublicKey nextKey = 2;
|
|
43
|
+
*/
|
|
44
|
+
nextKey?: PublicKey;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: required bytes signature = 3;
|
|
47
|
+
*/
|
|
48
|
+
signature: Uint8Array;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: optional biscuit.format.schema.ExternalSignature externalSignature = 4;
|
|
51
|
+
*/
|
|
52
|
+
externalSignature?: ExternalSignature;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: optional uint32 version = 5;
|
|
55
|
+
*/
|
|
56
|
+
version: number;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message biscuit.format.schema.SignedBlock.
|
|
60
|
+
* Use `create(SignedBlockSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export declare const SignedBlockSchema: GenMessage<SignedBlock>;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from message biscuit.format.schema.ExternalSignature
|
|
65
|
+
*/
|
|
66
|
+
export type ExternalSignature = Message<"biscuit.format.schema.ExternalSignature"> & {
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: required bytes signature = 1;
|
|
69
|
+
*/
|
|
70
|
+
signature: Uint8Array;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: required biscuit.format.schema.PublicKey publicKey = 2;
|
|
73
|
+
*/
|
|
74
|
+
publicKey?: PublicKey;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message biscuit.format.schema.ExternalSignature.
|
|
78
|
+
* Use `create(ExternalSignatureSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export declare const ExternalSignatureSchema: GenMessage<ExternalSignature>;
|
|
81
|
+
/**
|
|
82
|
+
* @generated from message biscuit.format.schema.PublicKey
|
|
83
|
+
*/
|
|
84
|
+
export type PublicKey = Message<"biscuit.format.schema.PublicKey"> & {
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: required biscuit.format.schema.PublicKey.Algorithm algorithm = 1;
|
|
87
|
+
*/
|
|
88
|
+
algorithm: PublicKey_Algorithm;
|
|
89
|
+
/**
|
|
90
|
+
* @generated from field: required bytes key = 2;
|
|
91
|
+
*/
|
|
92
|
+
key: Uint8Array;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Describes the message biscuit.format.schema.PublicKey.
|
|
96
|
+
* Use `create(PublicKeySchema)` to create a new message.
|
|
97
|
+
*/
|
|
98
|
+
export declare const PublicKeySchema: GenMessage<PublicKey>;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from enum biscuit.format.schema.PublicKey.Algorithm
|
|
101
|
+
*/
|
|
102
|
+
export declare enum PublicKey_Algorithm {
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum value: Ed25519 = 0;
|
|
105
|
+
*/
|
|
106
|
+
Ed25519 = 0,
|
|
107
|
+
/**
|
|
108
|
+
* @generated from enum value: SECP256R1 = 1;
|
|
109
|
+
*/
|
|
110
|
+
SECP256R1 = 1
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Describes the enum biscuit.format.schema.PublicKey.Algorithm.
|
|
114
|
+
*/
|
|
115
|
+
export declare const PublicKey_AlgorithmSchema: GenEnum<PublicKey_Algorithm>;
|
|
116
|
+
/**
|
|
117
|
+
* @generated from message biscuit.format.schema.Proof
|
|
118
|
+
*/
|
|
119
|
+
export type Proof = Message<"biscuit.format.schema.Proof"> & {
|
|
120
|
+
/**
|
|
121
|
+
* @generated from oneof biscuit.format.schema.Proof.Content
|
|
122
|
+
*/
|
|
123
|
+
Content: {
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: bytes nextSecret = 1;
|
|
126
|
+
*/
|
|
127
|
+
value: Uint8Array;
|
|
128
|
+
case: "nextSecret";
|
|
129
|
+
} | {
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: bytes finalSignature = 2;
|
|
132
|
+
*/
|
|
133
|
+
value: Uint8Array;
|
|
134
|
+
case: "finalSignature";
|
|
135
|
+
} | {
|
|
136
|
+
case: undefined;
|
|
137
|
+
value?: undefined;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Describes the message biscuit.format.schema.Proof.
|
|
142
|
+
* Use `create(ProofSchema)` to create a new message.
|
|
143
|
+
*/
|
|
144
|
+
export declare const ProofSchema: GenMessage<Proof>;
|
|
145
|
+
/**
|
|
146
|
+
* @generated from message biscuit.format.schema.Block
|
|
147
|
+
*/
|
|
148
|
+
export type Block = Message<"biscuit.format.schema.Block"> & {
|
|
149
|
+
/**
|
|
150
|
+
* @generated from field: repeated string symbols = 1;
|
|
151
|
+
*/
|
|
152
|
+
symbols: string[];
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: optional string context = 2;
|
|
155
|
+
*/
|
|
156
|
+
context: string;
|
|
157
|
+
/**
|
|
158
|
+
* @generated from field: optional uint32 version = 3;
|
|
159
|
+
*/
|
|
160
|
+
version: number;
|
|
161
|
+
/**
|
|
162
|
+
* @generated from field: repeated biscuit.format.schema.Fact facts = 4;
|
|
163
|
+
*/
|
|
164
|
+
facts: Fact[];
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: repeated biscuit.format.schema.Rule rules = 5;
|
|
167
|
+
*/
|
|
168
|
+
rules: Rule[];
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: repeated biscuit.format.schema.Check checks = 6;
|
|
171
|
+
*/
|
|
172
|
+
checks: Check[];
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: repeated biscuit.format.schema.Scope scope = 7;
|
|
175
|
+
*/
|
|
176
|
+
scope: Scope[];
|
|
177
|
+
/**
|
|
178
|
+
* @generated from field: repeated biscuit.format.schema.PublicKey publicKeys = 8;
|
|
179
|
+
*/
|
|
180
|
+
publicKeys: PublicKey[];
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Describes the message biscuit.format.schema.Block.
|
|
184
|
+
* Use `create(BlockSchema)` to create a new message.
|
|
185
|
+
*/
|
|
186
|
+
export declare const BlockSchema: GenMessage<Block>;
|
|
187
|
+
/**
|
|
188
|
+
* @generated from message biscuit.format.schema.Scope
|
|
189
|
+
*/
|
|
190
|
+
export type Scope = Message<"biscuit.format.schema.Scope"> & {
|
|
191
|
+
/**
|
|
192
|
+
* @generated from oneof biscuit.format.schema.Scope.Content
|
|
193
|
+
*/
|
|
194
|
+
Content: {
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: biscuit.format.schema.Scope.ScopeType scopeType = 1;
|
|
197
|
+
*/
|
|
198
|
+
value: Scope_ScopeType;
|
|
199
|
+
case: "scopeType";
|
|
200
|
+
} | {
|
|
201
|
+
/**
|
|
202
|
+
* @generated from field: int64 publicKey = 2;
|
|
203
|
+
*/
|
|
204
|
+
value: bigint;
|
|
205
|
+
case: "publicKey";
|
|
206
|
+
} | {
|
|
207
|
+
case: undefined;
|
|
208
|
+
value?: undefined;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Describes the message biscuit.format.schema.Scope.
|
|
213
|
+
* Use `create(ScopeSchema)` to create a new message.
|
|
214
|
+
*/
|
|
215
|
+
export declare const ScopeSchema: GenMessage<Scope>;
|
|
216
|
+
/**
|
|
217
|
+
* @generated from enum biscuit.format.schema.Scope.ScopeType
|
|
218
|
+
*/
|
|
219
|
+
export declare enum Scope_ScopeType {
|
|
220
|
+
/**
|
|
221
|
+
* @generated from enum value: Authority = 0;
|
|
222
|
+
*/
|
|
223
|
+
Authority = 0,
|
|
224
|
+
/**
|
|
225
|
+
* @generated from enum value: Previous = 1;
|
|
226
|
+
*/
|
|
227
|
+
Previous = 1
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Describes the enum biscuit.format.schema.Scope.ScopeType.
|
|
231
|
+
*/
|
|
232
|
+
export declare const Scope_ScopeTypeSchema: GenEnum<Scope_ScopeType>;
|
|
233
|
+
/**
|
|
234
|
+
* @generated from message biscuit.format.schema.Fact
|
|
235
|
+
*/
|
|
236
|
+
export type Fact = Message<"biscuit.format.schema.Fact"> & {
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: required biscuit.format.schema.Predicate predicate = 1;
|
|
239
|
+
*/
|
|
240
|
+
predicate?: Predicate;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Describes the message biscuit.format.schema.Fact.
|
|
244
|
+
* Use `create(FactSchema)` to create a new message.
|
|
245
|
+
*/
|
|
246
|
+
export declare const FactSchema: GenMessage<Fact>;
|
|
247
|
+
/**
|
|
248
|
+
* @generated from message biscuit.format.schema.Rule
|
|
249
|
+
*/
|
|
250
|
+
export type Rule = Message<"biscuit.format.schema.Rule"> & {
|
|
251
|
+
/**
|
|
252
|
+
* @generated from field: required biscuit.format.schema.Predicate head = 1;
|
|
253
|
+
*/
|
|
254
|
+
head?: Predicate;
|
|
255
|
+
/**
|
|
256
|
+
* @generated from field: repeated biscuit.format.schema.Predicate body = 2;
|
|
257
|
+
*/
|
|
258
|
+
body: Predicate[];
|
|
259
|
+
/**
|
|
260
|
+
* @generated from field: repeated biscuit.format.schema.Expression expressions = 3;
|
|
261
|
+
*/
|
|
262
|
+
expressions: Expression[];
|
|
263
|
+
/**
|
|
264
|
+
* @generated from field: repeated biscuit.format.schema.Scope scope = 4;
|
|
265
|
+
*/
|
|
266
|
+
scope: Scope[];
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Describes the message biscuit.format.schema.Rule.
|
|
270
|
+
* Use `create(RuleSchema)` to create a new message.
|
|
271
|
+
*/
|
|
272
|
+
export declare const RuleSchema: GenMessage<Rule>;
|
|
273
|
+
/**
|
|
274
|
+
* @generated from message biscuit.format.schema.Check
|
|
275
|
+
*/
|
|
276
|
+
export type Check = Message<"biscuit.format.schema.Check"> & {
|
|
277
|
+
/**
|
|
278
|
+
* @generated from field: repeated biscuit.format.schema.Rule queries = 1;
|
|
279
|
+
*/
|
|
280
|
+
queries: Rule[];
|
|
281
|
+
/**
|
|
282
|
+
* @generated from field: optional biscuit.format.schema.Check.Kind kind = 2;
|
|
283
|
+
*/
|
|
284
|
+
kind: Check_Kind;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Describes the message biscuit.format.schema.Check.
|
|
288
|
+
* Use `create(CheckSchema)` to create a new message.
|
|
289
|
+
*/
|
|
290
|
+
export declare const CheckSchema: GenMessage<Check>;
|
|
291
|
+
/**
|
|
292
|
+
* @generated from enum biscuit.format.schema.Check.Kind
|
|
293
|
+
*/
|
|
294
|
+
export declare enum Check_Kind {
|
|
295
|
+
/**
|
|
296
|
+
* @generated from enum value: One = 0;
|
|
297
|
+
*/
|
|
298
|
+
One = 0,
|
|
299
|
+
/**
|
|
300
|
+
* @generated from enum value: All = 1;
|
|
301
|
+
*/
|
|
302
|
+
All = 1,
|
|
303
|
+
/**
|
|
304
|
+
* @generated from enum value: Reject = 2;
|
|
305
|
+
*/
|
|
306
|
+
Reject = 2
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Describes the enum biscuit.format.schema.Check.Kind.
|
|
310
|
+
*/
|
|
311
|
+
export declare const Check_KindSchema: GenEnum<Check_Kind>;
|
|
312
|
+
/**
|
|
313
|
+
* @generated from message biscuit.format.schema.Predicate
|
|
314
|
+
*/
|
|
315
|
+
export type Predicate = Message<"biscuit.format.schema.Predicate"> & {
|
|
316
|
+
/**
|
|
317
|
+
* @generated from field: required uint64 name = 1;
|
|
318
|
+
*/
|
|
319
|
+
name: bigint;
|
|
320
|
+
/**
|
|
321
|
+
* @generated from field: repeated biscuit.format.schema.Term terms = 2;
|
|
322
|
+
*/
|
|
323
|
+
terms: Term[];
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Describes the message biscuit.format.schema.Predicate.
|
|
327
|
+
* Use `create(PredicateSchema)` to create a new message.
|
|
328
|
+
*/
|
|
329
|
+
export declare const PredicateSchema: GenMessage<Predicate>;
|
|
330
|
+
/**
|
|
331
|
+
* @generated from message biscuit.format.schema.Term
|
|
332
|
+
*/
|
|
333
|
+
export type Term = Message<"biscuit.format.schema.Term"> & {
|
|
334
|
+
/**
|
|
335
|
+
* @generated from oneof biscuit.format.schema.Term.Content
|
|
336
|
+
*/
|
|
337
|
+
Content: {
|
|
338
|
+
/**
|
|
339
|
+
* @generated from field: uint32 variable = 1;
|
|
340
|
+
*/
|
|
341
|
+
value: number;
|
|
342
|
+
case: "variable";
|
|
343
|
+
} | {
|
|
344
|
+
/**
|
|
345
|
+
* @generated from field: int64 integer = 2;
|
|
346
|
+
*/
|
|
347
|
+
value: bigint;
|
|
348
|
+
case: "integer";
|
|
349
|
+
} | {
|
|
350
|
+
/**
|
|
351
|
+
* @generated from field: uint64 string = 3;
|
|
352
|
+
*/
|
|
353
|
+
value: bigint;
|
|
354
|
+
case: "string";
|
|
355
|
+
} | {
|
|
356
|
+
/**
|
|
357
|
+
* @generated from field: uint64 date = 4;
|
|
358
|
+
*/
|
|
359
|
+
value: bigint;
|
|
360
|
+
case: "date";
|
|
361
|
+
} | {
|
|
362
|
+
/**
|
|
363
|
+
* @generated from field: bytes bytes = 5;
|
|
364
|
+
*/
|
|
365
|
+
value: Uint8Array;
|
|
366
|
+
case: "bytes";
|
|
367
|
+
} | {
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: bool bool = 6;
|
|
370
|
+
*/
|
|
371
|
+
value: boolean;
|
|
372
|
+
case: "bool";
|
|
373
|
+
} | {
|
|
374
|
+
/**
|
|
375
|
+
* @generated from field: biscuit.format.schema.TermSet set = 7;
|
|
376
|
+
*/
|
|
377
|
+
value: TermSet;
|
|
378
|
+
case: "set";
|
|
379
|
+
} | {
|
|
380
|
+
/**
|
|
381
|
+
* @generated from field: biscuit.format.schema.Empty null = 8;
|
|
382
|
+
*/
|
|
383
|
+
value: Empty;
|
|
384
|
+
case: "null";
|
|
385
|
+
} | {
|
|
386
|
+
/**
|
|
387
|
+
* @generated from field: biscuit.format.schema.Array array = 9;
|
|
388
|
+
*/
|
|
389
|
+
value: Array;
|
|
390
|
+
case: "array";
|
|
391
|
+
} | {
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: biscuit.format.schema.Map map = 10;
|
|
394
|
+
*/
|
|
395
|
+
value: Map;
|
|
396
|
+
case: "map";
|
|
397
|
+
} | {
|
|
398
|
+
case: undefined;
|
|
399
|
+
value?: undefined;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* Describes the message biscuit.format.schema.Term.
|
|
404
|
+
* Use `create(TermSchema)` to create a new message.
|
|
405
|
+
*/
|
|
406
|
+
export declare const TermSchema: GenMessage<Term>;
|
|
407
|
+
/**
|
|
408
|
+
* @generated from message biscuit.format.schema.TermSet
|
|
409
|
+
*/
|
|
410
|
+
export type TermSet = Message<"biscuit.format.schema.TermSet"> & {
|
|
411
|
+
/**
|
|
412
|
+
* @generated from field: repeated biscuit.format.schema.Term set = 1;
|
|
413
|
+
*/
|
|
414
|
+
set: Term[];
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* Describes the message biscuit.format.schema.TermSet.
|
|
418
|
+
* Use `create(TermSetSchema)` to create a new message.
|
|
419
|
+
*/
|
|
420
|
+
export declare const TermSetSchema: GenMessage<TermSet>;
|
|
421
|
+
/**
|
|
422
|
+
* @generated from message biscuit.format.schema.Array
|
|
423
|
+
*/
|
|
424
|
+
export type Array = Message<"biscuit.format.schema.Array"> & {
|
|
425
|
+
/**
|
|
426
|
+
* @generated from field: repeated biscuit.format.schema.Term array = 1;
|
|
427
|
+
*/
|
|
428
|
+
array: Term[];
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* Describes the message biscuit.format.schema.Array.
|
|
432
|
+
* Use `create(ArraySchema)` to create a new message.
|
|
433
|
+
*/
|
|
434
|
+
export declare const ArraySchema: GenMessage<Array>;
|
|
435
|
+
/**
|
|
436
|
+
* @generated from message biscuit.format.schema.Map
|
|
437
|
+
*/
|
|
438
|
+
export type Map = Message<"biscuit.format.schema.Map"> & {
|
|
439
|
+
/**
|
|
440
|
+
* @generated from field: repeated biscuit.format.schema.MapEntry entries = 1;
|
|
441
|
+
*/
|
|
442
|
+
entries: MapEntry[];
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* Describes the message biscuit.format.schema.Map.
|
|
446
|
+
* Use `create(MapSchema)` to create a new message.
|
|
447
|
+
*/
|
|
448
|
+
export declare const MapSchema: GenMessage<Map>;
|
|
449
|
+
/**
|
|
450
|
+
* @generated from message biscuit.format.schema.MapEntry
|
|
451
|
+
*/
|
|
452
|
+
export type MapEntry = Message<"biscuit.format.schema.MapEntry"> & {
|
|
453
|
+
/**
|
|
454
|
+
* @generated from field: required biscuit.format.schema.MapKey key = 1;
|
|
455
|
+
*/
|
|
456
|
+
key?: MapKey;
|
|
457
|
+
/**
|
|
458
|
+
* @generated from field: required biscuit.format.schema.Term value = 2;
|
|
459
|
+
*/
|
|
460
|
+
value?: Term;
|
|
461
|
+
};
|
|
462
|
+
/**
|
|
463
|
+
* Describes the message biscuit.format.schema.MapEntry.
|
|
464
|
+
* Use `create(MapEntrySchema)` to create a new message.
|
|
465
|
+
*/
|
|
466
|
+
export declare const MapEntrySchema: GenMessage<MapEntry>;
|
|
467
|
+
/**
|
|
468
|
+
* @generated from message biscuit.format.schema.MapKey
|
|
469
|
+
*/
|
|
470
|
+
export type MapKey = Message<"biscuit.format.schema.MapKey"> & {
|
|
471
|
+
/**
|
|
472
|
+
* @generated from oneof biscuit.format.schema.MapKey.Content
|
|
473
|
+
*/
|
|
474
|
+
Content: {
|
|
475
|
+
/**
|
|
476
|
+
* @generated from field: int64 integer = 1;
|
|
477
|
+
*/
|
|
478
|
+
value: bigint;
|
|
479
|
+
case: "integer";
|
|
480
|
+
} | {
|
|
481
|
+
/**
|
|
482
|
+
* @generated from field: uint64 string = 2;
|
|
483
|
+
*/
|
|
484
|
+
value: bigint;
|
|
485
|
+
case: "string";
|
|
486
|
+
} | {
|
|
487
|
+
case: undefined;
|
|
488
|
+
value?: undefined;
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* Describes the message biscuit.format.schema.MapKey.
|
|
493
|
+
* Use `create(MapKeySchema)` to create a new message.
|
|
494
|
+
*/
|
|
495
|
+
export declare const MapKeySchema: GenMessage<MapKey>;
|
|
496
|
+
/**
|
|
497
|
+
* @generated from message biscuit.format.schema.Expression
|
|
498
|
+
*/
|
|
499
|
+
export type Expression = Message<"biscuit.format.schema.Expression"> & {
|
|
500
|
+
/**
|
|
501
|
+
* @generated from field: repeated biscuit.format.schema.Op ops = 1;
|
|
502
|
+
*/
|
|
503
|
+
ops: Op[];
|
|
504
|
+
};
|
|
505
|
+
/**
|
|
506
|
+
* Describes the message biscuit.format.schema.Expression.
|
|
507
|
+
* Use `create(ExpressionSchema)` to create a new message.
|
|
508
|
+
*/
|
|
509
|
+
export declare const ExpressionSchema: GenMessage<Expression>;
|
|
510
|
+
/**
|
|
511
|
+
* @generated from message biscuit.format.schema.Op
|
|
512
|
+
*/
|
|
513
|
+
export type Op = Message<"biscuit.format.schema.Op"> & {
|
|
514
|
+
/**
|
|
515
|
+
* @generated from oneof biscuit.format.schema.Op.Content
|
|
516
|
+
*/
|
|
517
|
+
Content: {
|
|
518
|
+
/**
|
|
519
|
+
* @generated from field: biscuit.format.schema.Term value = 1;
|
|
520
|
+
*/
|
|
521
|
+
value: Term;
|
|
522
|
+
case: "value";
|
|
523
|
+
} | {
|
|
524
|
+
/**
|
|
525
|
+
* @generated from field: biscuit.format.schema.OpUnary unary = 2;
|
|
526
|
+
*/
|
|
527
|
+
value: OpUnary;
|
|
528
|
+
case: "unary";
|
|
529
|
+
} | {
|
|
530
|
+
/**
|
|
531
|
+
* @generated from field: biscuit.format.schema.OpBinary Binary = 3;
|
|
532
|
+
*/
|
|
533
|
+
value: OpBinary;
|
|
534
|
+
case: "Binary";
|
|
535
|
+
} | {
|
|
536
|
+
/**
|
|
537
|
+
* @generated from field: biscuit.format.schema.OpClosure closure = 4;
|
|
538
|
+
*/
|
|
539
|
+
value: OpClosure;
|
|
540
|
+
case: "closure";
|
|
541
|
+
} | {
|
|
542
|
+
case: undefined;
|
|
543
|
+
value?: undefined;
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
/**
|
|
547
|
+
* Describes the message biscuit.format.schema.Op.
|
|
548
|
+
* Use `create(OpSchema)` to create a new message.
|
|
549
|
+
*/
|
|
550
|
+
export declare const OpSchema: GenMessage<Op>;
|
|
551
|
+
/**
|
|
552
|
+
* @generated from message biscuit.format.schema.OpUnary
|
|
553
|
+
*/
|
|
554
|
+
export type OpUnary = Message<"biscuit.format.schema.OpUnary"> & {
|
|
555
|
+
/**
|
|
556
|
+
* @generated from field: required biscuit.format.schema.OpUnary.Kind kind = 1;
|
|
557
|
+
*/
|
|
558
|
+
kind: OpUnary_Kind;
|
|
559
|
+
/**
|
|
560
|
+
* @generated from field: optional uint64 ffiName = 2;
|
|
561
|
+
*/
|
|
562
|
+
ffiName: bigint;
|
|
563
|
+
};
|
|
564
|
+
/**
|
|
565
|
+
* Describes the message biscuit.format.schema.OpUnary.
|
|
566
|
+
* Use `create(OpUnarySchema)` to create a new message.
|
|
567
|
+
*/
|
|
568
|
+
export declare const OpUnarySchema: GenMessage<OpUnary>;
|
|
569
|
+
/**
|
|
570
|
+
* @generated from enum biscuit.format.schema.OpUnary.Kind
|
|
571
|
+
*/
|
|
572
|
+
export declare enum OpUnary_Kind {
|
|
573
|
+
/**
|
|
574
|
+
* @generated from enum value: Negate = 0;
|
|
575
|
+
*/
|
|
576
|
+
Negate = 0,
|
|
577
|
+
/**
|
|
578
|
+
* @generated from enum value: Parens = 1;
|
|
579
|
+
*/
|
|
580
|
+
Parens = 1,
|
|
581
|
+
/**
|
|
582
|
+
* @generated from enum value: Length = 2;
|
|
583
|
+
*/
|
|
584
|
+
Length = 2,
|
|
585
|
+
/**
|
|
586
|
+
* @generated from enum value: TypeOf = 3;
|
|
587
|
+
*/
|
|
588
|
+
TypeOf = 3,
|
|
589
|
+
/**
|
|
590
|
+
* @generated from enum value: Ffi = 4;
|
|
591
|
+
*/
|
|
592
|
+
Ffi = 4
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Describes the enum biscuit.format.schema.OpUnary.Kind.
|
|
596
|
+
*/
|
|
597
|
+
export declare const OpUnary_KindSchema: GenEnum<OpUnary_Kind>;
|
|
598
|
+
/**
|
|
599
|
+
* @generated from message biscuit.format.schema.OpBinary
|
|
600
|
+
*/
|
|
601
|
+
export type OpBinary = Message<"biscuit.format.schema.OpBinary"> & {
|
|
602
|
+
/**
|
|
603
|
+
* @generated from field: required biscuit.format.schema.OpBinary.Kind kind = 1;
|
|
604
|
+
*/
|
|
605
|
+
kind: OpBinary_Kind;
|
|
606
|
+
/**
|
|
607
|
+
* @generated from field: optional uint64 ffiName = 2;
|
|
608
|
+
*/
|
|
609
|
+
ffiName: bigint;
|
|
610
|
+
};
|
|
611
|
+
/**
|
|
612
|
+
* Describes the message biscuit.format.schema.OpBinary.
|
|
613
|
+
* Use `create(OpBinarySchema)` to create a new message.
|
|
614
|
+
*/
|
|
615
|
+
export declare const OpBinarySchema: GenMessage<OpBinary>;
|
|
616
|
+
/**
|
|
617
|
+
* @generated from enum biscuit.format.schema.OpBinary.Kind
|
|
618
|
+
*/
|
|
619
|
+
export declare enum OpBinary_Kind {
|
|
620
|
+
/**
|
|
621
|
+
* @generated from enum value: LessThan = 0;
|
|
622
|
+
*/
|
|
623
|
+
LessThan = 0,
|
|
624
|
+
/**
|
|
625
|
+
* @generated from enum value: GreaterThan = 1;
|
|
626
|
+
*/
|
|
627
|
+
GreaterThan = 1,
|
|
628
|
+
/**
|
|
629
|
+
* @generated from enum value: LessOrEqual = 2;
|
|
630
|
+
*/
|
|
631
|
+
LessOrEqual = 2,
|
|
632
|
+
/**
|
|
633
|
+
* @generated from enum value: GreaterOrEqual = 3;
|
|
634
|
+
*/
|
|
635
|
+
GreaterOrEqual = 3,
|
|
636
|
+
/**
|
|
637
|
+
* @generated from enum value: Equal = 4;
|
|
638
|
+
*/
|
|
639
|
+
Equal = 4,
|
|
640
|
+
/**
|
|
641
|
+
* @generated from enum value: Contains = 5;
|
|
642
|
+
*/
|
|
643
|
+
Contains = 5,
|
|
644
|
+
/**
|
|
645
|
+
* @generated from enum value: Prefix = 6;
|
|
646
|
+
*/
|
|
647
|
+
Prefix = 6,
|
|
648
|
+
/**
|
|
649
|
+
* @generated from enum value: Suffix = 7;
|
|
650
|
+
*/
|
|
651
|
+
Suffix = 7,
|
|
652
|
+
/**
|
|
653
|
+
* @generated from enum value: Regex = 8;
|
|
654
|
+
*/
|
|
655
|
+
Regex = 8,
|
|
656
|
+
/**
|
|
657
|
+
* @generated from enum value: Add = 9;
|
|
658
|
+
*/
|
|
659
|
+
Add = 9,
|
|
660
|
+
/**
|
|
661
|
+
* @generated from enum value: Sub = 10;
|
|
662
|
+
*/
|
|
663
|
+
Sub = 10,
|
|
664
|
+
/**
|
|
665
|
+
* @generated from enum value: Mul = 11;
|
|
666
|
+
*/
|
|
667
|
+
Mul = 11,
|
|
668
|
+
/**
|
|
669
|
+
* @generated from enum value: Div = 12;
|
|
670
|
+
*/
|
|
671
|
+
Div = 12,
|
|
672
|
+
/**
|
|
673
|
+
* @generated from enum value: And = 13;
|
|
674
|
+
*/
|
|
675
|
+
And = 13,
|
|
676
|
+
/**
|
|
677
|
+
* @generated from enum value: Or = 14;
|
|
678
|
+
*/
|
|
679
|
+
Or = 14,
|
|
680
|
+
/**
|
|
681
|
+
* @generated from enum value: Intersection = 15;
|
|
682
|
+
*/
|
|
683
|
+
Intersection = 15,
|
|
684
|
+
/**
|
|
685
|
+
* @generated from enum value: Union = 16;
|
|
686
|
+
*/
|
|
687
|
+
Union = 16,
|
|
688
|
+
/**
|
|
689
|
+
* @generated from enum value: BitwiseAnd = 17;
|
|
690
|
+
*/
|
|
691
|
+
BitwiseAnd = 17,
|
|
692
|
+
/**
|
|
693
|
+
* @generated from enum value: BitwiseOr = 18;
|
|
694
|
+
*/
|
|
695
|
+
BitwiseOr = 18,
|
|
696
|
+
/**
|
|
697
|
+
* @generated from enum value: BitwiseXor = 19;
|
|
698
|
+
*/
|
|
699
|
+
BitwiseXor = 19,
|
|
700
|
+
/**
|
|
701
|
+
* @generated from enum value: NotEqual = 20;
|
|
702
|
+
*/
|
|
703
|
+
NotEqual = 20,
|
|
704
|
+
/**
|
|
705
|
+
* @generated from enum value: HeterogeneousEqual = 21;
|
|
706
|
+
*/
|
|
707
|
+
HeterogeneousEqual = 21,
|
|
708
|
+
/**
|
|
709
|
+
* @generated from enum value: HeterogeneousNotEqual = 22;
|
|
710
|
+
*/
|
|
711
|
+
HeterogeneousNotEqual = 22,
|
|
712
|
+
/**
|
|
713
|
+
* @generated from enum value: LazyAnd = 23;
|
|
714
|
+
*/
|
|
715
|
+
LazyAnd = 23,
|
|
716
|
+
/**
|
|
717
|
+
* @generated from enum value: LazyOr = 24;
|
|
718
|
+
*/
|
|
719
|
+
LazyOr = 24,
|
|
720
|
+
/**
|
|
721
|
+
* @generated from enum value: All = 25;
|
|
722
|
+
*/
|
|
723
|
+
All = 25,
|
|
724
|
+
/**
|
|
725
|
+
* @generated from enum value: Any = 26;
|
|
726
|
+
*/
|
|
727
|
+
Any = 26,
|
|
728
|
+
/**
|
|
729
|
+
* @generated from enum value: Get = 27;
|
|
730
|
+
*/
|
|
731
|
+
Get = 27,
|
|
732
|
+
/**
|
|
733
|
+
* @generated from enum value: Ffi = 28;
|
|
734
|
+
*/
|
|
735
|
+
Ffi = 28,
|
|
736
|
+
/**
|
|
737
|
+
* @generated from enum value: TryOr = 29;
|
|
738
|
+
*/
|
|
739
|
+
TryOr = 29
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Describes the enum biscuit.format.schema.OpBinary.Kind.
|
|
743
|
+
*/
|
|
744
|
+
export declare const OpBinary_KindSchema: GenEnum<OpBinary_Kind>;
|
|
745
|
+
/**
|
|
746
|
+
* @generated from message biscuit.format.schema.OpClosure
|
|
747
|
+
*/
|
|
748
|
+
export type OpClosure = Message<"biscuit.format.schema.OpClosure"> & {
|
|
749
|
+
/**
|
|
750
|
+
* @generated from field: repeated uint32 params = 1;
|
|
751
|
+
*/
|
|
752
|
+
params: number[];
|
|
753
|
+
/**
|
|
754
|
+
* @generated from field: repeated biscuit.format.schema.Op ops = 2;
|
|
755
|
+
*/
|
|
756
|
+
ops: Op[];
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* Describes the message biscuit.format.schema.OpClosure.
|
|
760
|
+
* Use `create(OpClosureSchema)` to create a new message.
|
|
761
|
+
*/
|
|
762
|
+
export declare const OpClosureSchema: GenMessage<OpClosure>;
|
|
763
|
+
/**
|
|
764
|
+
* @generated from message biscuit.format.schema.Policy
|
|
765
|
+
*/
|
|
766
|
+
export type Policy = Message<"biscuit.format.schema.Policy"> & {
|
|
767
|
+
/**
|
|
768
|
+
* @generated from field: repeated biscuit.format.schema.Rule queries = 1;
|
|
769
|
+
*/
|
|
770
|
+
queries: Rule[];
|
|
771
|
+
/**
|
|
772
|
+
* @generated from field: required biscuit.format.schema.Policy.Kind kind = 2;
|
|
773
|
+
*/
|
|
774
|
+
kind: Policy_Kind;
|
|
775
|
+
};
|
|
776
|
+
/**
|
|
777
|
+
* Describes the message biscuit.format.schema.Policy.
|
|
778
|
+
* Use `create(PolicySchema)` to create a new message.
|
|
779
|
+
*/
|
|
780
|
+
export declare const PolicySchema: GenMessage<Policy>;
|
|
781
|
+
/**
|
|
782
|
+
* @generated from enum biscuit.format.schema.Policy.Kind
|
|
783
|
+
*/
|
|
784
|
+
export declare enum Policy_Kind {
|
|
785
|
+
/**
|
|
786
|
+
* @generated from enum value: Allow = 0;
|
|
787
|
+
*/
|
|
788
|
+
Allow = 0,
|
|
789
|
+
/**
|
|
790
|
+
* @generated from enum value: Deny = 1;
|
|
791
|
+
*/
|
|
792
|
+
Deny = 1
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Describes the enum biscuit.format.schema.Policy.Kind.
|
|
796
|
+
*/
|
|
797
|
+
export declare const Policy_KindSchema: GenEnum<Policy_Kind>;
|
|
798
|
+
/**
|
|
799
|
+
* @generated from message biscuit.format.schema.AuthorizerPolicies
|
|
800
|
+
*/
|
|
801
|
+
export type AuthorizerPolicies = Message<"biscuit.format.schema.AuthorizerPolicies"> & {
|
|
802
|
+
/**
|
|
803
|
+
* @generated from field: repeated string symbols = 1;
|
|
804
|
+
*/
|
|
805
|
+
symbols: string[];
|
|
806
|
+
/**
|
|
807
|
+
* @generated from field: optional uint32 version = 2;
|
|
808
|
+
*/
|
|
809
|
+
version: number;
|
|
810
|
+
/**
|
|
811
|
+
* @generated from field: repeated biscuit.format.schema.Fact facts = 3;
|
|
812
|
+
*/
|
|
813
|
+
facts: Fact[];
|
|
814
|
+
/**
|
|
815
|
+
* @generated from field: repeated biscuit.format.schema.Rule rules = 4;
|
|
816
|
+
*/
|
|
817
|
+
rules: Rule[];
|
|
818
|
+
/**
|
|
819
|
+
* @generated from field: repeated biscuit.format.schema.Check checks = 5;
|
|
820
|
+
*/
|
|
821
|
+
checks: Check[];
|
|
822
|
+
/**
|
|
823
|
+
* @generated from field: repeated biscuit.format.schema.Policy policies = 6;
|
|
824
|
+
*/
|
|
825
|
+
policies: Policy[];
|
|
826
|
+
};
|
|
827
|
+
/**
|
|
828
|
+
* Describes the message biscuit.format.schema.AuthorizerPolicies.
|
|
829
|
+
* Use `create(AuthorizerPoliciesSchema)` to create a new message.
|
|
830
|
+
*/
|
|
831
|
+
export declare const AuthorizerPoliciesSchema: GenMessage<AuthorizerPolicies>;
|
|
832
|
+
/**
|
|
833
|
+
* @generated from message biscuit.format.schema.ThirdPartyBlockRequest
|
|
834
|
+
*/
|
|
835
|
+
export type ThirdPartyBlockRequest = Message<"biscuit.format.schema.ThirdPartyBlockRequest"> & {
|
|
836
|
+
/**
|
|
837
|
+
* @generated from field: optional biscuit.format.schema.PublicKey legacyPreviousKey = 1;
|
|
838
|
+
*/
|
|
839
|
+
legacyPreviousKey?: PublicKey;
|
|
840
|
+
/**
|
|
841
|
+
* @generated from field: repeated biscuit.format.schema.PublicKey legacyPublicKeys = 2;
|
|
842
|
+
*/
|
|
843
|
+
legacyPublicKeys: PublicKey[];
|
|
844
|
+
/**
|
|
845
|
+
* @generated from field: required bytes previousSignature = 3;
|
|
846
|
+
*/
|
|
847
|
+
previousSignature: Uint8Array;
|
|
848
|
+
};
|
|
849
|
+
/**
|
|
850
|
+
* Describes the message biscuit.format.schema.ThirdPartyBlockRequest.
|
|
851
|
+
* Use `create(ThirdPartyBlockRequestSchema)` to create a new message.
|
|
852
|
+
*/
|
|
853
|
+
export declare const ThirdPartyBlockRequestSchema: GenMessage<ThirdPartyBlockRequest>;
|
|
854
|
+
/**
|
|
855
|
+
* @generated from message biscuit.format.schema.ThirdPartyBlockContents
|
|
856
|
+
*/
|
|
857
|
+
export type ThirdPartyBlockContents = Message<"biscuit.format.schema.ThirdPartyBlockContents"> & {
|
|
858
|
+
/**
|
|
859
|
+
* @generated from field: required bytes payload = 1;
|
|
860
|
+
*/
|
|
861
|
+
payload: Uint8Array;
|
|
862
|
+
/**
|
|
863
|
+
* @generated from field: required biscuit.format.schema.ExternalSignature externalSignature = 2;
|
|
864
|
+
*/
|
|
865
|
+
externalSignature?: ExternalSignature;
|
|
866
|
+
};
|
|
867
|
+
/**
|
|
868
|
+
* Describes the message biscuit.format.schema.ThirdPartyBlockContents.
|
|
869
|
+
* Use `create(ThirdPartyBlockContentsSchema)` to create a new message.
|
|
870
|
+
*/
|
|
871
|
+
export declare const ThirdPartyBlockContentsSchema: GenMessage<ThirdPartyBlockContents>;
|
|
872
|
+
/**
|
|
873
|
+
* @generated from message biscuit.format.schema.AuthorizerSnapshot
|
|
874
|
+
*/
|
|
875
|
+
export type AuthorizerSnapshot = Message<"biscuit.format.schema.AuthorizerSnapshot"> & {
|
|
876
|
+
/**
|
|
877
|
+
* @generated from field: required biscuit.format.schema.RunLimits limits = 1;
|
|
878
|
+
*/
|
|
879
|
+
limits?: RunLimits;
|
|
880
|
+
/**
|
|
881
|
+
* @generated from field: required uint64 executionTime = 2;
|
|
882
|
+
*/
|
|
883
|
+
executionTime: bigint;
|
|
884
|
+
/**
|
|
885
|
+
* @generated from field: required biscuit.format.schema.AuthorizerWorld world = 3;
|
|
886
|
+
*/
|
|
887
|
+
world?: AuthorizerWorld;
|
|
888
|
+
};
|
|
889
|
+
/**
|
|
890
|
+
* Describes the message biscuit.format.schema.AuthorizerSnapshot.
|
|
891
|
+
* Use `create(AuthorizerSnapshotSchema)` to create a new message.
|
|
892
|
+
*/
|
|
893
|
+
export declare const AuthorizerSnapshotSchema: GenMessage<AuthorizerSnapshot>;
|
|
894
|
+
/**
|
|
895
|
+
* @generated from message biscuit.format.schema.RunLimits
|
|
896
|
+
*/
|
|
897
|
+
export type RunLimits = Message<"biscuit.format.schema.RunLimits"> & {
|
|
898
|
+
/**
|
|
899
|
+
* @generated from field: required uint64 maxFacts = 1;
|
|
900
|
+
*/
|
|
901
|
+
maxFacts: bigint;
|
|
902
|
+
/**
|
|
903
|
+
* @generated from field: required uint64 maxIterations = 2;
|
|
904
|
+
*/
|
|
905
|
+
maxIterations: bigint;
|
|
906
|
+
/**
|
|
907
|
+
* @generated from field: required uint64 maxTime = 3;
|
|
908
|
+
*/
|
|
909
|
+
maxTime: bigint;
|
|
910
|
+
};
|
|
911
|
+
/**
|
|
912
|
+
* Describes the message biscuit.format.schema.RunLimits.
|
|
913
|
+
* Use `create(RunLimitsSchema)` to create a new message.
|
|
914
|
+
*/
|
|
915
|
+
export declare const RunLimitsSchema: GenMessage<RunLimits>;
|
|
916
|
+
/**
|
|
917
|
+
* @generated from message biscuit.format.schema.AuthorizerWorld
|
|
918
|
+
*/
|
|
919
|
+
export type AuthorizerWorld = Message<"biscuit.format.schema.AuthorizerWorld"> & {
|
|
920
|
+
/**
|
|
921
|
+
* @generated from field: optional uint32 version = 1;
|
|
922
|
+
*/
|
|
923
|
+
version: number;
|
|
924
|
+
/**
|
|
925
|
+
* @generated from field: repeated string symbols = 2;
|
|
926
|
+
*/
|
|
927
|
+
symbols: string[];
|
|
928
|
+
/**
|
|
929
|
+
* @generated from field: repeated biscuit.format.schema.PublicKey publicKeys = 3;
|
|
930
|
+
*/
|
|
931
|
+
publicKeys: PublicKey[];
|
|
932
|
+
/**
|
|
933
|
+
* @generated from field: repeated biscuit.format.schema.SnapshotBlock blocks = 4;
|
|
934
|
+
*/
|
|
935
|
+
blocks: SnapshotBlock[];
|
|
936
|
+
/**
|
|
937
|
+
* @generated from field: required biscuit.format.schema.SnapshotBlock authorizerBlock = 5;
|
|
938
|
+
*/
|
|
939
|
+
authorizerBlock?: SnapshotBlock;
|
|
940
|
+
/**
|
|
941
|
+
* @generated from field: repeated biscuit.format.schema.Policy authorizerPolicies = 6;
|
|
942
|
+
*/
|
|
943
|
+
authorizerPolicies: Policy[];
|
|
944
|
+
/**
|
|
945
|
+
* @generated from field: repeated biscuit.format.schema.GeneratedFacts generatedFacts = 7;
|
|
946
|
+
*/
|
|
947
|
+
generatedFacts: GeneratedFacts[];
|
|
948
|
+
/**
|
|
949
|
+
* @generated from field: required uint64 iterations = 8;
|
|
950
|
+
*/
|
|
951
|
+
iterations: bigint;
|
|
952
|
+
};
|
|
953
|
+
/**
|
|
954
|
+
* Describes the message biscuit.format.schema.AuthorizerWorld.
|
|
955
|
+
* Use `create(AuthorizerWorldSchema)` to create a new message.
|
|
956
|
+
*/
|
|
957
|
+
export declare const AuthorizerWorldSchema: GenMessage<AuthorizerWorld>;
|
|
958
|
+
/**
|
|
959
|
+
* @generated from message biscuit.format.schema.Origin
|
|
960
|
+
*/
|
|
961
|
+
export type Origin = Message<"biscuit.format.schema.Origin"> & {
|
|
962
|
+
/**
|
|
963
|
+
* @generated from oneof biscuit.format.schema.Origin.Content
|
|
964
|
+
*/
|
|
965
|
+
Content: {
|
|
966
|
+
/**
|
|
967
|
+
* @generated from field: biscuit.format.schema.Empty authorizer = 1;
|
|
968
|
+
*/
|
|
969
|
+
value: Empty;
|
|
970
|
+
case: "authorizer";
|
|
971
|
+
} | {
|
|
972
|
+
/**
|
|
973
|
+
* @generated from field: uint32 origin = 2;
|
|
974
|
+
*/
|
|
975
|
+
value: number;
|
|
976
|
+
case: "origin";
|
|
977
|
+
} | {
|
|
978
|
+
case: undefined;
|
|
979
|
+
value?: undefined;
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
/**
|
|
983
|
+
* Describes the message biscuit.format.schema.Origin.
|
|
984
|
+
* Use `create(OriginSchema)` to create a new message.
|
|
985
|
+
*/
|
|
986
|
+
export declare const OriginSchema: GenMessage<Origin>;
|
|
987
|
+
/**
|
|
988
|
+
* @generated from message biscuit.format.schema.Empty
|
|
989
|
+
*/
|
|
990
|
+
export type Empty = Message<"biscuit.format.schema.Empty"> & {};
|
|
991
|
+
/**
|
|
992
|
+
* Describes the message biscuit.format.schema.Empty.
|
|
993
|
+
* Use `create(EmptySchema)` to create a new message.
|
|
994
|
+
*/
|
|
995
|
+
export declare const EmptySchema: GenMessage<Empty>;
|
|
996
|
+
/**
|
|
997
|
+
* @generated from message biscuit.format.schema.GeneratedFacts
|
|
998
|
+
*/
|
|
999
|
+
export type GeneratedFacts = Message<"biscuit.format.schema.GeneratedFacts"> & {
|
|
1000
|
+
/**
|
|
1001
|
+
* @generated from field: repeated biscuit.format.schema.Origin origins = 1;
|
|
1002
|
+
*/
|
|
1003
|
+
origins: Origin[];
|
|
1004
|
+
/**
|
|
1005
|
+
* @generated from field: repeated biscuit.format.schema.Fact facts = 2;
|
|
1006
|
+
*/
|
|
1007
|
+
facts: Fact[];
|
|
1008
|
+
};
|
|
1009
|
+
/**
|
|
1010
|
+
* Describes the message biscuit.format.schema.GeneratedFacts.
|
|
1011
|
+
* Use `create(GeneratedFactsSchema)` to create a new message.
|
|
1012
|
+
*/
|
|
1013
|
+
export declare const GeneratedFactsSchema: GenMessage<GeneratedFacts>;
|
|
1014
|
+
/**
|
|
1015
|
+
* @generated from message biscuit.format.schema.SnapshotBlock
|
|
1016
|
+
*/
|
|
1017
|
+
export type SnapshotBlock = Message<"biscuit.format.schema.SnapshotBlock"> & {
|
|
1018
|
+
/**
|
|
1019
|
+
* @generated from field: optional string context = 1;
|
|
1020
|
+
*/
|
|
1021
|
+
context: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* @generated from field: optional uint32 version = 2;
|
|
1024
|
+
*/
|
|
1025
|
+
version: number;
|
|
1026
|
+
/**
|
|
1027
|
+
* @generated from field: repeated biscuit.format.schema.Fact facts = 3;
|
|
1028
|
+
*/
|
|
1029
|
+
facts: Fact[];
|
|
1030
|
+
/**
|
|
1031
|
+
* @generated from field: repeated biscuit.format.schema.Rule rules = 4;
|
|
1032
|
+
*/
|
|
1033
|
+
rules: Rule[];
|
|
1034
|
+
/**
|
|
1035
|
+
* @generated from field: repeated biscuit.format.schema.Check checks = 5;
|
|
1036
|
+
*/
|
|
1037
|
+
checks: Check[];
|
|
1038
|
+
/**
|
|
1039
|
+
* @generated from field: repeated biscuit.format.schema.Scope scope = 6;
|
|
1040
|
+
*/
|
|
1041
|
+
scope: Scope[];
|
|
1042
|
+
/**
|
|
1043
|
+
* @generated from field: optional biscuit.format.schema.PublicKey externalKey = 7;
|
|
1044
|
+
*/
|
|
1045
|
+
externalKey?: PublicKey;
|
|
1046
|
+
};
|
|
1047
|
+
/**
|
|
1048
|
+
* Describes the message biscuit.format.schema.SnapshotBlock.
|
|
1049
|
+
* Use `create(SnapshotBlockSchema)` to create a new message.
|
|
1050
|
+
*/
|
|
1051
|
+
export declare const SnapshotBlockSchema: GenMessage<SnapshotBlock>;
|
|
1052
|
+
//# sourceMappingURL=schema_pb.d.ts.map
|