space-data-module-sdk 0.8.15 → 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 (116) hide show
  1. package/docs/_shell/consumer-assets.html +5 -0
  2. package/docs/browser-wasmedge-isomorphic.html +261 -0
  3. package/docs/byo-wasm-quickstart.html +226 -0
  4. package/docs/byo-wasm-quickstart.md +204 -0
  5. package/docs/conformance.html +156 -0
  6. package/docs/emception-shared-memory-verdict.md +209 -0
  7. package/docs/events-abi.html +313 -0
  8. package/docs/events-abi.md +530 -0
  9. package/docs/families/analytics.html +178 -0
  10. package/docs/families/analytics.md +104 -0
  11. package/docs/families/attitude.html +157 -0
  12. package/docs/families/attitude.md +36 -0
  13. package/docs/families/behavior.html +157 -0
  14. package/docs/families/behavior.md +36 -0
  15. package/docs/families/breakup.html +157 -0
  16. package/docs/families/breakup.md +36 -0
  17. package/docs/families/conjunction.html +186 -0
  18. package/docs/families/conjunction.md +121 -0
  19. package/docs/families/data-source.html +318 -0
  20. package/docs/families/effects.html +157 -0
  21. package/docs/families/effects.md +36 -0
  22. package/docs/families/environment.html +170 -0
  23. package/docs/families/environment.md +73 -0
  24. package/docs/families/estimation.html +190 -0
  25. package/docs/families/estimation.md +128 -0
  26. package/docs/families/gnc.html +157 -0
  27. package/docs/families/gnc.md +36 -0
  28. package/docs/families/maneuver.html +209 -0
  29. package/docs/families/maneuver.md +206 -0
  30. package/docs/families/obstruction.html +191 -0
  31. package/docs/families/obstruction.md +96 -0
  32. package/docs/families/propagator.html +333 -0
  33. package/docs/families/propulsion.html +157 -0
  34. package/docs/families/propulsion.md +36 -0
  35. package/docs/families/reentry.html +157 -0
  36. package/docs/families/reentry.md +36 -0
  37. package/docs/families/rf.html +193 -0
  38. package/docs/families/rf.md +136 -0
  39. package/docs/families/scheduler.html +157 -0
  40. package/docs/families/scheduler.md +36 -0
  41. package/docs/families/sensor.html +157 -0
  42. package/docs/families/sensor.md +36 -0
  43. package/docs/families/signature.html +157 -0
  44. package/docs/families/signature.md +36 -0
  45. package/docs/flatsql-host-contract.html +176 -0
  46. package/docs/flatsql-streaming-standard.html +375 -0
  47. package/docs/gpu-module-abi.html +233 -0
  48. package/docs/harness-family-matrix.md +135 -0
  49. package/docs/index.html +216 -85
  50. package/docs/isomorphic-pthreads.html +228 -0
  51. package/docs/isomorphic-pthreads.md +84 -0
  52. package/docs/isomorphic-sdn-runtime-plan.html +274 -0
  53. package/docs/language-runtime-matrix.html +182 -0
  54. package/docs/llms.txt +86 -0
  55. package/docs/module-bundle-runtime-plan.html +146 -0
  56. package/docs/module-publication-standard.html +503 -0
  57. package/docs/node-red-default-node-parity.html +201 -0
  58. package/docs/propagator-abi.md +45 -12
  59. package/docs/protect-and-sign.html +181 -0
  60. package/docs/protect-and-sign.md +120 -0
  61. package/docs/protocol-installation.html +296 -0
  62. package/docs/publication-submission.html +158 -0
  63. package/docs/publication-submission.md +78 -0
  64. package/docs/secrets-capability.html +206 -0
  65. package/docs/styles.css +860 -167
  66. package/docs/testing-harness.html +408 -0
  67. package/docs/tri-runtime-parity-gate.html +182 -0
  68. package/docs/tri-runtime-parity.html +203 -0
  69. package/include/orbpro/orbpro_event_runner.h +951 -0
  70. package/include/orbpro/orbpro_events_abi.h +565 -0
  71. package/include/orbpro/orbpro_propagator_abi.h +17 -0
  72. package/package.json +11 -4
  73. package/schemas/orbpro/Events.fbs +501 -0
  74. package/schemas/orbpro/Propagator.fbs +72 -9
  75. package/schemas/orbpro/reference-frame-crosswalk.json +108 -0
  76. package/schemas/orbpro/reference-frame.lock.json +98 -0
  77. package/src/browser.js +13 -0
  78. package/src/generated/orbpro/events-abi.js +206 -0
  79. package/src/generated/orbpro/events-abi.ts +319 -0
  80. package/src/generated/orbpro/propagator/reference-frame.js +17 -0
  81. package/src/generated/orbpro/propagator/reference-frame.ts +91 -1
  82. package/src/generated/orbpro/propagator-abi.js +17 -0
  83. package/src/generated/orbpro/propagator-abi.ts +17 -0
  84. package/src/generated/spacedatastandards/plg/CCT.d.ts +94 -0
  85. package/src/generated/spacedatastandards/plg/CCT.d.ts.map +1 -0
  86. package/src/generated/spacedatastandards/plg/CCT.js +208 -0
  87. package/src/generated/spacedatastandards/plg/CCT.ts +281 -0
  88. package/src/generated/spacedatastandards/plg/CCTCategory.d.ts +98 -0
  89. package/src/generated/spacedatastandards/plg/CCTCategory.d.ts.map +1 -0
  90. package/src/generated/spacedatastandards/plg/CCTCategory.js +177 -0
  91. package/src/generated/spacedatastandards/plg/CCTCategory.ts +269 -0
  92. package/src/generated/spacedatastandards/plg/CCTCategoryRollup.d.ts +54 -0
  93. package/src/generated/spacedatastandards/plg/CCTCategoryRollup.d.ts.map +1 -0
  94. package/src/generated/spacedatastandards/plg/CCTCategoryRollup.js +106 -0
  95. package/src/generated/spacedatastandards/plg/CCTCategoryRollup.ts +144 -0
  96. package/src/generated/spacedatastandards/plg/PLG.d.ts +46 -2
  97. package/src/generated/spacedatastandards/plg/PLG.d.ts.map +1 -1
  98. package/src/generated/spacedatastandards/plg/PLG.js +78 -5
  99. package/src/generated/spacedatastandards/plg/PLG.ts +90 -5
  100. package/src/generated/spacedatastandards/plg/capabilityClass.d.ts +181 -0
  101. package/src/generated/spacedatastandards/plg/capabilityClass.d.ts.map +1 -0
  102. package/src/generated/spacedatastandards/plg/capabilityClass.js +183 -0
  103. package/src/generated/spacedatastandards/plg/capabilityClass.ts +208 -0
  104. package/src/generated/spacedatastandards/plg/main.d.ts +4 -0
  105. package/src/generated/spacedatastandards/plg/main.d.ts.map +1 -1
  106. package/src/generated/spacedatastandards/plg/main.js +4 -0
  107. package/src/generated/spacedatastandards/plg/main.ts +4 -0
  108. package/src/generated/spacedatastandards/plg/pluginCategory.d.ts +40 -2
  109. package/src/generated/spacedatastandards/plg/pluginCategory.d.ts.map +1 -1
  110. package/src/generated/spacedatastandards/plg/pluginCategory.js +40 -2
  111. package/src/generated/spacedatastandards/plg/pluginCategory.ts +40 -2
  112. package/src/host/browserModuleHarness.js +8 -0
  113. package/src/host/wasiThreadHost.js +189 -14
  114. package/src/index.d.ts +18 -1
  115. package/src/transport/index.js +16 -0
  116. package/src/transport/records.js +1015 -3
@@ -0,0 +1,177 @@
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 { capabilityClass } from './capabilityClass.js';
5
+ /**
6
+ * One ratified category in the taxonomy.
7
+ *
8
+ * DISPLAY_NAME, SUMMARY and SLUG are required: a category cannot be published
9
+ * without the label a surface will render, the sentence a browse row will
10
+ * show, and the route a link will target. This is what stops each consumer
11
+ * from inventing its own wording for the same code.
12
+ */
13
+ export class CCTCategory {
14
+ constructor() {
15
+ this.bb = null;
16
+ this.bb_pos = 0;
17
+ }
18
+ __init(i, bb) {
19
+ this.bb_pos = i;
20
+ this.bb = bb;
21
+ return this;
22
+ }
23
+ static getRootAsCCTCategory(bb, obj) {
24
+ return (obj || new CCTCategory()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
25
+ }
26
+ static getSizePrefixedRootAsCCTCategory(bb, obj) {
27
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
28
+ return (obj || new CCTCategory()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
29
+ }
30
+ /**
31
+ * The ratified category code. This is the join key every consumer uses.
32
+ */
33
+ CODE() {
34
+ const offset = this.bb.__offset(this.bb_pos, 4);
35
+ return offset ? this.bb.readUint8(this.bb_pos + offset) : capabilityClass.UNSPECIFIED;
36
+ }
37
+ DISPLAY_NAME(optionalEncoding) {
38
+ const offset = this.bb.__offset(this.bb_pos, 6);
39
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
40
+ }
41
+ SUMMARY(optionalEncoding) {
42
+ const offset = this.bb.__offset(this.bb_pos, 8);
43
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
44
+ }
45
+ SLUG(optionalEncoding) {
46
+ const offset = this.bb.__offset(this.bb_pos, 10);
47
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
48
+ }
49
+ DESCRIPTION(optionalEncoding) {
50
+ const offset = this.bb.__offset(this.bb_pos, 12);
51
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
52
+ }
53
+ /**
54
+ * Parent category for hierarchical browse. UNSPECIFIED means this is a
55
+ * top-level category. A category MUST NOT name itself as its parent.
56
+ */
57
+ PARENT() {
58
+ const offset = this.bb.__offset(this.bb_pos, 14);
59
+ return offset ? this.bb.readUint8(this.bb_pos + offset) : capabilityClass.UNSPECIFIED;
60
+ }
61
+ /**
62
+ * Presentation order within its parent, ascending. Ties break on
63
+ * DISPLAY_NAME.
64
+ */
65
+ SORT_ORDER() {
66
+ const offset = this.bb.__offset(this.bb_pos, 16);
67
+ return offset ? this.bb.readUint16(this.bb_pos + offset) : 0;
68
+ }
69
+ KEYWORDS(index, optionalEncoding) {
70
+ const offset = this.bb.__offset(this.bb_pos, 18);
71
+ return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
72
+ }
73
+ keywordsLength() {
74
+ const offset = this.bb.__offset(this.bb_pos, 18);
75
+ return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
76
+ }
77
+ ICON_KEY(optionalEncoding) {
78
+ const offset = this.bb.__offset(this.bb_pos, 20);
79
+ return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
80
+ }
81
+ static startCCTCategory(builder) {
82
+ builder.startObject(9);
83
+ }
84
+ static addCode(builder, CODE) {
85
+ builder.addFieldInt8(0, CODE, capabilityClass.UNSPECIFIED);
86
+ }
87
+ static addDisplayName(builder, DISPLAY_NAMEOffset) {
88
+ builder.addFieldOffset(1, DISPLAY_NAMEOffset, 0);
89
+ }
90
+ static addSummary(builder, SUMMARYOffset) {
91
+ builder.addFieldOffset(2, SUMMARYOffset, 0);
92
+ }
93
+ static addSlug(builder, SLUGOffset) {
94
+ builder.addFieldOffset(3, SLUGOffset, 0);
95
+ }
96
+ static addDescription(builder, DESCRIPTIONOffset) {
97
+ builder.addFieldOffset(4, DESCRIPTIONOffset, 0);
98
+ }
99
+ static addParent(builder, PARENT) {
100
+ builder.addFieldInt8(5, PARENT, capabilityClass.UNSPECIFIED);
101
+ }
102
+ static addSortOrder(builder, SORT_ORDER) {
103
+ builder.addFieldInt16(6, SORT_ORDER, 0);
104
+ }
105
+ static addKeywords(builder, KEYWORDSOffset) {
106
+ builder.addFieldOffset(7, KEYWORDSOffset, 0);
107
+ }
108
+ static createKeywordsVector(builder, data) {
109
+ builder.startVector(4, data.length, 4);
110
+ for (let i = data.length - 1; i >= 0; i--) {
111
+ builder.addOffset(data[i]);
112
+ }
113
+ return builder.endVector();
114
+ }
115
+ static startKeywordsVector(builder, numElems) {
116
+ builder.startVector(4, numElems, 4);
117
+ }
118
+ static addIconKey(builder, ICON_KEYOffset) {
119
+ builder.addFieldOffset(8, ICON_KEYOffset, 0);
120
+ }
121
+ static endCCTCategory(builder) {
122
+ const offset = builder.endObject();
123
+ builder.requiredField(offset, 6); // DISPLAY_NAME
124
+ builder.requiredField(offset, 8); // SUMMARY
125
+ builder.requiredField(offset, 10); // SLUG
126
+ return offset;
127
+ }
128
+ static createCCTCategory(builder, CODE, DISPLAY_NAMEOffset, SUMMARYOffset, SLUGOffset, DESCRIPTIONOffset, PARENT, SORT_ORDER, KEYWORDSOffset, ICON_KEYOffset) {
129
+ CCTCategory.startCCTCategory(builder);
130
+ CCTCategory.addCode(builder, CODE);
131
+ CCTCategory.addDisplayName(builder, DISPLAY_NAMEOffset);
132
+ CCTCategory.addSummary(builder, SUMMARYOffset);
133
+ CCTCategory.addSlug(builder, SLUGOffset);
134
+ CCTCategory.addDescription(builder, DESCRIPTIONOffset);
135
+ CCTCategory.addParent(builder, PARENT);
136
+ CCTCategory.addSortOrder(builder, SORT_ORDER);
137
+ CCTCategory.addKeywords(builder, KEYWORDSOffset);
138
+ CCTCategory.addIconKey(builder, ICON_KEYOffset);
139
+ return CCTCategory.endCCTCategory(builder);
140
+ }
141
+ unpack() {
142
+ return new CCTCategoryT(this.CODE(), this.DISPLAY_NAME(), this.SUMMARY(), this.SLUG(), this.DESCRIPTION(), this.PARENT(), this.SORT_ORDER(), this.bb.createScalarList(this.KEYWORDS.bind(this), this.keywordsLength()), this.ICON_KEY());
143
+ }
144
+ unpackTo(_o) {
145
+ _o.CODE = this.CODE();
146
+ _o.DISPLAY_NAME = this.DISPLAY_NAME();
147
+ _o.SUMMARY = this.SUMMARY();
148
+ _o.SLUG = this.SLUG();
149
+ _o.DESCRIPTION = this.DESCRIPTION();
150
+ _o.PARENT = this.PARENT();
151
+ _o.SORT_ORDER = this.SORT_ORDER();
152
+ _o.KEYWORDS = this.bb.createScalarList(this.KEYWORDS.bind(this), this.keywordsLength());
153
+ _o.ICON_KEY = this.ICON_KEY();
154
+ }
155
+ }
156
+ export class CCTCategoryT {
157
+ constructor(CODE = capabilityClass.UNSPECIFIED, DISPLAY_NAME = null, SUMMARY = null, SLUG = null, DESCRIPTION = null, PARENT = capabilityClass.UNSPECIFIED, SORT_ORDER = 0, KEYWORDS = [], ICON_KEY = null) {
158
+ this.CODE = CODE;
159
+ this.DISPLAY_NAME = DISPLAY_NAME;
160
+ this.SUMMARY = SUMMARY;
161
+ this.SLUG = SLUG;
162
+ this.DESCRIPTION = DESCRIPTION;
163
+ this.PARENT = PARENT;
164
+ this.SORT_ORDER = SORT_ORDER;
165
+ this.KEYWORDS = KEYWORDS;
166
+ this.ICON_KEY = ICON_KEY;
167
+ }
168
+ pack(builder) {
169
+ const DISPLAY_NAME = (this.DISPLAY_NAME !== null ? builder.createString(this.DISPLAY_NAME) : 0);
170
+ const SUMMARY = (this.SUMMARY !== null ? builder.createString(this.SUMMARY) : 0);
171
+ const SLUG = (this.SLUG !== null ? builder.createString(this.SLUG) : 0);
172
+ const DESCRIPTION = (this.DESCRIPTION !== null ? builder.createString(this.DESCRIPTION) : 0);
173
+ const KEYWORDS = CCTCategory.createKeywordsVector(builder, builder.createObjectOffsetList(this.KEYWORDS));
174
+ const ICON_KEY = (this.ICON_KEY !== null ? builder.createString(this.ICON_KEY) : 0);
175
+ return CCTCategory.createCCTCategory(builder, this.CODE, DISPLAY_NAME, SUMMARY, SLUG, DESCRIPTION, this.PARENT, this.SORT_ORDER, KEYWORDS, ICON_KEY);
176
+ }
177
+ }
@@ -0,0 +1,269 @@
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 { capabilityClass } from './capabilityClass.js';
8
+
9
+
10
+ /**
11
+ * One ratified category in the taxonomy.
12
+ *
13
+ * DISPLAY_NAME, SUMMARY and SLUG are required: a category cannot be published
14
+ * without the label a surface will render, the sentence a browse row will
15
+ * show, and the route a link will target. This is what stops each consumer
16
+ * from inventing its own wording for the same code.
17
+ */
18
+ export class CCTCategory implements flatbuffers.IUnpackableObject<CCTCategoryT> {
19
+ bb: flatbuffers.ByteBuffer|null = null;
20
+ bb_pos = 0;
21
+ __init(i:number, bb:flatbuffers.ByteBuffer):CCTCategory {
22
+ this.bb_pos = i;
23
+ this.bb = bb;
24
+ return this;
25
+ }
26
+
27
+ static getRootAsCCTCategory(bb:flatbuffers.ByteBuffer, obj?:CCTCategory):CCTCategory {
28
+ return (obj || new CCTCategory()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
29
+ }
30
+
31
+ static getSizePrefixedRootAsCCTCategory(bb:flatbuffers.ByteBuffer, obj?:CCTCategory):CCTCategory {
32
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
33
+ return (obj || new CCTCategory()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
34
+ }
35
+
36
+ /**
37
+ * The ratified category code. This is the join key every consumer uses.
38
+ */
39
+ CODE():capabilityClass {
40
+ const offset = this.bb!.__offset(this.bb_pos, 4);
41
+ return offset ? this.bb!.readUint8(this.bb_pos + offset) : capabilityClass.UNSPECIFIED;
42
+ }
43
+
44
+ /**
45
+ * Canonical human-readable label, rendered verbatim. MUST equal the display
46
+ * name stated in the CODE member's doc comment.
47
+ */
48
+ DISPLAY_NAME():string
49
+ DISPLAY_NAME(optionalEncoding:flatbuffers.Encoding):string|Uint8Array
50
+ DISPLAY_NAME(optionalEncoding?:any):string|Uint8Array {
51
+ const offset = this.bb!.__offset(this.bb_pos, 6);
52
+ return this.bb!.__string(this.bb_pos + offset, optionalEncoding);
53
+ }
54
+
55
+ /**
56
+ * One-sentence description shown on browse rows and category headers.
57
+ */
58
+ SUMMARY():string
59
+ SUMMARY(optionalEncoding:flatbuffers.Encoding):string|Uint8Array
60
+ SUMMARY(optionalEncoding?:any):string|Uint8Array {
61
+ const offset = this.bb!.__offset(this.bb_pos, 8);
62
+ return this.bb!.__string(this.bb_pos + offset, optionalEncoding);
63
+ }
64
+
65
+ /**
66
+ * Route-safe identifier: the CODE identifier lowercased with `_` replaced by
67
+ * `-`. Published explicitly rather than derived so every surface routes
68
+ * identically.
69
+ */
70
+ SLUG():string
71
+ SLUG(optionalEncoding:flatbuffers.Encoding):string|Uint8Array
72
+ SLUG(optionalEncoding?:any):string|Uint8Array {
73
+ const offset = this.bb!.__offset(this.bb_pos, 10);
74
+ return this.bb!.__string(this.bb_pos + offset, optionalEncoding);
75
+ }
76
+
77
+ /**
78
+ * Longer editorial description for a category landing page.
79
+ */
80
+ DESCRIPTION():string|null
81
+ DESCRIPTION(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
82
+ DESCRIPTION(optionalEncoding?:any):string|Uint8Array|null {
83
+ const offset = this.bb!.__offset(this.bb_pos, 12);
84
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
85
+ }
86
+
87
+ /**
88
+ * Parent category for hierarchical browse. UNSPECIFIED means this is a
89
+ * top-level category. A category MUST NOT name itself as its parent.
90
+ */
91
+ PARENT():capabilityClass {
92
+ const offset = this.bb!.__offset(this.bb_pos, 14);
93
+ return offset ? this.bb!.readUint8(this.bb_pos + offset) : capabilityClass.UNSPECIFIED;
94
+ }
95
+
96
+ /**
97
+ * Presentation order within its parent, ascending. Ties break on
98
+ * DISPLAY_NAME.
99
+ */
100
+ SORT_ORDER():number {
101
+ const offset = this.bb!.__offset(this.bb_pos, 16);
102
+ return offset ? this.bb!.readUint16(this.bb_pos + offset) : 0;
103
+ }
104
+
105
+ /**
106
+ * Search synonyms and alternate phrasings that resolve to this category.
107
+ * Feeds type-ahead; never rendered as the category label.
108
+ */
109
+ KEYWORDS(index: number):string
110
+ KEYWORDS(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
111
+ KEYWORDS(index: number,optionalEncoding?:any):string|Uint8Array|null {
112
+ const offset = this.bb!.__offset(this.bb_pos, 18);
113
+ return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
114
+ }
115
+
116
+ keywordsLength():number {
117
+ const offset = this.bb!.__offset(this.bb_pos, 18);
118
+ return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
119
+ }
120
+
121
+ /**
122
+ * Key of a self-hosted icon or capsule asset for this category. A KEY, not a
123
+ * URL: consuming node surfaces load zero external-origin bytes, so the
124
+ * consumer resolves this against its own local asset set.
125
+ */
126
+ ICON_KEY():string|null
127
+ ICON_KEY(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
128
+ ICON_KEY(optionalEncoding?:any):string|Uint8Array|null {
129
+ const offset = this.bb!.__offset(this.bb_pos, 20);
130
+ return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
131
+ }
132
+
133
+ static startCCTCategory(builder:flatbuffers.Builder) {
134
+ builder.startObject(9);
135
+ }
136
+
137
+ static addCode(builder:flatbuffers.Builder, CODE:capabilityClass) {
138
+ builder.addFieldInt8(0, CODE, capabilityClass.UNSPECIFIED);
139
+ }
140
+
141
+ static addDisplayName(builder:flatbuffers.Builder, DISPLAY_NAMEOffset:flatbuffers.Offset) {
142
+ builder.addFieldOffset(1, DISPLAY_NAMEOffset, 0);
143
+ }
144
+
145
+ static addSummary(builder:flatbuffers.Builder, SUMMARYOffset:flatbuffers.Offset) {
146
+ builder.addFieldOffset(2, SUMMARYOffset, 0);
147
+ }
148
+
149
+ static addSlug(builder:flatbuffers.Builder, SLUGOffset:flatbuffers.Offset) {
150
+ builder.addFieldOffset(3, SLUGOffset, 0);
151
+ }
152
+
153
+ static addDescription(builder:flatbuffers.Builder, DESCRIPTIONOffset:flatbuffers.Offset) {
154
+ builder.addFieldOffset(4, DESCRIPTIONOffset, 0);
155
+ }
156
+
157
+ static addParent(builder:flatbuffers.Builder, PARENT:capabilityClass) {
158
+ builder.addFieldInt8(5, PARENT, capabilityClass.UNSPECIFIED);
159
+ }
160
+
161
+ static addSortOrder(builder:flatbuffers.Builder, SORT_ORDER:number) {
162
+ builder.addFieldInt16(6, SORT_ORDER, 0);
163
+ }
164
+
165
+ static addKeywords(builder:flatbuffers.Builder, KEYWORDSOffset:flatbuffers.Offset) {
166
+ builder.addFieldOffset(7, KEYWORDSOffset, 0);
167
+ }
168
+
169
+ static createKeywordsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
170
+ builder.startVector(4, data.length, 4);
171
+ for (let i = data.length - 1; i >= 0; i--) {
172
+ builder.addOffset(data[i]!);
173
+ }
174
+ return builder.endVector();
175
+ }
176
+
177
+ static startKeywordsVector(builder:flatbuffers.Builder, numElems:number) {
178
+ builder.startVector(4, numElems, 4);
179
+ }
180
+
181
+ static addIconKey(builder:flatbuffers.Builder, ICON_KEYOffset:flatbuffers.Offset) {
182
+ builder.addFieldOffset(8, ICON_KEYOffset, 0);
183
+ }
184
+
185
+ static endCCTCategory(builder:flatbuffers.Builder):flatbuffers.Offset {
186
+ const offset = builder.endObject();
187
+ builder.requiredField(offset, 6) // DISPLAY_NAME
188
+ builder.requiredField(offset, 8) // SUMMARY
189
+ builder.requiredField(offset, 10) // SLUG
190
+ return offset;
191
+ }
192
+
193
+ 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 {
194
+ CCTCategory.startCCTCategory(builder);
195
+ CCTCategory.addCode(builder, CODE);
196
+ CCTCategory.addDisplayName(builder, DISPLAY_NAMEOffset);
197
+ CCTCategory.addSummary(builder, SUMMARYOffset);
198
+ CCTCategory.addSlug(builder, SLUGOffset);
199
+ CCTCategory.addDescription(builder, DESCRIPTIONOffset);
200
+ CCTCategory.addParent(builder, PARENT);
201
+ CCTCategory.addSortOrder(builder, SORT_ORDER);
202
+ CCTCategory.addKeywords(builder, KEYWORDSOffset);
203
+ CCTCategory.addIconKey(builder, ICON_KEYOffset);
204
+ return CCTCategory.endCCTCategory(builder);
205
+ }
206
+
207
+ unpack(): CCTCategoryT {
208
+ return new CCTCategoryT(
209
+ this.CODE(),
210
+ this.DISPLAY_NAME(),
211
+ this.SUMMARY(),
212
+ this.SLUG(),
213
+ this.DESCRIPTION(),
214
+ this.PARENT(),
215
+ this.SORT_ORDER(),
216
+ this.bb!.createScalarList<string>(this.KEYWORDS.bind(this), this.keywordsLength()),
217
+ this.ICON_KEY()
218
+ );
219
+ }
220
+
221
+
222
+ unpackTo(_o: CCTCategoryT): void {
223
+ _o.CODE = this.CODE();
224
+ _o.DISPLAY_NAME = this.DISPLAY_NAME();
225
+ _o.SUMMARY = this.SUMMARY();
226
+ _o.SLUG = this.SLUG();
227
+ _o.DESCRIPTION = this.DESCRIPTION();
228
+ _o.PARENT = this.PARENT();
229
+ _o.SORT_ORDER = this.SORT_ORDER();
230
+ _o.KEYWORDS = this.bb!.createScalarList<string>(this.KEYWORDS.bind(this), this.keywordsLength());
231
+ _o.ICON_KEY = this.ICON_KEY();
232
+ }
233
+ }
234
+
235
+ export class CCTCategoryT implements flatbuffers.IGeneratedObject {
236
+ constructor(
237
+ public CODE: capabilityClass = capabilityClass.UNSPECIFIED,
238
+ public DISPLAY_NAME: string|Uint8Array|null = null,
239
+ public SUMMARY: string|Uint8Array|null = null,
240
+ public SLUG: string|Uint8Array|null = null,
241
+ public DESCRIPTION: string|Uint8Array|null = null,
242
+ public PARENT: capabilityClass = capabilityClass.UNSPECIFIED,
243
+ public SORT_ORDER: number = 0,
244
+ public KEYWORDS: (string)[] = [],
245
+ public ICON_KEY: string|Uint8Array|null = null
246
+ ){}
247
+
248
+
249
+ pack(builder:flatbuffers.Builder): flatbuffers.Offset {
250
+ const DISPLAY_NAME = (this.DISPLAY_NAME !== null ? builder.createString(this.DISPLAY_NAME!) : 0);
251
+ const SUMMARY = (this.SUMMARY !== null ? builder.createString(this.SUMMARY!) : 0);
252
+ const SLUG = (this.SLUG !== null ? builder.createString(this.SLUG!) : 0);
253
+ const DESCRIPTION = (this.DESCRIPTION !== null ? builder.createString(this.DESCRIPTION!) : 0);
254
+ const KEYWORDS = CCTCategory.createKeywordsVector(builder, builder.createObjectOffsetList(this.KEYWORDS));
255
+ const ICON_KEY = (this.ICON_KEY !== null ? builder.createString(this.ICON_KEY!) : 0);
256
+
257
+ return CCTCategory.createCCTCategory(builder,
258
+ this.CODE,
259
+ DISPLAY_NAME,
260
+ SUMMARY,
261
+ SLUG,
262
+ DESCRIPTION,
263
+ this.PARENT,
264
+ this.SORT_ORDER,
265
+ KEYWORDS,
266
+ ICON_KEY
267
+ );
268
+ }
269
+ }
@@ -0,0 +1,54 @@
1
+ import * as flatbuffers from 'flatbuffers';
2
+ import { capabilityClass } from './capabilityClass.js';
3
+ /**
4
+ * An observed count of catalogue items in one category.
5
+ *
6
+ * Counts are VOLATILE and are never part of the ratified taxonomy itself. A
7
+ * rollup exists only with COUNTED_AT and SOURCE_CATALOG_ID, so a published
8
+ * count can never omit when it was taken or what it was taken over. A consumer
9
+ * that needs a live number computes it from the items; a consumer rendering a
10
+ * published rollup MUST show it as of COUNTED_AT.
11
+ */
12
+ export declare class CCTCategoryRollup implements flatbuffers.IUnpackableObject<CCTCategoryRollupT> {
13
+ bb: flatbuffers.ByteBuffer | null;
14
+ bb_pos: number;
15
+ __init(i: number, bb: flatbuffers.ByteBuffer): CCTCategoryRollup;
16
+ static getRootAsCCTCategoryRollup(bb: flatbuffers.ByteBuffer, obj?: CCTCategoryRollup): CCTCategoryRollup;
17
+ static getSizePrefixedRootAsCCTCategoryRollup(bb: flatbuffers.ByteBuffer, obj?: CCTCategoryRollup): CCTCategoryRollup;
18
+ /**
19
+ * Category being counted.
20
+ */
21
+ CODE(): capabilityClass;
22
+ /**
23
+ * Number of catalogue items whose PRIMARY_CATEGORY or CATEGORIES include
24
+ * CODE, counted over SOURCE_CATALOG_ID at COUNTED_AT.
25
+ */
26
+ ITEM_COUNT(): number;
27
+ /**
28
+ * Identifier of the catalogue the count was taken over.
29
+ */
30
+ SOURCE_CATALOG_ID(): string;
31
+ SOURCE_CATALOG_ID(optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
32
+ /**
33
+ * Unix seconds when the count was taken.
34
+ */
35
+ COUNTED_AT(): bigint;
36
+ static startCCTCategoryRollup(builder: flatbuffers.Builder): void;
37
+ static addCode(builder: flatbuffers.Builder, CODE: capabilityClass): void;
38
+ static addItemCount(builder: flatbuffers.Builder, ITEM_COUNT: number): void;
39
+ static addSourceCatalogId(builder: flatbuffers.Builder, SOURCE_CATALOG_IDOffset: flatbuffers.Offset): void;
40
+ static addCountedAt(builder: flatbuffers.Builder, COUNTED_AT: bigint): void;
41
+ static endCCTCategoryRollup(builder: flatbuffers.Builder): flatbuffers.Offset;
42
+ static createCCTCategoryRollup(builder: flatbuffers.Builder, CODE: capabilityClass, ITEM_COUNT: number, SOURCE_CATALOG_IDOffset: flatbuffers.Offset, COUNTED_AT: bigint): flatbuffers.Offset;
43
+ unpack(): CCTCategoryRollupT;
44
+ unpackTo(_o: CCTCategoryRollupT): void;
45
+ }
46
+ export declare class CCTCategoryRollupT implements flatbuffers.IGeneratedObject {
47
+ CODE: capabilityClass;
48
+ ITEM_COUNT: number;
49
+ SOURCE_CATALOG_ID: string | Uint8Array | null;
50
+ COUNTED_AT: bigint;
51
+ constructor(CODE?: capabilityClass, ITEM_COUNT?: number, SOURCE_CATALOG_ID?: string | Uint8Array | null, COUNTED_AT?: bigint);
52
+ pack(builder: flatbuffers.Builder): flatbuffers.Offset;
53
+ }
54
+ //# sourceMappingURL=CCTCategoryRollup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CCTCategoryRollup.d.ts","sourceRoot":"","sources":["../../../ts/PLG/CCTCategoryRollup.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD;;;;;;;;GAQG;AACH,qBAAa,iBAAkB,YAAW,WAAW,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;IACzF,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,iBAAiB;IAM/D,MAAM,CAAC,0BAA0B,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,iBAAiB,GAAE,iBAAiB;IAItG,MAAM,CAAC,sCAAsC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,iBAAiB,GAAE,iBAAiB;IAKlH;;OAEG;IACH,IAAI,IAAG,eAAe;IAKtB;;;OAGG;IACH,UAAU,IAAG,MAAM;IAKnB;;OAEG;IACH,iBAAiB,IAAG,MAAM;IAC1B,iBAAiB,CAAC,gBAAgB,EAAC,WAAW,CAAC,QAAQ,GAAE,MAAM,GAAC,UAAU;IAM1E;;OAEG;IACH,UAAU,IAAG,MAAM;IAKnB,MAAM,CAAC,sBAAsB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAIzD,MAAM,CAAC,OAAO,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,IAAI,EAAC,eAAe;IAIhE,MAAM,CAAC,YAAY,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,UAAU,EAAC,MAAM;IAIlE,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,uBAAuB,EAAC,WAAW,CAAC,MAAM;IAIjG,MAAM,CAAC,YAAY,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,UAAU,EAAC,MAAM;IAIlE,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAM3E,MAAM,CAAC,uBAAuB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,IAAI,EAAC,eAAe,EAAE,UAAU,EAAC,MAAM,EAAE,uBAAuB,EAAC,WAAW,CAAC,MAAM,EAAE,UAAU,EAAC,MAAM,GAAE,WAAW,CAAC,MAAM;IAStL,MAAM,IAAI,kBAAkB;IAU5B,QAAQ,CAAC,EAAE,EAAE,kBAAkB,GAAG,IAAI;CAMrC;AAED,qBAAa,kBAAmB,YAAW,WAAW,CAAC,gBAAgB;IAE9D,IAAI,EAAE,eAAe;IACrB,UAAU,EAAE,MAAM;IAClB,iBAAiB,EAAE,MAAM,GAAC,UAAU,GAAC,IAAI;IACzC,UAAU,EAAE,MAAM;gBAHlB,IAAI,GAAE,eAA6C,EACnD,UAAU,GAAE,MAAU,EACtB,iBAAiB,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW,EAChD,UAAU,GAAE,MAAoB;IAIzC,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAUpD"}
@@ -0,0 +1,106 @@
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 { capabilityClass } from './capabilityClass.js';
5
+ /**
6
+ * An observed count of catalogue items in one category.
7
+ *
8
+ * Counts are VOLATILE and are never part of the ratified taxonomy itself. A
9
+ * rollup exists only with COUNTED_AT and SOURCE_CATALOG_ID, so a published
10
+ * count can never omit when it was taken or what it was taken over. A consumer
11
+ * that needs a live number computes it from the items; a consumer rendering a
12
+ * published rollup MUST show it as of COUNTED_AT.
13
+ */
14
+ export class CCTCategoryRollup {
15
+ constructor() {
16
+ this.bb = null;
17
+ this.bb_pos = 0;
18
+ }
19
+ __init(i, bb) {
20
+ this.bb_pos = i;
21
+ this.bb = bb;
22
+ return this;
23
+ }
24
+ static getRootAsCCTCategoryRollup(bb, obj) {
25
+ return (obj || new CCTCategoryRollup()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
26
+ }
27
+ static getSizePrefixedRootAsCCTCategoryRollup(bb, obj) {
28
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
29
+ return (obj || new CCTCategoryRollup()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
30
+ }
31
+ /**
32
+ * Category being counted.
33
+ */
34
+ CODE() {
35
+ const offset = this.bb.__offset(this.bb_pos, 4);
36
+ return offset ? this.bb.readUint8(this.bb_pos + offset) : capabilityClass.UNSPECIFIED;
37
+ }
38
+ /**
39
+ * Number of catalogue items whose PRIMARY_CATEGORY or CATEGORIES include
40
+ * CODE, counted over SOURCE_CATALOG_ID at COUNTED_AT.
41
+ */
42
+ ITEM_COUNT() {
43
+ const offset = this.bb.__offset(this.bb_pos, 6);
44
+ return offset ? this.bb.readUint32(this.bb_pos + offset) : 0;
45
+ }
46
+ SOURCE_CATALOG_ID(optionalEncoding) {
47
+ const offset = this.bb.__offset(this.bb_pos, 8);
48
+ return this.bb.__string(this.bb_pos + offset, optionalEncoding);
49
+ }
50
+ /**
51
+ * Unix seconds when the count was taken.
52
+ */
53
+ COUNTED_AT() {
54
+ const offset = this.bb.__offset(this.bb_pos, 10);
55
+ return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
56
+ }
57
+ static startCCTCategoryRollup(builder) {
58
+ builder.startObject(4);
59
+ }
60
+ static addCode(builder, CODE) {
61
+ builder.addFieldInt8(0, CODE, capabilityClass.UNSPECIFIED);
62
+ }
63
+ static addItemCount(builder, ITEM_COUNT) {
64
+ builder.addFieldInt32(1, ITEM_COUNT, 0);
65
+ }
66
+ static addSourceCatalogId(builder, SOURCE_CATALOG_IDOffset) {
67
+ builder.addFieldOffset(2, SOURCE_CATALOG_IDOffset, 0);
68
+ }
69
+ static addCountedAt(builder, COUNTED_AT) {
70
+ builder.addFieldInt64(3, COUNTED_AT, BigInt('0'));
71
+ }
72
+ static endCCTCategoryRollup(builder) {
73
+ const offset = builder.endObject();
74
+ builder.requiredField(offset, 8); // SOURCE_CATALOG_ID
75
+ return offset;
76
+ }
77
+ static createCCTCategoryRollup(builder, CODE, ITEM_COUNT, SOURCE_CATALOG_IDOffset, COUNTED_AT) {
78
+ CCTCategoryRollup.startCCTCategoryRollup(builder);
79
+ CCTCategoryRollup.addCode(builder, CODE);
80
+ CCTCategoryRollup.addItemCount(builder, ITEM_COUNT);
81
+ CCTCategoryRollup.addSourceCatalogId(builder, SOURCE_CATALOG_IDOffset);
82
+ CCTCategoryRollup.addCountedAt(builder, COUNTED_AT);
83
+ return CCTCategoryRollup.endCCTCategoryRollup(builder);
84
+ }
85
+ unpack() {
86
+ return new CCTCategoryRollupT(this.CODE(), this.ITEM_COUNT(), this.SOURCE_CATALOG_ID(), this.COUNTED_AT());
87
+ }
88
+ unpackTo(_o) {
89
+ _o.CODE = this.CODE();
90
+ _o.ITEM_COUNT = this.ITEM_COUNT();
91
+ _o.SOURCE_CATALOG_ID = this.SOURCE_CATALOG_ID();
92
+ _o.COUNTED_AT = this.COUNTED_AT();
93
+ }
94
+ }
95
+ export class CCTCategoryRollupT {
96
+ constructor(CODE = capabilityClass.UNSPECIFIED, ITEM_COUNT = 0, SOURCE_CATALOG_ID = null, COUNTED_AT = BigInt('0')) {
97
+ this.CODE = CODE;
98
+ this.ITEM_COUNT = ITEM_COUNT;
99
+ this.SOURCE_CATALOG_ID = SOURCE_CATALOG_ID;
100
+ this.COUNTED_AT = COUNTED_AT;
101
+ }
102
+ pack(builder) {
103
+ const SOURCE_CATALOG_ID = (this.SOURCE_CATALOG_ID !== null ? builder.createString(this.SOURCE_CATALOG_ID) : 0);
104
+ return CCTCategoryRollup.createCCTCategoryRollup(builder, this.CODE, this.ITEM_COUNT, SOURCE_CATALOG_ID, this.COUNTED_AT);
105
+ }
106
+ }