web-dc-api 0.1.5 → 0.1.7

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.
Files changed (148) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/dc.min.js +1 -1
  3. package/dist/esm/index.js +1 -1
  4. package/dist/index.d.ts +934 -878
  5. package/package.json +4 -8
  6. package/dist/cjs/helia-core-B1Xqha7a.js +0 -1
  7. package/dist/cjs/helia-core-D8Uv1KjQ.js +0 -1
  8. package/dist/cjs/polkadot-api-7PhQf3ws.js +0 -1
  9. package/dist/cjs/polkadot-api-CtrJVWuZ.js +0 -1
  10. package/dist/esm/chunks/helia-core-BxMqyK2Y.js +0 -1
  11. package/dist/esm/chunks/helia-core-DMXRpcO-.js +0 -1
  12. package/dist/esm/chunks/polkadot-api-5Y9Bw8VT.js +0 -1
  13. package/dist/esm/chunks/polkadot-api-D69Ioun_.js +0 -1
  14. package/lib/common/blowfish/block.ts +0 -259
  15. package/lib/common/blowfish/cipher.ts +0 -144
  16. package/lib/common/blowfish/const.ts +0 -195
  17. package/lib/common/chain.ts +0 -469
  18. package/lib/common/commonclient.ts +0 -202
  19. package/lib/common/constants.ts +0 -55
  20. package/lib/common/dc-key/ed25519.ts +0 -343
  21. package/lib/common/dc-key/keyManager.ts +0 -424
  22. package/lib/common/dcapi.ts +0 -98
  23. package/lib/common/dcutil.ts +0 -627
  24. package/lib/common/define.ts +0 -70
  25. package/lib/common/error.ts +0 -67
  26. package/lib/common/grpc-dc.ts +0 -104
  27. package/lib/common/module-system.ts +0 -184
  28. package/lib/common/service-worker.ts +0 -234
  29. package/lib/common/types/types.ts +0 -344
  30. package/lib/dc.ts +0 -701
  31. package/lib/implements/account/client.ts +0 -185
  32. package/lib/implements/account/manager.ts +0 -683
  33. package/lib/implements/aiproxy/client.ts +0 -357
  34. package/lib/implements/aiproxy/manager.ts +0 -670
  35. package/lib/implements/cache/client.ts +0 -105
  36. package/lib/implements/cache/manager.ts +0 -127
  37. package/lib/implements/comment/client.ts +0 -982
  38. package/lib/implements/comment/manager.ts +0 -1151
  39. package/lib/implements/dc/client.ts +0 -51
  40. package/lib/implements/dc/manager.ts +0 -33
  41. package/lib/implements/file/client.ts +0 -253
  42. package/lib/implements/file/file-cache-manager.ts +0 -142
  43. package/lib/implements/file/manager.ts +0 -1240
  44. package/lib/implements/file/seekableFileStream.ts +0 -344
  45. package/lib/implements/file/streamwriter.ts +0 -322
  46. package/lib/implements/keyvalue/client.ts +0 -376
  47. package/lib/implements/keyvalue/manager.ts +0 -759
  48. package/lib/implements/message/client.ts +0 -250
  49. package/lib/implements/message/manager.ts +0 -215
  50. package/lib/implements/threaddb/cbor/coding.ts +0 -62
  51. package/lib/implements/threaddb/cbor/event.ts +0 -336
  52. package/lib/implements/threaddb/cbor/node.ts +0 -542
  53. package/lib/implements/threaddb/cbor/record.ts +0 -398
  54. package/lib/implements/threaddb/common/AsyncMutex.ts +0 -24
  55. package/lib/implements/threaddb/common/addrinfo.ts +0 -135
  56. package/lib/implements/threaddb/common/dispatcher.ts +0 -81
  57. package/lib/implements/threaddb/common/idbstore-adapter.ts +0 -260
  58. package/lib/implements/threaddb/common/json-patcher.ts +0 -204
  59. package/lib/implements/threaddb/common/key.ts +0 -290
  60. package/lib/implements/threaddb/common/level-adapter.ts +0 -235
  61. package/lib/implements/threaddb/common/lineReader.ts +0 -79
  62. package/lib/implements/threaddb/common/logstore.ts +0 -215
  63. package/lib/implements/threaddb/common/transformed-datastore.ts +0 -308
  64. package/lib/implements/threaddb/core/app.ts +0 -206
  65. package/lib/implements/threaddb/core/core.ts +0 -230
  66. package/lib/implements/threaddb/core/db.ts +0 -249
  67. package/lib/implements/threaddb/core/event.ts +0 -54
  68. package/lib/implements/threaddb/core/head.ts +0 -89
  69. package/lib/implements/threaddb/core/identity.ts +0 -171
  70. package/lib/implements/threaddb/core/logstore.ts +0 -137
  71. package/lib/implements/threaddb/core/options.ts +0 -14
  72. package/lib/implements/threaddb/core/record.ts +0 -54
  73. package/lib/implements/threaddb/db/collection.ts +0 -1910
  74. package/lib/implements/threaddb/db/db.ts +0 -698
  75. package/lib/implements/threaddb/db/json2Query.ts +0 -192
  76. package/lib/implements/threaddb/db/query.ts +0 -524
  77. package/lib/implements/threaddb/dbclient.ts +0 -543
  78. package/lib/implements/threaddb/dbmanager.ts +0 -1906
  79. package/lib/implements/threaddb/lsstoreds/addr_book.ts +0 -549
  80. package/lib/implements/threaddb/lsstoreds/cache.ts +0 -36
  81. package/lib/implements/threaddb/lsstoreds/cyclic_batch.ts +0 -87
  82. package/lib/implements/threaddb/lsstoreds/global.ts +0 -151
  83. package/lib/implements/threaddb/lsstoreds/headbook.ts +0 -373
  84. package/lib/implements/threaddb/lsstoreds/keybook.ts +0 -297
  85. package/lib/implements/threaddb/lsstoreds/logstore.ts +0 -29
  86. package/lib/implements/threaddb/lsstoreds/metadata.ts +0 -223
  87. package/lib/implements/threaddb/net/define.ts +0 -149
  88. package/lib/implements/threaddb/net/grpcClient.ts +0 -589
  89. package/lib/implements/threaddb/net/grpcserver.ts +0 -146
  90. package/lib/implements/threaddb/net/net.ts +0 -2047
  91. package/lib/implements/threaddb/pb/lstore.proto +0 -38
  92. package/lib/implements/threaddb/pb/lstore.ts +0 -393
  93. package/lib/implements/threaddb/pb/lstore_pb.d.ts +0 -433
  94. package/lib/implements/threaddb/pb/lstore_pb.js +0 -1085
  95. package/lib/implements/threaddb/pb/net.proto +0 -194
  96. package/lib/implements/threaddb/pb/net_pb.d.ts +0 -2349
  97. package/lib/implements/threaddb/pb/net_pb.js +0 -5525
  98. package/lib/implements/threaddb/pb/proto-custom-types.ts +0 -212
  99. package/lib/implements/util/client.ts +0 -72
  100. package/lib/implements/util/manager.ts +0 -146
  101. package/lib/implements/wallet/manager.ts +0 -671
  102. package/lib/index.ts +0 -57
  103. package/lib/interfaces/DCContext.ts +0 -51
  104. package/lib/interfaces/aiproxy-interface.ts +0 -145
  105. package/lib/interfaces/auth-interface.ts +0 -118
  106. package/lib/interfaces/cache-interface.ts +0 -22
  107. package/lib/interfaces/client-interface.ts +0 -11
  108. package/lib/interfaces/comment-interface.ts +0 -167
  109. package/lib/interfaces/components/news-component.ts +0 -0
  110. package/lib/interfaces/database-interface.ts +0 -169
  111. package/lib/interfaces/file-interface.ts +0 -120
  112. package/lib/interfaces/index.ts +0 -10
  113. package/lib/interfaces/keyvalue-interface.ts +0 -156
  114. package/lib/interfaces/message-interface.ts +0 -22
  115. package/lib/interfaces/util-interface.ts +0 -31
  116. package/lib/modules/aiproxy-module.ts +0 -246
  117. package/lib/modules/auth-module.ts +0 -753
  118. package/lib/modules/cache-module.ts +0 -99
  119. package/lib/modules/client-module.ts +0 -71
  120. package/lib/modules/comment-module.ts +0 -429
  121. package/lib/modules/components/news-components.ts +0 -390
  122. package/lib/modules/database-module.ts +0 -598
  123. package/lib/modules/file-module.ts +0 -291
  124. package/lib/modules/index.ts +0 -13
  125. package/lib/modules/keyvalue-module.ts +0 -379
  126. package/lib/modules/message-module.ts +0 -107
  127. package/lib/modules/util-module.ts +0 -148
  128. package/lib/polyfills/process-env-browser.ts +0 -1
  129. package/lib/proto/datasource.ts +0 -93
  130. package/lib/proto/dcnet.proto +0 -1601
  131. package/lib/proto/dcnet_proto.d.ts +0 -22857
  132. package/lib/proto/dcnet_proto.js +0 -55204
  133. package/lib/proto/dcnet_proto_sparse.js +0 -55166
  134. package/lib/proto/oidfetch.proto +0 -25
  135. package/lib/proto/oidfetch_proto.d.ts +0 -585
  136. package/lib/proto/oidfetch_proto.js +0 -1247
  137. package/lib/serverless/babel-browser.ts +0 -39
  138. package/lib/serverless/base_entity.ts +0 -78
  139. package/lib/serverless/base_repository.ts +0 -414
  140. package/lib/serverless/browser_schema_extractor.ts +0 -283
  141. package/lib/serverless/decorator_factory.ts +0 -322
  142. package/lib/util/BrowserLineReader.ts +0 -73
  143. package/lib/util/base64.ts +0 -105
  144. package/lib/util/bcrypt.ts +0 -206
  145. package/lib/util/curve25519Encryption.ts +0 -418
  146. package/lib/util/dccrypt.ts +0 -73
  147. package/lib/util/logger.ts +0 -104
  148. package/lib/util/utils.ts +0 -289
@@ -1,25 +0,0 @@
1
- syntax = "proto3";
2
- package oidfetch.pb;
3
-
4
-
5
- message InitRequset { //字段为空
6
- }
7
- message InitReply { //字段为空
8
- int32 type = 1; // 1:表示cid,2:表示数据库threadid
9
- bytes oid = 2; // 需要处理的文件cid或者文件夹cid或者数据库的threadID
10
- }
11
- message FetchRequest {
12
- bytes cid = 1; // 要获取数据的块的cid
13
- }
14
-
15
- message FetchReply {
16
- bytes data = 1; // 获取的cid对应的数据
17
- }
18
-
19
-
20
- message ErrorInformRequest {
21
- string error = 1; // 错误信息
22
- }
23
-
24
- message ErrorInformReply {
25
- }
@@ -1,585 +0,0 @@
1
- import * as $protobuf from "protobufjs";
2
- import Long = require("long");
3
- /** Namespace oidfetch. */
4
- export namespace oidfetch {
5
-
6
- /** Namespace pb. */
7
- namespace pb {
8
-
9
- /** Properties of an InitRequset. */
10
- interface IInitRequset {
11
- }
12
-
13
- /** Represents an InitRequset. */
14
- class InitRequset implements IInitRequset {
15
-
16
- /**
17
- * Constructs a new InitRequset.
18
- * @param [properties] Properties to set
19
- */
20
- constructor(properties?: oidfetch.pb.IInitRequset);
21
-
22
- /**
23
- * Creates a new InitRequset instance using the specified properties.
24
- * @param [properties] Properties to set
25
- * @returns InitRequset instance
26
- */
27
- public static create(properties?: oidfetch.pb.IInitRequset): oidfetch.pb.InitRequset;
28
-
29
- /**
30
- * Encodes the specified InitRequset message. Does not implicitly {@link oidfetch.pb.InitRequset.verify|verify} messages.
31
- * @param message InitRequset message or plain object to encode
32
- * @param [writer] Writer to encode to
33
- * @returns Writer
34
- */
35
- public static encode(message: oidfetch.pb.IInitRequset, writer?: $protobuf.Writer): $protobuf.Writer;
36
-
37
- /**
38
- * Encodes the specified InitRequset message, length delimited. Does not implicitly {@link oidfetch.pb.InitRequset.verify|verify} messages.
39
- * @param message InitRequset message or plain object to encode
40
- * @param [writer] Writer to encode to
41
- * @returns Writer
42
- */
43
- public static encodeDelimited(message: oidfetch.pb.IInitRequset, writer?: $protobuf.Writer): $protobuf.Writer;
44
-
45
- /**
46
- * Decodes an InitRequset message from the specified reader or buffer.
47
- * @param reader Reader or buffer to decode from
48
- * @param [length] Message length if known beforehand
49
- * @returns InitRequset
50
- * @throws {Error} If the payload is not a reader or valid buffer
51
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
52
- */
53
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): oidfetch.pb.InitRequset;
54
-
55
- /**
56
- * Decodes an InitRequset message from the specified reader or buffer, length delimited.
57
- * @param reader Reader or buffer to decode from
58
- * @returns InitRequset
59
- * @throws {Error} If the payload is not a reader or valid buffer
60
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
61
- */
62
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): oidfetch.pb.InitRequset;
63
-
64
- /**
65
- * Verifies an InitRequset message.
66
- * @param message Plain object to verify
67
- * @returns `null` if valid, otherwise the reason why it is not
68
- */
69
- public static verify(message: { [k: string]: any }): (string|null);
70
-
71
- /**
72
- * Creates an InitRequset message from a plain object. Also converts values to their respective internal types.
73
- * @param object Plain object
74
- * @returns InitRequset
75
- */
76
- public static fromObject(object: { [k: string]: any }): oidfetch.pb.InitRequset;
77
-
78
- /**
79
- * Creates a plain object from an InitRequset message. Also converts values to other types if specified.
80
- * @param message InitRequset
81
- * @param [options] Conversion options
82
- * @returns Plain object
83
- */
84
- public static toObject(message: oidfetch.pb.InitRequset, options?: $protobuf.IConversionOptions): { [k: string]: any };
85
-
86
- /**
87
- * Converts this InitRequset to JSON.
88
- * @returns JSON object
89
- */
90
- public toJSON(): { [k: string]: any };
91
-
92
- /**
93
- * Gets the default type url for InitRequset
94
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
95
- * @returns The default type url
96
- */
97
- public static getTypeUrl(typeUrlPrefix?: string): string;
98
- }
99
-
100
- /** Properties of an InitReply. */
101
- interface IInitReply {
102
-
103
- /** InitReply type */
104
- type?: (number|null);
105
-
106
- /** InitReply oid */
107
- oid?: (Uint8Array|null);
108
- }
109
-
110
- /** Represents an InitReply. */
111
- class InitReply implements IInitReply {
112
-
113
- /**
114
- * Constructs a new InitReply.
115
- * @param [properties] Properties to set
116
- */
117
- constructor(properties?: oidfetch.pb.IInitReply);
118
-
119
- /** InitReply type. */
120
- public type: number;
121
-
122
- /** InitReply oid. */
123
- public oid: Uint8Array;
124
-
125
- /**
126
- * Creates a new InitReply instance using the specified properties.
127
- * @param [properties] Properties to set
128
- * @returns InitReply instance
129
- */
130
- public static create(properties?: oidfetch.pb.IInitReply): oidfetch.pb.InitReply;
131
-
132
- /**
133
- * Encodes the specified InitReply message. Does not implicitly {@link oidfetch.pb.InitReply.verify|verify} messages.
134
- * @param message InitReply message or plain object to encode
135
- * @param [writer] Writer to encode to
136
- * @returns Writer
137
- */
138
- public static encode(message: oidfetch.pb.IInitReply, writer?: $protobuf.Writer): $protobuf.Writer;
139
-
140
- /**
141
- * Encodes the specified InitReply message, length delimited. Does not implicitly {@link oidfetch.pb.InitReply.verify|verify} messages.
142
- * @param message InitReply message or plain object to encode
143
- * @param [writer] Writer to encode to
144
- * @returns Writer
145
- */
146
- public static encodeDelimited(message: oidfetch.pb.IInitReply, writer?: $protobuf.Writer): $protobuf.Writer;
147
-
148
- /**
149
- * Decodes an InitReply message from the specified reader or buffer.
150
- * @param reader Reader or buffer to decode from
151
- * @param [length] Message length if known beforehand
152
- * @returns InitReply
153
- * @throws {Error} If the payload is not a reader or valid buffer
154
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
155
- */
156
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): oidfetch.pb.InitReply;
157
-
158
- /**
159
- * Decodes an InitReply message from the specified reader or buffer, length delimited.
160
- * @param reader Reader or buffer to decode from
161
- * @returns InitReply
162
- * @throws {Error} If the payload is not a reader or valid buffer
163
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
164
- */
165
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): oidfetch.pb.InitReply;
166
-
167
- /**
168
- * Verifies an InitReply message.
169
- * @param message Plain object to verify
170
- * @returns `null` if valid, otherwise the reason why it is not
171
- */
172
- public static verify(message: { [k: string]: any }): (string|null);
173
-
174
- /**
175
- * Creates an InitReply message from a plain object. Also converts values to their respective internal types.
176
- * @param object Plain object
177
- * @returns InitReply
178
- */
179
- public static fromObject(object: { [k: string]: any }): oidfetch.pb.InitReply;
180
-
181
- /**
182
- * Creates a plain object from an InitReply message. Also converts values to other types if specified.
183
- * @param message InitReply
184
- * @param [options] Conversion options
185
- * @returns Plain object
186
- */
187
- public static toObject(message: oidfetch.pb.InitReply, options?: $protobuf.IConversionOptions): { [k: string]: any };
188
-
189
- /**
190
- * Converts this InitReply to JSON.
191
- * @returns JSON object
192
- */
193
- public toJSON(): { [k: string]: any };
194
-
195
- /**
196
- * Gets the default type url for InitReply
197
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
198
- * @returns The default type url
199
- */
200
- public static getTypeUrl(typeUrlPrefix?: string): string;
201
- }
202
-
203
- /** Properties of a FetchRequest. */
204
- interface IFetchRequest {
205
-
206
- /** FetchRequest cid */
207
- cid?: (Uint8Array|null);
208
- }
209
-
210
- /** Represents a FetchRequest. */
211
- class FetchRequest implements IFetchRequest {
212
-
213
- /**
214
- * Constructs a new FetchRequest.
215
- * @param [properties] Properties to set
216
- */
217
- constructor(properties?: oidfetch.pb.IFetchRequest);
218
-
219
- /** FetchRequest cid. */
220
- public cid: Uint8Array;
221
-
222
- /**
223
- * Creates a new FetchRequest instance using the specified properties.
224
- * @param [properties] Properties to set
225
- * @returns FetchRequest instance
226
- */
227
- public static create(properties?: oidfetch.pb.IFetchRequest): oidfetch.pb.FetchRequest;
228
-
229
- /**
230
- * Encodes the specified FetchRequest message. Does not implicitly {@link oidfetch.pb.FetchRequest.verify|verify} messages.
231
- * @param message FetchRequest message or plain object to encode
232
- * @param [writer] Writer to encode to
233
- * @returns Writer
234
- */
235
- public static encode(message: oidfetch.pb.IFetchRequest, writer?: $protobuf.Writer): $protobuf.Writer;
236
-
237
- /**
238
- * Encodes the specified FetchRequest message, length delimited. Does not implicitly {@link oidfetch.pb.FetchRequest.verify|verify} messages.
239
- * @param message FetchRequest message or plain object to encode
240
- * @param [writer] Writer to encode to
241
- * @returns Writer
242
- */
243
- public static encodeDelimited(message: oidfetch.pb.IFetchRequest, writer?: $protobuf.Writer): $protobuf.Writer;
244
-
245
- /**
246
- * Decodes a FetchRequest message from the specified reader or buffer.
247
- * @param reader Reader or buffer to decode from
248
- * @param [length] Message length if known beforehand
249
- * @returns FetchRequest
250
- * @throws {Error} If the payload is not a reader or valid buffer
251
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
252
- */
253
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): oidfetch.pb.FetchRequest;
254
-
255
- /**
256
- * Decodes a FetchRequest message from the specified reader or buffer, length delimited.
257
- * @param reader Reader or buffer to decode from
258
- * @returns FetchRequest
259
- * @throws {Error} If the payload is not a reader or valid buffer
260
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
261
- */
262
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): oidfetch.pb.FetchRequest;
263
-
264
- /**
265
- * Verifies a FetchRequest message.
266
- * @param message Plain object to verify
267
- * @returns `null` if valid, otherwise the reason why it is not
268
- */
269
- public static verify(message: { [k: string]: any }): (string|null);
270
-
271
- /**
272
- * Creates a FetchRequest message from a plain object. Also converts values to their respective internal types.
273
- * @param object Plain object
274
- * @returns FetchRequest
275
- */
276
- public static fromObject(object: { [k: string]: any }): oidfetch.pb.FetchRequest;
277
-
278
- /**
279
- * Creates a plain object from a FetchRequest message. Also converts values to other types if specified.
280
- * @param message FetchRequest
281
- * @param [options] Conversion options
282
- * @returns Plain object
283
- */
284
- public static toObject(message: oidfetch.pb.FetchRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
285
-
286
- /**
287
- * Converts this FetchRequest to JSON.
288
- * @returns JSON object
289
- */
290
- public toJSON(): { [k: string]: any };
291
-
292
- /**
293
- * Gets the default type url for FetchRequest
294
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
295
- * @returns The default type url
296
- */
297
- public static getTypeUrl(typeUrlPrefix?: string): string;
298
- }
299
-
300
- /** Properties of a FetchReply. */
301
- interface IFetchReply {
302
-
303
- /** FetchReply data */
304
- data?: (Uint8Array|null);
305
- }
306
-
307
- /** Represents a FetchReply. */
308
- class FetchReply implements IFetchReply {
309
-
310
- /**
311
- * Constructs a new FetchReply.
312
- * @param [properties] Properties to set
313
- */
314
- constructor(properties?: oidfetch.pb.IFetchReply);
315
-
316
- /** FetchReply data. */
317
- public data: Uint8Array;
318
-
319
- /**
320
- * Creates a new FetchReply instance using the specified properties.
321
- * @param [properties] Properties to set
322
- * @returns FetchReply instance
323
- */
324
- public static create(properties?: oidfetch.pb.IFetchReply): oidfetch.pb.FetchReply;
325
-
326
- /**
327
- * Encodes the specified FetchReply message. Does not implicitly {@link oidfetch.pb.FetchReply.verify|verify} messages.
328
- * @param message FetchReply message or plain object to encode
329
- * @param [writer] Writer to encode to
330
- * @returns Writer
331
- */
332
- public static encode(message: oidfetch.pb.IFetchReply, writer?: $protobuf.Writer): $protobuf.Writer;
333
-
334
- /**
335
- * Encodes the specified FetchReply message, length delimited. Does not implicitly {@link oidfetch.pb.FetchReply.verify|verify} messages.
336
- * @param message FetchReply message or plain object to encode
337
- * @param [writer] Writer to encode to
338
- * @returns Writer
339
- */
340
- public static encodeDelimited(message: oidfetch.pb.IFetchReply, writer?: $protobuf.Writer): $protobuf.Writer;
341
-
342
- /**
343
- * Decodes a FetchReply message from the specified reader or buffer.
344
- * @param reader Reader or buffer to decode from
345
- * @param [length] Message length if known beforehand
346
- * @returns FetchReply
347
- * @throws {Error} If the payload is not a reader or valid buffer
348
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
349
- */
350
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): oidfetch.pb.FetchReply;
351
-
352
- /**
353
- * Decodes a FetchReply message from the specified reader or buffer, length delimited.
354
- * @param reader Reader or buffer to decode from
355
- * @returns FetchReply
356
- * @throws {Error} If the payload is not a reader or valid buffer
357
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
358
- */
359
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): oidfetch.pb.FetchReply;
360
-
361
- /**
362
- * Verifies a FetchReply message.
363
- * @param message Plain object to verify
364
- * @returns `null` if valid, otherwise the reason why it is not
365
- */
366
- public static verify(message: { [k: string]: any }): (string|null);
367
-
368
- /**
369
- * Creates a FetchReply message from a plain object. Also converts values to their respective internal types.
370
- * @param object Plain object
371
- * @returns FetchReply
372
- */
373
- public static fromObject(object: { [k: string]: any }): oidfetch.pb.FetchReply;
374
-
375
- /**
376
- * Creates a plain object from a FetchReply message. Also converts values to other types if specified.
377
- * @param message FetchReply
378
- * @param [options] Conversion options
379
- * @returns Plain object
380
- */
381
- public static toObject(message: oidfetch.pb.FetchReply, options?: $protobuf.IConversionOptions): { [k: string]: any };
382
-
383
- /**
384
- * Converts this FetchReply to JSON.
385
- * @returns JSON object
386
- */
387
- public toJSON(): { [k: string]: any };
388
-
389
- /**
390
- * Gets the default type url for FetchReply
391
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
392
- * @returns The default type url
393
- */
394
- public static getTypeUrl(typeUrlPrefix?: string): string;
395
- }
396
-
397
- /** Properties of an ErrorInformRequest. */
398
- interface IErrorInformRequest {
399
-
400
- /** ErrorInformRequest error */
401
- error?: (string|null);
402
- }
403
-
404
- /** Represents an ErrorInformRequest. */
405
- class ErrorInformRequest implements IErrorInformRequest {
406
-
407
- /**
408
- * Constructs a new ErrorInformRequest.
409
- * @param [properties] Properties to set
410
- */
411
- constructor(properties?: oidfetch.pb.IErrorInformRequest);
412
-
413
- /** ErrorInformRequest error. */
414
- public error: string;
415
-
416
- /**
417
- * Creates a new ErrorInformRequest instance using the specified properties.
418
- * @param [properties] Properties to set
419
- * @returns ErrorInformRequest instance
420
- */
421
- public static create(properties?: oidfetch.pb.IErrorInformRequest): oidfetch.pb.ErrorInformRequest;
422
-
423
- /**
424
- * Encodes the specified ErrorInformRequest message. Does not implicitly {@link oidfetch.pb.ErrorInformRequest.verify|verify} messages.
425
- * @param message ErrorInformRequest message or plain object to encode
426
- * @param [writer] Writer to encode to
427
- * @returns Writer
428
- */
429
- public static encode(message: oidfetch.pb.IErrorInformRequest, writer?: $protobuf.Writer): $protobuf.Writer;
430
-
431
- /**
432
- * Encodes the specified ErrorInformRequest message, length delimited. Does not implicitly {@link oidfetch.pb.ErrorInformRequest.verify|verify} messages.
433
- * @param message ErrorInformRequest message or plain object to encode
434
- * @param [writer] Writer to encode to
435
- * @returns Writer
436
- */
437
- public static encodeDelimited(message: oidfetch.pb.IErrorInformRequest, writer?: $protobuf.Writer): $protobuf.Writer;
438
-
439
- /**
440
- * Decodes an ErrorInformRequest message from the specified reader or buffer.
441
- * @param reader Reader or buffer to decode from
442
- * @param [length] Message length if known beforehand
443
- * @returns ErrorInformRequest
444
- * @throws {Error} If the payload is not a reader or valid buffer
445
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
446
- */
447
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): oidfetch.pb.ErrorInformRequest;
448
-
449
- /**
450
- * Decodes an ErrorInformRequest message from the specified reader or buffer, length delimited.
451
- * @param reader Reader or buffer to decode from
452
- * @returns ErrorInformRequest
453
- * @throws {Error} If the payload is not a reader or valid buffer
454
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
455
- */
456
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): oidfetch.pb.ErrorInformRequest;
457
-
458
- /**
459
- * Verifies an ErrorInformRequest message.
460
- * @param message Plain object to verify
461
- * @returns `null` if valid, otherwise the reason why it is not
462
- */
463
- public static verify(message: { [k: string]: any }): (string|null);
464
-
465
- /**
466
- * Creates an ErrorInformRequest message from a plain object. Also converts values to their respective internal types.
467
- * @param object Plain object
468
- * @returns ErrorInformRequest
469
- */
470
- public static fromObject(object: { [k: string]: any }): oidfetch.pb.ErrorInformRequest;
471
-
472
- /**
473
- * Creates a plain object from an ErrorInformRequest message. Also converts values to other types if specified.
474
- * @param message ErrorInformRequest
475
- * @param [options] Conversion options
476
- * @returns Plain object
477
- */
478
- public static toObject(message: oidfetch.pb.ErrorInformRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
479
-
480
- /**
481
- * Converts this ErrorInformRequest to JSON.
482
- * @returns JSON object
483
- */
484
- public toJSON(): { [k: string]: any };
485
-
486
- /**
487
- * Gets the default type url for ErrorInformRequest
488
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
489
- * @returns The default type url
490
- */
491
- public static getTypeUrl(typeUrlPrefix?: string): string;
492
- }
493
-
494
- /** Properties of an ErrorInformReply. */
495
- interface IErrorInformReply {
496
- }
497
-
498
- /** Represents an ErrorInformReply. */
499
- class ErrorInformReply implements IErrorInformReply {
500
-
501
- /**
502
- * Constructs a new ErrorInformReply.
503
- * @param [properties] Properties to set
504
- */
505
- constructor(properties?: oidfetch.pb.IErrorInformReply);
506
-
507
- /**
508
- * Creates a new ErrorInformReply instance using the specified properties.
509
- * @param [properties] Properties to set
510
- * @returns ErrorInformReply instance
511
- */
512
- public static create(properties?: oidfetch.pb.IErrorInformReply): oidfetch.pb.ErrorInformReply;
513
-
514
- /**
515
- * Encodes the specified ErrorInformReply message. Does not implicitly {@link oidfetch.pb.ErrorInformReply.verify|verify} messages.
516
- * @param message ErrorInformReply message or plain object to encode
517
- * @param [writer] Writer to encode to
518
- * @returns Writer
519
- */
520
- public static encode(message: oidfetch.pb.IErrorInformReply, writer?: $protobuf.Writer): $protobuf.Writer;
521
-
522
- /**
523
- * Encodes the specified ErrorInformReply message, length delimited. Does not implicitly {@link oidfetch.pb.ErrorInformReply.verify|verify} messages.
524
- * @param message ErrorInformReply message or plain object to encode
525
- * @param [writer] Writer to encode to
526
- * @returns Writer
527
- */
528
- public static encodeDelimited(message: oidfetch.pb.IErrorInformReply, writer?: $protobuf.Writer): $protobuf.Writer;
529
-
530
- /**
531
- * Decodes an ErrorInformReply message from the specified reader or buffer.
532
- * @param reader Reader or buffer to decode from
533
- * @param [length] Message length if known beforehand
534
- * @returns ErrorInformReply
535
- * @throws {Error} If the payload is not a reader or valid buffer
536
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
537
- */
538
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): oidfetch.pb.ErrorInformReply;
539
-
540
- /**
541
- * Decodes an ErrorInformReply message from the specified reader or buffer, length delimited.
542
- * @param reader Reader or buffer to decode from
543
- * @returns ErrorInformReply
544
- * @throws {Error} If the payload is not a reader or valid buffer
545
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
546
- */
547
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): oidfetch.pb.ErrorInformReply;
548
-
549
- /**
550
- * Verifies an ErrorInformReply message.
551
- * @param message Plain object to verify
552
- * @returns `null` if valid, otherwise the reason why it is not
553
- */
554
- public static verify(message: { [k: string]: any }): (string|null);
555
-
556
- /**
557
- * Creates an ErrorInformReply message from a plain object. Also converts values to their respective internal types.
558
- * @param object Plain object
559
- * @returns ErrorInformReply
560
- */
561
- public static fromObject(object: { [k: string]: any }): oidfetch.pb.ErrorInformReply;
562
-
563
- /**
564
- * Creates a plain object from an ErrorInformReply message. Also converts values to other types if specified.
565
- * @param message ErrorInformReply
566
- * @param [options] Conversion options
567
- * @returns Plain object
568
- */
569
- public static toObject(message: oidfetch.pb.ErrorInformReply, options?: $protobuf.IConversionOptions): { [k: string]: any };
570
-
571
- /**
572
- * Converts this ErrorInformReply to JSON.
573
- * @returns JSON object
574
- */
575
- public toJSON(): { [k: string]: any };
576
-
577
- /**
578
- * Gets the default type url for ErrorInformReply
579
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
580
- * @returns The default type url
581
- */
582
- public static getTypeUrl(typeUrlPrefix?: string): string;
583
- }
584
- }
585
- }