space-data-module-sdk 0.8.14 → 0.8.16

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 (125) hide show
  1. package/bin/space-data-module.js +91 -0
  2. package/docs/_shell/consumer-assets.html +5 -0
  3. package/docs/browser-wasmedge-isomorphic.html +261 -0
  4. package/docs/byo-wasm-quickstart.html +226 -0
  5. package/docs/byo-wasm-quickstart.md +204 -0
  6. package/docs/conformance.html +156 -0
  7. package/docs/conformance.md +92 -0
  8. package/docs/emception-shared-memory-verdict.md +209 -0
  9. package/docs/events-abi.html +313 -0
  10. package/docs/events-abi.md +530 -0
  11. package/docs/families/analytics.html +178 -0
  12. package/docs/families/analytics.md +104 -0
  13. package/docs/families/attitude.html +157 -0
  14. package/docs/families/attitude.md +36 -0
  15. package/docs/families/behavior.html +157 -0
  16. package/docs/families/behavior.md +36 -0
  17. package/docs/families/breakup.html +157 -0
  18. package/docs/families/breakup.md +36 -0
  19. package/docs/families/conjunction.html +186 -0
  20. package/docs/families/conjunction.md +121 -0
  21. package/docs/families/data-source.html +318 -0
  22. package/docs/families/effects.html +157 -0
  23. package/docs/families/effects.md +36 -0
  24. package/docs/families/environment.html +170 -0
  25. package/docs/families/environment.md +73 -0
  26. package/docs/families/estimation.html +190 -0
  27. package/docs/families/estimation.md +128 -0
  28. package/docs/families/gnc.html +157 -0
  29. package/docs/families/gnc.md +36 -0
  30. package/docs/families/maneuver.html +209 -0
  31. package/docs/families/maneuver.md +206 -0
  32. package/docs/families/obstruction.html +191 -0
  33. package/docs/families/obstruction.md +96 -0
  34. package/docs/families/propagator.html +333 -0
  35. package/docs/families/propulsion.html +157 -0
  36. package/docs/families/propulsion.md +36 -0
  37. package/docs/families/reentry.html +157 -0
  38. package/docs/families/reentry.md +36 -0
  39. package/docs/families/rf.html +193 -0
  40. package/docs/families/rf.md +136 -0
  41. package/docs/families/scheduler.html +157 -0
  42. package/docs/families/scheduler.md +36 -0
  43. package/docs/families/sensor.html +157 -0
  44. package/docs/families/sensor.md +36 -0
  45. package/docs/families/signature.html +157 -0
  46. package/docs/families/signature.md +36 -0
  47. package/docs/flatsql-host-contract.html +176 -0
  48. package/docs/flatsql-streaming-standard.html +375 -0
  49. package/docs/gpu-module-abi.html +233 -0
  50. package/docs/harness-family-matrix.md +135 -0
  51. package/docs/index.html +216 -85
  52. package/docs/isomorphic-pthreads.html +228 -0
  53. package/docs/isomorphic-pthreads.md +84 -0
  54. package/docs/isomorphic-sdn-runtime-plan.html +274 -0
  55. package/docs/language-runtime-matrix.html +182 -0
  56. package/docs/llms.txt +86 -0
  57. package/docs/module-bundle-runtime-plan.html +146 -0
  58. package/docs/module-publication-standard.html +503 -0
  59. package/docs/node-red-default-node-parity.html +201 -0
  60. package/docs/propagator-abi.md +73 -21
  61. package/docs/protect-and-sign.html +181 -0
  62. package/docs/protect-and-sign.md +120 -0
  63. package/docs/protocol-installation.html +296 -0
  64. package/docs/publication-submission.html +158 -0
  65. package/docs/publication-submission.md +78 -0
  66. package/docs/secrets-capability.html +206 -0
  67. package/docs/styles.css +860 -167
  68. package/docs/testing-harness.html +408 -0
  69. package/docs/tri-runtime-parity-gate.html +182 -0
  70. package/docs/tri-runtime-parity.html +203 -0
  71. package/include/orbpro/orbpro_event_runner.h +951 -0
  72. package/include/orbpro/orbpro_events_abi.h +565 -0
  73. package/include/orbpro/orbpro_propagator_abi.h +17 -0
  74. package/package.json +15 -5
  75. package/schemas/orbpro/Events.fbs +501 -0
  76. package/schemas/orbpro/Propagator.fbs +72 -9
  77. package/schemas/orbpro/reference-frame-crosswalk.json +108 -0
  78. package/schemas/orbpro/reference-frame.lock.json +98 -0
  79. package/src/browser.js +13 -0
  80. package/src/conformance/abiDriver.js +225 -0
  81. package/src/conformance/index.js +151 -0
  82. package/src/conformance/propagatorSuite.js +526 -0
  83. package/src/conformance/selfTest.js +275 -0
  84. package/src/conformance/selfTestCorpus.js +68 -0
  85. package/src/conformance/twoBodyReference.js +132 -0
  86. package/src/generated/orbpro/events-abi.js +206 -0
  87. package/src/generated/orbpro/events-abi.ts +319 -0
  88. package/src/generated/orbpro/propagator/reference-frame.js +17 -0
  89. package/src/generated/orbpro/propagator/reference-frame.ts +91 -1
  90. package/src/generated/orbpro/propagator-abi.js +17 -0
  91. package/src/generated/orbpro/propagator-abi.ts +17 -0
  92. package/src/generated/spacedatastandards/plg/CCT.d.ts +94 -0
  93. package/src/generated/spacedatastandards/plg/CCT.d.ts.map +1 -0
  94. package/src/generated/spacedatastandards/plg/CCT.js +208 -0
  95. package/src/generated/spacedatastandards/plg/CCT.ts +281 -0
  96. package/src/generated/spacedatastandards/plg/CCTCategory.d.ts +98 -0
  97. package/src/generated/spacedatastandards/plg/CCTCategory.d.ts.map +1 -0
  98. package/src/generated/spacedatastandards/plg/CCTCategory.js +177 -0
  99. package/src/generated/spacedatastandards/plg/CCTCategory.ts +269 -0
  100. package/src/generated/spacedatastandards/plg/CCTCategoryRollup.d.ts +54 -0
  101. package/src/generated/spacedatastandards/plg/CCTCategoryRollup.d.ts.map +1 -0
  102. package/src/generated/spacedatastandards/plg/CCTCategoryRollup.js +106 -0
  103. package/src/generated/spacedatastandards/plg/CCTCategoryRollup.ts +144 -0
  104. package/src/generated/spacedatastandards/plg/PLG.d.ts +46 -2
  105. package/src/generated/spacedatastandards/plg/PLG.d.ts.map +1 -1
  106. package/src/generated/spacedatastandards/plg/PLG.js +78 -5
  107. package/src/generated/spacedatastandards/plg/PLG.ts +90 -5
  108. package/src/generated/spacedatastandards/plg/capabilityClass.d.ts +181 -0
  109. package/src/generated/spacedatastandards/plg/capabilityClass.d.ts.map +1 -0
  110. package/src/generated/spacedatastandards/plg/capabilityClass.js +183 -0
  111. package/src/generated/spacedatastandards/plg/capabilityClass.ts +208 -0
  112. package/src/generated/spacedatastandards/plg/main.d.ts +4 -0
  113. package/src/generated/spacedatastandards/plg/main.d.ts.map +1 -1
  114. package/src/generated/spacedatastandards/plg/main.js +4 -0
  115. package/src/generated/spacedatastandards/plg/main.ts +4 -0
  116. package/src/generated/spacedatastandards/plg/pluginCategory.d.ts +40 -2
  117. package/src/generated/spacedatastandards/plg/pluginCategory.d.ts.map +1 -1
  118. package/src/generated/spacedatastandards/plg/pluginCategory.js +40 -2
  119. package/src/generated/spacedatastandards/plg/pluginCategory.ts +40 -2
  120. package/src/host/browserModuleHarness.js +8 -0
  121. package/src/host/wasiThreadHost.js +189 -14
  122. package/src/index.d.ts +18 -1
  123. package/src/testing/isomorphicHarness.js +233 -0
  124. package/src/transport/index.js +16 -0
  125. package/src/transport/records.js +1015 -3
@@ -0,0 +1,208 @@
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 { CCTCategory } from './CCTCategory.js';
5
+ import { CCTCategoryRollup } from './CCTCategoryRollup.js';
6
+ /**
7
+ * $CCT — Capability Category Taxonomy.
8
+ *
9
+ * The ratified set of capability classes that distributable units (modules,
10
+ * applications, composed flows) are classified under, together with the labels
11
+ * and routes every consuming surface renders. One published $CCT is the single
12
+ * source of truth shared by a storefront, a library, a search index and the
13
+ * unit manifests themselves.
14
+ *
15
+ * Division of labour: `$CCT` = the category vocabulary and its presentation;
16
+ * `$PLG` = one module's listing, which cites categories by code; `$APP` = one
17
+ * application's manifest, which cites categories by code; `$PMM` = which
18
+ * modules a provider serves; `$STO`/`$STF` = commerce.
19
+ */
20
+ export class CCT {
21
+ constructor() {
22
+ this.bb = null;
23
+ this.bb_pos = 0;
24
+ }
25
+ __init(i, bb) {
26
+ this.bb_pos = i;
27
+ this.bb = bb;
28
+ return this;
29
+ }
30
+ static getRootAsCCT(bb, obj) {
31
+ return (obj || new CCT()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
32
+ }
33
+ static getSizePrefixedRootAsCCT(bb, obj) {
34
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
35
+ return (obj || new CCT()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
36
+ }
37
+ static bufferHasIdentifier(bb) {
38
+ return bb.__has_identifier('$CCT');
39
+ }
40
+ TAXONOMY_ID(optionalEncoding) {
41
+ const offset = this.bb.__offset(this.bb_pos, 4);
42
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
43
+ }
44
+ VERSION(optionalEncoding) {
45
+ const offset = this.bb.__offset(this.bb_pos, 6);
46
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
47
+ }
48
+ /**
49
+ * Unix seconds when this taxonomy revision was issued.
50
+ */
51
+ ISSUED_AT() {
52
+ const offset = this.bb.__offset(this.bb_pos, 8);
53
+ return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
54
+ }
55
+ TITLE(optionalEncoding) {
56
+ const offset = this.bb.__offset(this.bb_pos, 10);
57
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
58
+ }
59
+ /**
60
+ * The ratified categories. Every capabilityClass member a consumer may
61
+ * encounter SHOULD appear exactly once; a code appearing twice is invalid.
62
+ */
63
+ CATEGORIES(index, obj) {
64
+ const offset = this.bb.__offset(this.bb_pos, 12);
65
+ return offset ? (obj || new CCTCategory()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
66
+ }
67
+ categoriesLength() {
68
+ const offset = this.bb.__offset(this.bb_pos, 12);
69
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
70
+ }
71
+ /**
72
+ * Optional per-category item counts as observed over a named catalogue.
73
+ * Absent means counts are computed by the consumer.
74
+ */
75
+ ROLLUPS(index, obj) {
76
+ const offset = this.bb.__offset(this.bb_pos, 14);
77
+ return offset ? (obj || new CCTCategoryRollup()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
78
+ }
79
+ rollupsLength() {
80
+ const offset = this.bb.__offset(this.bb_pos, 14);
81
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
82
+ }
83
+ /**
84
+ * Signature from the publishing node key over the canonical taxonomy bytes.
85
+ */
86
+ SIGNATURE(index) {
87
+ const offset = this.bb.__offset(this.bb_pos, 16);
88
+ return offset ? this.bb.readUint8(this.bb.__vector(this.bb_pos + offset) + index) : 0;
89
+ }
90
+ signatureLength() {
91
+ const offset = this.bb.__offset(this.bb_pos, 16);
92
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
93
+ }
94
+ signatureArray() {
95
+ const offset = this.bb.__offset(this.bb_pos, 16);
96
+ return offset ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset)) : null;
97
+ }
98
+ static startCCT(builder) {
99
+ builder.startObject(7);
100
+ }
101
+ static addTaxonomyId(builder, TAXONOMY_IDOffset) {
102
+ builder.addFieldOffset(0, TAXONOMY_IDOffset, 0);
103
+ }
104
+ static addVersion(builder, VERSIONOffset) {
105
+ builder.addFieldOffset(1, VERSIONOffset, 0);
106
+ }
107
+ static addIssuedAt(builder, ISSUED_AT) {
108
+ builder.addFieldInt64(2, ISSUED_AT, BigInt('0'));
109
+ }
110
+ static addTitle(builder, TITLEOffset) {
111
+ builder.addFieldOffset(3, TITLEOffset, 0);
112
+ }
113
+ static addCategories(builder, CATEGORIESOffset) {
114
+ builder.addFieldOffset(4, CATEGORIESOffset, 0);
115
+ }
116
+ static createCategoriesVector(builder, data) {
117
+ builder.startVector(4, data.length, 4);
118
+ for (let i = data.length - 1; i >= 0; i--) {
119
+ builder.addOffset(data[i]);
120
+ }
121
+ return builder.endVector();
122
+ }
123
+ static startCategoriesVector(builder, numElems) {
124
+ builder.startVector(4, numElems, 4);
125
+ }
126
+ static addRollups(builder, ROLLUPSOffset) {
127
+ builder.addFieldOffset(5, ROLLUPSOffset, 0);
128
+ }
129
+ static createRollupsVector(builder, data) {
130
+ builder.startVector(4, data.length, 4);
131
+ for (let i = data.length - 1; i >= 0; i--) {
132
+ builder.addOffset(data[i]);
133
+ }
134
+ return builder.endVector();
135
+ }
136
+ static startRollupsVector(builder, numElems) {
137
+ builder.startVector(4, numElems, 4);
138
+ }
139
+ static addSignature(builder, SIGNATUREOffset) {
140
+ builder.addFieldOffset(6, SIGNATUREOffset, 0);
141
+ }
142
+ static createSignatureVector(builder, data) {
143
+ builder.startVector(1, data.length, 1);
144
+ for (let i = data.length - 1; i >= 0; i--) {
145
+ builder.addInt8(data[i]);
146
+ }
147
+ return builder.endVector();
148
+ }
149
+ static startSignatureVector(builder, numElems) {
150
+ builder.startVector(1, numElems, 1);
151
+ }
152
+ static endCCT(builder) {
153
+ const offset = builder.endObject();
154
+ builder.requiredField(offset, 4); // TAXONOMY_ID
155
+ builder.requiredField(offset, 6); // VERSION
156
+ builder.requiredField(offset, 12); // CATEGORIES
157
+ return offset;
158
+ }
159
+ static finishCCTBuffer(builder, offset) {
160
+ builder.finish(offset, '$CCT');
161
+ }
162
+ static finishSizePrefixedCCTBuffer(builder, offset) {
163
+ builder.finish(offset, '$CCT', true);
164
+ }
165
+ static createCCT(builder, TAXONOMY_IDOffset, VERSIONOffset, ISSUED_AT, TITLEOffset, CATEGORIESOffset, ROLLUPSOffset, SIGNATUREOffset) {
166
+ CCT.startCCT(builder);
167
+ CCT.addTaxonomyId(builder, TAXONOMY_IDOffset);
168
+ CCT.addVersion(builder, VERSIONOffset);
169
+ CCT.addIssuedAt(builder, ISSUED_AT);
170
+ CCT.addTitle(builder, TITLEOffset);
171
+ CCT.addCategories(builder, CATEGORIESOffset);
172
+ CCT.addRollups(builder, ROLLUPSOffset);
173
+ CCT.addSignature(builder, SIGNATUREOffset);
174
+ return CCT.endCCT(builder);
175
+ }
176
+ unpack() {
177
+ return new CCTT(this.TAXONOMY_ID(), this.VERSION(), this.ISSUED_AT(), this.TITLE(), this.bb.createObjList(this.CATEGORIES.bind(this), this.categoriesLength()), this.bb.createObjList(this.ROLLUPS.bind(this), this.rollupsLength()), this.bb.createScalarList(this.SIGNATURE.bind(this), this.signatureLength()));
178
+ }
179
+ unpackTo(_o) {
180
+ _o.TAXONOMY_ID = this.TAXONOMY_ID();
181
+ _o.VERSION = this.VERSION();
182
+ _o.ISSUED_AT = this.ISSUED_AT();
183
+ _o.TITLE = this.TITLE();
184
+ _o.CATEGORIES = this.bb.createObjList(this.CATEGORIES.bind(this), this.categoriesLength());
185
+ _o.ROLLUPS = this.bb.createObjList(this.ROLLUPS.bind(this), this.rollupsLength());
186
+ _o.SIGNATURE = this.bb.createScalarList(this.SIGNATURE.bind(this), this.signatureLength());
187
+ }
188
+ }
189
+ export class CCTT {
190
+ constructor(TAXONOMY_ID = null, VERSION = null, ISSUED_AT = BigInt('0'), TITLE = null, CATEGORIES = [], ROLLUPS = [], SIGNATURE = []) {
191
+ this.TAXONOMY_ID = TAXONOMY_ID;
192
+ this.VERSION = VERSION;
193
+ this.ISSUED_AT = ISSUED_AT;
194
+ this.TITLE = TITLE;
195
+ this.CATEGORIES = CATEGORIES;
196
+ this.ROLLUPS = ROLLUPS;
197
+ this.SIGNATURE = SIGNATURE;
198
+ }
199
+ pack(builder) {
200
+ const TAXONOMY_ID = (this.TAXONOMY_ID !== null ? builder.createString(this.TAXONOMY_ID) : 0);
201
+ const VERSION = (this.VERSION !== null ? builder.createString(this.VERSION) : 0);
202
+ const TITLE = (this.TITLE !== null ? builder.createString(this.TITLE) : 0);
203
+ const CATEGORIES = CCT.createCategoriesVector(builder, builder.createObjectOffsetList(this.CATEGORIES));
204
+ const ROLLUPS = CCT.createRollupsVector(builder, builder.createObjectOffsetList(this.ROLLUPS));
205
+ const SIGNATURE = CCT.createSignatureVector(builder, this.SIGNATURE);
206
+ return CCT.createCCT(builder, TAXONOMY_ID, VERSION, this.ISSUED_AT, TITLE, CATEGORIES, ROLLUPS, SIGNATURE);
207
+ }
208
+ }
@@ -0,0 +1,281 @@
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 { CCTCategory, CCTCategoryT } from './CCTCategory.js';
8
+ import { CCTCategoryRollup, CCTCategoryRollupT } from './CCTCategoryRollup.js';
9
+
10
+
11
+ /**
12
+ * $CCT — Capability Category Taxonomy.
13
+ *
14
+ * The ratified set of capability classes that distributable units (modules,
15
+ * applications, composed flows) are classified under, together with the labels
16
+ * and routes every consuming surface renders. One published $CCT is the single
17
+ * source of truth shared by a storefront, a library, a search index and the
18
+ * unit manifests themselves.
19
+ *
20
+ * Division of labour: `$CCT` = the category vocabulary and its presentation;
21
+ * `$PLG` = one module's listing, which cites categories by code; `$APP` = one
22
+ * application's manifest, which cites categories by code; `$PMM` = which
23
+ * modules a provider serves; `$STO`/`$STF` = commerce.
24
+ */
25
+ export class CCT implements flatbuffers.IUnpackableObject<CCTT> {
26
+ bb: flatbuffers.ByteBuffer|null = null;
27
+ bb_pos = 0;
28
+ __init(i:number, bb:flatbuffers.ByteBuffer):CCT {
29
+ this.bb_pos = i;
30
+ this.bb = bb;
31
+ return this;
32
+ }
33
+
34
+ static getRootAsCCT(bb:flatbuffers.ByteBuffer, obj?:CCT):CCT {
35
+ return (obj || new CCT()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
36
+ }
37
+
38
+ static getSizePrefixedRootAsCCT(bb:flatbuffers.ByteBuffer, obj?:CCT):CCT {
39
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
40
+ return (obj || new CCT()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
41
+ }
42
+
43
+ static bufferHasIdentifier(bb:flatbuffers.ByteBuffer):boolean {
44
+ return bb.__has_identifier('$CCT');
45
+ }
46
+
47
+ /**
48
+ * Stable identifier of this taxonomy publication.
49
+ */
50
+ TAXONOMY_ID():string
51
+ TAXONOMY_ID(optionalEncoding:flatbuffers.Encoding):string|Uint8Array
52
+ TAXONOMY_ID(optionalEncoding?:any):string|Uint8Array {
53
+ const offset = this.bb!.__offset(this.bb_pos, 4);
54
+ return this.bb!.__string(this.bb_pos + offset, optionalEncoding);
55
+ }
56
+
57
+ /**
58
+ * SemVer 2.0.0 version of the taxonomy content.
59
+ */
60
+ VERSION():string
61
+ VERSION(optionalEncoding:flatbuffers.Encoding):string|Uint8Array
62
+ VERSION(optionalEncoding?:any):string|Uint8Array {
63
+ const offset = this.bb!.__offset(this.bb_pos, 6);
64
+ return this.bb!.__string(this.bb_pos + offset, optionalEncoding);
65
+ }
66
+
67
+ /**
68
+ * Unix seconds when this taxonomy revision was issued.
69
+ */
70
+ ISSUED_AT():bigint {
71
+ const offset = this.bb!.__offset(this.bb_pos, 8);
72
+ return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt('0');
73
+ }
74
+
75
+ /**
76
+ * Human-readable title of the taxonomy.
77
+ */
78
+ TITLE():string|null
79
+ TITLE(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
80
+ TITLE(optionalEncoding?:any):string|Uint8Array|null {
81
+ const offset = this.bb!.__offset(this.bb_pos, 10);
82
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
83
+ }
84
+
85
+ /**
86
+ * The ratified categories. Every capabilityClass member a consumer may
87
+ * encounter SHOULD appear exactly once; a code appearing twice is invalid.
88
+ */
89
+ CATEGORIES(index: number, obj?:CCTCategory):CCTCategory|null {
90
+ const offset = this.bb!.__offset(this.bb_pos, 12);
91
+ return offset ? (obj || new CCTCategory()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
92
+ }
93
+
94
+ categoriesLength():number {
95
+ const offset = this.bb!.__offset(this.bb_pos, 12);
96
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
97
+ }
98
+
99
+ /**
100
+ * Optional per-category item counts as observed over a named catalogue.
101
+ * Absent means counts are computed by the consumer.
102
+ */
103
+ ROLLUPS(index: number, obj?:CCTCategoryRollup):CCTCategoryRollup|null {
104
+ const offset = this.bb!.__offset(this.bb_pos, 14);
105
+ return offset ? (obj || new CCTCategoryRollup()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
106
+ }
107
+
108
+ rollupsLength():number {
109
+ const offset = this.bb!.__offset(this.bb_pos, 14);
110
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
111
+ }
112
+
113
+ /**
114
+ * Signature from the publishing node key over the canonical taxonomy bytes.
115
+ */
116
+ SIGNATURE(index: number):number|null {
117
+ const offset = this.bb!.__offset(this.bb_pos, 16);
118
+ return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
119
+ }
120
+
121
+ signatureLength():number {
122
+ const offset = this.bb!.__offset(this.bb_pos, 16);
123
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
124
+ }
125
+
126
+ signatureArray():Uint8Array|null {
127
+ const offset = this.bb!.__offset(this.bb_pos, 16);
128
+ return offset ? new Uint8Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
129
+ }
130
+
131
+ static startCCT(builder:flatbuffers.Builder) {
132
+ builder.startObject(7);
133
+ }
134
+
135
+ static addTaxonomyId(builder:flatbuffers.Builder, TAXONOMY_IDOffset:flatbuffers.Offset) {
136
+ builder.addFieldOffset(0, TAXONOMY_IDOffset, 0);
137
+ }
138
+
139
+ static addVersion(builder:flatbuffers.Builder, VERSIONOffset:flatbuffers.Offset) {
140
+ builder.addFieldOffset(1, VERSIONOffset, 0);
141
+ }
142
+
143
+ static addIssuedAt(builder:flatbuffers.Builder, ISSUED_AT:bigint) {
144
+ builder.addFieldInt64(2, ISSUED_AT, BigInt('0'));
145
+ }
146
+
147
+ static addTitle(builder:flatbuffers.Builder, TITLEOffset:flatbuffers.Offset) {
148
+ builder.addFieldOffset(3, TITLEOffset, 0);
149
+ }
150
+
151
+ static addCategories(builder:flatbuffers.Builder, CATEGORIESOffset:flatbuffers.Offset) {
152
+ builder.addFieldOffset(4, CATEGORIESOffset, 0);
153
+ }
154
+
155
+ static createCategoriesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
156
+ builder.startVector(4, data.length, 4);
157
+ for (let i = data.length - 1; i >= 0; i--) {
158
+ builder.addOffset(data[i]!);
159
+ }
160
+ return builder.endVector();
161
+ }
162
+
163
+ static startCategoriesVector(builder:flatbuffers.Builder, numElems:number) {
164
+ builder.startVector(4, numElems, 4);
165
+ }
166
+
167
+ static addRollups(builder:flatbuffers.Builder, ROLLUPSOffset:flatbuffers.Offset) {
168
+ builder.addFieldOffset(5, ROLLUPSOffset, 0);
169
+ }
170
+
171
+ static createRollupsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
172
+ builder.startVector(4, data.length, 4);
173
+ for (let i = data.length - 1; i >= 0; i--) {
174
+ builder.addOffset(data[i]!);
175
+ }
176
+ return builder.endVector();
177
+ }
178
+
179
+ static startRollupsVector(builder:flatbuffers.Builder, numElems:number) {
180
+ builder.startVector(4, numElems, 4);
181
+ }
182
+
183
+ static addSignature(builder:flatbuffers.Builder, SIGNATUREOffset:flatbuffers.Offset) {
184
+ builder.addFieldOffset(6, SIGNATUREOffset, 0);
185
+ }
186
+
187
+ static createSignatureVector(builder:flatbuffers.Builder, data:number[]|Uint8Array):flatbuffers.Offset {
188
+ builder.startVector(1, data.length, 1);
189
+ for (let i = data.length - 1; i >= 0; i--) {
190
+ builder.addInt8(data[i]!);
191
+ }
192
+ return builder.endVector();
193
+ }
194
+
195
+ static startSignatureVector(builder:flatbuffers.Builder, numElems:number) {
196
+ builder.startVector(1, numElems, 1);
197
+ }
198
+
199
+ static endCCT(builder:flatbuffers.Builder):flatbuffers.Offset {
200
+ const offset = builder.endObject();
201
+ builder.requiredField(offset, 4) // TAXONOMY_ID
202
+ builder.requiredField(offset, 6) // VERSION
203
+ builder.requiredField(offset, 12) // CATEGORIES
204
+ return offset;
205
+ }
206
+
207
+ static finishCCTBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
208
+ builder.finish(offset, '$CCT');
209
+ }
210
+
211
+ static finishSizePrefixedCCTBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
212
+ builder.finish(offset, '$CCT', true);
213
+ }
214
+
215
+ static createCCT(builder:flatbuffers.Builder, TAXONOMY_IDOffset:flatbuffers.Offset, VERSIONOffset:flatbuffers.Offset, ISSUED_AT:bigint, TITLEOffset:flatbuffers.Offset, CATEGORIESOffset:flatbuffers.Offset, ROLLUPSOffset:flatbuffers.Offset, SIGNATUREOffset:flatbuffers.Offset):flatbuffers.Offset {
216
+ CCT.startCCT(builder);
217
+ CCT.addTaxonomyId(builder, TAXONOMY_IDOffset);
218
+ CCT.addVersion(builder, VERSIONOffset);
219
+ CCT.addIssuedAt(builder, ISSUED_AT);
220
+ CCT.addTitle(builder, TITLEOffset);
221
+ CCT.addCategories(builder, CATEGORIESOffset);
222
+ CCT.addRollups(builder, ROLLUPSOffset);
223
+ CCT.addSignature(builder, SIGNATUREOffset);
224
+ return CCT.endCCT(builder);
225
+ }
226
+
227
+ unpack(): CCTT {
228
+ return new CCTT(
229
+ this.TAXONOMY_ID(),
230
+ this.VERSION(),
231
+ this.ISSUED_AT(),
232
+ this.TITLE(),
233
+ this.bb!.createObjList<CCTCategory, CCTCategoryT>(this.CATEGORIES.bind(this), this.categoriesLength()),
234
+ this.bb!.createObjList<CCTCategoryRollup, CCTCategoryRollupT>(this.ROLLUPS.bind(this), this.rollupsLength()),
235
+ this.bb!.createScalarList<number>(this.SIGNATURE.bind(this), this.signatureLength())
236
+ );
237
+ }
238
+
239
+
240
+ unpackTo(_o: CCTT): void {
241
+ _o.TAXONOMY_ID = this.TAXONOMY_ID();
242
+ _o.VERSION = this.VERSION();
243
+ _o.ISSUED_AT = this.ISSUED_AT();
244
+ _o.TITLE = this.TITLE();
245
+ _o.CATEGORIES = this.bb!.createObjList<CCTCategory, CCTCategoryT>(this.CATEGORIES.bind(this), this.categoriesLength());
246
+ _o.ROLLUPS = this.bb!.createObjList<CCTCategoryRollup, CCTCategoryRollupT>(this.ROLLUPS.bind(this), this.rollupsLength());
247
+ _o.SIGNATURE = this.bb!.createScalarList<number>(this.SIGNATURE.bind(this), this.signatureLength());
248
+ }
249
+ }
250
+
251
+ export class CCTT implements flatbuffers.IGeneratedObject {
252
+ constructor(
253
+ public TAXONOMY_ID: string|Uint8Array|null = null,
254
+ public VERSION: string|Uint8Array|null = null,
255
+ public ISSUED_AT: bigint = BigInt('0'),
256
+ public TITLE: string|Uint8Array|null = null,
257
+ public CATEGORIES: (CCTCategoryT)[] = [],
258
+ public ROLLUPS: (CCTCategoryRollupT)[] = [],
259
+ public SIGNATURE: (number)[] = []
260
+ ){}
261
+
262
+
263
+ pack(builder:flatbuffers.Builder): flatbuffers.Offset {
264
+ const TAXONOMY_ID = (this.TAXONOMY_ID !== null ? builder.createString(this.TAXONOMY_ID!) : 0);
265
+ const VERSION = (this.VERSION !== null ? builder.createString(this.VERSION!) : 0);
266
+ const TITLE = (this.TITLE !== null ? builder.createString(this.TITLE!) : 0);
267
+ const CATEGORIES = CCT.createCategoriesVector(builder, builder.createObjectOffsetList(this.CATEGORIES));
268
+ const ROLLUPS = CCT.createRollupsVector(builder, builder.createObjectOffsetList(this.ROLLUPS));
269
+ const SIGNATURE = CCT.createSignatureVector(builder, this.SIGNATURE);
270
+
271
+ return CCT.createCCT(builder,
272
+ TAXONOMY_ID,
273
+ VERSION,
274
+ this.ISSUED_AT,
275
+ TITLE,
276
+ CATEGORIES,
277
+ ROLLUPS,
278
+ SIGNATURE
279
+ );
280
+ }
281
+ }
@@ -0,0 +1,98 @@
1
+ import * as flatbuffers from 'flatbuffers';
2
+ import { capabilityClass } from './capabilityClass.js';
3
+ /**
4
+ * One ratified category in the taxonomy.
5
+ *
6
+ * DISPLAY_NAME, SUMMARY and SLUG are required: a category cannot be published
7
+ * without the label a surface will render, the sentence a browse row will
8
+ * show, and the route a link will target. This is what stops each consumer
9
+ * from inventing its own wording for the same code.
10
+ */
11
+ export declare class CCTCategory implements flatbuffers.IUnpackableObject<CCTCategoryT> {
12
+ bb: flatbuffers.ByteBuffer | null;
13
+ bb_pos: number;
14
+ __init(i: number, bb: flatbuffers.ByteBuffer): CCTCategory;
15
+ static getRootAsCCTCategory(bb: flatbuffers.ByteBuffer, obj?: CCTCategory): CCTCategory;
16
+ static getSizePrefixedRootAsCCTCategory(bb: flatbuffers.ByteBuffer, obj?: CCTCategory): CCTCategory;
17
+ /**
18
+ * The ratified category code. This is the join key every consumer uses.
19
+ */
20
+ CODE(): capabilityClass;
21
+ /**
22
+ * Canonical human-readable label, rendered verbatim. MUST equal the display
23
+ * name stated in the CODE member's doc comment.
24
+ */
25
+ DISPLAY_NAME(): string;
26
+ DISPLAY_NAME(optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
27
+ /**
28
+ * One-sentence description shown on browse rows and category headers.
29
+ */
30
+ SUMMARY(): string;
31
+ SUMMARY(optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
32
+ /**
33
+ * Route-safe identifier: the CODE identifier lowercased with `_` replaced by
34
+ * `-`. Published explicitly rather than derived so every surface routes
35
+ * identically.
36
+ */
37
+ SLUG(): string;
38
+ SLUG(optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
39
+ /**
40
+ * Longer editorial description for a category landing page.
41
+ */
42
+ DESCRIPTION(): string | null;
43
+ DESCRIPTION(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
44
+ /**
45
+ * Parent category for hierarchical browse. UNSPECIFIED means this is a
46
+ * top-level category. A category MUST NOT name itself as its parent.
47
+ */
48
+ PARENT(): capabilityClass;
49
+ /**
50
+ * Presentation order within its parent, ascending. Ties break on
51
+ * DISPLAY_NAME.
52
+ */
53
+ SORT_ORDER(): number;
54
+ /**
55
+ * Search synonyms and alternate phrasings that resolve to this category.
56
+ * Feeds type-ahead; never rendered as the category label.
57
+ */
58
+ KEYWORDS(index: number): string;
59
+ KEYWORDS(index: number, optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
60
+ keywordsLength(): number;
61
+ /**
62
+ * Key of a self-hosted icon or capsule asset for this category. A KEY, not a
63
+ * URL: consuming node surfaces load zero external-origin bytes, so the
64
+ * consumer resolves this against its own local asset set.
65
+ */
66
+ ICON_KEY(): string | null;
67
+ ICON_KEY(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
68
+ static startCCTCategory(builder: flatbuffers.Builder): void;
69
+ static addCode(builder: flatbuffers.Builder, CODE: capabilityClass): void;
70
+ static addDisplayName(builder: flatbuffers.Builder, DISPLAY_NAMEOffset: flatbuffers.Offset): void;
71
+ static addSummary(builder: flatbuffers.Builder, SUMMARYOffset: flatbuffers.Offset): void;
72
+ static addSlug(builder: flatbuffers.Builder, SLUGOffset: flatbuffers.Offset): void;
73
+ static addDescription(builder: flatbuffers.Builder, DESCRIPTIONOffset: flatbuffers.Offset): void;
74
+ static addParent(builder: flatbuffers.Builder, PARENT: capabilityClass): void;
75
+ static addSortOrder(builder: flatbuffers.Builder, SORT_ORDER: number): void;
76
+ static addKeywords(builder: flatbuffers.Builder, KEYWORDSOffset: flatbuffers.Offset): void;
77
+ static createKeywordsVector(builder: flatbuffers.Builder, data: flatbuffers.Offset[]): flatbuffers.Offset;
78
+ static startKeywordsVector(builder: flatbuffers.Builder, numElems: number): void;
79
+ static addIconKey(builder: flatbuffers.Builder, ICON_KEYOffset: flatbuffers.Offset): void;
80
+ static endCCTCategory(builder: flatbuffers.Builder): flatbuffers.Offset;
81
+ static createCCTCategory(builder: flatbuffers.Builder, CODE: capabilityClass, DISPLAY_NAMEOffset: flatbuffers.Offset, SUMMARYOffset: flatbuffers.Offset, SLUGOffset: flatbuffers.Offset, DESCRIPTIONOffset: flatbuffers.Offset, PARENT: capabilityClass, SORT_ORDER: number, KEYWORDSOffset: flatbuffers.Offset, ICON_KEYOffset: flatbuffers.Offset): flatbuffers.Offset;
82
+ unpack(): CCTCategoryT;
83
+ unpackTo(_o: CCTCategoryT): void;
84
+ }
85
+ export declare class CCTCategoryT implements flatbuffers.IGeneratedObject {
86
+ CODE: capabilityClass;
87
+ DISPLAY_NAME: string | Uint8Array | null;
88
+ SUMMARY: string | Uint8Array | null;
89
+ SLUG: string | Uint8Array | null;
90
+ DESCRIPTION: string | Uint8Array | null;
91
+ PARENT: capabilityClass;
92
+ SORT_ORDER: number;
93
+ KEYWORDS: (string)[];
94
+ ICON_KEY: string | Uint8Array | null;
95
+ constructor(CODE?: capabilityClass, DISPLAY_NAME?: string | Uint8Array | null, SUMMARY?: string | Uint8Array | null, SLUG?: string | Uint8Array | null, DESCRIPTION?: string | Uint8Array | null, PARENT?: capabilityClass, SORT_ORDER?: number, KEYWORDS?: (string)[], ICON_KEY?: string | Uint8Array | null);
96
+ pack(builder: flatbuffers.Builder): flatbuffers.Offset;
97
+ }
98
+ //# sourceMappingURL=CCTCategory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CCTCategory.d.ts","sourceRoot":"","sources":["../../../ts/PLG/CCTCategory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD;;;;;;;GAOG;AACH,qBAAa,WAAY,YAAW,WAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC;IAC7E,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,WAAW;IAMzD,MAAM,CAAC,oBAAoB,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,WAAW,GAAE,W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