space-data-module-sdk 0.1.0
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 +139 -0
- package/bin/space-data-module.js +230 -0
- package/package.json +40 -0
- package/schemas/PluginManifest.fbs +144 -0
- package/schemas/TypedArenaBuffer.fbs +78 -0
- package/src/auth/canonicalize.js +72 -0
- package/src/auth/index.js +10 -0
- package/src/auth/permissions.js +190 -0
- package/src/compiler/compileModule.js +237 -0
- package/src/compiler/index.js +7 -0
- package/src/compliance/index.js +56 -0
- package/src/compliance/pluginCompliance.js +574 -0
- package/src/embeddedManifest.js +124 -0
- package/src/generated/orbpro/manifest/accepted-type-set.d.ts +45 -0
- package/src/generated/orbpro/manifest/accepted-type-set.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/accepted-type-set.js +100 -0
- package/src/generated/orbpro/manifest/accepted-type-set.js.map +1 -0
- package/src/generated/orbpro/manifest/accepted-type-set.ts +200 -0
- package/src/generated/orbpro/manifest/build-artifact.d.ts +41 -0
- package/src/generated/orbpro/manifest/build-artifact.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/build-artifact.js +105 -0
- package/src/generated/orbpro/manifest/build-artifact.js.map +1 -0
- package/src/generated/orbpro/manifest/build-artifact.ts +193 -0
- package/src/generated/orbpro/manifest/capability-kind.d.ts +17 -0
- package/src/generated/orbpro/manifest/capability-kind.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/capability-kind.js +20 -0
- package/src/generated/orbpro/manifest/capability-kind.js.map +1 -0
- package/src/generated/orbpro/manifest/capability-kind.ts +20 -0
- package/src/generated/orbpro/manifest/drain-policy.d.ts +9 -0
- package/src/generated/orbpro/manifest/drain-policy.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/drain-policy.js +12 -0
- package/src/generated/orbpro/manifest/drain-policy.js.map +1 -0
- package/src/generated/orbpro/manifest/drain-policy.ts +12 -0
- package/src/generated/orbpro/manifest/host-capability.d.ts +36 -0
- package/src/generated/orbpro/manifest/host-capability.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/host-capability.js +91 -0
- package/src/generated/orbpro/manifest/host-capability.js.map +1 -0
- package/src/generated/orbpro/manifest/host-capability.ts +161 -0
- package/src/generated/orbpro/manifest/method-manifest.d.ts +53 -0
- package/src/generated/orbpro/manifest/method-manifest.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/method-manifest.js +154 -0
- package/src/generated/orbpro/manifest/method-manifest.js.map +1 -0
- package/src/generated/orbpro/manifest/method-manifest.ts +306 -0
- package/src/generated/orbpro/manifest/plugin-family.d.ts +17 -0
- package/src/generated/orbpro/manifest/plugin-family.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/plugin-family.js +20 -0
- package/src/generated/orbpro/manifest/plugin-family.js.map +1 -0
- package/src/generated/orbpro/manifest/plugin-family.ts +20 -0
- package/src/generated/orbpro/manifest/plugin-manifest.d.ts +85 -0
- package/src/generated/orbpro/manifest/plugin-manifest.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/plugin-manifest.js +268 -0
- package/src/generated/orbpro/manifest/plugin-manifest.js.map +1 -0
- package/src/generated/orbpro/manifest/plugin-manifest.ts +562 -0
- package/src/generated/orbpro/manifest/port-manifest.d.ts +70 -0
- package/src/generated/orbpro/manifest/port-manifest.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/port-manifest.js +150 -0
- package/src/generated/orbpro/manifest/port-manifest.js.map +1 -0
- package/src/generated/orbpro/manifest/port-manifest.ts +284 -0
- package/src/generated/orbpro/manifest/protocol-spec.d.ts +41 -0
- package/src/generated/orbpro/manifest/protocol-spec.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/protocol-spec.js +105 -0
- package/src/generated/orbpro/manifest/protocol-spec.js.map +1 -0
- package/src/generated/orbpro/manifest/protocol-spec.ts +205 -0
- package/src/generated/orbpro/manifest/timer-spec.d.ts +40 -0
- package/src/generated/orbpro/manifest/timer-spec.d.ts.map +1 -0
- package/src/generated/orbpro/manifest/timer-spec.js +104 -0
- package/src/generated/orbpro/manifest/timer-spec.js.map +1 -0
- package/src/generated/orbpro/manifest/timer-spec.ts +195 -0
- package/src/generated/orbpro/manifest.js +14 -0
- package/src/generated/orbpro/stream/buffer-mutability.d.ts +9 -0
- package/src/generated/orbpro/stream/buffer-mutability.d.ts.map +1 -0
- package/src/generated/orbpro/stream/buffer-mutability.js +12 -0
- package/src/generated/orbpro/stream/buffer-mutability.js.map +1 -0
- package/src/generated/orbpro/stream/buffer-mutability.ts +12 -0
- package/src/generated/orbpro/stream/buffer-ownership.d.ts +10 -0
- package/src/generated/orbpro/stream/buffer-ownership.d.ts.map +1 -0
- package/src/generated/orbpro/stream/buffer-ownership.js +13 -0
- package/src/generated/orbpro/stream/buffer-ownership.js.map +1 -0
- package/src/generated/orbpro/stream/buffer-ownership.ts +13 -0
- package/src/generated/orbpro/stream/flat-buffer-type-ref.d.ts +51 -0
- package/src/generated/orbpro/stream/flat-buffer-type-ref.d.ts.map +1 -0
- package/src/generated/orbpro/stream/flat-buffer-type-ref.js +115 -0
- package/src/generated/orbpro/stream/flat-buffer-type-ref.js.map +1 -0
- package/src/generated/orbpro/stream/flat-buffer-type-ref.ts +222 -0
- package/src/generated/orbpro/stream/typed-arena-buffer.d.ts +100 -0
- package/src/generated/orbpro/stream/typed-arena-buffer.d.ts.map +1 -0
- package/src/generated/orbpro/stream/typed-arena-buffer.js +215 -0
- package/src/generated/orbpro/stream/typed-arena-buffer.js.map +1 -0
- package/src/generated/orbpro/stream/typed-arena-buffer.ts +344 -0
- package/src/index.js +8 -0
- package/src/manifest/codec.js +40 -0
- package/src/manifest/index.js +9 -0
- package/src/manifest/normalize.js +275 -0
- package/src/runtime/bufferLike.js +28 -0
- package/src/runtime/constants.js +34 -0
- package/src/standards/index.js +153 -0
- package/src/standards/sharedCatalog.js +196 -0
- package/src/transport/index.js +8 -0
- package/src/transport/pki.js +140 -0
- package/src/utils/crypto.js +8 -0
- package/src/utils/encoding.js +54 -0
- package/src/utils/wasmCrypto.js +70 -0
|
@@ -0,0 +1,193 @@
|
|
|
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
|
+
* Build artifact emitted by the plugin toolchain.
|
|
9
|
+
*/
|
|
10
|
+
export class BuildArtifact implements flatbuffers.IUnpackableObject<BuildArtifactT> {
|
|
11
|
+
bb: flatbuffers.ByteBuffer | null = null;
|
|
12
|
+
bb_pos = 0;
|
|
13
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): BuildArtifact {
|
|
14
|
+
this.bb_pos = i;
|
|
15
|
+
this.bb = bb;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static getRootAsBuildArtifact(
|
|
20
|
+
bb: flatbuffers.ByteBuffer,
|
|
21
|
+
obj?: BuildArtifact,
|
|
22
|
+
): BuildArtifact {
|
|
23
|
+
return (obj || new BuildArtifact()).__init(
|
|
24
|
+
bb.readInt32(bb.position()) + bb.position(),
|
|
25
|
+
bb,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static getSizePrefixedRootAsBuildArtifact(
|
|
30
|
+
bb: flatbuffers.ByteBuffer,
|
|
31
|
+
obj?: BuildArtifact,
|
|
32
|
+
): BuildArtifact {
|
|
33
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
34
|
+
return (obj || new BuildArtifact()).__init(
|
|
35
|
+
bb.readInt32(bb.position()) + bb.position(),
|
|
36
|
+
bb,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
artifactId(): string | null;
|
|
41
|
+
artifactId(
|
|
42
|
+
optionalEncoding: flatbuffers.Encoding,
|
|
43
|
+
): string | Uint8Array | null;
|
|
44
|
+
artifactId(optionalEncoding?: any): string | Uint8Array | null {
|
|
45
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
46
|
+
return offset
|
|
47
|
+
? this.bb!.__string(this.bb_pos + offset, optionalEncoding)
|
|
48
|
+
: null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
kind(): string | null;
|
|
52
|
+
kind(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
53
|
+
kind(optionalEncoding?: any): string | Uint8Array | null {
|
|
54
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
55
|
+
return offset
|
|
56
|
+
? this.bb!.__string(this.bb_pos + offset, optionalEncoding)
|
|
57
|
+
: null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
path(): string | null;
|
|
61
|
+
path(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
62
|
+
path(optionalEncoding?: any): string | Uint8Array | null {
|
|
63
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
64
|
+
return offset
|
|
65
|
+
? this.bb!.__string(this.bb_pos + offset, optionalEncoding)
|
|
66
|
+
: null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
target(): string | null;
|
|
70
|
+
target(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
71
|
+
target(optionalEncoding?: any): string | Uint8Array | null {
|
|
72
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
73
|
+
return offset
|
|
74
|
+
? this.bb!.__string(this.bb_pos + offset, optionalEncoding)
|
|
75
|
+
: null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
entrySymbol(): string | null;
|
|
79
|
+
entrySymbol(
|
|
80
|
+
optionalEncoding: flatbuffers.Encoding,
|
|
81
|
+
): string | Uint8Array | null;
|
|
82
|
+
entrySymbol(optionalEncoding?: any): string | Uint8Array | null {
|
|
83
|
+
const offset = this.bb!.__offset(this.bb_pos, 12);
|
|
84
|
+
return offset
|
|
85
|
+
? this.bb!.__string(this.bb_pos + offset, optionalEncoding)
|
|
86
|
+
: null;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static startBuildArtifact(builder: flatbuffers.Builder) {
|
|
90
|
+
builder.startObject(5);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static addArtifactId(
|
|
94
|
+
builder: flatbuffers.Builder,
|
|
95
|
+
artifactIdOffset: flatbuffers.Offset,
|
|
96
|
+
) {
|
|
97
|
+
builder.addFieldOffset(0, artifactIdOffset, 0);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static addKind(builder: flatbuffers.Builder, kindOffset: flatbuffers.Offset) {
|
|
101
|
+
builder.addFieldOffset(1, kindOffset, 0);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
static addPath(builder: flatbuffers.Builder, pathOffset: flatbuffers.Offset) {
|
|
105
|
+
builder.addFieldOffset(2, pathOffset, 0);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static addTarget(
|
|
109
|
+
builder: flatbuffers.Builder,
|
|
110
|
+
targetOffset: flatbuffers.Offset,
|
|
111
|
+
) {
|
|
112
|
+
builder.addFieldOffset(3, targetOffset, 0);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static addEntrySymbol(
|
|
116
|
+
builder: flatbuffers.Builder,
|
|
117
|
+
entrySymbolOffset: flatbuffers.Offset,
|
|
118
|
+
) {
|
|
119
|
+
builder.addFieldOffset(4, entrySymbolOffset, 0);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static endBuildArtifact(builder: flatbuffers.Builder): flatbuffers.Offset {
|
|
123
|
+
const offset = builder.endObject();
|
|
124
|
+
builder.requiredField(offset, 4); // artifact_id
|
|
125
|
+
builder.requiredField(offset, 8); // path
|
|
126
|
+
return offset;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
static createBuildArtifact(
|
|
130
|
+
builder: flatbuffers.Builder,
|
|
131
|
+
artifactIdOffset: flatbuffers.Offset,
|
|
132
|
+
kindOffset: flatbuffers.Offset,
|
|
133
|
+
pathOffset: flatbuffers.Offset,
|
|
134
|
+
targetOffset: flatbuffers.Offset,
|
|
135
|
+
entrySymbolOffset: flatbuffers.Offset,
|
|
136
|
+
): flatbuffers.Offset {
|
|
137
|
+
BuildArtifact.startBuildArtifact(builder);
|
|
138
|
+
BuildArtifact.addArtifactId(builder, artifactIdOffset);
|
|
139
|
+
BuildArtifact.addKind(builder, kindOffset);
|
|
140
|
+
BuildArtifact.addPath(builder, pathOffset);
|
|
141
|
+
BuildArtifact.addTarget(builder, targetOffset);
|
|
142
|
+
BuildArtifact.addEntrySymbol(builder, entrySymbolOffset);
|
|
143
|
+
return BuildArtifact.endBuildArtifact(builder);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
unpack(): BuildArtifactT {
|
|
147
|
+
return new BuildArtifactT(
|
|
148
|
+
this.artifactId(),
|
|
149
|
+
this.kind(),
|
|
150
|
+
this.path(),
|
|
151
|
+
this.target(),
|
|
152
|
+
this.entrySymbol(),
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
unpackTo(_o: BuildArtifactT): void {
|
|
157
|
+
_o.artifactId = this.artifactId();
|
|
158
|
+
_o.kind = this.kind();
|
|
159
|
+
_o.path = this.path();
|
|
160
|
+
_o.target = this.target();
|
|
161
|
+
_o.entrySymbol = this.entrySymbol();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export class BuildArtifactT implements flatbuffers.IGeneratedObject {
|
|
166
|
+
constructor(
|
|
167
|
+
public artifactId: string | Uint8Array | null = null,
|
|
168
|
+
public kind: string | Uint8Array | null = null,
|
|
169
|
+
public path: string | Uint8Array | null = null,
|
|
170
|
+
public target: string | Uint8Array | null = null,
|
|
171
|
+
public entrySymbol: string | Uint8Array | null = null,
|
|
172
|
+
) {}
|
|
173
|
+
|
|
174
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset {
|
|
175
|
+
const artifactId =
|
|
176
|
+
this.artifactId !== null ? builder.createString(this.artifactId!) : 0;
|
|
177
|
+
const kind = this.kind !== null ? builder.createString(this.kind!) : 0;
|
|
178
|
+
const path = this.path !== null ? builder.createString(this.path!) : 0;
|
|
179
|
+
const target =
|
|
180
|
+
this.target !== null ? builder.createString(this.target!) : 0;
|
|
181
|
+
const entrySymbol =
|
|
182
|
+
this.entrySymbol !== null ? builder.createString(this.entrySymbol!) : 0;
|
|
183
|
+
|
|
184
|
+
return BuildArtifact.createBuildArtifact(
|
|
185
|
+
builder,
|
|
186
|
+
artifactId,
|
|
187
|
+
kind,
|
|
188
|
+
path,
|
|
189
|
+
target,
|
|
190
|
+
entrySymbol,
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host capability requested by a plugin.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum CapabilityKind {
|
|
5
|
+
CLOCK = 0,
|
|
6
|
+
RANDOM = 1,
|
|
7
|
+
LOGGING = 2,
|
|
8
|
+
TIMERS = 3,
|
|
9
|
+
PUBSUB = 4,
|
|
10
|
+
PROTOCOL_DIAL = 5,
|
|
11
|
+
PROTOCOL_HANDLE = 6,
|
|
12
|
+
STORAGE_QUERY = 7,
|
|
13
|
+
SCENE_ACCESS = 8,
|
|
14
|
+
ENTITY_ACCESS = 9,
|
|
15
|
+
RENDER_HOOKS = 10
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=capability-kind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability-kind.d.ts","sourceRoot":"","sources":["../../../../../../../../Users/tj/software/OrbPro/packages/plugin-sdk/src/generated/orbpro/manifest/capability-kind.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,oBAAY,cAAc;IACxB,KAAK,IAAI;IACT,MAAM,IAAI;IACV,OAAO,IAAI;IACX,MAAM,IAAI;IACV,MAAM,IAAI;IACV,aAAa,IAAI;IACjB,eAAe,IAAI;IACnB,aAAa,IAAI;IACjB,YAAY,IAAI;IAChB,aAAa,IAAI;IACjB,YAAY,KAAK;CAClB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
3
|
+
/**
|
|
4
|
+
* Host capability requested by a plugin.
|
|
5
|
+
*/
|
|
6
|
+
export var CapabilityKind;
|
|
7
|
+
(function (CapabilityKind) {
|
|
8
|
+
CapabilityKind[CapabilityKind["CLOCK"] = 0] = "CLOCK";
|
|
9
|
+
CapabilityKind[CapabilityKind["RANDOM"] = 1] = "RANDOM";
|
|
10
|
+
CapabilityKind[CapabilityKind["LOGGING"] = 2] = "LOGGING";
|
|
11
|
+
CapabilityKind[CapabilityKind["TIMERS"] = 3] = "TIMERS";
|
|
12
|
+
CapabilityKind[CapabilityKind["PUBSUB"] = 4] = "PUBSUB";
|
|
13
|
+
CapabilityKind[CapabilityKind["PROTOCOL_DIAL"] = 5] = "PROTOCOL_DIAL";
|
|
14
|
+
CapabilityKind[CapabilityKind["PROTOCOL_HANDLE"] = 6] = "PROTOCOL_HANDLE";
|
|
15
|
+
CapabilityKind[CapabilityKind["STORAGE_QUERY"] = 7] = "STORAGE_QUERY";
|
|
16
|
+
CapabilityKind[CapabilityKind["SCENE_ACCESS"] = 8] = "SCENE_ACCESS";
|
|
17
|
+
CapabilityKind[CapabilityKind["ENTITY_ACCESS"] = 9] = "ENTITY_ACCESS";
|
|
18
|
+
CapabilityKind[CapabilityKind["RENDER_HOOKS"] = 10] = "RENDER_HOOKS";
|
|
19
|
+
})(CapabilityKind || (CapabilityKind = {}));
|
|
20
|
+
//# sourceMappingURL=capability-kind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability-kind.js","sourceRoot":"","sources":["../../../../../../../../Users/tj/software/OrbPro/packages/plugin-sdk/src/generated/orbpro/manifest/capability-kind.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAErE,oIAAoI;AAEpI;;GAEG;AACH,MAAM,CAAN,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB,qDAAS,CAAA;IACT,uDAAU,CAAA;IACV,yDAAW,CAAA;IACX,uDAAU,CAAA;IACV,uDAAU,CAAA;IACV,qEAAiB,CAAA;IACjB,yEAAmB,CAAA;IACnB,qEAAiB,CAAA;IACjB,mEAAgB,CAAA;IAChB,qEAAiB,CAAA;IACjB,oEAAiB,CAAA;AACnB,CAAC,EAZW,cAAc,KAAd,cAAc,QAYzB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* Host capability requested by a plugin.
|
|
7
|
+
*/
|
|
8
|
+
export enum CapabilityKind {
|
|
9
|
+
CLOCK = 0,
|
|
10
|
+
RANDOM = 1,
|
|
11
|
+
LOGGING = 2,
|
|
12
|
+
TIMERS = 3,
|
|
13
|
+
PUBSUB = 4,
|
|
14
|
+
PROTOCOL_DIAL = 5,
|
|
15
|
+
PROTOCOL_HANDLE = 6,
|
|
16
|
+
STORAGE_QUERY = 7,
|
|
17
|
+
SCENE_ACCESS = 8,
|
|
18
|
+
ENTITY_ACCESS = 9,
|
|
19
|
+
RENDER_HOOKS = 10,
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drain-policy.d.ts","sourceRoot":"","sources":["../../../../../../../../Users/tj/software/OrbPro/packages/plugin-sdk/src/generated/orbpro/manifest/drain-policy.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,oBAAY,WAAW;IACrB,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,cAAc,IAAI;CACnB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
3
|
+
/**
|
|
4
|
+
* Drain policy for methods that operate over queued stream frames.
|
|
5
|
+
*/
|
|
6
|
+
export var DrainPolicy;
|
|
7
|
+
(function (DrainPolicy) {
|
|
8
|
+
DrainPolicy[DrainPolicy["SINGLE_SHOT"] = 0] = "SINGLE_SHOT";
|
|
9
|
+
DrainPolicy[DrainPolicy["DRAIN_UNTIL_YIELD"] = 1] = "DRAIN_UNTIL_YIELD";
|
|
10
|
+
DrainPolicy[DrainPolicy["DRAIN_TO_EMPTY"] = 2] = "DRAIN_TO_EMPTY";
|
|
11
|
+
})(DrainPolicy || (DrainPolicy = {}));
|
|
12
|
+
//# sourceMappingURL=drain-policy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drain-policy.js","sourceRoot":"","sources":["../../../../../../../../Users/tj/software/OrbPro/packages/plugin-sdk/src/generated/orbpro/manifest/drain-policy.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAErE,oIAAoI;AAEpI;;GAEG;AACH,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,2DAAe,CAAA;IACf,uEAAqB,CAAA;IACrB,iEAAkB,CAAA;AACpB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
* Drain policy for methods that operate over queued stream frames.
|
|
7
|
+
*/
|
|
8
|
+
export enum DrainPolicy {
|
|
9
|
+
SINGLE_SHOT = 0,
|
|
10
|
+
DRAIN_UNTIL_YIELD = 1,
|
|
11
|
+
DRAIN_TO_EMPTY = 2,
|
|
12
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
import { CapabilityKind } from '../../orbpro/manifest/capability-kind.js';
|
|
3
|
+
/**
|
|
4
|
+
* One host capability dependency.
|
|
5
|
+
*/
|
|
6
|
+
export declare class HostCapability implements flatbuffers.IUnpackableObject<HostCapabilityT> {
|
|
7
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
8
|
+
bb_pos: number;
|
|
9
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): HostCapability;
|
|
10
|
+
static getRootAsHostCapability(bb: flatbuffers.ByteBuffer, obj?: HostCapability): HostCapability;
|
|
11
|
+
static getSizePrefixedRootAsHostCapability(bb: flatbuffers.ByteBuffer, obj?: HostCapability): HostCapability;
|
|
12
|
+
capability(): CapabilityKind;
|
|
13
|
+
scope(): string | null;
|
|
14
|
+
scope(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
15
|
+
required(): boolean;
|
|
16
|
+
description(): string | null;
|
|
17
|
+
description(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
18
|
+
static startHostCapability(builder: flatbuffers.Builder): void;
|
|
19
|
+
static addCapability(builder: flatbuffers.Builder, capability: CapabilityKind): void;
|
|
20
|
+
static addScope(builder: flatbuffers.Builder, scopeOffset: flatbuffers.Offset): void;
|
|
21
|
+
static addRequired(builder: flatbuffers.Builder, required: boolean): void;
|
|
22
|
+
static addDescription(builder: flatbuffers.Builder, descriptionOffset: flatbuffers.Offset): void;
|
|
23
|
+
static endHostCapability(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
24
|
+
static createHostCapability(builder: flatbuffers.Builder, capability: CapabilityKind, scopeOffset: flatbuffers.Offset, required: boolean, descriptionOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
25
|
+
unpack(): HostCapabilityT;
|
|
26
|
+
unpackTo(_o: HostCapabilityT): void;
|
|
27
|
+
}
|
|
28
|
+
export declare class HostCapabilityT implements flatbuffers.IGeneratedObject {
|
|
29
|
+
capability: CapabilityKind;
|
|
30
|
+
scope: string | Uint8Array | null;
|
|
31
|
+
required: boolean;
|
|
32
|
+
description: string | Uint8Array | null;
|
|
33
|
+
constructor(capability?: CapabilityKind, scope?: string | Uint8Array | null, required?: boolean, description?: string | Uint8Array | null);
|
|
34
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=host-capability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-capability.d.ts","sourceRoot":"","sources":["../../../../../../../../Users/tj/software/OrbPro/packages/plugin-sdk/src/generated/orbpro/manifest/host-capability.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAG1E;;GAEG;AACH,qBAAa,cAAe,YAAW,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC;IACnF,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,cAAc;IAM5D,MAAM,CAAC,uBAAuB,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,cAAc,GAAE,cAAc;IAI7F,MAAM,CAAC,mCAAmC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,cAAc,GAAE,cAAc;IAKzG,UAAU,IAAG,cAAc;IAK3B,KAAK,IAAG,MAAM,GAAC,IAAI;IACnB,KAAK,CAAC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;gBAHnC,UAAU,GAAE,cAAqC,EACjD,KAAK,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW,EACpC,QAAQ,GAAE,OAAc,EACxB,WAAW,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW;IAInD,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAWpD"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
3
|
+
import * as flatbuffers from 'flatbuffers';
|
|
4
|
+
import { CapabilityKind } from '../../orbpro/manifest/capability-kind.js';
|
|
5
|
+
/**
|
|
6
|
+
* One host capability dependency.
|
|
7
|
+
*/
|
|
8
|
+
export class HostCapability {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.bb = null;
|
|
11
|
+
this.bb_pos = 0;
|
|
12
|
+
}
|
|
13
|
+
__init(i, bb) {
|
|
14
|
+
this.bb_pos = i;
|
|
15
|
+
this.bb = bb;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
static getRootAsHostCapability(bb, obj) {
|
|
19
|
+
return (obj || new HostCapability()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
20
|
+
}
|
|
21
|
+
static getSizePrefixedRootAsHostCapability(bb, obj) {
|
|
22
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
23
|
+
return (obj || new HostCapability()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
24
|
+
}
|
|
25
|
+
capability() {
|
|
26
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
27
|
+
return offset ? this.bb.readUint16(this.bb_pos + offset) : CapabilityKind.CLOCK;
|
|
28
|
+
}
|
|
29
|
+
scope(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
|
+
required() {
|
|
34
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
35
|
+
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : true;
|
|
36
|
+
}
|
|
37
|
+
description(optionalEncoding) {
|
|
38
|
+
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
39
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
40
|
+
}
|
|
41
|
+
static startHostCapability(builder) {
|
|
42
|
+
builder.startObject(4);
|
|
43
|
+
}
|
|
44
|
+
static addCapability(builder, capability) {
|
|
45
|
+
builder.addFieldInt16(0, capability, CapabilityKind.CLOCK);
|
|
46
|
+
}
|
|
47
|
+
static addScope(builder, scopeOffset) {
|
|
48
|
+
builder.addFieldOffset(1, scopeOffset, 0);
|
|
49
|
+
}
|
|
50
|
+
static addRequired(builder, required) {
|
|
51
|
+
builder.addFieldInt8(2, +required, +true);
|
|
52
|
+
}
|
|
53
|
+
static addDescription(builder, descriptionOffset) {
|
|
54
|
+
builder.addFieldOffset(3, descriptionOffset, 0);
|
|
55
|
+
}
|
|
56
|
+
static endHostCapability(builder) {
|
|
57
|
+
const offset = builder.endObject();
|
|
58
|
+
return offset;
|
|
59
|
+
}
|
|
60
|
+
static createHostCapability(builder, capability, scopeOffset, required, descriptionOffset) {
|
|
61
|
+
HostCapability.startHostCapability(builder);
|
|
62
|
+
HostCapability.addCapability(builder, capability);
|
|
63
|
+
HostCapability.addScope(builder, scopeOffset);
|
|
64
|
+
HostCapability.addRequired(builder, required);
|
|
65
|
+
HostCapability.addDescription(builder, descriptionOffset);
|
|
66
|
+
return HostCapability.endHostCapability(builder);
|
|
67
|
+
}
|
|
68
|
+
unpack() {
|
|
69
|
+
return new HostCapabilityT(this.capability(), this.scope(), this.required(), this.description());
|
|
70
|
+
}
|
|
71
|
+
unpackTo(_o) {
|
|
72
|
+
_o.capability = this.capability();
|
|
73
|
+
_o.scope = this.scope();
|
|
74
|
+
_o.required = this.required();
|
|
75
|
+
_o.description = this.description();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export class HostCapabilityT {
|
|
79
|
+
constructor(capability = CapabilityKind.CLOCK, scope = null, required = true, description = null) {
|
|
80
|
+
this.capability = capability;
|
|
81
|
+
this.scope = scope;
|
|
82
|
+
this.required = required;
|
|
83
|
+
this.description = description;
|
|
84
|
+
}
|
|
85
|
+
pack(builder) {
|
|
86
|
+
const scope = (this.scope !== null ? builder.createString(this.scope) : 0);
|
|
87
|
+
const description = (this.description !== null ? builder.createString(this.description) : 0);
|
|
88
|
+
return HostCapability.createHostCapability(builder, this.capability, scope, this.required, description);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=host-capability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-capability.js","sourceRoot":"","sources":["../../../../../../../../Users/tj/software/OrbPro/packages/plugin-sdk/src/generated/orbpro/manifest/host-capability.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAErE,oIAAoI;AAEpI,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAG1E;;GAEG;AACH,MAAM,OAAO,cAAc;IAA3B;QACE,OAAE,GAAgC,IAAI,CAAC;QACvC,WAAM,GAAG,CAAC,CAAC;IA0Fb,CAAC;IAzFC,MAAM,CAAC,CAAQ,EAAE,EAAyB;QAC1C,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,uBAAuB,CAAC,EAAyB,EAAE,GAAmB;QAC3E,OAAO,CAAC,GAAG,IAAI,IAAI,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,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YAAY,CAAC,IAAI,CAAC,KAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,MAAM,WAAW,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,WAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAE9F,OAAO,cAAc,CAAC,oBAAoB,CAAC,OAAO,EAChD,IAAI,CAAC,UAAU,EACf,KAAK,EACL,IAAI,CAAC,QAAQ,EACb,WAAW,CACZ,CAAC;IACJ,CAAC;CACA"}
|
|
@@ -0,0 +1,161 @@
|
|
|
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 { CapabilityKind } from "../../orbpro/manifest/capability-kind.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* One host capability dependency.
|
|
11
|
+
*/
|
|
12
|
+
export class HostCapability implements flatbuffers.IUnpackableObject<HostCapabilityT> {
|
|
13
|
+
bb: flatbuffers.ByteBuffer | null = null;
|
|
14
|
+
bb_pos = 0;
|
|
15
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): HostCapability {
|
|
16
|
+
this.bb_pos = i;
|
|
17
|
+
this.bb = bb;
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static getRootAsHostCapability(
|
|
22
|
+
bb: flatbuffers.ByteBuffer,
|
|
23
|
+
obj?: HostCapability,
|
|
24
|
+
): HostCapability {
|
|
25
|
+
return (obj || new HostCapability()).__init(
|
|
26
|
+
bb.readInt32(bb.position()) + bb.position(),
|
|
27
|
+
bb,
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static getSizePrefixedRootAsHostCapability(
|
|
32
|
+
bb: flatbuffers.ByteBuffer,
|
|
33
|
+
obj?: HostCapability,
|
|
34
|
+
): HostCapability {
|
|
35
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
36
|
+
return (obj || new HostCapability()).__init(
|
|
37
|
+
bb.readInt32(bb.position()) + bb.position(),
|
|
38
|
+
bb,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
capability(): CapabilityKind {
|
|
43
|
+
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
44
|
+
return offset
|
|
45
|
+
? this.bb!.readUint16(this.bb_pos + offset)
|
|
46
|
+
: CapabilityKind.CLOCK;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
scope(): string | null;
|
|
50
|
+
scope(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
51
|
+
scope(optionalEncoding?: any): string | Uint8Array | null {
|
|
52
|
+
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
53
|
+
return offset
|
|
54
|
+
? this.bb!.__string(this.bb_pos + offset, optionalEncoding)
|
|
55
|
+
: null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
required(): boolean {
|
|
59
|
+
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
60
|
+
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
description(): string | null;
|
|
64
|
+
description(
|
|
65
|
+
optionalEncoding: flatbuffers.Encoding,
|
|
66
|
+
): string | Uint8Array | null;
|
|
67
|
+
description(optionalEncoding?: any): string | Uint8Array | null {
|
|
68
|
+
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
69
|
+
return offset
|
|
70
|
+
? this.bb!.__string(this.bb_pos + offset, optionalEncoding)
|
|
71
|
+
: null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
static startHostCapability(builder: flatbuffers.Builder) {
|
|
75
|
+
builder.startObject(4);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static addCapability(
|
|
79
|
+
builder: flatbuffers.Builder,
|
|
80
|
+
capability: CapabilityKind,
|
|
81
|
+
) {
|
|
82
|
+
builder.addFieldInt16(0, capability, CapabilityKind.CLOCK);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static addScope(
|
|
86
|
+
builder: flatbuffers.Builder,
|
|
87
|
+
scopeOffset: flatbuffers.Offset,
|
|
88
|
+
) {
|
|
89
|
+
builder.addFieldOffset(1, scopeOffset, 0);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static addRequired(builder: flatbuffers.Builder, required: boolean) {
|
|
93
|
+
builder.addFieldInt8(2, +required, +true);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
static addDescription(
|
|
97
|
+
builder: flatbuffers.Builder,
|
|
98
|
+
descriptionOffset: flatbuffers.Offset,
|
|
99
|
+
) {
|
|
100
|
+
builder.addFieldOffset(3, descriptionOffset, 0);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
static endHostCapability(builder: flatbuffers.Builder): flatbuffers.Offset {
|
|
104
|
+
const offset = builder.endObject();
|
|
105
|
+
return offset;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static createHostCapability(
|
|
109
|
+
builder: flatbuffers.Builder,
|
|
110
|
+
capability: CapabilityKind,
|
|
111
|
+
scopeOffset: flatbuffers.Offset,
|
|
112
|
+
required: boolean,
|
|
113
|
+
descriptionOffset: flatbuffers.Offset,
|
|
114
|
+
): flatbuffers.Offset {
|
|
115
|
+
HostCapability.startHostCapability(builder);
|
|
116
|
+
HostCapability.addCapability(builder, capability);
|
|
117
|
+
HostCapability.addScope(builder, scopeOffset);
|
|
118
|
+
HostCapability.addRequired(builder, required);
|
|
119
|
+
HostCapability.addDescription(builder, descriptionOffset);
|
|
120
|
+
return HostCapability.endHostCapability(builder);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
unpack(): HostCapabilityT {
|
|
124
|
+
return new HostCapabilityT(
|
|
125
|
+
this.capability(),
|
|
126
|
+
this.scope(),
|
|
127
|
+
this.required(),
|
|
128
|
+
this.description(),
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
unpackTo(_o: HostCapabilityT): void {
|
|
133
|
+
_o.capability = this.capability();
|
|
134
|
+
_o.scope = this.scope();
|
|
135
|
+
_o.required = this.required();
|
|
136
|
+
_o.description = this.description();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export class HostCapabilityT implements flatbuffers.IGeneratedObject {
|
|
141
|
+
constructor(
|
|
142
|
+
public capability: CapabilityKind = CapabilityKind.CLOCK,
|
|
143
|
+
public scope: string | Uint8Array | null = null,
|
|
144
|
+
public required: boolean = true,
|
|
145
|
+
public description: string | Uint8Array | null = null,
|
|
146
|
+
) {}
|
|
147
|
+
|
|
148
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset {
|
|
149
|
+
const scope = this.scope !== null ? builder.createString(this.scope!) : 0;
|
|
150
|
+
const description =
|
|
151
|
+
this.description !== null ? builder.createString(this.description!) : 0;
|
|
152
|
+
|
|
153
|
+
return HostCapability.createHostCapability(
|
|
154
|
+
builder,
|
|
155
|
+
this.capability,
|
|
156
|
+
scope,
|
|
157
|
+
this.required,
|
|
158
|
+
description,
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
import { DrainPolicy } from '../../orbpro/manifest/drain-policy.js';
|
|
3
|
+
import { PortManifest, PortManifestT } from '../../orbpro/manifest/port-manifest.js';
|
|
4
|
+
/**
|
|
5
|
+
* Canonical method declaration.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MethodManifest implements flatbuffers.IUnpackableObject<MethodManifestT> {
|
|
8
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
9
|
+
bb_pos: number;
|
|
10
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): MethodManifest;
|
|
11
|
+
static getRootAsMethodManifest(bb: flatbuffers.ByteBuffer, obj?: MethodManifest): MethodManifest;
|
|
12
|
+
static getSizePrefixedRootAsMethodManifest(bb: flatbuffers.ByteBuffer, obj?: MethodManifest): MethodManifest;
|
|
13
|
+
methodId(): string | null;
|
|
14
|
+
methodId(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
15
|
+
displayName(): string | null;
|
|
16
|
+
displayName(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
17
|
+
inputPorts(index: number, obj?: PortManifest): PortManifest | null;
|
|
18
|
+
inputPortsLength(): number;
|
|
19
|
+
outputPorts(index: number, obj?: PortManifest): PortManifest | null;
|
|
20
|
+
outputPortsLength(): number;
|
|
21
|
+
maxBatch(): number;
|
|
22
|
+
drainPolicy(): DrainPolicy;
|
|
23
|
+
description(): string | null;
|
|
24
|
+
description(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
25
|
+
static startMethodManifest(builder: flatbuffers.Builder): void;
|
|
26
|
+
static addMethodId(builder: flatbuffers.Builder, methodIdOffset: flatbuffers.Offset): void;
|
|
27
|
+
static addDisplayName(builder: flatbuffers.Builder, displayNameOffset: flatbuffers.Offset): void;
|
|
28
|
+
static addInputPorts(builder: flatbuffers.Builder, inputPortsOffset: flatbuffers.Offset): void;
|
|
29
|
+
static createInputPortsVector(builder: flatbuffers.Builder, data: flatbuffers.Offset[]): flatbuffers.Offset;
|
|
30
|
+
static startInputPortsVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
31
|
+
static addOutputPorts(builder: flatbuffers.Builder, outputPortsOffset: flatbuffers.Offset): void;
|
|
32
|
+
static createOutputPortsVector(builder: flatbuffers.Builder, data: flatbuffers.Offset[]): flatbuffers.Offset;
|
|
33
|
+
static startOutputPortsVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
34
|
+
static addMaxBatch(builder: flatbuffers.Builder, maxBatch: number): void;
|
|
35
|
+
static addDrainPolicy(builder: flatbuffers.Builder, drainPolicy: DrainPolicy): void;
|
|
36
|
+
static addDescription(builder: flatbuffers.Builder, descriptionOffset: flatbuffers.Offset): void;
|
|
37
|
+
static endMethodManifest(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
38
|
+
static createMethodManifest(builder: flatbuffers.Builder, methodIdOffset: flatbuffers.Offset, displayNameOffset: flatbuffers.Offset, inputPortsOffset: flatbuffers.Offset, outputPortsOffset: flatbuffers.Offset, maxBatch: number, drainPolicy: DrainPolicy, descriptionOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
39
|
+
unpack(): MethodManifestT;
|
|
40
|
+
unpackTo(_o: MethodManifestT): void;
|
|
41
|
+
}
|
|
42
|
+
export declare class MethodManifestT implements flatbuffers.IGeneratedObject {
|
|
43
|
+
methodId: string | Uint8Array | null;
|
|
44
|
+
displayName: string | Uint8Array | null;
|
|
45
|
+
inputPorts: (PortManifestT)[];
|
|
46
|
+
outputPorts: (PortManifestT)[];
|
|
47
|
+
maxBatch: number;
|
|
48
|
+
drainPolicy: DrainPolicy;
|
|
49
|
+
description: string | Uint8Array | null;
|
|
50
|
+
constructor(methodId?: string | Uint8Array | null, displayName?: string | Uint8Array | null, inputPorts?: (PortManifestT)[], outputPorts?: (PortManifestT)[], maxBatch?: number, drainPolicy?: DrainPolicy, description?: string | Uint8Array | null);
|
|
51
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=method-manifest.d.ts.map
|