web-dc-api 0.1.5 → 0.1.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/index.js +1 -1
- package/dist/dc.min.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +934 -878
- package/package.json +4 -8
- package/dist/cjs/helia-core-B1Xqha7a.js +0 -1
- package/dist/cjs/helia-core-D8Uv1KjQ.js +0 -1
- package/dist/cjs/polkadot-api-7PhQf3ws.js +0 -1
- package/dist/cjs/polkadot-api-CtrJVWuZ.js +0 -1
- package/dist/esm/chunks/helia-core-BxMqyK2Y.js +0 -1
- package/dist/esm/chunks/helia-core-DMXRpcO-.js +0 -1
- package/dist/esm/chunks/polkadot-api-5Y9Bw8VT.js +0 -1
- package/dist/esm/chunks/polkadot-api-D69Ioun_.js +0 -1
- package/lib/common/blowfish/block.ts +0 -259
- package/lib/common/blowfish/cipher.ts +0 -144
- package/lib/common/blowfish/const.ts +0 -195
- package/lib/common/chain.ts +0 -469
- package/lib/common/commonclient.ts +0 -202
- package/lib/common/constants.ts +0 -55
- package/lib/common/dc-key/ed25519.ts +0 -343
- package/lib/common/dc-key/keyManager.ts +0 -424
- package/lib/common/dcapi.ts +0 -98
- package/lib/common/dcutil.ts +0 -627
- package/lib/common/define.ts +0 -70
- package/lib/common/error.ts +0 -67
- package/lib/common/grpc-dc.ts +0 -104
- package/lib/common/module-system.ts +0 -184
- package/lib/common/service-worker.ts +0 -234
- package/lib/common/types/types.ts +0 -344
- package/lib/dc.ts +0 -701
- package/lib/implements/account/client.ts +0 -185
- package/lib/implements/account/manager.ts +0 -683
- package/lib/implements/aiproxy/client.ts +0 -357
- package/lib/implements/aiproxy/manager.ts +0 -670
- package/lib/implements/cache/client.ts +0 -105
- package/lib/implements/cache/manager.ts +0 -127
- package/lib/implements/comment/client.ts +0 -982
- package/lib/implements/comment/manager.ts +0 -1151
- package/lib/implements/dc/client.ts +0 -51
- package/lib/implements/dc/manager.ts +0 -33
- package/lib/implements/file/client.ts +0 -253
- package/lib/implements/file/file-cache-manager.ts +0 -142
- package/lib/implements/file/manager.ts +0 -1240
- package/lib/implements/file/seekableFileStream.ts +0 -344
- package/lib/implements/file/streamwriter.ts +0 -322
- package/lib/implements/keyvalue/client.ts +0 -376
- package/lib/implements/keyvalue/manager.ts +0 -759
- package/lib/implements/message/client.ts +0 -250
- package/lib/implements/message/manager.ts +0 -215
- package/lib/implements/threaddb/cbor/coding.ts +0 -62
- package/lib/implements/threaddb/cbor/event.ts +0 -336
- package/lib/implements/threaddb/cbor/node.ts +0 -542
- package/lib/implements/threaddb/cbor/record.ts +0 -398
- package/lib/implements/threaddb/common/AsyncMutex.ts +0 -24
- package/lib/implements/threaddb/common/addrinfo.ts +0 -135
- package/lib/implements/threaddb/common/dispatcher.ts +0 -81
- package/lib/implements/threaddb/common/idbstore-adapter.ts +0 -260
- package/lib/implements/threaddb/common/json-patcher.ts +0 -204
- package/lib/implements/threaddb/common/key.ts +0 -290
- package/lib/implements/threaddb/common/level-adapter.ts +0 -235
- package/lib/implements/threaddb/common/lineReader.ts +0 -79
- package/lib/implements/threaddb/common/logstore.ts +0 -215
- package/lib/implements/threaddb/common/transformed-datastore.ts +0 -308
- package/lib/implements/threaddb/core/app.ts +0 -206
- package/lib/implements/threaddb/core/core.ts +0 -230
- package/lib/implements/threaddb/core/db.ts +0 -249
- package/lib/implements/threaddb/core/event.ts +0 -54
- package/lib/implements/threaddb/core/head.ts +0 -89
- package/lib/implements/threaddb/core/identity.ts +0 -171
- package/lib/implements/threaddb/core/logstore.ts +0 -137
- package/lib/implements/threaddb/core/options.ts +0 -14
- package/lib/implements/threaddb/core/record.ts +0 -54
- package/lib/implements/threaddb/db/collection.ts +0 -1910
- package/lib/implements/threaddb/db/db.ts +0 -698
- package/lib/implements/threaddb/db/json2Query.ts +0 -192
- package/lib/implements/threaddb/db/query.ts +0 -524
- package/lib/implements/threaddb/dbclient.ts +0 -543
- package/lib/implements/threaddb/dbmanager.ts +0 -1906
- package/lib/implements/threaddb/lsstoreds/addr_book.ts +0 -549
- package/lib/implements/threaddb/lsstoreds/cache.ts +0 -36
- package/lib/implements/threaddb/lsstoreds/cyclic_batch.ts +0 -87
- package/lib/implements/threaddb/lsstoreds/global.ts +0 -151
- package/lib/implements/threaddb/lsstoreds/headbook.ts +0 -373
- package/lib/implements/threaddb/lsstoreds/keybook.ts +0 -297
- package/lib/implements/threaddb/lsstoreds/logstore.ts +0 -29
- package/lib/implements/threaddb/lsstoreds/metadata.ts +0 -223
- package/lib/implements/threaddb/net/define.ts +0 -149
- package/lib/implements/threaddb/net/grpcClient.ts +0 -589
- package/lib/implements/threaddb/net/grpcserver.ts +0 -146
- package/lib/implements/threaddb/net/net.ts +0 -2047
- package/lib/implements/threaddb/pb/lstore.proto +0 -38
- package/lib/implements/threaddb/pb/lstore.ts +0 -393
- package/lib/implements/threaddb/pb/lstore_pb.d.ts +0 -433
- package/lib/implements/threaddb/pb/lstore_pb.js +0 -1085
- package/lib/implements/threaddb/pb/net.proto +0 -194
- package/lib/implements/threaddb/pb/net_pb.d.ts +0 -2349
- package/lib/implements/threaddb/pb/net_pb.js +0 -5525
- package/lib/implements/threaddb/pb/proto-custom-types.ts +0 -212
- package/lib/implements/util/client.ts +0 -72
- package/lib/implements/util/manager.ts +0 -146
- package/lib/implements/wallet/manager.ts +0 -671
- package/lib/index.ts +0 -57
- package/lib/interfaces/DCContext.ts +0 -51
- package/lib/interfaces/aiproxy-interface.ts +0 -145
- package/lib/interfaces/auth-interface.ts +0 -118
- package/lib/interfaces/cache-interface.ts +0 -22
- package/lib/interfaces/client-interface.ts +0 -11
- package/lib/interfaces/comment-interface.ts +0 -167
- package/lib/interfaces/components/news-component.ts +0 -0
- package/lib/interfaces/database-interface.ts +0 -169
- package/lib/interfaces/file-interface.ts +0 -120
- package/lib/interfaces/index.ts +0 -10
- package/lib/interfaces/keyvalue-interface.ts +0 -156
- package/lib/interfaces/message-interface.ts +0 -22
- package/lib/interfaces/util-interface.ts +0 -31
- package/lib/modules/aiproxy-module.ts +0 -246
- package/lib/modules/auth-module.ts +0 -753
- package/lib/modules/cache-module.ts +0 -99
- package/lib/modules/client-module.ts +0 -71
- package/lib/modules/comment-module.ts +0 -429
- package/lib/modules/components/news-components.ts +0 -390
- package/lib/modules/database-module.ts +0 -598
- package/lib/modules/file-module.ts +0 -291
- package/lib/modules/index.ts +0 -13
- package/lib/modules/keyvalue-module.ts +0 -379
- package/lib/modules/message-module.ts +0 -107
- package/lib/modules/util-module.ts +0 -148
- package/lib/polyfills/process-env-browser.ts +0 -1
- package/lib/proto/datasource.ts +0 -93
- package/lib/proto/dcnet.proto +0 -1601
- package/lib/proto/dcnet_proto.d.ts +0 -22857
- package/lib/proto/dcnet_proto.js +0 -55204
- package/lib/proto/dcnet_proto_sparse.js +0 -55166
- package/lib/proto/oidfetch.proto +0 -25
- package/lib/proto/oidfetch_proto.d.ts +0 -585
- package/lib/proto/oidfetch_proto.js +0 -1247
- package/lib/serverless/babel-browser.ts +0 -39
- package/lib/serverless/base_entity.ts +0 -78
- package/lib/serverless/base_repository.ts +0 -414
- package/lib/serverless/browser_schema_extractor.ts +0 -283
- package/lib/serverless/decorator_factory.ts +0 -322
- package/lib/util/BrowserLineReader.ts +0 -73
- package/lib/util/base64.ts +0 -105
- package/lib/util/bcrypt.ts +0 -206
- package/lib/util/curve25519Encryption.ts +0 -418
- package/lib/util/dccrypt.ts +0 -73
- package/lib/util/logger.ts +0 -104
- package/lib/util/utils.ts +0 -289
|
@@ -1,433 +0,0 @@
|
|
|
1
|
-
import * as $protobuf from "protobufjs";
|
|
2
|
-
import Long = require("long");
|
|
3
|
-
/** Namespace net. */
|
|
4
|
-
export namespace net {
|
|
5
|
-
|
|
6
|
-
/** Namespace pb. */
|
|
7
|
-
namespace pb {
|
|
8
|
-
|
|
9
|
-
/** Properties of an AddrBookRecord. */
|
|
10
|
-
interface IAddrBookRecord {
|
|
11
|
-
|
|
12
|
-
/** AddrBookRecord threadID */
|
|
13
|
-
threadID?: (Uint8Array|null);
|
|
14
|
-
|
|
15
|
-
/** AddrBookRecord peerID */
|
|
16
|
-
peerID?: (Uint8Array|null);
|
|
17
|
-
|
|
18
|
-
/** AddrBookRecord addrs */
|
|
19
|
-
addrs?: (net.pb.AddrBookRecord.IAddrEntry[]|null);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** Represents an AddrBookRecord. */
|
|
23
|
-
class AddrBookRecord implements IAddrBookRecord {
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Constructs a new AddrBookRecord.
|
|
27
|
-
* @param [properties] Properties to set
|
|
28
|
-
*/
|
|
29
|
-
constructor(properties?: net.pb.IAddrBookRecord);
|
|
30
|
-
|
|
31
|
-
/** AddrBookRecord threadID. */
|
|
32
|
-
public threadID: Uint8Array;
|
|
33
|
-
|
|
34
|
-
/** AddrBookRecord peerID. */
|
|
35
|
-
public peerID: Uint8Array;
|
|
36
|
-
|
|
37
|
-
/** AddrBookRecord addrs. */
|
|
38
|
-
public addrs: net.pb.AddrBookRecord.IAddrEntry[];
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Creates a new AddrBookRecord instance using the specified properties.
|
|
42
|
-
* @param [properties] Properties to set
|
|
43
|
-
* @returns AddrBookRecord instance
|
|
44
|
-
*/
|
|
45
|
-
public static create(properties?: net.pb.IAddrBookRecord): net.pb.AddrBookRecord;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Encodes the specified AddrBookRecord message. Does not implicitly {@link net.pb.AddrBookRecord.verify|verify} messages.
|
|
49
|
-
* @param message AddrBookRecord message or plain object to encode
|
|
50
|
-
* @param [writer] Writer to encode to
|
|
51
|
-
* @returns Writer
|
|
52
|
-
*/
|
|
53
|
-
public static encode(message: net.pb.IAddrBookRecord, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Encodes the specified AddrBookRecord message, length delimited. Does not implicitly {@link net.pb.AddrBookRecord.verify|verify} messages.
|
|
57
|
-
* @param message AddrBookRecord message or plain object to encode
|
|
58
|
-
* @param [writer] Writer to encode to
|
|
59
|
-
* @returns Writer
|
|
60
|
-
*/
|
|
61
|
-
public static encodeDelimited(message: net.pb.IAddrBookRecord, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Decodes an AddrBookRecord message from the specified reader or buffer.
|
|
65
|
-
* @param reader Reader or buffer to decode from
|
|
66
|
-
* @param [length] Message length if known beforehand
|
|
67
|
-
* @returns AddrBookRecord
|
|
68
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70
|
-
*/
|
|
71
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.AddrBookRecord;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Decodes an AddrBookRecord message from the specified reader or buffer, length delimited.
|
|
75
|
-
* @param reader Reader or buffer to decode from
|
|
76
|
-
* @returns AddrBookRecord
|
|
77
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
79
|
-
*/
|
|
80
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.AddrBookRecord;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Verifies an AddrBookRecord message.
|
|
84
|
-
* @param message Plain object to verify
|
|
85
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
86
|
-
*/
|
|
87
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Creates an AddrBookRecord message from a plain object. Also converts values to their respective internal types.
|
|
91
|
-
* @param object Plain object
|
|
92
|
-
* @returns AddrBookRecord
|
|
93
|
-
*/
|
|
94
|
-
public static fromObject(object: { [k: string]: any }): net.pb.AddrBookRecord;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Creates a plain object from an AddrBookRecord message. Also converts values to other types if specified.
|
|
98
|
-
* @param message AddrBookRecord
|
|
99
|
-
* @param [options] Conversion options
|
|
100
|
-
* @returns Plain object
|
|
101
|
-
*/
|
|
102
|
-
public static toObject(message: net.pb.AddrBookRecord, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Converts this AddrBookRecord to JSON.
|
|
106
|
-
* @returns JSON object
|
|
107
|
-
*/
|
|
108
|
-
public toJSON(): { [k: string]: any };
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Gets the default type url for AddrBookRecord
|
|
112
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
113
|
-
* @returns The default type url
|
|
114
|
-
*/
|
|
115
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
namespace AddrBookRecord {
|
|
119
|
-
|
|
120
|
-
/** Properties of an AddrEntry. */
|
|
121
|
-
interface IAddrEntry {
|
|
122
|
-
|
|
123
|
-
/** AddrEntry addr */
|
|
124
|
-
addr?: (Uint8Array|null);
|
|
125
|
-
|
|
126
|
-
/** AddrEntry expiry */
|
|
127
|
-
expiry?: (number|Long|null);
|
|
128
|
-
|
|
129
|
-
/** AddrEntry ttl */
|
|
130
|
-
ttl?: (number|Long|null);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/** Represents an AddrEntry. */
|
|
134
|
-
class AddrEntry implements IAddrEntry {
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Constructs a new AddrEntry.
|
|
138
|
-
* @param [properties] Properties to set
|
|
139
|
-
*/
|
|
140
|
-
constructor(properties?: net.pb.AddrBookRecord.IAddrEntry);
|
|
141
|
-
|
|
142
|
-
/** AddrEntry addr. */
|
|
143
|
-
public addr: Uint8Array;
|
|
144
|
-
|
|
145
|
-
/** AddrEntry expiry. */
|
|
146
|
-
public expiry: (number|Long);
|
|
147
|
-
|
|
148
|
-
/** AddrEntry ttl. */
|
|
149
|
-
public ttl: (number|Long);
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Creates a new AddrEntry instance using the specified properties.
|
|
153
|
-
* @param [properties] Properties to set
|
|
154
|
-
* @returns AddrEntry instance
|
|
155
|
-
*/
|
|
156
|
-
public static create(properties?: net.pb.AddrBookRecord.IAddrEntry): net.pb.AddrBookRecord.AddrEntry;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Encodes the specified AddrEntry message. Does not implicitly {@link net.pb.AddrBookRecord.AddrEntry.verify|verify} messages.
|
|
160
|
-
* @param message AddrEntry message or plain object to encode
|
|
161
|
-
* @param [writer] Writer to encode to
|
|
162
|
-
* @returns Writer
|
|
163
|
-
*/
|
|
164
|
-
public static encode(message: net.pb.AddrBookRecord.IAddrEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Encodes the specified AddrEntry message, length delimited. Does not implicitly {@link net.pb.AddrBookRecord.AddrEntry.verify|verify} messages.
|
|
168
|
-
* @param message AddrEntry message or plain object to encode
|
|
169
|
-
* @param [writer] Writer to encode to
|
|
170
|
-
* @returns Writer
|
|
171
|
-
*/
|
|
172
|
-
public static encodeDelimited(message: net.pb.AddrBookRecord.IAddrEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Decodes an AddrEntry message from the specified reader or buffer.
|
|
176
|
-
* @param reader Reader or buffer to decode from
|
|
177
|
-
* @param [length] Message length if known beforehand
|
|
178
|
-
* @returns AddrEntry
|
|
179
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
180
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
181
|
-
*/
|
|
182
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.AddrBookRecord.AddrEntry;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Decodes an AddrEntry message from the specified reader or buffer, length delimited.
|
|
186
|
-
* @param reader Reader or buffer to decode from
|
|
187
|
-
* @returns AddrEntry
|
|
188
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
189
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
190
|
-
*/
|
|
191
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.AddrBookRecord.AddrEntry;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Verifies an AddrEntry message.
|
|
195
|
-
* @param message Plain object to verify
|
|
196
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
197
|
-
*/
|
|
198
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Creates an AddrEntry message from a plain object. Also converts values to their respective internal types.
|
|
202
|
-
* @param object Plain object
|
|
203
|
-
* @returns AddrEntry
|
|
204
|
-
*/
|
|
205
|
-
public static fromObject(object: { [k: string]: any }): net.pb.AddrBookRecord.AddrEntry;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Creates a plain object from an AddrEntry message. Also converts values to other types if specified.
|
|
209
|
-
* @param message AddrEntry
|
|
210
|
-
* @param [options] Conversion options
|
|
211
|
-
* @returns Plain object
|
|
212
|
-
*/
|
|
213
|
-
public static toObject(message: net.pb.AddrBookRecord.AddrEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Converts this AddrEntry to JSON.
|
|
217
|
-
* @returns JSON object
|
|
218
|
-
*/
|
|
219
|
-
public toJSON(): { [k: string]: any };
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Gets the default type url for AddrEntry
|
|
223
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
224
|
-
* @returns The default type url
|
|
225
|
-
*/
|
|
226
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/** Properties of a HeadBookRecord. */
|
|
231
|
-
interface IHeadBookRecord {
|
|
232
|
-
|
|
233
|
-
/** HeadBookRecord heads */
|
|
234
|
-
heads?: (net.pb.HeadBookRecord.IHeadEntry[]|null);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/** Represents a HeadBookRecord. */
|
|
238
|
-
class HeadBookRecord implements IHeadBookRecord {
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Constructs a new HeadBookRecord.
|
|
242
|
-
* @param [properties] Properties to set
|
|
243
|
-
*/
|
|
244
|
-
constructor(properties?: net.pb.IHeadBookRecord);
|
|
245
|
-
|
|
246
|
-
/** HeadBookRecord heads. */
|
|
247
|
-
public heads: net.pb.HeadBookRecord.IHeadEntry[];
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Creates a new HeadBookRecord instance using the specified properties.
|
|
251
|
-
* @param [properties] Properties to set
|
|
252
|
-
* @returns HeadBookRecord instance
|
|
253
|
-
*/
|
|
254
|
-
public static create(properties?: net.pb.IHeadBookRecord): net.pb.HeadBookRecord;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Encodes the specified HeadBookRecord message. Does not implicitly {@link net.pb.HeadBookRecord.verify|verify} messages.
|
|
258
|
-
* @param message HeadBookRecord message or plain object to encode
|
|
259
|
-
* @param [writer] Writer to encode to
|
|
260
|
-
* @returns Writer
|
|
261
|
-
*/
|
|
262
|
-
public static encode(message: net.pb.IHeadBookRecord, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Encodes the specified HeadBookRecord message, length delimited. Does not implicitly {@link net.pb.HeadBookRecord.verify|verify} messages.
|
|
266
|
-
* @param message HeadBookRecord message or plain object to encode
|
|
267
|
-
* @param [writer] Writer to encode to
|
|
268
|
-
* @returns Writer
|
|
269
|
-
*/
|
|
270
|
-
public static encodeDelimited(message: net.pb.IHeadBookRecord, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Decodes a HeadBookRecord message from the specified reader or buffer.
|
|
274
|
-
* @param reader Reader or buffer to decode from
|
|
275
|
-
* @param [length] Message length if known beforehand
|
|
276
|
-
* @returns HeadBookRecord
|
|
277
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
278
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
279
|
-
*/
|
|
280
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.HeadBookRecord;
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Decodes a HeadBookRecord message from the specified reader or buffer, length delimited.
|
|
284
|
-
* @param reader Reader or buffer to decode from
|
|
285
|
-
* @returns HeadBookRecord
|
|
286
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
287
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
288
|
-
*/
|
|
289
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.HeadBookRecord;
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Verifies a HeadBookRecord message.
|
|
293
|
-
* @param message Plain object to verify
|
|
294
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
295
|
-
*/
|
|
296
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Creates a HeadBookRecord message from a plain object. Also converts values to their respective internal types.
|
|
300
|
-
* @param object Plain object
|
|
301
|
-
* @returns HeadBookRecord
|
|
302
|
-
*/
|
|
303
|
-
public static fromObject(object: { [k: string]: any }): net.pb.HeadBookRecord;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Creates a plain object from a HeadBookRecord message. Also converts values to other types if specified.
|
|
307
|
-
* @param message HeadBookRecord
|
|
308
|
-
* @param [options] Conversion options
|
|
309
|
-
* @returns Plain object
|
|
310
|
-
*/
|
|
311
|
-
public static toObject(message: net.pb.HeadBookRecord, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Converts this HeadBookRecord to JSON.
|
|
315
|
-
* @returns JSON object
|
|
316
|
-
*/
|
|
317
|
-
public toJSON(): { [k: string]: any };
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Gets the default type url for HeadBookRecord
|
|
321
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
322
|
-
* @returns The default type url
|
|
323
|
-
*/
|
|
324
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
namespace HeadBookRecord {
|
|
328
|
-
|
|
329
|
-
/** Properties of a HeadEntry. */
|
|
330
|
-
interface IHeadEntry {
|
|
331
|
-
|
|
332
|
-
/** HeadEntry cid */
|
|
333
|
-
cid?: (Uint8Array|null);
|
|
334
|
-
|
|
335
|
-
/** HeadEntry counter */
|
|
336
|
-
counter?: (number|Long|null);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/** Represents a HeadEntry. */
|
|
340
|
-
class HeadEntry implements IHeadEntry {
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Constructs a new HeadEntry.
|
|
344
|
-
* @param [properties] Properties to set
|
|
345
|
-
*/
|
|
346
|
-
constructor(properties?: net.pb.HeadBookRecord.IHeadEntry);
|
|
347
|
-
|
|
348
|
-
/** HeadEntry cid. */
|
|
349
|
-
public cid: Uint8Array;
|
|
350
|
-
|
|
351
|
-
/** HeadEntry counter. */
|
|
352
|
-
public counter: (number|Long);
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* Creates a new HeadEntry instance using the specified properties.
|
|
356
|
-
* @param [properties] Properties to set
|
|
357
|
-
* @returns HeadEntry instance
|
|
358
|
-
*/
|
|
359
|
-
public static create(properties?: net.pb.HeadBookRecord.IHeadEntry): net.pb.HeadBookRecord.HeadEntry;
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Encodes the specified HeadEntry message. Does not implicitly {@link net.pb.HeadBookRecord.HeadEntry.verify|verify} messages.
|
|
363
|
-
* @param message HeadEntry message or plain object to encode
|
|
364
|
-
* @param [writer] Writer to encode to
|
|
365
|
-
* @returns Writer
|
|
366
|
-
*/
|
|
367
|
-
public static encode(message: net.pb.HeadBookRecord.IHeadEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Encodes the specified HeadEntry message, length delimited. Does not implicitly {@link net.pb.HeadBookRecord.HeadEntry.verify|verify} messages.
|
|
371
|
-
* @param message HeadEntry message or plain object to encode
|
|
372
|
-
* @param [writer] Writer to encode to
|
|
373
|
-
* @returns Writer
|
|
374
|
-
*/
|
|
375
|
-
public static encodeDelimited(message: net.pb.HeadBookRecord.IHeadEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Decodes a HeadEntry message from the specified reader or buffer.
|
|
379
|
-
* @param reader Reader or buffer to decode from
|
|
380
|
-
* @param [length] Message length if known beforehand
|
|
381
|
-
* @returns HeadEntry
|
|
382
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
383
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
384
|
-
*/
|
|
385
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): net.pb.HeadBookRecord.HeadEntry;
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Decodes a HeadEntry message from the specified reader or buffer, length delimited.
|
|
389
|
-
* @param reader Reader or buffer to decode from
|
|
390
|
-
* @returns HeadEntry
|
|
391
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
392
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
393
|
-
*/
|
|
394
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): net.pb.HeadBookRecord.HeadEntry;
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* Verifies a HeadEntry message.
|
|
398
|
-
* @param message Plain object to verify
|
|
399
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
400
|
-
*/
|
|
401
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* Creates a HeadEntry message from a plain object. Also converts values to their respective internal types.
|
|
405
|
-
* @param object Plain object
|
|
406
|
-
* @returns HeadEntry
|
|
407
|
-
*/
|
|
408
|
-
public static fromObject(object: { [k: string]: any }): net.pb.HeadBookRecord.HeadEntry;
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Creates a plain object from a HeadEntry message. Also converts values to other types if specified.
|
|
412
|
-
* @param message HeadEntry
|
|
413
|
-
* @param [options] Conversion options
|
|
414
|
-
* @returns Plain object
|
|
415
|
-
*/
|
|
416
|
-
public static toObject(message: net.pb.HeadBookRecord.HeadEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* Converts this HeadEntry to JSON.
|
|
420
|
-
* @returns JSON object
|
|
421
|
-
*/
|
|
422
|
-
public toJSON(): { [k: string]: any };
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* Gets the default type url for HeadEntry
|
|
426
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
427
|
-
* @returns The default type url
|
|
428
|
-
*/
|
|
429
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}
|