space-data-module-sdk 0.8.26 → 0.9.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.
Files changed (120) hide show
  1. package/README.md +5 -4
  2. package/docs/assembly.js +0 -18
  3. package/docs/assets/ai-credits/ai-credits.js +116 -0
  4. package/docs/assets/sdn-chrome/sdn-chrome.css +434 -0
  5. package/docs/assets/sdn-chrome/sdn-chrome.js +236 -0
  6. package/docs/browser-wasmedge-isomorphic.html +29 -41
  7. package/docs/byo-wasm-quickstart.html +29 -41
  8. package/docs/conformance.html +29 -41
  9. package/docs/events-abi.html +29 -41
  10. package/docs/families/analytics.html +29 -41
  11. package/docs/families/attitude.html +29 -41
  12. package/docs/families/behavior.html +29 -41
  13. package/docs/families/breakup.html +29 -41
  14. package/docs/families/conjunction.html +29 -41
  15. package/docs/families/data-source.html +29 -41
  16. package/docs/families/effects.html +29 -41
  17. package/docs/families/environment.html +29 -41
  18. package/docs/families/estimation.html +29 -41
  19. package/docs/families/gnc.html +29 -41
  20. package/docs/families/maneuver.html +29 -41
  21. package/docs/families/obstruction.html +29 -41
  22. package/docs/families/propagator.html +29 -41
  23. package/docs/families/propulsion.html +29 -41
  24. package/docs/families/reentry.html +29 -41
  25. package/docs/families/rf.html +29 -41
  26. package/docs/families/scheduler.html +29 -41
  27. package/docs/families/sensor.html +29 -41
  28. package/docs/families/signature.html +29 -41
  29. package/docs/flatsql-host-contract.html +29 -41
  30. package/docs/flatsql-streaming-standard.html +29 -41
  31. package/docs/gpu-module-abi.html +29 -41
  32. package/docs/index.html +43 -47
  33. package/docs/isomorphic-pthreads.html +29 -41
  34. package/docs/isomorphic-sdn-runtime-plan.html +29 -41
  35. package/docs/language-runtime-matrix.html +29 -41
  36. package/docs/media/module-sdk-reel-poster.webp +0 -0
  37. package/docs/media/module-sdk-reel.mp4 +0 -0
  38. package/docs/media/module-sdk-reel.webm +0 -0
  39. package/docs/media/reel/reel.css +53 -0
  40. package/docs/media/reel/reel.js +272 -0
  41. package/docs/module-bundle-runtime-plan.html +29 -41
  42. package/docs/module-publication-standard.html +29 -41
  43. package/docs/node-red-default-node-parity.html +29 -41
  44. package/docs/protect-and-sign.html +29 -41
  45. package/docs/protocol-installation.html +29 -41
  46. package/docs/publication-submission.html +29 -41
  47. package/docs/secrets-capability.html +29 -41
  48. package/docs/styles.css +89 -157
  49. package/docs/testing-harness.html +29 -41
  50. package/docs/tri-runtime-parity-gate.html +29 -41
  51. package/docs/tri-runtime-parity.html +29 -41
  52. package/package.json +5 -3
  53. package/schemas/runtime/FlowNotice.fbs +39 -0
  54. package/schemas/runtime/HostOps.fbs +453 -0
  55. package/schemas/runtime/HttpRequest.fbs +25 -0
  56. package/schemas/runtime/HttpResponse.fbs +24 -0
  57. package/schemas/runtime/IngestRequest.fbs +58 -0
  58. package/schemas/runtime/IngestResult.fbs +23 -0
  59. package/schemas/runtime/ModuleConfig.fbs +41 -0
  60. package/schemas/runtime/RuntimeCommon.fbs +33 -0
  61. package/schemas/runtime/TimerTick.fbs +18 -0
  62. package/src/compiler/compileModule.js +20 -2
  63. package/src/generated/runtime/aligned/HostOps_aligned.js +3924 -0
  64. package/src/generated/runtime/aligned/HostOps_aligned.ts +4620 -0
  65. package/src/generated/runtime/aligned/HostOps_enums.js +14 -0
  66. package/src/generated/runtime/aligned/HostOps_enums.ts +7 -0
  67. package/src/generated/runtime/cpp/FlowNotice_generated.h +367 -0
  68. package/src/generated/runtime/cpp/HostOps_aligned.h +3547 -0
  69. package/src/generated/runtime/cpp/HttpRequest_generated.h +317 -0
  70. package/src/generated/runtime/cpp/HttpResponse_generated.h +315 -0
  71. package/src/generated/runtime/cpp/IngestRequest_generated.h +764 -0
  72. package/src/generated/runtime/cpp/IngestResult_generated.h +319 -0
  73. package/src/generated/runtime/cpp/ModuleConfig_generated.h +604 -0
  74. package/src/generated/runtime/cpp/RuntimeCommon_generated.h +410 -0
  75. package/src/generated/runtime/cpp/TimerTick_generated.h +229 -0
  76. package/src/generated/runtime/sdn/runtime/ArchiveTarget.js +78 -0
  77. package/src/generated/runtime/sdn/runtime/ArchiveTarget.ts +104 -0
  78. package/src/generated/runtime/sdn/runtime/ConfigEntry.js +202 -0
  79. package/src/generated/runtime/sdn/runtime/ConfigEntry.ts +251 -0
  80. package/src/generated/runtime/sdn/runtime/ConfigTable.js +80 -0
  81. package/src/generated/runtime/sdn/runtime/ConfigTable.ts +97 -0
  82. package/src/generated/runtime/sdn/runtime/FlowNotice.js +196 -0
  83. package/src/generated/runtime/sdn/runtime/FlowNotice.ts +254 -0
  84. package/src/generated/runtime/sdn/runtime/Header.js +79 -0
  85. package/src/generated/runtime/sdn/runtime/Header.ts +100 -0
  86. package/src/generated/runtime/sdn/runtime/HttpRequest.js +216 -0
  87. package/src/generated/runtime/sdn/runtime/HttpRequest.ts +265 -0
  88. package/src/generated/runtime/sdn/runtime/HttpResponse.js +216 -0
  89. package/src/generated/runtime/sdn/runtime/HttpResponse.ts +267 -0
  90. package/src/generated/runtime/sdn/runtime/IngestRequest.js +121 -0
  91. package/src/generated/runtime/sdn/runtime/IngestRequest.ts +155 -0
  92. package/src/generated/runtime/sdn/runtime/IngestResult.js +184 -0
  93. package/src/generated/runtime/sdn/runtime/IngestResult.ts +235 -0
  94. package/src/generated/runtime/sdn/runtime/ModuleConfig.js +92 -0
  95. package/src/generated/runtime/sdn/runtime/ModuleConfig.ts +114 -0
  96. package/src/generated/runtime/sdn/runtime/Provenance.js +288 -0
  97. package/src/generated/runtime/sdn/runtime/Provenance.ts +368 -0
  98. package/src/generated/runtime/sdn/runtime/SourceTags.js +181 -0
  99. package/src/generated/runtime/sdn/runtime/SourceTags.ts +253 -0
  100. package/src/generated/runtime/sdn/runtime/TimerTick.js +119 -0
  101. package/src/generated/runtime/sdn/runtime/TimerTick.ts +148 -0
  102. package/src/generated/runtime/sdn/runtime/configValueKind.js +12 -0
  103. package/src/generated/runtime/sdn/runtime/configValueKind.ts +19 -0
  104. package/src/generated/runtime/sdn/runtime/flowNoticeKind.js +11 -0
  105. package/src/generated/runtime/sdn/runtime/flowNoticeKind.ts +34 -0
  106. package/src/generated/runtime/sdn/runtime/reconcileMode.js +9 -0
  107. package/src/generated/runtime/sdn/runtime/reconcileMode.ts +23 -0
  108. package/src/generated/runtime/sdn/runtime.js +16 -0
  109. package/src/generated/runtime/sdn/runtime.ts +17 -0
  110. package/src/host/abi.js +20 -3
  111. package/src/host/browserHost.js +2 -0
  112. package/src/host/cpp/typedHostcall.hpp +201 -0
  113. package/src/host/hostWorkerBundleSources.js +3 -3
  114. package/src/host/nodeHost.js +1 -0
  115. package/src/host/typedDispatch.js +230 -0
  116. package/src/index.d.ts +2 -0
  117. package/src/invoke/codec.js +3 -2
  118. package/src/licensing/records.js +10 -1
  119. package/src/standards/runtimeContracts.js +536 -0
  120. package/src/standards/sharedCatalog.js +27 -0
@@ -0,0 +1,253 @@
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
+
9
+ /**
10
+ * Where a batch of records comes from and how it may be used: the source tags SDN stores beside every record
11
+ * (they are metadata about a record, never bytes inside it).
12
+ */
13
+ export class SourceTags implements flatbuffers.IUnpackableObject<SourceTagsT> {
14
+ bb: flatbuffers.ByteBuffer|null = null;
15
+ bb_pos = 0;
16
+ __init(i:number, bb:flatbuffers.ByteBuffer):SourceTags {
17
+ this.bb_pos = i;
18
+ this.bb = bb;
19
+ return this;
20
+ }
21
+
22
+ static getRootAsSourceTags(bb:flatbuffers.ByteBuffer, obj?:SourceTags):SourceTags {
23
+ return (obj || new SourceTags()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
24
+ }
25
+
26
+ static getSizePrefixedRootAsSourceTags(bb:flatbuffers.ByteBuffer, obj?:SourceTags):SourceTags {
27
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
28
+ return (obj || new SourceTags()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
29
+ }
30
+
31
+ /**
32
+ * Publisher identity, e.g. "noaa-ncep".
33
+ */
34
+ PROVIDER_ID():string|null
35
+ PROVIDER_ID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
36
+ PROVIDER_ID(optionalEncoding?:any):string|Uint8Array|null {
37
+ const offset = this.bb!.__offset(this.bb_pos, 4);
38
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
39
+ }
40
+
41
+ /**
42
+ * The source lane within the provider, e.g. "gfs-0p25-sea".
43
+ */
44
+ SOURCE_NAME():string|null
45
+ SOURCE_NAME(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
46
+ SOURCE_NAME(optionalEncoding?:any):string|Uint8Array|null {
47
+ const offset = this.bb!.__offset(this.bb_pos, 6);
48
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
49
+ }
50
+
51
+ /**
52
+ * The batch the records belong to.
53
+ */
54
+ BATCH_ID():string|null
55
+ BATCH_ID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
56
+ BATCH_ID(optionalEncoding?:any):string|Uint8Array|null {
57
+ const offset = this.bb!.__offset(this.bb_pos, 8);
58
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
59
+ }
60
+
61
+ /**
62
+ * The document the records were made from.
63
+ */
64
+ SOURCE_URL():string|null
65
+ SOURCE_URL(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
66
+ SOURCE_URL(optionalEncoding?:any):string|Uint8Array|null {
67
+ const offset = this.bb!.__offset(this.bb_pos, 10);
68
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
69
+ }
70
+
71
+ /**
72
+ * Content key the records are sealed under ("public" when not sealed).
73
+ */
74
+ CONTENT_KEY_ID():string|null
75
+ CONTENT_KEY_ID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
76
+ CONTENT_KEY_ID(optionalEncoding?:any):string|Uint8Array|null {
77
+ const offset = this.bb!.__offset(this.bb_pos, 12);
78
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
79
+ }
80
+
81
+ /**
82
+ * Producer peer the records are attributed to, e.g. "source:noaa".
83
+ */
84
+ SOURCE_PEER():string|null
85
+ SOURCE_PEER(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
86
+ SOURCE_PEER(optionalEncoding?:any):string|Uint8Array|null {
87
+ const offset = this.bb!.__offset(this.bb_pos, 14);
88
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
89
+ }
90
+
91
+ /**
92
+ * SPDX licence identifier.
93
+ */
94
+ LICENSE():string|null
95
+ LICENSE(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
96
+ LICENSE(optionalEncoding?:any):string|Uint8Array|null {
97
+ const offset = this.bb!.__offset(this.bb_pos, 16);
98
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
99
+ }
100
+
101
+ LICENSE_URL():string|null
102
+ LICENSE_URL(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
103
+ LICENSE_URL(optionalEncoding?:any):string|Uint8Array|null {
104
+ const offset = this.bb!.__offset(this.bb_pos, 18);
105
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
106
+ }
107
+
108
+ CITATION():string|null
109
+ CITATION(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
110
+ CITATION(optionalEncoding?:any):string|Uint8Array|null {
111
+ const offset = this.bb!.__offset(this.bb_pos, 20);
112
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
113
+ }
114
+
115
+ SHARE_ALIKE():boolean {
116
+ const offset = this.bb!.__offset(this.bb_pos, 22);
117
+ return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
118
+ }
119
+
120
+ static startSourceTags(builder:flatbuffers.Builder) {
121
+ builder.startObject(10);
122
+ }
123
+
124
+ static addProviderId(builder:flatbuffers.Builder, PROVIDER_IDOffset:flatbuffers.Offset) {
125
+ builder.addFieldOffset(0, PROVIDER_IDOffset, 0);
126
+ }
127
+
128
+ static addSourceName(builder:flatbuffers.Builder, SOURCE_NAMEOffset:flatbuffers.Offset) {
129
+ builder.addFieldOffset(1, SOURCE_NAMEOffset, 0);
130
+ }
131
+
132
+ static addBatchId(builder:flatbuffers.Builder, BATCH_IDOffset:flatbuffers.Offset) {
133
+ builder.addFieldOffset(2, BATCH_IDOffset, 0);
134
+ }
135
+
136
+ static addSourceUrl(builder:flatbuffers.Builder, SOURCE_URLOffset:flatbuffers.Offset) {
137
+ builder.addFieldOffset(3, SOURCE_URLOffset, 0);
138
+ }
139
+
140
+ static addContentKeyId(builder:flatbuffers.Builder, CONTENT_KEY_IDOffset:flatbuffers.Offset) {
141
+ builder.addFieldOffset(4, CONTENT_KEY_IDOffset, 0);
142
+ }
143
+
144
+ static addSourcePeer(builder:flatbuffers.Builder, SOURCE_PEEROffset:flatbuffers.Offset) {
145
+ builder.addFieldOffset(5, SOURCE_PEEROffset, 0);
146
+ }
147
+
148
+ static addLicense(builder:flatbuffers.Builder, LICENSEOffset:flatbuffers.Offset) {
149
+ builder.addFieldOffset(6, LICENSEOffset, 0);
150
+ }
151
+
152
+ static addLicenseUrl(builder:flatbuffers.Builder, LICENSE_URLOffset:flatbuffers.Offset) {
153
+ builder.addFieldOffset(7, LICENSE_URLOffset, 0);
154
+ }
155
+
156
+ static addCitation(builder:flatbuffers.Builder, CITATIONOffset:flatbuffers.Offset) {
157
+ builder.addFieldOffset(8, CITATIONOffset, 0);
158
+ }
159
+
160
+ static addShareAlike(builder:flatbuffers.Builder, SHARE_ALIKE:boolean) {
161
+ builder.addFieldInt8(9, +SHARE_ALIKE, +false);
162
+ }
163
+
164
+ static endSourceTags(builder:flatbuffers.Builder):flatbuffers.Offset {
165
+ const offset = builder.endObject();
166
+ return offset;
167
+ }
168
+
169
+ static createSourceTags(builder:flatbuffers.Builder, PROVIDER_IDOffset:flatbuffers.Offset, SOURCE_NAMEOffset:flatbuffers.Offset, BATCH_IDOffset:flatbuffers.Offset, SOURCE_URLOffset:flatbuffers.Offset, CONTENT_KEY_IDOffset:flatbuffers.Offset, SOURCE_PEEROffset:flatbuffers.Offset, LICENSEOffset:flatbuffers.Offset, LICENSE_URLOffset:flatbuffers.Offset, CITATIONOffset:flatbuffers.Offset, SHARE_ALIKE:boolean):flatbuffers.Offset {
170
+ SourceTags.startSourceTags(builder);
171
+ SourceTags.addProviderId(builder, PROVIDER_IDOffset);
172
+ SourceTags.addSourceName(builder, SOURCE_NAMEOffset);
173
+ SourceTags.addBatchId(builder, BATCH_IDOffset);
174
+ SourceTags.addSourceUrl(builder, SOURCE_URLOffset);
175
+ SourceTags.addContentKeyId(builder, CONTENT_KEY_IDOffset);
176
+ SourceTags.addSourcePeer(builder, SOURCE_PEEROffset);
177
+ SourceTags.addLicense(builder, LICENSEOffset);
178
+ SourceTags.addLicenseUrl(builder, LICENSE_URLOffset);
179
+ SourceTags.addCitation(builder, CITATIONOffset);
180
+ SourceTags.addShareAlike(builder, SHARE_ALIKE);
181
+ return SourceTags.endSourceTags(builder);
182
+ }
183
+
184
+ unpack(): SourceTagsT {
185
+ return new SourceTagsT(
186
+ this.PROVIDER_ID(),
187
+ this.SOURCE_NAME(),
188
+ this.BATCH_ID(),
189
+ this.SOURCE_URL(),
190
+ this.CONTENT_KEY_ID(),
191
+ this.SOURCE_PEER(),
192
+ this.LICENSE(),
193
+ this.LICENSE_URL(),
194
+ this.CITATION(),
195
+ this.SHARE_ALIKE()
196
+ );
197
+ }
198
+
199
+
200
+ unpackTo(_o: SourceTagsT): void {
201
+ _o.PROVIDER_ID = this.PROVIDER_ID();
202
+ _o.SOURCE_NAME = this.SOURCE_NAME();
203
+ _o.BATCH_ID = this.BATCH_ID();
204
+ _o.SOURCE_URL = this.SOURCE_URL();
205
+ _o.CONTENT_KEY_ID = this.CONTENT_KEY_ID();
206
+ _o.SOURCE_PEER = this.SOURCE_PEER();
207
+ _o.LICENSE = this.LICENSE();
208
+ _o.LICENSE_URL = this.LICENSE_URL();
209
+ _o.CITATION = this.CITATION();
210
+ _o.SHARE_ALIKE = this.SHARE_ALIKE();
211
+ }
212
+ }
213
+
214
+ export class SourceTagsT implements flatbuffers.IGeneratedObject {
215
+ constructor(
216
+ public PROVIDER_ID: string|Uint8Array|null = null,
217
+ public SOURCE_NAME: string|Uint8Array|null = null,
218
+ public BATCH_ID: string|Uint8Array|null = null,
219
+ public SOURCE_URL: string|Uint8Array|null = null,
220
+ public CONTENT_KEY_ID: string|Uint8Array|null = null,
221
+ public SOURCE_PEER: string|Uint8Array|null = null,
222
+ public LICENSE: string|Uint8Array|null = null,
223
+ public LICENSE_URL: string|Uint8Array|null = null,
224
+ public CITATION: string|Uint8Array|null = null,
225
+ public SHARE_ALIKE: boolean = false
226
+ ){}
227
+
228
+
229
+ pack(builder:flatbuffers.Builder): flatbuffers.Offset {
230
+ const PROVIDER_ID = (this.PROVIDER_ID !== null ? builder.createString(this.PROVIDER_ID!) : 0);
231
+ const SOURCE_NAME = (this.SOURCE_NAME !== null ? builder.createString(this.SOURCE_NAME!) : 0);
232
+ const BATCH_ID = (this.BATCH_ID !== null ? builder.createString(this.BATCH_ID!) : 0);
233
+ const SOURCE_URL = (this.SOURCE_URL !== null ? builder.createString(this.SOURCE_URL!) : 0);
234
+ const CONTENT_KEY_ID = (this.CONTENT_KEY_ID !== null ? builder.createString(this.CONTENT_KEY_ID!) : 0);
235
+ const SOURCE_PEER = (this.SOURCE_PEER !== null ? builder.createString(this.SOURCE_PEER!) : 0);
236
+ const LICENSE = (this.LICENSE !== null ? builder.createString(this.LICENSE!) : 0);
237
+ const LICENSE_URL = (this.LICENSE_URL !== null ? builder.createString(this.LICENSE_URL!) : 0);
238
+ const CITATION = (this.CITATION !== null ? builder.createString(this.CITATION!) : 0);
239
+
240
+ return SourceTags.createSourceTags(builder,
241
+ PROVIDER_ID,
242
+ SOURCE_NAME,
243
+ BATCH_ID,
244
+ SOURCE_URL,
245
+ CONTENT_KEY_ID,
246
+ SOURCE_PEER,
247
+ LICENSE,
248
+ LICENSE_URL,
249
+ CITATION,
250
+ this.SHARE_ALIKE
251
+ );
252
+ }
253
+ }
@@ -0,0 +1,119 @@
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) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ import * as flatbuffers from "flatbuffers";
5
+ class TimerTick {
6
+ constructor() {
7
+ __publicField(this, "bb", null);
8
+ __publicField(this, "bb_pos", 0);
9
+ }
10
+ __init(i, bb) {
11
+ this.bb_pos = i;
12
+ this.bb = bb;
13
+ return this;
14
+ }
15
+ static getRootAsTimerTick(bb, obj) {
16
+ return (obj || new TimerTick()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
17
+ }
18
+ static getSizePrefixedRootAsTimerTick(bb, obj) {
19
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
20
+ return (obj || new TimerTick()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21
+ }
22
+ static bufferHasIdentifier(bb) {
23
+ return bb.__has_identifier("TICK");
24
+ }
25
+ TRIGGER_ID(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
+ /**
30
+ * When it was due, Unix milliseconds UTC.
31
+ */
32
+ SCHEDULED_MS() {
33
+ const offset = this.bb.__offset(this.bb_pos, 6);
34
+ return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt("0");
35
+ }
36
+ /**
37
+ * When the host fired it, Unix milliseconds UTC.
38
+ */
39
+ FIRED_MS() {
40
+ const offset = this.bb.__offset(this.bb_pos, 8);
41
+ return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt("0");
42
+ }
43
+ /**
44
+ * How many times this trigger has fired since the flow started (0-based).
45
+ */
46
+ SEQUENCE() {
47
+ const offset = this.bb.__offset(this.bb_pos, 10);
48
+ return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt("0");
49
+ }
50
+ static startTimerTick(builder) {
51
+ builder.startObject(4);
52
+ }
53
+ static addTriggerId(builder, TRIGGER_IDOffset) {
54
+ builder.addFieldOffset(0, TRIGGER_IDOffset, 0);
55
+ }
56
+ static addScheduledMs(builder, SCHEDULED_MS) {
57
+ builder.addFieldInt64(1, SCHEDULED_MS, BigInt("0"));
58
+ }
59
+ static addFiredMs(builder, FIRED_MS) {
60
+ builder.addFieldInt64(2, FIRED_MS, BigInt("0"));
61
+ }
62
+ static addSequence(builder, SEQUENCE) {
63
+ builder.addFieldInt64(3, SEQUENCE, BigInt("0"));
64
+ }
65
+ static endTimerTick(builder) {
66
+ const offset = builder.endObject();
67
+ return offset;
68
+ }
69
+ static finishTimerTickBuffer(builder, offset) {
70
+ builder.finish(offset, "TICK");
71
+ }
72
+ static finishSizePrefixedTimerTickBuffer(builder, offset) {
73
+ builder.finish(offset, "TICK", true);
74
+ }
75
+ static createTimerTick(builder, TRIGGER_IDOffset, SCHEDULED_MS, FIRED_MS, SEQUENCE) {
76
+ TimerTick.startTimerTick(builder);
77
+ TimerTick.addTriggerId(builder, TRIGGER_IDOffset);
78
+ TimerTick.addScheduledMs(builder, SCHEDULED_MS);
79
+ TimerTick.addFiredMs(builder, FIRED_MS);
80
+ TimerTick.addSequence(builder, SEQUENCE);
81
+ return TimerTick.endTimerTick(builder);
82
+ }
83
+ unpack() {
84
+ return new TimerTickT(
85
+ this.TRIGGER_ID(),
86
+ this.SCHEDULED_MS(),
87
+ this.FIRED_MS(),
88
+ this.SEQUENCE()
89
+ );
90
+ }
91
+ unpackTo(_o) {
92
+ _o.TRIGGER_ID = this.TRIGGER_ID();
93
+ _o.SCHEDULED_MS = this.SCHEDULED_MS();
94
+ _o.FIRED_MS = this.FIRED_MS();
95
+ _o.SEQUENCE = this.SEQUENCE();
96
+ }
97
+ }
98
+ class TimerTickT {
99
+ constructor(TRIGGER_ID = null, SCHEDULED_MS = BigInt("0"), FIRED_MS = BigInt("0"), SEQUENCE = BigInt("0")) {
100
+ __publicField(this, "TRIGGER_ID", TRIGGER_ID);
101
+ __publicField(this, "SCHEDULED_MS", SCHEDULED_MS);
102
+ __publicField(this, "FIRED_MS", FIRED_MS);
103
+ __publicField(this, "SEQUENCE", SEQUENCE);
104
+ }
105
+ pack(builder) {
106
+ const TRIGGER_ID = this.TRIGGER_ID !== null ? builder.createString(this.TRIGGER_ID) : 0;
107
+ return TimerTick.createTimerTick(
108
+ builder,
109
+ TRIGGER_ID,
110
+ this.SCHEDULED_MS,
111
+ this.FIRED_MS,
112
+ this.SEQUENCE
113
+ );
114
+ }
115
+ }
116
+ export {
117
+ TimerTick,
118
+ TimerTickT
119
+ };
@@ -0,0 +1,148 @@
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
+
9
+ /**
10
+ * A trigger firing: what the host's scheduler hands a flow's timer-bound node. Replaces the untyped
11
+ * sdn-timer-tick frame.
12
+ */
13
+ export class TimerTick implements flatbuffers.IUnpackableObject<TimerTickT> {
14
+ bb: flatbuffers.ByteBuffer|null = null;
15
+ bb_pos = 0;
16
+ __init(i:number, bb:flatbuffers.ByteBuffer):TimerTick {
17
+ this.bb_pos = i;
18
+ this.bb = bb;
19
+ return this;
20
+ }
21
+
22
+ static getRootAsTimerTick(bb:flatbuffers.ByteBuffer, obj?:TimerTick):TimerTick {
23
+ return (obj || new TimerTick()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
24
+ }
25
+
26
+ static getSizePrefixedRootAsTimerTick(bb:flatbuffers.ByteBuffer, obj?:TimerTick):TimerTick {
27
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
28
+ return (obj || new TimerTick()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
29
+ }
30
+
31
+ static bufferHasIdentifier(bb:flatbuffers.ByteBuffer):boolean {
32
+ return bb.__has_identifier('TICK');
33
+ }
34
+
35
+ /**
36
+ * The flow trigger that fired (PLG trigger id).
37
+ */
38
+ TRIGGER_ID():string|null
39
+ TRIGGER_ID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
40
+ TRIGGER_ID(optionalEncoding?:any):string|Uint8Array|null {
41
+ const offset = this.bb!.__offset(this.bb_pos, 4);
42
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
43
+ }
44
+
45
+ /**
46
+ * When it was due, Unix milliseconds UTC.
47
+ */
48
+ SCHEDULED_MS():bigint {
49
+ const offset = this.bb!.__offset(this.bb_pos, 6);
50
+ return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
51
+ }
52
+
53
+ /**
54
+ * When the host fired it, Unix milliseconds UTC.
55
+ */
56
+ FIRED_MS():bigint {
57
+ const offset = this.bb!.__offset(this.bb_pos, 8);
58
+ return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
59
+ }
60
+
61
+ /**
62
+ * How many times this trigger has fired since the flow started (0-based).
63
+ */
64
+ SEQUENCE():bigint {
65
+ const offset = this.bb!.__offset(this.bb_pos, 10);
66
+ return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
67
+ }
68
+
69
+ static startTimerTick(builder:flatbuffers.Builder) {
70
+ builder.startObject(4);
71
+ }
72
+
73
+ static addTriggerId(builder:flatbuffers.Builder, TRIGGER_IDOffset:flatbuffers.Offset) {
74
+ builder.addFieldOffset(0, TRIGGER_IDOffset, 0);
75
+ }
76
+
77
+ static addScheduledMs(builder:flatbuffers.Builder, SCHEDULED_MS:bigint) {
78
+ builder.addFieldInt64(1, SCHEDULED_MS, BigInt('0'));
79
+ }
80
+
81
+ static addFiredMs(builder:flatbuffers.Builder, FIRED_MS:bigint) {
82
+ builder.addFieldInt64(2, FIRED_MS, BigInt('0'));
83
+ }
84
+
85
+ static addSequence(builder:flatbuffers.Builder, SEQUENCE:bigint) {
86
+ builder.addFieldInt64(3, SEQUENCE, BigInt('0'));
87
+ }
88
+
89
+ static endTimerTick(builder:flatbuffers.Builder):flatbuffers.Offset {
90
+ const offset = builder.endObject();
91
+ return offset;
92
+ }
93
+
94
+ static finishTimerTickBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
95
+ builder.finish(offset, 'TICK');
96
+ }
97
+
98
+ static finishSizePrefixedTimerTickBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
99
+ builder.finish(offset, 'TICK', true);
100
+ }
101
+
102
+ static createTimerTick(builder:flatbuffers.Builder, TRIGGER_IDOffset:flatbuffers.Offset, SCHEDULED_MS:bigint, FIRED_MS:bigint, SEQUENCE:bigint):flatbuffers.Offset {
103
+ TimerTick.startTimerTick(builder);
104
+ TimerTick.addTriggerId(builder, TRIGGER_IDOffset);
105
+ TimerTick.addScheduledMs(builder, SCHEDULED_MS);
106
+ TimerTick.addFiredMs(builder, FIRED_MS);
107
+ TimerTick.addSequence(builder, SEQUENCE);
108
+ return TimerTick.endTimerTick(builder);
109
+ }
110
+
111
+ unpack(): TimerTickT {
112
+ return new TimerTickT(
113
+ this.TRIGGER_ID(),
114
+ this.SCHEDULED_MS(),
115
+ this.FIRED_MS(),
116
+ this.SEQUENCE()
117
+ );
118
+ }
119
+
120
+
121
+ unpackTo(_o: TimerTickT): void {
122
+ _o.TRIGGER_ID = this.TRIGGER_ID();
123
+ _o.SCHEDULED_MS = this.SCHEDULED_MS();
124
+ _o.FIRED_MS = this.FIRED_MS();
125
+ _o.SEQUENCE = this.SEQUENCE();
126
+ }
127
+ }
128
+
129
+ export class TimerTickT implements flatbuffers.IGeneratedObject {
130
+ constructor(
131
+ public TRIGGER_ID: string|Uint8Array|null = null,
132
+ public SCHEDULED_MS: bigint = BigInt('0'),
133
+ public FIRED_MS: bigint = BigInt('0'),
134
+ public SEQUENCE: bigint = BigInt('0')
135
+ ){}
136
+
137
+
138
+ pack(builder:flatbuffers.Builder): flatbuffers.Offset {
139
+ const TRIGGER_ID = (this.TRIGGER_ID !== null ? builder.createString(this.TRIGGER_ID!) : 0);
140
+
141
+ return TimerTick.createTimerTick(builder,
142
+ TRIGGER_ID,
143
+ this.SCHEDULED_MS,
144
+ this.FIRED_MS,
145
+ this.SEQUENCE
146
+ );
147
+ }
148
+ }
@@ -0,0 +1,12 @@
1
+ var configValueKind = /* @__PURE__ */ ((configValueKind2) => {
2
+ configValueKind2[configValueKind2["String"] = 0] = "String";
3
+ configValueKind2[configValueKind2["Number"] = 1] = "Number";
4
+ configValueKind2[configValueKind2["Bool"] = 2] = "Bool";
5
+ configValueKind2[configValueKind2["StringList"] = 3] = "StringList";
6
+ configValueKind2[configValueKind2["NumberList"] = 4] = "NumberList";
7
+ configValueKind2[configValueKind2["TableList"] = 5] = "TableList";
8
+ return configValueKind2;
9
+ })(configValueKind || {});
10
+ export {
11
+ configValueKind
12
+ };
@@ -0,0 +1,19 @@
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
+ * What a config value is.
7
+ */
8
+ export enum configValueKind {
9
+ String = 0,
10
+ Number = 1,
11
+ Bool = 2,
12
+ StringList = 3,
13
+ NumberList = 4,
14
+
15
+ /**
16
+ * A list of nested tables (e.g. retention targets: each a table of schema, provider_id, sources).
17
+ */
18
+ TableList = 5
19
+ }
@@ -0,0 +1,11 @@
1
+ var flowNoticeKind = /* @__PURE__ */ ((flowNoticeKind2) => {
2
+ flowNoticeKind2[flowNoticeKind2["Unchanged"] = 0] = "Unchanged";
3
+ flowNoticeKind2[flowNoticeKind2["Skipped"] = 1] = "Skipped";
4
+ flowNoticeKind2[flowNoticeKind2["Missing"] = 2] = "Missing";
5
+ flowNoticeKind2[flowNoticeKind2["Expired"] = 3] = "Expired";
6
+ flowNoticeKind2[flowNoticeKind2["Info"] = 4] = "Info";
7
+ return flowNoticeKind2;
8
+ })(flowNoticeKind || {});
9
+ export {
10
+ flowNoticeKind
11
+ };
@@ -0,0 +1,34 @@
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
+ * What a module pass did that is not a stored batch.
7
+ */
8
+ export enum flowNoticeKind {
9
+ /**
10
+ * The source has nothing new (a 304, or the planned run already planned): a success without a batch. The flow
11
+ * runtime does not count it as a failed retrieval.
12
+ */
13
+ Unchanged = 0,
14
+
15
+ /**
16
+ * The pass did nothing by design (live access off, nothing to fetch).
17
+ */
18
+ Skipped = 1,
19
+
20
+ /**
21
+ * Something expected was not there (a lead the run lacks, a file not yet published).
22
+ */
23
+ Missing = 2,
24
+
25
+ /**
26
+ * Records left a rolling window and were deleted.
27
+ */
28
+ Expired = 3,
29
+
30
+ /**
31
+ * Anything else worth recording.
32
+ */
33
+ Info = 4
34
+ }
@@ -0,0 +1,9 @@
1
+ var reconcileMode = /* @__PURE__ */ ((reconcileMode2) => {
2
+ reconcileMode2[reconcileMode2["Duplicates"] = 0] = "Duplicates";
3
+ reconcileMode2[reconcileMode2["None"] = 1] = "None";
4
+ reconcileMode2[reconcileMode2["Current"] = 2] = "Current";
5
+ return reconcileMode2;
6
+ })(reconcileMode || {});
7
+ export {
8
+ reconcileMode
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
+ * How a stored batch relates to what the lane already holds.
7
+ */
8
+ export enum reconcileMode {
9
+ /**
10
+ * Duplicates of records already held are dropped (the default).
11
+ */
12
+ Duplicates = 0,
13
+
14
+ /**
15
+ * Store as given.
16
+ */
17
+ None = 1,
18
+
19
+ /**
20
+ * The batch is the lane's whole current set: older batches of the lane are retired.
21
+ */
22
+ Current = 2
23
+ }
@@ -0,0 +1,16 @@
1
+ export * from "./runtime/ArchiveTarget.js";
2
+ export * from "./runtime/ConfigEntry.js";
3
+ export * from "./runtime/ConfigTable.js";
4
+ export * from "./runtime/FlowNotice.js";
5
+ export * from "./runtime/Header.js";
6
+ export * from "./runtime/HttpRequest.js";
7
+ export * from "./runtime/HttpResponse.js";
8
+ export * from "./runtime/IngestRequest.js";
9
+ export * from "./runtime/IngestResult.js";
10
+ export * from "./runtime/ModuleConfig.js";
11
+ export * from "./runtime/Provenance.js";
12
+ export * from "./runtime/SourceTags.js";
13
+ export * from "./runtime/TimerTick.js";
14
+ export * from "./runtime/configValueKind.js";
15
+ export * from "./runtime/flowNoticeKind.js";
16
+ export * from "./runtime/reconcileMode.js";
@@ -0,0 +1,17 @@
1
+ // generated by scripts/generate-runtime-bindings.mjs
2
+ export * from "./runtime/ArchiveTarget.js";
3
+ export * from "./runtime/ConfigEntry.js";
4
+ export * from "./runtime/ConfigTable.js";
5
+ export * from "./runtime/FlowNotice.js";
6
+ export * from "./runtime/Header.js";
7
+ export * from "./runtime/HttpRequest.js";
8
+ export * from "./runtime/HttpResponse.js";
9
+ export * from "./runtime/IngestRequest.js";
10
+ export * from "./runtime/IngestResult.js";
11
+ export * from "./runtime/ModuleConfig.js";
12
+ export * from "./runtime/Provenance.js";
13
+ export * from "./runtime/SourceTags.js";
14
+ export * from "./runtime/TimerTick.js";
15
+ export * from "./runtime/configValueKind.js";
16
+ export * from "./runtime/flowNoticeKind.js";
17
+ export * from "./runtime/reconcileMode.js";