@rsdk/builtin-contract 2.4.2 → 2.6.0-next.15

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.6.0-next.15](https://github.com/R-Vision/rsdk/compare/v2.6.0-next.14...v2.6.0-next.15) (2023-08-04)
7
+
8
+ **Note:** Version bump only for package @rsdk/builtin-contract
9
+
10
+ # [2.6.0-next.14](https://github.com/R-Vision/rsdk/compare/v2.6.0-next.13...v2.6.0-next.14) (2023-08-03)
11
+
12
+ ### Features
13
+
14
+ * **grpc.clients:** grpc rich error ([#85](https://github.com/R-Vision/rsdk/issues/85)) ([be99f40](https://github.com/R-Vision/rsdk/commit/be99f408295bf1750f6f0c39e067cca971d973e3))
15
+
16
+ # [2.6.0-next.5](https://github.com/R-Vision/rsdk/compare/v2.6.0-next.4...v2.6.0-next.5) (2023-07-22)
17
+
18
+ ### Bug Fixes
19
+
20
+ * everything :) ([6757a42](https://github.com/R-Vision/rsdk/commit/6757a42cff3cb982722aeb0718d45cb2241a8b1c))
21
+
6
22
  ## [2.4.2](https://github.com/R-Vision/rsdk/compare/v2.4.2-next.0...v2.4.2) (2023-06-16)
7
23
 
8
24
  **Note:** Version bump only for package @rsdk/builtin-contract
@@ -0,0 +1,376 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ /**
3
+ * `NullValue` is a singleton enumeration to represent the null value for the
4
+ * `Value` type union.
5
+ *
6
+ * The JSON representation for `NullValue` is JSON `null`.
7
+ */
8
+ export declare enum NullValue {
9
+ /** NULL_VALUE - Null value. */
10
+ NULL_VALUE = "NULL_VALUE"
11
+ }
12
+ export declare function nullValueFromJSON(object: any): NullValue;
13
+ export declare function nullValueToJSON(object: NullValue): string;
14
+ export declare function nullValueToNumber(object: NullValue): number;
15
+ /**
16
+ * `Struct` represents a structured data value, consisting of fields
17
+ * which map to dynamically typed values. In some languages, `Struct`
18
+ * might be supported by a native representation. For example, in
19
+ * scripting languages like JS a struct is represented as an
20
+ * object. The details of that representation are described together
21
+ * with the proto support for the language.
22
+ *
23
+ * The JSON representation for `Struct` is JSON object.
24
+ */
25
+ export interface Struct {
26
+ /** Unordered map of dynamically typed values. */
27
+ readonly fields: Map<string, any | undefined>;
28
+ }
29
+ export interface StructFieldsEntry {
30
+ readonly key: string;
31
+ readonly value: any | undefined;
32
+ }
33
+ /**
34
+ * `Value` represents a dynamically typed value which can be either
35
+ * null, a number, a string, a boolean, a recursive struct value, or a
36
+ * list of values. A producer of value is expected to set one of these
37
+ * variants. Absence of any variant indicates an error.
38
+ *
39
+ * The JSON representation for `Value` is JSON value.
40
+ */
41
+ export interface Value {
42
+ readonly kind?: {
43
+ readonly $case: "nullValue";
44
+ readonly nullValue: NullValue;
45
+ } | {
46
+ readonly $case: "numberValue";
47
+ readonly numberValue: number;
48
+ } | {
49
+ readonly $case: "stringValue";
50
+ readonly stringValue: string;
51
+ } | {
52
+ readonly $case: "boolValue";
53
+ readonly boolValue: boolean;
54
+ } | {
55
+ readonly $case: "structValue";
56
+ readonly structValue: {
57
+ readonly [key: string]: any;
58
+ } | undefined;
59
+ } | {
60
+ readonly $case: "listValue";
61
+ readonly listValue: ReadonlyArray<any> | undefined;
62
+ };
63
+ }
64
+ /**
65
+ * `ListValue` is a wrapper around a repeated field of values.
66
+ *
67
+ * The JSON representation for `ListValue` is JSON array.
68
+ */
69
+ export interface ListValue {
70
+ /** Repeated field of dynamically typed values. */
71
+ readonly values: readonly any[];
72
+ }
73
+ export declare const Struct: {
74
+ encode(message: Struct, writer?: _m0.Writer): _m0.Writer;
75
+ decode(input: _m0.Reader | Uint8Array, length?: number): Struct;
76
+ fromJSON(object: any): Struct;
77
+ toJSON(message: Struct): unknown;
78
+ create<I extends {
79
+ readonly fields?: {
80
+ clear?: (() => void) | undefined;
81
+ delete?: ((key: string) => boolean) | undefined;
82
+ forEach?: ((callbackfn: (value: any, key: string, map: Map<string, any>) => void, thisArg?: any) => void) | undefined;
83
+ get?: ((key: string) => any) | undefined;
84
+ has?: ((key: string) => boolean) | undefined;
85
+ set?: ((key: string, value: any) => Map<string, any>) | undefined;
86
+ readonly size?: number | undefined;
87
+ entries?: (() => IterableIterator<[string, any]>) | undefined;
88
+ keys?: (() => IterableIterator<string>) | undefined;
89
+ values?: (() => IterableIterator<any>) | undefined;
90
+ [Symbol.iterator]?: (() => IterableIterator<[string, any]>) | undefined;
91
+ readonly [Symbol.toStringTag]?: string | undefined;
92
+ } | undefined;
93
+ } & {
94
+ readonly fields?: ({
95
+ clear?: (() => void) | undefined;
96
+ delete?: ((key: string) => boolean) | undefined;
97
+ forEach?: ((callbackfn: (value: any, key: string, map: Map<string, any>) => void, thisArg?: any) => void) | undefined;
98
+ get?: ((key: string) => any) | undefined;
99
+ has?: ((key: string) => boolean) | undefined;
100
+ set?: ((key: string, value: any) => Map<string, any>) | undefined;
101
+ readonly size?: number | undefined;
102
+ entries?: (() => IterableIterator<[string, any]>) | undefined;
103
+ keys?: (() => IterableIterator<string>) | undefined;
104
+ values?: (() => IterableIterator<any>) | undefined;
105
+ [Symbol.iterator]?: (() => IterableIterator<[string, any]>) | undefined;
106
+ readonly [Symbol.toStringTag]?: string | undefined;
107
+ } & {
108
+ clear?: (() => void) | undefined;
109
+ delete?: ((key: string) => boolean) | undefined;
110
+ forEach?: ((callbackfn: (value: any, key: string, map: Map<string, any>) => void, thisArg?: any) => void) | undefined;
111
+ get?: ((key: string) => any) | undefined;
112
+ has?: ((key: string) => boolean) | undefined;
113
+ set?: ((key: string, value: any) => Map<string, any>) | undefined;
114
+ readonly size?: number | undefined;
115
+ entries?: (() => IterableIterator<[string, any]>) | undefined;
116
+ keys?: (() => IterableIterator<string>) | undefined;
117
+ values?: (() => IterableIterator<any>) | undefined;
118
+ [Symbol.iterator]?: (() => IterableIterator<[string, any]>) | undefined;
119
+ readonly [Symbol.toStringTag]?: string | undefined;
120
+ } & { [K in Exclude<keyof I["fields"], keyof Map<string, any>>]: never; }) | undefined;
121
+ } & { [K_1 in Exclude<keyof I, "fields">]: never; }>(base?: I | undefined): Struct;
122
+ fromPartial<I_1 extends {
123
+ readonly fields?: {
124
+ clear?: (() => void) | undefined;
125
+ delete?: ((key: string) => boolean) | undefined;
126
+ forEach?: ((callbackfn: (value: any, key: string, map: Map<string, any>) => void, thisArg?: any) => void) | undefined;
127
+ get?: ((key: string) => any) | undefined;
128
+ has?: ((key: string) => boolean) | undefined;
129
+ set?: ((key: string, value: any) => Map<string, any>) | undefined;
130
+ readonly size?: number | undefined;
131
+ entries?: (() => IterableIterator<[string, any]>) | undefined;
132
+ keys?: (() => IterableIterator<string>) | undefined;
133
+ values?: (() => IterableIterator<any>) | undefined;
134
+ [Symbol.iterator]?: (() => IterableIterator<[string, any]>) | undefined;
135
+ readonly [Symbol.toStringTag]?: string | undefined;
136
+ } | undefined;
137
+ } & {
138
+ readonly fields?: ({
139
+ clear?: (() => void) | undefined;
140
+ delete?: ((key: string) => boolean) | undefined;
141
+ forEach?: ((callbackfn: (value: any, key: string, map: Map<string, any>) => void, thisArg?: any) => void) | undefined;
142
+ get?: ((key: string) => any) | undefined;
143
+ has?: ((key: string) => boolean) | undefined;
144
+ set?: ((key: string, value: any) => Map<string, any>) | undefined;
145
+ readonly size?: number | undefined;
146
+ entries?: (() => IterableIterator<[string, any]>) | undefined;
147
+ keys?: (() => IterableIterator<string>) | undefined;
148
+ values?: (() => IterableIterator<any>) | undefined;
149
+ [Symbol.iterator]?: (() => IterableIterator<[string, any]>) | undefined;
150
+ readonly [Symbol.toStringTag]?: string | undefined;
151
+ } & {
152
+ clear?: (() => void) | undefined;
153
+ delete?: ((key: string) => boolean) | undefined;
154
+ forEach?: ((callbackfn: (value: any, key: string, map: Map<string, any>) => void, thisArg?: any) => void) | undefined;
155
+ get?: ((key: string) => any) | undefined;
156
+ has?: ((key: string) => boolean) | undefined;
157
+ set?: ((key: string, value: any) => Map<string, any>) | undefined;
158
+ readonly size?: number | undefined;
159
+ entries?: (() => IterableIterator<[string, any]>) | undefined;
160
+ keys?: (() => IterableIterator<string>) | undefined;
161
+ values?: (() => IterableIterator<any>) | undefined;
162
+ [Symbol.iterator]?: (() => IterableIterator<[string, any]>) | undefined;
163
+ readonly [Symbol.toStringTag]?: string | undefined;
164
+ } & { [K_2 in Exclude<keyof I_1["fields"], keyof Map<string, any>>]: never; }) | undefined;
165
+ } & { [K_3 in Exclude<keyof I_1, "fields">]: never; }>(object: I_1): Struct;
166
+ wrap(object: {
167
+ [key: string]: any;
168
+ } | undefined): Struct;
169
+ unwrap(message: Struct): {
170
+ [key: string]: any;
171
+ };
172
+ };
173
+ export declare const StructFieldsEntry: {
174
+ encode(message: StructFieldsEntry, writer?: _m0.Writer): _m0.Writer;
175
+ decode(input: _m0.Reader | Uint8Array, length?: number): StructFieldsEntry;
176
+ fromJSON(object: any): StructFieldsEntry;
177
+ toJSON(message: StructFieldsEntry): unknown;
178
+ create<I extends {
179
+ readonly key?: string | undefined;
180
+ readonly value?: any | undefined;
181
+ } & {
182
+ readonly key?: string | undefined;
183
+ readonly value?: any | undefined;
184
+ } & { [K in Exclude<keyof I, keyof StructFieldsEntry>]: never; }>(base?: I | undefined): StructFieldsEntry;
185
+ fromPartial<I_1 extends {
186
+ readonly key?: string | undefined;
187
+ readonly value?: any | undefined;
188
+ } & {
189
+ readonly key?: string | undefined;
190
+ readonly value?: any | undefined;
191
+ } & { [K_1 in Exclude<keyof I_1, keyof StructFieldsEntry>]: never; }>(object: I_1): StructFieldsEntry;
192
+ };
193
+ export declare const Value: {
194
+ encode(message: Value, writer?: _m0.Writer): _m0.Writer;
195
+ decode(input: _m0.Reader | Uint8Array, length?: number): Value;
196
+ fromJSON(object: any): Value;
197
+ toJSON(message: Value): unknown;
198
+ create<I extends {
199
+ readonly kind?: ({
200
+ readonly nullValue?: NullValue | undefined;
201
+ } & {
202
+ readonly $case: "nullValue";
203
+ }) | ({
204
+ readonly numberValue?: number | undefined;
205
+ } & {
206
+ readonly $case: "numberValue";
207
+ }) | ({
208
+ readonly stringValue?: string | undefined;
209
+ } & {
210
+ readonly $case: "stringValue";
211
+ }) | ({
212
+ readonly boolValue?: boolean | undefined;
213
+ } & {
214
+ readonly $case: "boolValue";
215
+ }) | ({
216
+ readonly structValue?: {
217
+ [x: string]: any;
218
+ } | undefined;
219
+ } & {
220
+ readonly $case: "structValue";
221
+ }) | ({
222
+ readonly listValue?: readonly any[] | undefined;
223
+ } & {
224
+ readonly $case: "listValue";
225
+ }) | undefined;
226
+ } & {
227
+ readonly kind?: ({
228
+ readonly nullValue?: NullValue | undefined;
229
+ } & {
230
+ readonly $case: "nullValue";
231
+ } & {
232
+ readonly nullValue?: NullValue | undefined;
233
+ readonly $case: "nullValue";
234
+ } & { [K in Exclude<keyof I["kind"], "nullValue" | "$case">]: never; }) | ({
235
+ readonly numberValue?: number | undefined;
236
+ } & {
237
+ readonly $case: "numberValue";
238
+ } & {
239
+ readonly numberValue?: number | undefined;
240
+ readonly $case: "numberValue";
241
+ } & { [K_1 in Exclude<keyof I["kind"], "numberValue" | "$case">]: never; }) | ({
242
+ readonly stringValue?: string | undefined;
243
+ } & {
244
+ readonly $case: "stringValue";
245
+ } & {
246
+ readonly stringValue?: string | undefined;
247
+ readonly $case: "stringValue";
248
+ } & { [K_2 in Exclude<keyof I["kind"], "stringValue" | "$case">]: never; }) | ({
249
+ readonly boolValue?: boolean | undefined;
250
+ } & {
251
+ readonly $case: "boolValue";
252
+ } & {
253
+ readonly boolValue?: boolean | undefined;
254
+ readonly $case: "boolValue";
255
+ } & { [K_3 in Exclude<keyof I["kind"], "boolValue" | "$case">]: never; }) | ({
256
+ readonly structValue?: {
257
+ [x: string]: any;
258
+ } | undefined;
259
+ } & {
260
+ readonly $case: "structValue";
261
+ } & {
262
+ readonly structValue?: ({
263
+ [x: string]: any;
264
+ } & {
265
+ [x: string]: any;
266
+ } & { [K_4 in Exclude<keyof I["kind"]["structValue"], string | number>]: never; }) | undefined;
267
+ readonly $case: "structValue";
268
+ } & { [K_5 in Exclude<keyof I["kind"], "structValue" | "$case">]: never; }) | ({
269
+ readonly listValue?: readonly any[] | undefined;
270
+ } & {
271
+ readonly $case: "listValue";
272
+ } & {
273
+ readonly listValue?: (readonly any[] & readonly any[] & { [K_6 in Exclude<keyof I["kind"]["listValue"], keyof readonly any[]>]: never; }) | undefined;
274
+ readonly $case: "listValue";
275
+ } & { [K_7 in Exclude<keyof I["kind"], "listValue" | "$case">]: never; }) | undefined;
276
+ } & { [K_8 in Exclude<keyof I, "kind">]: never; }>(base?: I | undefined): Value;
277
+ fromPartial<I_1 extends {
278
+ readonly kind?: ({
279
+ readonly nullValue?: NullValue | undefined;
280
+ } & {
281
+ readonly $case: "nullValue";
282
+ }) | ({
283
+ readonly numberValue?: number | undefined;
284
+ } & {
285
+ readonly $case: "numberValue";
286
+ }) | ({
287
+ readonly stringValue?: string | undefined;
288
+ } & {
289
+ readonly $case: "stringValue";
290
+ }) | ({
291
+ readonly boolValue?: boolean | undefined;
292
+ } & {
293
+ readonly $case: "boolValue";
294
+ }) | ({
295
+ readonly structValue?: {
296
+ [x: string]: any;
297
+ } | undefined;
298
+ } & {
299
+ readonly $case: "structValue";
300
+ }) | ({
301
+ readonly listValue?: readonly any[] | undefined;
302
+ } & {
303
+ readonly $case: "listValue";
304
+ }) | undefined;
305
+ } & {
306
+ readonly kind?: ({
307
+ readonly nullValue?: NullValue | undefined;
308
+ } & {
309
+ readonly $case: "nullValue";
310
+ } & {
311
+ readonly nullValue?: NullValue | undefined;
312
+ readonly $case: "nullValue";
313
+ } & { [K_9 in Exclude<keyof I_1["kind"], "nullValue" | "$case">]: never; }) | ({
314
+ readonly numberValue?: number | undefined;
315
+ } & {
316
+ readonly $case: "numberValue";
317
+ } & {
318
+ readonly numberValue?: number | undefined;
319
+ readonly $case: "numberValue";
320
+ } & { [K_10 in Exclude<keyof I_1["kind"], "numberValue" | "$case">]: never; }) | ({
321
+ readonly stringValue?: string | undefined;
322
+ } & {
323
+ readonly $case: "stringValue";
324
+ } & {
325
+ readonly stringValue?: string | undefined;
326
+ readonly $case: "stringValue";
327
+ } & { [K_11 in Exclude<keyof I_1["kind"], "stringValue" | "$case">]: never; }) | ({
328
+ readonly boolValue?: boolean | undefined;
329
+ } & {
330
+ readonly $case: "boolValue";
331
+ } & {
332
+ readonly boolValue?: boolean | undefined;
333
+ readonly $case: "boolValue";
334
+ } & { [K_12 in Exclude<keyof I_1["kind"], "boolValue" | "$case">]: never; }) | ({
335
+ readonly structValue?: {
336
+ [x: string]: any;
337
+ } | undefined;
338
+ } & {
339
+ readonly $case: "structValue";
340
+ } & {
341
+ readonly structValue?: ({
342
+ [x: string]: any;
343
+ } & {
344
+ [x: string]: any;
345
+ } & { [K_13 in Exclude<keyof I_1["kind"]["structValue"], string | number>]: never; }) | undefined;
346
+ readonly $case: "structValue";
347
+ } & { [K_14 in Exclude<keyof I_1["kind"], "structValue" | "$case">]: never; }) | ({
348
+ readonly listValue?: readonly any[] | undefined;
349
+ } & {
350
+ readonly $case: "listValue";
351
+ } & {
352
+ readonly listValue?: (readonly any[] & readonly any[] & { [K_15 in Exclude<keyof I_1["kind"]["listValue"], keyof readonly any[]>]: never; }) | undefined;
353
+ readonly $case: "listValue";
354
+ } & { [K_16 in Exclude<keyof I_1["kind"], "listValue" | "$case">]: never; }) | undefined;
355
+ } & { [K_17 in Exclude<keyof I_1, "kind">]: never; }>(object: I_1): Value;
356
+ wrap(value: any): Value;
357
+ unwrap(message: Value): string | number | boolean | Object | null | Array<any> | undefined;
358
+ };
359
+ export declare const ListValue: {
360
+ encode(message: ListValue, writer?: _m0.Writer): _m0.Writer;
361
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListValue;
362
+ fromJSON(object: any): ListValue;
363
+ toJSON(message: ListValue): unknown;
364
+ create<I extends {
365
+ readonly values?: readonly any[] | undefined;
366
+ } & {
367
+ readonly values?: (readonly any[] & readonly any[] & { [K in Exclude<keyof I["values"], keyof readonly any[]>]: never; }) | undefined;
368
+ } & { [K_1 in Exclude<keyof I, "values">]: never; }>(base?: I | undefined): ListValue;
369
+ fromPartial<I_1 extends {
370
+ readonly values?: readonly any[] | undefined;
371
+ } & {
372
+ readonly values?: (readonly any[] & readonly any[] & { [K_2 in Exclude<keyof I_1["values"], keyof readonly any[]>]: never; }) | undefined;
373
+ } & { [K_3 in Exclude<keyof I_1, "values">]: never; }>(object: I_1): ListValue;
374
+ wrap(array: ReadonlyArray<any> | undefined): ListValue;
375
+ unwrap(message: any): Array<any>;
376
+ };