space-data-module-sdk 0.8.0 → 0.8.2
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/README.md +17 -3
- package/bin/space-data-module.js +8 -6
- package/package.json +2 -2
- package/schemas/spacedatastandards/PLG.fbs +191 -0
- package/src/bundle/wasm.js +31 -9
- package/src/compliance/index.js +4 -0
- package/src/compliance/pluginCompliance.js +158 -2
- package/src/embeddedManifest.js +25 -5
- package/src/generated/orbpro/invoke/plugin-invoke-request.js +2 -2
- package/src/generated/orbpro/invoke/plugin-invoke-response.js +2 -2
- package/src/generated/orbpro/stream/flat-buffer-type-ref.js +2 -2
- package/src/generated/orbpro/stream/typed-arena-buffer.js +2 -2
- package/src/generated/spacedatastandards/plg/entry-function.js +86 -0
- package/src/generated/spacedatastandards/plg/entry-function.ts +119 -0
- package/src/generated/spacedatastandards/plg/index.js +16 -0
- package/src/generated/spacedatastandards/plg/index.ts +11 -0
- package/src/generated/spacedatastandards/plg/plg.js +657 -0
- package/src/generated/spacedatastandards/plg/plg.ts +924 -0
- package/src/generated/spacedatastandards/plg/plugin-capability.js +66 -0
- package/src/generated/spacedatastandards/plg/plugin-capability.ts +84 -0
- package/src/generated/spacedatastandards/plg/plugin-category.js +15 -0
- package/src/generated/spacedatastandards/plg/plugin-category.ts +53 -0
- package/src/generated/spacedatastandards/plg/plugin-dependency.js +63 -0
- package/src/generated/spacedatastandards/plg/plugin-dependency.ts +86 -0
- package/src/generated/spacedatastandards/plg/publication-state.js +9 -0
- package/src/generated/spacedatastandards/plg/publication-state.ts +23 -0
- package/src/generated/spacedatastandards/plg/purchase-tier.js +9 -0
- package/src/generated/spacedatastandards/plg/purchase-tier.ts +23 -0
- package/src/invoke/codec.js +1 -1
- package/src/manifest/browser.js +7 -0
- package/src/manifest/codec.js +73 -0
- package/src/manifest/index.js +7 -0
- package/src/manifest/legacyToPlg.js +249 -0
- package/src/manifest/plgCodec.js +826 -0
- package/src/standards/sharedCatalog.js +132 -0
- package/src/testing/native/wasmedge_emscripten_pthread_runner.c +17 -3
- package/src/vendor/flatbuffers/LICENSE +202 -0
- package/src/vendor/flatbuffers/builder.js +534 -0
- package/src/vendor/flatbuffers/byte-buffer.js +253 -0
- package/src/vendor/flatbuffers/constants.js +4 -0
- package/src/vendor/flatbuffers/encoding.js +5 -0
- package/src/vendor/flatbuffers/flatbuffers.js +5 -0
- package/src/vendor/flatbuffers/utils.js +4 -0
|
@@ -0,0 +1,924 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
+
|
|
5
|
+
import * as flatbuffers from 'flatbuffers';
|
|
6
|
+
|
|
7
|
+
import { EntryFunction } from './entry-function.js';
|
|
8
|
+
import { PluginCapability } from './plugin-capability.js';
|
|
9
|
+
import { PluginDependency } from './plugin-dependency.js';
|
|
10
|
+
import { pluginCategory } from './plugin-category.js';
|
|
11
|
+
import { publicationState } from './publication-state.js';
|
|
12
|
+
import { purchaseTier } from './purchase-tier.js';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Plugin Manifest - canonical signed storefront and WASM distribution record
|
|
17
|
+
*/
|
|
18
|
+
export class PLG {
|
|
19
|
+
bb: flatbuffers.ByteBuffer|null = null;
|
|
20
|
+
bb_pos = 0;
|
|
21
|
+
__init(i:number, bb:flatbuffers.ByteBuffer):PLG {
|
|
22
|
+
this.bb_pos = i;
|
|
23
|
+
this.bb = bb;
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
static getRootAsPLG(bb:flatbuffers.ByteBuffer, obj?:PLG):PLG {
|
|
28
|
+
return (obj || new PLG()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static getSizePrefixedRootAsPLG(bb:flatbuffers.ByteBuffer, obj?:PLG):PLG {
|
|
32
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
33
|
+
return (obj || new PLG()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static bufferHasIdentifier(bb:flatbuffers.ByteBuffer):boolean {
|
|
37
|
+
return bb.__has_identifier('$PLG');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Unique identifier for the plugin
|
|
42
|
+
*/
|
|
43
|
+
pluginId():string|null
|
|
44
|
+
pluginId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
45
|
+
pluginId(optionalEncoding?:any):string|Uint8Array|null {
|
|
46
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
47
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Human-readable plugin name
|
|
52
|
+
*/
|
|
53
|
+
name():string|null
|
|
54
|
+
name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
55
|
+
name(optionalEncoding?:any):string|Uint8Array|null {
|
|
56
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
57
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Plugin version (semver format)
|
|
62
|
+
*/
|
|
63
|
+
version():string|null
|
|
64
|
+
version(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
65
|
+
version(optionalEncoding?:any):string|Uint8Array|null {
|
|
66
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
67
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Detailed description of plugin functionality
|
|
72
|
+
*/
|
|
73
|
+
description():string|null
|
|
74
|
+
description(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
75
|
+
description(optionalEncoding?:any):string|Uint8Array|null {
|
|
76
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
77
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Short marketing summary shown in storefront listings
|
|
82
|
+
*/
|
|
83
|
+
tagline():string|null
|
|
84
|
+
tagline(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
85
|
+
tagline(optionalEncoding?:any):string|Uint8Array|null {
|
|
86
|
+
const offset = this.bb!.__offset(this.bb_pos, 12);
|
|
87
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Type/category of the plugin
|
|
92
|
+
*/
|
|
93
|
+
pluginType():pluginCategory {
|
|
94
|
+
const offset = this.bb!.__offset(this.bb_pos, 14);
|
|
95
|
+
return offset ? this.bb!.readInt8(this.bb_pos + offset) : pluginCategory.Sensor;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Human-readable publisher or organization name
|
|
100
|
+
*/
|
|
101
|
+
publisherName():string|null
|
|
102
|
+
publisherName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
103
|
+
publisherName(optionalEncoding?:any):string|Uint8Array|null {
|
|
104
|
+
const offset = this.bb!.__offset(this.bb_pos, 16);
|
|
105
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Publisher handle or username
|
|
110
|
+
*/
|
|
111
|
+
publisherHandle():string|null
|
|
112
|
+
publisherHandle(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
113
|
+
publisherHandle(optionalEncoding?:any):string|Uint8Array|null {
|
|
114
|
+
const offset = this.bb!.__offset(this.bb_pos, 18);
|
|
115
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Canonical publisher website
|
|
120
|
+
*/
|
|
121
|
+
publisherUrl():string|null
|
|
122
|
+
publisherUrl(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
123
|
+
publisherUrl(optionalEncoding?:any):string|Uint8Array|null {
|
|
124
|
+
const offset = this.bb!.__offset(this.bb_pos, 20);
|
|
125
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Support or helpdesk URL for this plugin
|
|
130
|
+
*/
|
|
131
|
+
supportUrl():string|null
|
|
132
|
+
supportUrl(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
133
|
+
supportUrl(optionalEncoding?:any):string|Uint8Array|null {
|
|
134
|
+
const offset = this.bb!.__offset(this.bb_pos, 22);
|
|
135
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Search and categorization tags for discovery
|
|
140
|
+
*/
|
|
141
|
+
tags(index: number):string
|
|
142
|
+
tags(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
|
|
143
|
+
tags(index: number,optionalEncoding?:any):string|Uint8Array|null {
|
|
144
|
+
const offset = this.bb!.__offset(this.bb_pos, 24);
|
|
145
|
+
return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
tagsLength():number {
|
|
149
|
+
const offset = this.bb!.__offset(this.bb_pos, 24);
|
|
150
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Short feature bullets highlighted in storefront listings
|
|
155
|
+
*/
|
|
156
|
+
features(index: number):string
|
|
157
|
+
features(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
|
|
158
|
+
features(index: number,optionalEncoding?:any):string|Uint8Array|null {
|
|
159
|
+
const offset = this.bb!.__offset(this.bb_pos, 26);
|
|
160
|
+
return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
featuresLength():number {
|
|
164
|
+
const offset = this.bb!.__offset(this.bb_pos, 26);
|
|
165
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Screenshot URLs showing the plugin in use
|
|
170
|
+
*/
|
|
171
|
+
screenshotUrls(index: number):string
|
|
172
|
+
screenshotUrls(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
|
|
173
|
+
screenshotUrls(index: number,optionalEncoding?:any):string|Uint8Array|null {
|
|
174
|
+
const offset = this.bb!.__offset(this.bb_pos, 28);
|
|
175
|
+
return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
screenshotUrlsLength():number {
|
|
179
|
+
const offset = this.bb!.__offset(this.bb_pos, 28);
|
|
180
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Optional hero/banner image URL for the listing
|
|
185
|
+
*/
|
|
186
|
+
bannerUrl():string|null
|
|
187
|
+
bannerUrl(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
188
|
+
bannerUrl(optionalEncoding?:any):string|Uint8Array|null {
|
|
189
|
+
const offset = this.bb!.__offset(this.bb_pos, 30);
|
|
190
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* ABI version for compatibility checking
|
|
195
|
+
*/
|
|
196
|
+
abiVersion():number {
|
|
197
|
+
const offset = this.bb!.__offset(this.bb_pos, 32);
|
|
198
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 1;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* SHA256 hash of the decrypted WASM binary
|
|
203
|
+
*/
|
|
204
|
+
wasmHash(index: number):number|null {
|
|
205
|
+
const offset = this.bb!.__offset(this.bb_pos, 34);
|
|
206
|
+
return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
wasmHashLength():number {
|
|
210
|
+
const offset = this.bb!.__offset(this.bb_pos, 34);
|
|
211
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
wasmHashArray():Uint8Array|null {
|
|
215
|
+
const offset = this.bb!.__offset(this.bb_pos, 34);
|
|
216
|
+
return offset ? new Uint8Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Size of decrypted WASM binary in bytes
|
|
221
|
+
*/
|
|
222
|
+
wasmSize():bigint {
|
|
223
|
+
const offset = this.bb!.__offset(this.bb_pos, 36);
|
|
224
|
+
return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* IPFS CID of the encrypted WASM binary
|
|
229
|
+
*/
|
|
230
|
+
wasmCid():string|null
|
|
231
|
+
wasmCid(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
232
|
+
wasmCid(optionalEncoding?:any):string|Uint8Array|null {
|
|
233
|
+
const offset = this.bb!.__offset(this.bb_pos, 38);
|
|
234
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* SHA256 hash of the encrypted delivery artifact bytes
|
|
239
|
+
*/
|
|
240
|
+
encryptedWasmHash(index: number):number|null {
|
|
241
|
+
const offset = this.bb!.__offset(this.bb_pos, 40);
|
|
242
|
+
return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
encryptedWasmHashLength():number {
|
|
246
|
+
const offset = this.bb!.__offset(this.bb_pos, 40);
|
|
247
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
encryptedWasmHashArray():Uint8Array|null {
|
|
251
|
+
const offset = this.bb!.__offset(this.bb_pos, 40);
|
|
252
|
+
return offset ? new Uint8Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Size of the encrypted delivery artifact in bytes
|
|
257
|
+
*/
|
|
258
|
+
encryptedWasmSize():bigint {
|
|
259
|
+
const offset = this.bb!.__offset(this.bb_pos, 42);
|
|
260
|
+
return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Entry point functions exported by the plugin
|
|
265
|
+
*/
|
|
266
|
+
entryFunctions(index: number, obj?:EntryFunction):EntryFunction|null {
|
|
267
|
+
const offset = this.bb!.__offset(this.bb_pos, 44);
|
|
268
|
+
return offset ? (obj || new EntryFunction()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
entryFunctionsLength():number {
|
|
272
|
+
const offset = this.bb!.__offset(this.bb_pos, 44);
|
|
273
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* FlatBuffer schemas required by this plugin
|
|
278
|
+
*/
|
|
279
|
+
requiredSchemas(index: number):string
|
|
280
|
+
requiredSchemas(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
|
|
281
|
+
requiredSchemas(index: number,optionalEncoding?:any):string|Uint8Array|null {
|
|
282
|
+
const offset = this.bb!.__offset(this.bb_pos, 46);
|
|
283
|
+
return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
requiredSchemasLength():number {
|
|
287
|
+
const offset = this.bb!.__offset(this.bb_pos, 46);
|
|
288
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Other plugins this depends on
|
|
293
|
+
*/
|
|
294
|
+
dependencies(index: number, obj?:PluginDependency):PluginDependency|null {
|
|
295
|
+
const offset = this.bb!.__offset(this.bb_pos, 48);
|
|
296
|
+
return offset ? (obj || new PluginDependency()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
dependenciesLength():number {
|
|
300
|
+
const offset = this.bb!.__offset(this.bb_pos, 48);
|
|
301
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Capabilities provided by this plugin
|
|
306
|
+
*/
|
|
307
|
+
capabilities(index: number, obj?:PluginCapability):PluginCapability|null {
|
|
308
|
+
const offset = this.bb!.__offset(this.bb_pos, 50);
|
|
309
|
+
return offset ? (obj || new PluginCapability()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
capabilitiesLength():number {
|
|
313
|
+
const offset = this.bb!.__offset(this.bb_pos, 50);
|
|
314
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Peer ID of the plugin provider
|
|
319
|
+
*/
|
|
320
|
+
providerPeerId():string|null
|
|
321
|
+
providerPeerId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
322
|
+
providerPeerId(optionalEncoding?:any):string|Uint8Array|null {
|
|
323
|
+
const offset = this.bb!.__offset(this.bb_pos, 52);
|
|
324
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* IPFS CID of provider's EPM (Entity Profile Message)
|
|
329
|
+
*/
|
|
330
|
+
providerEpmCid():string|null
|
|
331
|
+
providerEpmCid(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
332
|
+
providerEpmCid(optionalEncoding?:any):string|Uint8Array|null {
|
|
333
|
+
const offset = this.bb!.__offset(this.bb_pos, 54);
|
|
334
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Whether the WASM binary is encrypted
|
|
339
|
+
*/
|
|
340
|
+
encrypted():boolean {
|
|
341
|
+
const offset = this.bb!.__offset(this.bb_pos, 56);
|
|
342
|
+
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : true;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Canonical required scope for grant issuance
|
|
347
|
+
*/
|
|
348
|
+
requiredScope():string|null
|
|
349
|
+
requiredScope(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
350
|
+
requiredScope(optionalEncoding?:any):string|Uint8Array|null {
|
|
351
|
+
const offset = this.bb!.__offset(this.bb_pos, 58);
|
|
352
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Provider-local identifier for the module content key
|
|
357
|
+
*/
|
|
358
|
+
keyId():string|null
|
|
359
|
+
keyId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
360
|
+
keyId(optionalEncoding?:any):string|Uint8Array|null {
|
|
361
|
+
const offset = this.bb!.__offset(this.bb_pos, 60);
|
|
362
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Allowed requester domains for module grants
|
|
367
|
+
*/
|
|
368
|
+
allowedDomains(index: number):string
|
|
369
|
+
allowedDomains(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
|
|
370
|
+
allowedDomains(index: number,optionalEncoding?:any):string|Uint8Array|null {
|
|
371
|
+
const offset = this.bb!.__offset(this.bb_pos, 62);
|
|
372
|
+
return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
allowedDomainsLength():number {
|
|
376
|
+
const offset = this.bb!.__offset(this.bb_pos, 62);
|
|
377
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Maximum grant timeout allowed for this module publication
|
|
382
|
+
*/
|
|
383
|
+
maxGrantTimeoutMs():bigint {
|
|
384
|
+
const offset = this.bb!.__offset(this.bb_pos, 64);
|
|
385
|
+
return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Minimum permissions required to run
|
|
390
|
+
*/
|
|
391
|
+
minPermissions(index: number):string
|
|
392
|
+
minPermissions(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
|
|
393
|
+
minPermissions(index: number,optionalEncoding?:any):string|Uint8Array|null {
|
|
394
|
+
const offset = this.bb!.__offset(this.bb_pos, 66);
|
|
395
|
+
return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
minPermissionsLength():number {
|
|
399
|
+
const offset = this.bb!.__offset(this.bb_pos, 66);
|
|
400
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Unix timestamp when plugin was created
|
|
405
|
+
*/
|
|
406
|
+
createdAt():bigint {
|
|
407
|
+
const offset = this.bb!.__offset(this.bb_pos, 68);
|
|
408
|
+
return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Unix timestamp when plugin was last updated
|
|
413
|
+
*/
|
|
414
|
+
updatedAt():bigint {
|
|
415
|
+
const offset = this.bb!.__offset(this.bb_pos, 70);
|
|
416
|
+
return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* URL to plugin documentation
|
|
421
|
+
*/
|
|
422
|
+
documentationUrl():string|null
|
|
423
|
+
documentationUrl(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
424
|
+
documentationUrl(optionalEncoding?:any):string|Uint8Array|null {
|
|
425
|
+
const offset = this.bb!.__offset(this.bb_pos, 72);
|
|
426
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* URL to plugin changelog or release notes
|
|
431
|
+
*/
|
|
432
|
+
changelogUrl():string|null
|
|
433
|
+
changelogUrl(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
434
|
+
changelogUrl(optionalEncoding?:any):string|Uint8Array|null {
|
|
435
|
+
const offset = this.bb!.__offset(this.bb_pos, 74);
|
|
436
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* URL to plugin icon/logo
|
|
441
|
+
*/
|
|
442
|
+
iconUrl():string|null
|
|
443
|
+
iconUrl(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
444
|
+
iconUrl(optionalEncoding?:any):string|Uint8Array|null {
|
|
445
|
+
const offset = this.bb!.__offset(this.bb_pos, 76);
|
|
446
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* License identifier (SPDX format)
|
|
451
|
+
*/
|
|
452
|
+
license():string|null
|
|
453
|
+
license(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
454
|
+
license(optionalEncoding?:any):string|Uint8Array|null {
|
|
455
|
+
const offset = this.bb!.__offset(this.bb_pos, 78);
|
|
456
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Commercial model used for storefront purchase flows
|
|
461
|
+
*/
|
|
462
|
+
paymentModel():purchaseTier {
|
|
463
|
+
const offset = this.bb!.__offset(this.bb_pos, 80);
|
|
464
|
+
return offset ? this.bb!.readInt8(this.bb_pos + offset) : purchaseTier.Free;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Price in USD cents for one-time purchase or subscription period
|
|
469
|
+
*/
|
|
470
|
+
priceUsdCents():number {
|
|
471
|
+
const offset = this.bb!.__offset(this.bb_pos, 82);
|
|
472
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Subscription billing period length in days
|
|
477
|
+
*/
|
|
478
|
+
subscriptionPeriodDays():number {
|
|
479
|
+
const offset = this.bb!.__offset(this.bb_pos, 84);
|
|
480
|
+
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Accepted payment methods, e.g. "stripe", "sol", "usdc"
|
|
485
|
+
*/
|
|
486
|
+
acceptedPaymentMethods(index: number):string
|
|
487
|
+
acceptedPaymentMethods(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
|
|
488
|
+
acceptedPaymentMethods(index: number,optionalEncoding?:any):string|Uint8Array|null {
|
|
489
|
+
const offset = this.bb!.__offset(this.bb_pos, 86);
|
|
490
|
+
return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
acceptedPaymentMethodsLength():number {
|
|
494
|
+
const offset = this.bb!.__offset(this.bb_pos, 86);
|
|
495
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Storefront publication state for this manifest version
|
|
500
|
+
*/
|
|
501
|
+
listingStatus():publicationState {
|
|
502
|
+
const offset = this.bb!.__offset(this.bb_pos, 88);
|
|
503
|
+
return offset ? this.bb!.readInt8(this.bb_pos + offset) : publicationState.Public;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Ed25519 signature from provider over manifest
|
|
508
|
+
*/
|
|
509
|
+
signature(index: number):number|null {
|
|
510
|
+
const offset = this.bb!.__offset(this.bb_pos, 90);
|
|
511
|
+
return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
signatureLength():number {
|
|
515
|
+
const offset = this.bb!.__offset(this.bb_pos, 90);
|
|
516
|
+
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
signatureArray():Uint8Array|null {
|
|
520
|
+
const offset = this.bb!.__offset(this.bb_pos, 90);
|
|
521
|
+
return offset ? new Uint8Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
static startPLG(builder:flatbuffers.Builder) {
|
|
525
|
+
builder.startObject(44);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
static addPluginId(builder:flatbuffers.Builder, pluginIdOffset:flatbuffers.Offset) {
|
|
529
|
+
builder.addFieldOffset(0, pluginIdOffset, 0);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
|
|
533
|
+
builder.addFieldOffset(1, nameOffset, 0);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
static addVersion(builder:flatbuffers.Builder, versionOffset:flatbuffers.Offset) {
|
|
537
|
+
builder.addFieldOffset(2, versionOffset, 0);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
static addDescription(builder:flatbuffers.Builder, descriptionOffset:flatbuffers.Offset) {
|
|
541
|
+
builder.addFieldOffset(3, descriptionOffset, 0);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
static addTagline(builder:flatbuffers.Builder, taglineOffset:flatbuffers.Offset) {
|
|
545
|
+
builder.addFieldOffset(4, taglineOffset, 0);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
static addPluginType(builder:flatbuffers.Builder, pluginType:pluginCategory) {
|
|
549
|
+
builder.addFieldInt8(5, pluginType, pluginCategory.Sensor);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
static addPublisherName(builder:flatbuffers.Builder, publisherNameOffset:flatbuffers.Offset) {
|
|
553
|
+
builder.addFieldOffset(6, publisherNameOffset, 0);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
static addPublisherHandle(builder:flatbuffers.Builder, publisherHandleOffset:flatbuffers.Offset) {
|
|
557
|
+
builder.addFieldOffset(7, publisherHandleOffset, 0);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
static addPublisherUrl(builder:flatbuffers.Builder, publisherUrlOffset:flatbuffers.Offset) {
|
|
561
|
+
builder.addFieldOffset(8, publisherUrlOffset, 0);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
static addSupportUrl(builder:flatbuffers.Builder, supportUrlOffset:flatbuffers.Offset) {
|
|
565
|
+
builder.addFieldOffset(9, supportUrlOffset, 0);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
static addTags(builder:flatbuffers.Builder, tagsOffset:flatbuffers.Offset) {
|
|
569
|
+
builder.addFieldOffset(10, tagsOffset, 0);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
static createTagsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
573
|
+
builder.startVector(4, data.length, 4);
|
|
574
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
575
|
+
builder.addOffset(data[i]!);
|
|
576
|
+
}
|
|
577
|
+
return builder.endVector();
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
static startTagsVector(builder:flatbuffers.Builder, numElems:number) {
|
|
581
|
+
builder.startVector(4, numElems, 4);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
static addFeatures(builder:flatbuffers.Builder, featuresOffset:flatbuffers.Offset) {
|
|
585
|
+
builder.addFieldOffset(11, featuresOffset, 0);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
static createFeaturesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
589
|
+
builder.startVector(4, data.length, 4);
|
|
590
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
591
|
+
builder.addOffset(data[i]!);
|
|
592
|
+
}
|
|
593
|
+
return builder.endVector();
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
static startFeaturesVector(builder:flatbuffers.Builder, numElems:number) {
|
|
597
|
+
builder.startVector(4, numElems, 4);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
static addScreenshotUrls(builder:flatbuffers.Builder, screenshotUrlsOffset:flatbuffers.Offset) {
|
|
601
|
+
builder.addFieldOffset(12, screenshotUrlsOffset, 0);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
static createScreenshotUrlsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
605
|
+
builder.startVector(4, data.length, 4);
|
|
606
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
607
|
+
builder.addOffset(data[i]!);
|
|
608
|
+
}
|
|
609
|
+
return builder.endVector();
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
static startScreenshotUrlsVector(builder:flatbuffers.Builder, numElems:number) {
|
|
613
|
+
builder.startVector(4, numElems, 4);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
static addBannerUrl(builder:flatbuffers.Builder, bannerUrlOffset:flatbuffers.Offset) {
|
|
617
|
+
builder.addFieldOffset(13, bannerUrlOffset, 0);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
static addAbiVersion(builder:flatbuffers.Builder, abiVersion:number) {
|
|
621
|
+
builder.addFieldInt32(14, abiVersion, 1);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
static addWasmHash(builder:flatbuffers.Builder, wasmHashOffset:flatbuffers.Offset) {
|
|
625
|
+
builder.addFieldOffset(15, wasmHashOffset, 0);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
static createWasmHashVector(builder:flatbuffers.Builder, data:number[]|Uint8Array):flatbuffers.Offset {
|
|
629
|
+
builder.startVector(1, data.length, 1);
|
|
630
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
631
|
+
builder.addInt8(data[i]!);
|
|
632
|
+
}
|
|
633
|
+
return builder.endVector();
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
static startWasmHashVector(builder:flatbuffers.Builder, numElems:number) {
|
|
637
|
+
builder.startVector(1, numElems, 1);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
static addWasmSize(builder:flatbuffers.Builder, wasmSize:bigint) {
|
|
641
|
+
builder.addFieldInt64(16, wasmSize, BigInt('0'));
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
static addWasmCid(builder:flatbuffers.Builder, wasmCidOffset:flatbuffers.Offset) {
|
|
645
|
+
builder.addFieldOffset(17, wasmCidOffset, 0);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
static addEncryptedWasmHash(builder:flatbuffers.Builder, encryptedWasmHashOffset:flatbuffers.Offset) {
|
|
649
|
+
builder.addFieldOffset(18, encryptedWasmHashOffset, 0);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
static createEncryptedWasmHashVector(builder:flatbuffers.Builder, data:number[]|Uint8Array):flatbuffers.Offset {
|
|
653
|
+
builder.startVector(1, data.length, 1);
|
|
654
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
655
|
+
builder.addInt8(data[i]!);
|
|
656
|
+
}
|
|
657
|
+
return builder.endVector();
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
static startEncryptedWasmHashVector(builder:flatbuffers.Builder, numElems:number) {
|
|
661
|
+
builder.startVector(1, numElems, 1);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
static addEncryptedWasmSize(builder:flatbuffers.Builder, encryptedWasmSize:bigint) {
|
|
665
|
+
builder.addFieldInt64(19, encryptedWasmSize, BigInt('0'));
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
static addEntryFunctions(builder:flatbuffers.Builder, entryFunctionsOffset:flatbuffers.Offset) {
|
|
669
|
+
builder.addFieldOffset(20, entryFunctionsOffset, 0);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
static createEntryFunctionsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
673
|
+
builder.startVector(4, data.length, 4);
|
|
674
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
675
|
+
builder.addOffset(data[i]!);
|
|
676
|
+
}
|
|
677
|
+
return builder.endVector();
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
static startEntryFunctionsVector(builder:flatbuffers.Builder, numElems:number) {
|
|
681
|
+
builder.startVector(4, numElems, 4);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
static addRequiredSchemas(builder:flatbuffers.Builder, requiredSchemasOffset:flatbuffers.Offset) {
|
|
685
|
+
builder.addFieldOffset(21, requiredSchemasOffset, 0);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
static createRequiredSchemasVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
689
|
+
builder.startVector(4, data.length, 4);
|
|
690
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
691
|
+
builder.addOffset(data[i]!);
|
|
692
|
+
}
|
|
693
|
+
return builder.endVector();
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
static startRequiredSchemasVector(builder:flatbuffers.Builder, numElems:number) {
|
|
697
|
+
builder.startVector(4, numElems, 4);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
static addDependencies(builder:flatbuffers.Builder, dependenciesOffset:flatbuffers.Offset) {
|
|
701
|
+
builder.addFieldOffset(22, dependenciesOffset, 0);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
static createDependenciesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
705
|
+
builder.startVector(4, data.length, 4);
|
|
706
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
707
|
+
builder.addOffset(data[i]!);
|
|
708
|
+
}
|
|
709
|
+
return builder.endVector();
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
static startDependenciesVector(builder:flatbuffers.Builder, numElems:number) {
|
|
713
|
+
builder.startVector(4, numElems, 4);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
static addCapabilities(builder:flatbuffers.Builder, capabilitiesOffset:flatbuffers.Offset) {
|
|
717
|
+
builder.addFieldOffset(23, capabilitiesOffset, 0);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
static createCapabilitiesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
721
|
+
builder.startVector(4, data.length, 4);
|
|
722
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
723
|
+
builder.addOffset(data[i]!);
|
|
724
|
+
}
|
|
725
|
+
return builder.endVector();
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
static startCapabilitiesVector(builder:flatbuffers.Builder, numElems:number) {
|
|
729
|
+
builder.startVector(4, numElems, 4);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
static addProviderPeerId(builder:flatbuffers.Builder, providerPeerIdOffset:flatbuffers.Offset) {
|
|
733
|
+
builder.addFieldOffset(24, providerPeerIdOffset, 0);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
static addProviderEpmCid(builder:flatbuffers.Builder, providerEpmCidOffset:flatbuffers.Offset) {
|
|
737
|
+
builder.addFieldOffset(25, providerEpmCidOffset, 0);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
static addEncrypted(builder:flatbuffers.Builder, encrypted:boolean) {
|
|
741
|
+
builder.addFieldInt8(26, +encrypted, +true);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
static addRequiredScope(builder:flatbuffers.Builder, requiredScopeOffset:flatbuffers.Offset) {
|
|
745
|
+
builder.addFieldOffset(27, requiredScopeOffset, 0);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
static addKeyId(builder:flatbuffers.Builder, keyIdOffset:flatbuffers.Offset) {
|
|
749
|
+
builder.addFieldOffset(28, keyIdOffset, 0);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
static addAllowedDomains(builder:flatbuffers.Builder, allowedDomainsOffset:flatbuffers.Offset) {
|
|
753
|
+
builder.addFieldOffset(29, allowedDomainsOffset, 0);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
static createAllowedDomainsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
757
|
+
builder.startVector(4, data.length, 4);
|
|
758
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
759
|
+
builder.addOffset(data[i]!);
|
|
760
|
+
}
|
|
761
|
+
return builder.endVector();
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
static startAllowedDomainsVector(builder:flatbuffers.Builder, numElems:number) {
|
|
765
|
+
builder.startVector(4, numElems, 4);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
static addMaxGrantTimeoutMs(builder:flatbuffers.Builder, maxGrantTimeoutMs:bigint) {
|
|
769
|
+
builder.addFieldInt64(30, maxGrantTimeoutMs, BigInt('0'));
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
static addMinPermissions(builder:flatbuffers.Builder, minPermissionsOffset:flatbuffers.Offset) {
|
|
773
|
+
builder.addFieldOffset(31, minPermissionsOffset, 0);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
static createMinPermissionsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
777
|
+
builder.startVector(4, data.length, 4);
|
|
778
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
779
|
+
builder.addOffset(data[i]!);
|
|
780
|
+
}
|
|
781
|
+
return builder.endVector();
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
static startMinPermissionsVector(builder:flatbuffers.Builder, numElems:number) {
|
|
785
|
+
builder.startVector(4, numElems, 4);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
static addCreatedAt(builder:flatbuffers.Builder, createdAt:bigint) {
|
|
789
|
+
builder.addFieldInt64(32, createdAt, BigInt('0'));
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
static addUpdatedAt(builder:flatbuffers.Builder, updatedAt:bigint) {
|
|
793
|
+
builder.addFieldInt64(33, updatedAt, BigInt('0'));
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
static addDocumentationUrl(builder:flatbuffers.Builder, documentationUrlOffset:flatbuffers.Offset) {
|
|
797
|
+
builder.addFieldOffset(34, documentationUrlOffset, 0);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
static addChangelogUrl(builder:flatbuffers.Builder, changelogUrlOffset:flatbuffers.Offset) {
|
|
801
|
+
builder.addFieldOffset(35, changelogUrlOffset, 0);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
static addIconUrl(builder:flatbuffers.Builder, iconUrlOffset:flatbuffers.Offset) {
|
|
805
|
+
builder.addFieldOffset(36, iconUrlOffset, 0);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
static addLicense(builder:flatbuffers.Builder, licenseOffset:flatbuffers.Offset) {
|
|
809
|
+
builder.addFieldOffset(37, licenseOffset, 0);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
static addPaymentModel(builder:flatbuffers.Builder, paymentModel:purchaseTier) {
|
|
813
|
+
builder.addFieldInt8(38, paymentModel, purchaseTier.Free);
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
static addPriceUsdCents(builder:flatbuffers.Builder, priceUsdCents:number) {
|
|
817
|
+
builder.addFieldInt32(39, priceUsdCents, 0);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
static addSubscriptionPeriodDays(builder:flatbuffers.Builder, subscriptionPeriodDays:number) {
|
|
821
|
+
builder.addFieldInt32(40, subscriptionPeriodDays, 0);
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
static addAcceptedPaymentMethods(builder:flatbuffers.Builder, acceptedPaymentMethodsOffset:flatbuffers.Offset) {
|
|
825
|
+
builder.addFieldOffset(41, acceptedPaymentMethodsOffset, 0);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
static createAcceptedPaymentMethodsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
|
|
829
|
+
builder.startVector(4, data.length, 4);
|
|
830
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
831
|
+
builder.addOffset(data[i]!);
|
|
832
|
+
}
|
|
833
|
+
return builder.endVector();
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
static startAcceptedPaymentMethodsVector(builder:flatbuffers.Builder, numElems:number) {
|
|
837
|
+
builder.startVector(4, numElems, 4);
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
static addListingStatus(builder:flatbuffers.Builder, listingStatus:publicationState) {
|
|
841
|
+
builder.addFieldInt8(42, listingStatus, publicationState.Public);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
static addSignature(builder:flatbuffers.Builder, signatureOffset:flatbuffers.Offset) {
|
|
845
|
+
builder.addFieldOffset(43, signatureOffset, 0);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
static createSignatureVector(builder:flatbuffers.Builder, data:number[]|Uint8Array):flatbuffers.Offset {
|
|
849
|
+
builder.startVector(1, data.length, 1);
|
|
850
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
851
|
+
builder.addInt8(data[i]!);
|
|
852
|
+
}
|
|
853
|
+
return builder.endVector();
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
static startSignatureVector(builder:flatbuffers.Builder, numElems:number) {
|
|
857
|
+
builder.startVector(1, numElems, 1);
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
static endPLG(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
861
|
+
const offset = builder.endObject();
|
|
862
|
+
builder.requiredField(offset, 4) // PLUGIN_ID
|
|
863
|
+
builder.requiredField(offset, 6) // NAME
|
|
864
|
+
builder.requiredField(offset, 8) // VERSION
|
|
865
|
+
return offset;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
static finishPLGBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
|
|
869
|
+
builder.finish(offset, '$PLG');
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
static finishSizePrefixedPLGBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
|
|
873
|
+
builder.finish(offset, '$PLG', true);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
static createPLG(builder:flatbuffers.Builder, pluginIdOffset:flatbuffers.Offset, nameOffset:flatbuffers.Offset, versionOffset:flatbuffers.Offset, descriptionOffset:flatbuffers.Offset, taglineOffset:flatbuffers.Offset, pluginType:pluginCategory, publisherNameOffset:flatbuffers.Offset, publisherHandleOffset:flatbuffers.Offset, publisherUrlOffset:flatbuffers.Offset, supportUrlOffset:flatbuffers.Offset, tagsOffset:flatbuffers.Offset, featuresOffset:flatbuffers.Offset, screenshotUrlsOffset:flatbuffers.Offset, bannerUrlOffset:flatbuffers.Offset, abiVersion:number, wasmHashOffset:flatbuffers.Offset, wasmSize:bigint, wasmCidOffset:flatbuffers.Offset, encryptedWasmHashOffset:flatbuffers.Offset, encryptedWasmSize:bigint, entryFunctionsOffset:flatbuffers.Offset, requiredSchemasOffset:flatbuffers.Offset, dependenciesOffset:flatbuffers.Offset, capabilitiesOffset:flatbuffers.Offset, providerPeerIdOffset:flatbuffers.Offset, providerEpmCidOffset:flatbuffers.Offset, encrypted:boolean, requiredScopeOffset:flatbuffers.Offset, keyIdOffset:flatbuffers.Offset, allowedDomainsOffset:flatbuffers.Offset, maxGrantTimeoutMs:bigint, minPermissionsOffset:flatbuffers.Offset, createdAt:bigint, updatedAt:bigint, documentationUrlOffset:flatbuffers.Offset, changelogUrlOffset:flatbuffers.Offset, iconUrlOffset:flatbuffers.Offset, licenseOffset:flatbuffers.Offset, paymentModel:purchaseTier, priceUsdCents:number, subscriptionPeriodDays:number, acceptedPaymentMethodsOffset:flatbuffers.Offset, listingStatus:publicationState, signatureOffset:flatbuffers.Offset):flatbuffers.Offset {
|
|
877
|
+
PLG.startPLG(builder);
|
|
878
|
+
PLG.addPluginId(builder, pluginIdOffset);
|
|
879
|
+
PLG.addName(builder, nameOffset);
|
|
880
|
+
PLG.addVersion(builder, versionOffset);
|
|
881
|
+
PLG.addDescription(builder, descriptionOffset);
|
|
882
|
+
PLG.addTagline(builder, taglineOffset);
|
|
883
|
+
PLG.addPluginType(builder, pluginType);
|
|
884
|
+
PLG.addPublisherName(builder, publisherNameOffset);
|
|
885
|
+
PLG.addPublisherHandle(builder, publisherHandleOffset);
|
|
886
|
+
PLG.addPublisherUrl(builder, publisherUrlOffset);
|
|
887
|
+
PLG.addSupportUrl(builder, supportUrlOffset);
|
|
888
|
+
PLG.addTags(builder, tagsOffset);
|
|
889
|
+
PLG.addFeatures(builder, featuresOffset);
|
|
890
|
+
PLG.addScreenshotUrls(builder, screenshotUrlsOffset);
|
|
891
|
+
PLG.addBannerUrl(builder, bannerUrlOffset);
|
|
892
|
+
PLG.addAbiVersion(builder, abiVersion);
|
|
893
|
+
PLG.addWasmHash(builder, wasmHashOffset);
|
|
894
|
+
PLG.addWasmSize(builder, wasmSize);
|
|
895
|
+
PLG.addWasmCid(builder, wasmCidOffset);
|
|
896
|
+
PLG.addEncryptedWasmHash(builder, encryptedWasmHashOffset);
|
|
897
|
+
PLG.addEncryptedWasmSize(builder, encryptedWasmSize);
|
|
898
|
+
PLG.addEntryFunctions(builder, entryFunctionsOffset);
|
|
899
|
+
PLG.addRequiredSchemas(builder, requiredSchemasOffset);
|
|
900
|
+
PLG.addDependencies(builder, dependenciesOffset);
|
|
901
|
+
PLG.addCapabilities(builder, capabilitiesOffset);
|
|
902
|
+
PLG.addProviderPeerId(builder, providerPeerIdOffset);
|
|
903
|
+
PLG.addProviderEpmCid(builder, providerEpmCidOffset);
|
|
904
|
+
PLG.addEncrypted(builder, encrypted);
|
|
905
|
+
PLG.addRequiredScope(builder, requiredScopeOffset);
|
|
906
|
+
PLG.addKeyId(builder, keyIdOffset);
|
|
907
|
+
PLG.addAllowedDomains(builder, allowedDomainsOffset);
|
|
908
|
+
PLG.addMaxGrantTimeoutMs(builder, maxGrantTimeoutMs);
|
|
909
|
+
PLG.addMinPermissions(builder, minPermissionsOffset);
|
|
910
|
+
PLG.addCreatedAt(builder, createdAt);
|
|
911
|
+
PLG.addUpdatedAt(builder, updatedAt);
|
|
912
|
+
PLG.addDocumentationUrl(builder, documentationUrlOffset);
|
|
913
|
+
PLG.addChangelogUrl(builder, changelogUrlOffset);
|
|
914
|
+
PLG.addIconUrl(builder, iconUrlOffset);
|
|
915
|
+
PLG.addLicense(builder, licenseOffset);
|
|
916
|
+
PLG.addPaymentModel(builder, paymentModel);
|
|
917
|
+
PLG.addPriceUsdCents(builder, priceUsdCents);
|
|
918
|
+
PLG.addSubscriptionPeriodDays(builder, subscriptionPeriodDays);
|
|
919
|
+
PLG.addAcceptedPaymentMethods(builder, acceptedPaymentMethodsOffset);
|
|
920
|
+
PLG.addListingStatus(builder, listingStatus);
|
|
921
|
+
PLG.addSignature(builder, signatureOffset);
|
|
922
|
+
return PLG.endPLG(builder);
|
|
923
|
+
}
|
|
924
|
+
}
|