space-data-module-sdk 0.8.0 → 0.8.1
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/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/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/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,66 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import * as flatbuffers from "flatbuffers";
|
|
8
|
+
class PluginCapability {
|
|
9
|
+
constructor() {
|
|
10
|
+
__publicField(this, "bb", null);
|
|
11
|
+
__publicField(this, "bb_pos", 0);
|
|
12
|
+
}
|
|
13
|
+
__init(i, bb) {
|
|
14
|
+
this.bb_pos = i;
|
|
15
|
+
this.bb = bb;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
static getRootAsPluginCapability(bb, obj) {
|
|
19
|
+
return (obj || new PluginCapability()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
20
|
+
}
|
|
21
|
+
static getSizePrefixedRootAsPluginCapability(bb, obj) {
|
|
22
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
23
|
+
return (obj || new PluginCapability()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
24
|
+
}
|
|
25
|
+
name(optionalEncoding) {
|
|
26
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
27
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
28
|
+
}
|
|
29
|
+
version(optionalEncoding) {
|
|
30
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
31
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Whether this capability is required
|
|
35
|
+
*/
|
|
36
|
+
required() {
|
|
37
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
38
|
+
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
39
|
+
}
|
|
40
|
+
static startPluginCapability(builder) {
|
|
41
|
+
builder.startObject(3);
|
|
42
|
+
}
|
|
43
|
+
static addName(builder, nameOffset) {
|
|
44
|
+
builder.addFieldOffset(0, nameOffset, 0);
|
|
45
|
+
}
|
|
46
|
+
static addVersion(builder, versionOffset) {
|
|
47
|
+
builder.addFieldOffset(1, versionOffset, 0);
|
|
48
|
+
}
|
|
49
|
+
static addRequired(builder, required) {
|
|
50
|
+
builder.addFieldInt8(2, +required, 0);
|
|
51
|
+
}
|
|
52
|
+
static endPluginCapability(builder) {
|
|
53
|
+
const offset = builder.endObject();
|
|
54
|
+
return offset;
|
|
55
|
+
}
|
|
56
|
+
static createPluginCapability(builder, nameOffset, versionOffset, required) {
|
|
57
|
+
PluginCapability.startPluginCapability(builder);
|
|
58
|
+
PluginCapability.addName(builder, nameOffset);
|
|
59
|
+
PluginCapability.addVersion(builder, versionOffset);
|
|
60
|
+
PluginCapability.addRequired(builder, required);
|
|
61
|
+
return PluginCapability.endPluginCapability(builder);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
PluginCapability
|
|
66
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
/**
|
|
8
|
+
* Plugin capability declaration
|
|
9
|
+
*/
|
|
10
|
+
export class PluginCapability {
|
|
11
|
+
bb: flatbuffers.ByteBuffer|null = null;
|
|
12
|
+
bb_pos = 0;
|
|
13
|
+
__init(i:number, bb:flatbuffers.ByteBuffer):PluginCapability {
|
|
14
|
+
this.bb_pos = i;
|
|
15
|
+
this.bb = bb;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static getRootAsPluginCapability(bb:flatbuffers.ByteBuffer, obj?:PluginCapability):PluginCapability {
|
|
20
|
+
return (obj || new PluginCapability()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static getSizePrefixedRootAsPluginCapability(bb:flatbuffers.ByteBuffer, obj?:PluginCapability):PluginCapability {
|
|
24
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
25
|
+
return (obj || new PluginCapability()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Capability name, e.g., "gpu_compute", "wasm_simd"
|
|
30
|
+
*/
|
|
31
|
+
name():string|null
|
|
32
|
+
name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
33
|
+
name(optionalEncoding?:any):string|Uint8Array|null {
|
|
34
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
35
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Capability version
|
|
40
|
+
*/
|
|
41
|
+
version():string|null
|
|
42
|
+
version(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
43
|
+
version(optionalEncoding?:any):string|Uint8Array|null {
|
|
44
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
45
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Whether this capability is required
|
|
50
|
+
*/
|
|
51
|
+
required():boolean {
|
|
52
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
53
|
+
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static startPluginCapability(builder:flatbuffers.Builder) {
|
|
57
|
+
builder.startObject(3);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
|
|
61
|
+
builder.addFieldOffset(0, nameOffset, 0);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
static addVersion(builder:flatbuffers.Builder, versionOffset:flatbuffers.Offset) {
|
|
65
|
+
builder.addFieldOffset(1, versionOffset, 0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static addRequired(builder:flatbuffers.Builder, required:boolean) {
|
|
69
|
+
builder.addFieldInt8(2, +required, +false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
static endPluginCapability(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
73
|
+
const offset = builder.endObject();
|
|
74
|
+
return offset;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static createPluginCapability(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset, versionOffset:flatbuffers.Offset, required:boolean):flatbuffers.Offset {
|
|
78
|
+
PluginCapability.startPluginCapability(builder);
|
|
79
|
+
PluginCapability.addName(builder, nameOffset);
|
|
80
|
+
PluginCapability.addVersion(builder, versionOffset);
|
|
81
|
+
PluginCapability.addRequired(builder, required);
|
|
82
|
+
return PluginCapability.endPluginCapability(builder);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var pluginCategory = /* @__PURE__ */ ((pluginCategory2) => {
|
|
2
|
+
pluginCategory2[pluginCategory2["Sensor"] = 0] = "Sensor";
|
|
3
|
+
pluginCategory2[pluginCategory2["Propagator"] = 1] = "Propagator";
|
|
4
|
+
pluginCategory2[pluginCategory2["Renderer"] = 2] = "Renderer";
|
|
5
|
+
pluginCategory2[pluginCategory2["Analysis"] = 3] = "Analysis";
|
|
6
|
+
pluginCategory2[pluginCategory2["DataSource"] = 4] = "DataSource";
|
|
7
|
+
pluginCategory2[pluginCategory2["EW"] = 5] = "EW";
|
|
8
|
+
pluginCategory2[pluginCategory2["Comms"] = 6] = "Comms";
|
|
9
|
+
pluginCategory2[pluginCategory2["Physics"] = 7] = "Physics";
|
|
10
|
+
pluginCategory2[pluginCategory2["Shader"] = 8] = "Shader";
|
|
11
|
+
return pluginCategory2;
|
|
12
|
+
})(pluginCategory || {});
|
|
13
|
+
export {
|
|
14
|
+
pluginCategory
|
|
15
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* Plugin type category
|
|
7
|
+
*/
|
|
8
|
+
export enum pluginCategory {
|
|
9
|
+
/**
|
|
10
|
+
* Sensor simulation and analysis
|
|
11
|
+
*/
|
|
12
|
+
Sensor = 0,
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Orbital propagation algorithms
|
|
16
|
+
*/
|
|
17
|
+
Propagator = 1,
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Custom rendering/visualization
|
|
21
|
+
*/
|
|
22
|
+
Renderer = 2,
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Data analysis and processing
|
|
26
|
+
*/
|
|
27
|
+
Analysis = 3,
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* External data source integration
|
|
31
|
+
*/
|
|
32
|
+
DataSource = 4,
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Electronic warfare simulation
|
|
36
|
+
*/
|
|
37
|
+
EW = 5,
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Communications modeling
|
|
41
|
+
*/
|
|
42
|
+
Comms = 6,
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Physics simulation
|
|
46
|
+
*/
|
|
47
|
+
Physics = 7,
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* GLSL shader plugins for custom visualization
|
|
51
|
+
*/
|
|
52
|
+
Shader = 8
|
|
53
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import * as flatbuffers from "flatbuffers";
|
|
8
|
+
class PluginDependency {
|
|
9
|
+
constructor() {
|
|
10
|
+
__publicField(this, "bb", null);
|
|
11
|
+
__publicField(this, "bb_pos", 0);
|
|
12
|
+
}
|
|
13
|
+
__init(i, bb) {
|
|
14
|
+
this.bb_pos = i;
|
|
15
|
+
this.bb = bb;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
static getRootAsPluginDependency(bb, obj) {
|
|
19
|
+
return (obj || new PluginDependency()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
20
|
+
}
|
|
21
|
+
static getSizePrefixedRootAsPluginDependency(bb, obj) {
|
|
22
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
23
|
+
return (obj || new PluginDependency()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
24
|
+
}
|
|
25
|
+
pluginId(optionalEncoding) {
|
|
26
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
27
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
28
|
+
}
|
|
29
|
+
minVersion(optionalEncoding) {
|
|
30
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
31
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
32
|
+
}
|
|
33
|
+
maxVersion(optionalEncoding) {
|
|
34
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
35
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
36
|
+
}
|
|
37
|
+
static startPluginDependency(builder) {
|
|
38
|
+
builder.startObject(3);
|
|
39
|
+
}
|
|
40
|
+
static addPluginId(builder, pluginIdOffset) {
|
|
41
|
+
builder.addFieldOffset(0, pluginIdOffset, 0);
|
|
42
|
+
}
|
|
43
|
+
static addMinVersion(builder, minVersionOffset) {
|
|
44
|
+
builder.addFieldOffset(1, minVersionOffset, 0);
|
|
45
|
+
}
|
|
46
|
+
static addMaxVersion(builder, maxVersionOffset) {
|
|
47
|
+
builder.addFieldOffset(2, maxVersionOffset, 0);
|
|
48
|
+
}
|
|
49
|
+
static endPluginDependency(builder) {
|
|
50
|
+
const offset = builder.endObject();
|
|
51
|
+
return offset;
|
|
52
|
+
}
|
|
53
|
+
static createPluginDependency(builder, pluginIdOffset, minVersionOffset, maxVersionOffset) {
|
|
54
|
+
PluginDependency.startPluginDependency(builder);
|
|
55
|
+
PluginDependency.addPluginId(builder, pluginIdOffset);
|
|
56
|
+
PluginDependency.addMinVersion(builder, minVersionOffset);
|
|
57
|
+
PluginDependency.addMaxVersion(builder, maxVersionOffset);
|
|
58
|
+
return PluginDependency.endPluginDependency(builder);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
PluginDependency
|
|
63
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
/**
|
|
8
|
+
* Plugin dependency on another plugin
|
|
9
|
+
*/
|
|
10
|
+
export class PluginDependency {
|
|
11
|
+
bb: flatbuffers.ByteBuffer|null = null;
|
|
12
|
+
bb_pos = 0;
|
|
13
|
+
__init(i:number, bb:flatbuffers.ByteBuffer):PluginDependency {
|
|
14
|
+
this.bb_pos = i;
|
|
15
|
+
this.bb = bb;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static getRootAsPluginDependency(bb:flatbuffers.ByteBuffer, obj?:PluginDependency):PluginDependency {
|
|
20
|
+
return (obj || new PluginDependency()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static getSizePrefixedRootAsPluginDependency(bb:flatbuffers.ByteBuffer, obj?:PluginDependency):PluginDependency {
|
|
24
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
25
|
+
return (obj || new PluginDependency()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Plugin ID of the dependency
|
|
30
|
+
*/
|
|
31
|
+
pluginId():string|null
|
|
32
|
+
pluginId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
33
|
+
pluginId(optionalEncoding?:any):string|Uint8Array|null {
|
|
34
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
35
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Minimum version required (semver)
|
|
40
|
+
*/
|
|
41
|
+
minVersion():string|null
|
|
42
|
+
minVersion(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
43
|
+
minVersion(optionalEncoding?:any):string|Uint8Array|null {
|
|
44
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
45
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Maximum version allowed (optional)
|
|
50
|
+
*/
|
|
51
|
+
maxVersion():string|null
|
|
52
|
+
maxVersion(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
53
|
+
maxVersion(optionalEncoding?:any):string|Uint8Array|null {
|
|
54
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
55
|
+
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static startPluginDependency(builder:flatbuffers.Builder) {
|
|
59
|
+
builder.startObject(3);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static addPluginId(builder:flatbuffers.Builder, pluginIdOffset:flatbuffers.Offset) {
|
|
63
|
+
builder.addFieldOffset(0, pluginIdOffset, 0);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static addMinVersion(builder:flatbuffers.Builder, minVersionOffset:flatbuffers.Offset) {
|
|
67
|
+
builder.addFieldOffset(1, minVersionOffset, 0);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static addMaxVersion(builder:flatbuffers.Builder, maxVersionOffset:flatbuffers.Offset) {
|
|
71
|
+
builder.addFieldOffset(2, maxVersionOffset, 0);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
static endPluginDependency(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
75
|
+
const offset = builder.endObject();
|
|
76
|
+
return offset;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
static createPluginDependency(builder:flatbuffers.Builder, pluginIdOffset:flatbuffers.Offset, minVersionOffset:flatbuffers.Offset, maxVersionOffset:flatbuffers.Offset):flatbuffers.Offset {
|
|
80
|
+
PluginDependency.startPluginDependency(builder);
|
|
81
|
+
PluginDependency.addPluginId(builder, pluginIdOffset);
|
|
82
|
+
PluginDependency.addMinVersion(builder, minVersionOffset);
|
|
83
|
+
PluginDependency.addMaxVersion(builder, maxVersionOffset);
|
|
84
|
+
return PluginDependency.endPluginDependency(builder);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var publicationState = /* @__PURE__ */ ((publicationState2) => {
|
|
2
|
+
publicationState2[publicationState2["Public"] = 0] = "Public";
|
|
3
|
+
publicationState2[publicationState2["Unlisted"] = 1] = "Unlisted";
|
|
4
|
+
publicationState2[publicationState2["Retired"] = 2] = "Retired";
|
|
5
|
+
return publicationState2;
|
|
6
|
+
})(publicationState || {});
|
|
7
|
+
export {
|
|
8
|
+
publicationState
|
|
9
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* Publication visibility for the plugin listing
|
|
7
|
+
*/
|
|
8
|
+
export enum publicationState {
|
|
9
|
+
/**
|
|
10
|
+
* Discoverable in public storefront listings
|
|
11
|
+
*/
|
|
12
|
+
Public = 0,
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Addressable directly but hidden from public browse surfaces
|
|
16
|
+
*/
|
|
17
|
+
Unlisted = 1,
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* No longer offered for new installs or purchases
|
|
21
|
+
*/
|
|
22
|
+
Retired = 2
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var purchaseTier = /* @__PURE__ */ ((purchaseTier2) => {
|
|
2
|
+
purchaseTier2[purchaseTier2["Free"] = 0] = "Free";
|
|
3
|
+
purchaseTier2[purchaseTier2["OneTime"] = 1] = "OneTime";
|
|
4
|
+
purchaseTier2[purchaseTier2["Subscription"] = 2] = "Subscription";
|
|
5
|
+
return purchaseTier2;
|
|
6
|
+
})(purchaseTier || {});
|
|
7
|
+
export {
|
|
8
|
+
purchaseTier
|
|
9
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* Storefront payment model for the plugin listing
|
|
7
|
+
*/
|
|
8
|
+
export enum purchaseTier {
|
|
9
|
+
/**
|
|
10
|
+
* No payment required
|
|
11
|
+
*/
|
|
12
|
+
Free = 0,
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Single one-time purchase
|
|
16
|
+
*/
|
|
17
|
+
OneTime = 1,
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Recurring subscription purchase
|
|
21
|
+
*/
|
|
22
|
+
Subscription = 2
|
|
23
|
+
}
|
package/src/invoke/codec.js
CHANGED
package/src/manifest/browser.js
CHANGED
|
@@ -5,6 +5,13 @@ export {
|
|
|
5
5
|
FlatBufferTypeRefT as PayloadTypeRef,
|
|
6
6
|
} from "../generated/orbpro/stream/flat-buffer-type-ref.js";
|
|
7
7
|
export { decodePluginManifest, encodePluginManifest } from "./codec.js";
|
|
8
|
+
export {
|
|
9
|
+
PLG_FILE_IDENTIFIER,
|
|
10
|
+
decodePlgManifest,
|
|
11
|
+
encodePlgManifest,
|
|
12
|
+
isPlgManifestBuffer,
|
|
13
|
+
} from "./plgCodec.js";
|
|
14
|
+
export { legacyManifestToPlg } from "./legacyToPlg.js";
|
|
8
15
|
export { toEmbeddedPluginManifest } from "./normalize.js";
|
|
9
16
|
export {
|
|
10
17
|
clonePayloadTypeRef,
|
package/src/manifest/index.js
CHANGED
|
@@ -5,6 +5,13 @@ export {
|
|
|
5
5
|
FlatBufferTypeRefT as PayloadTypeRef,
|
|
6
6
|
} from "../generated/orbpro/stream/flat-buffer-type-ref.js";
|
|
7
7
|
export { decodePluginManifest, encodePluginManifest } from "./codec.js";
|
|
8
|
+
export {
|
|
9
|
+
PLG_FILE_IDENTIFIER,
|
|
10
|
+
decodePlgManifest,
|
|
11
|
+
encodePlgManifest,
|
|
12
|
+
isPlgManifestBuffer,
|
|
13
|
+
} from "./plgCodec.js";
|
|
14
|
+
export { legacyManifestToPlg } from "./legacyToPlg.js";
|
|
8
15
|
export { toEmbeddedPluginManifest } from "./normalize.js";
|
|
9
16
|
export {
|
|
10
17
|
clonePayloadTypeRef,
|