space-data-module-sdk 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,6 @@
1
1
  const deliverMode = Object.freeze({ "Inline": 0, "Ref": 1 });
2
2
  const configEntryKind = Object.freeze({ "String": 0, "Number": 1, "Bool": 2 });
3
3
  const reconcileKind = Object.freeze({ "Duplicates": 0, "None": 1, "Current": 2 });
4
- const sqlValueKind = Object.freeze({ "Null": 0, "Bool": 1, "I64": 2, "F64": 3, "Str": 4 });
5
4
  const sandboxWant = Object.freeze({ "Stream": 0, "Rows": 1, "Auto": 2 });
6
5
  const cryptoAlgorithm = Object.freeze({ "Default": 0, "Ed25519": 1, "Secp256k1": 2, "Secp256k1Digest": 3, "X25519": 4, "Sha256": 5, "Sha512": 6, "Aes256Gcm": 7, "HkdfSha256": 8 });
7
6
  export {
@@ -9,6 +8,5 @@ export {
9
8
  cryptoAlgorithm,
10
9
  deliverMode,
11
10
  reconcileKind,
12
- sandboxWant,
13
- sqlValueKind
11
+ sandboxWant
14
12
  };
@@ -2,6 +2,5 @@
2
2
  export const deliverMode = Object.freeze({"Inline":0,"Ref":1});
3
3
  export const configEntryKind = Object.freeze({"String":0,"Number":1,"Bool":2});
4
4
  export const reconcileKind = Object.freeze({"Duplicates":0,"None":1,"Current":2});
5
- export const sqlValueKind = Object.freeze({"Null":0,"Bool":1,"I64":2,"F64":3,"Str":4});
6
5
  export const sandboxWant = Object.freeze({"Stream":0,"Rows":1,"Auto":2});
7
6
  export const cryptoAlgorithm = Object.freeze({"Default":0,"Ed25519":1,"Secp256k1":2,"Secp256k1Digest":3,"X25519":4,"Sha256":5,"Sha512":6,"Aes256Gcm":7,"HkdfSha256":8});
@@ -76,14 +76,6 @@ enum reconcileKind : uint8_t {
76
76
  reconcileKind_Current = 2,
77
77
  };
78
78
 
79
- enum sqlValueKind : uint8_t {
80
- sqlValueKind_Null = 0,
81
- sqlValueKind_Bool = 1,
82
- sqlValueKind_I64 = 2,
83
- sqlValueKind_F64 = 3,
84
- sqlValueKind_Str = 4,
85
- };
86
-
87
79
  enum sandboxWant : uint8_t {
88
80
  sandboxWant_Stream = 0,
89
81
  sandboxWant_Rows = 1,
@@ -537,7 +529,7 @@ struct StoredRecordMeta {
537
529
  ::flatbuffers::aligned_runtime::AlignedString<128> SOURCE_NAME;
538
530
  ::flatbuffers::aligned_runtime::AlignedString<128> BATCH_ID;
539
531
  ::flatbuffers::aligned_runtime::AlignedString<128> PRODUCER_PEER_ID;
540
- ::flatbuffers::aligned_runtime::AlignedString<64> LICENSE;
532
+ ::flatbuffers::aligned_runtime::AlignedString<128> LICENSE;
541
533
 
542
534
  bool has_CID() const {
543
535
  return (__presence[0] & 1) != 0;
@@ -595,10 +587,10 @@ struct StoredRecordMeta {
595
587
  static const StoredRecordMeta* fromBytes(const void* data) {
596
588
  return reinterpret_cast<const StoredRecordMeta*>(data);
597
589
  }
598
- void copyTo(void* dest) const { std::memcpy(dest, this, 888); }
599
- void copyFrom(const StoredRecordMeta& src) { std::memcpy(this, &src, 888); }
590
+ void copyTo(void* dest) const { std::memcpy(dest, this, 952); }
591
+ void copyFrom(const StoredRecordMeta& src) { std::memcpy(this, &src, 952); }
600
592
  };
601
- static_assert(sizeof(StoredRecordMeta) == 888, "StoredRecordMeta size mismatch");
593
+ static_assert(sizeof(StoredRecordMeta) == 952, "StoredRecordMeta size mismatch");
602
594
  static_assert(alignof(StoredRecordMeta) == 8, "StoredRecordMeta alignment mismatch");
603
595
  static_assert(offsetof(StoredRecordMeta, CID) == 1, "StoredRecordMeta.CID offset mismatch");
604
596
  static_assert(offsetof(StoredRecordMeta, ROW_ID) == 136, "StoredRecordMeta.ROW_ID offset mismatch");
@@ -611,7 +603,7 @@ static_assert(offsetof(StoredRecordMeta, SOURCE_NAME) == 429, "StoredRecordMeta.
611
603
  static_assert(offsetof(StoredRecordMeta, BATCH_ID) == 558, "StoredRecordMeta.BATCH_ID offset mismatch");
612
604
  static_assert(offsetof(StoredRecordMeta, PRODUCER_PEER_ID) == 687, "StoredRecordMeta.PRODUCER_PEER_ID offset mismatch");
613
605
  static_assert(offsetof(StoredRecordMeta, LICENSE) == 816, "StoredRecordMeta.LICENSE offset mismatch");
614
- constexpr size_t StoredRecordMeta_SIZE = 888;
606
+ constexpr size_t StoredRecordMeta_SIZE = 952;
615
607
  constexpr size_t StoredRecordMeta_ALIGN = 8;
616
608
 
617
609
  } // namespace Aligned
@@ -833,9 +825,9 @@ struct StorageIngestParams {
833
825
  ::flatbuffers::aligned_runtime::AlignedString<128> SOURCE_NAME;
834
826
  ::flatbuffers::aligned_runtime::AlignedString<128> BATCH_ID;
835
827
  ::flatbuffers::aligned_runtime::AlignedString<255> SOURCE_URL;
836
- ::flatbuffers::aligned_runtime::AlignedString<64> CONTENT_KEY_ID;
828
+ ::flatbuffers::aligned_runtime::AlignedString<128> CONTENT_KEY_ID;
837
829
  ::flatbuffers::aligned_runtime::AlignedString<128> SOURCE_PEER;
838
- ::flatbuffers::aligned_runtime::AlignedString<64> LICENSE;
830
+ ::flatbuffers::aligned_runtime::AlignedString<128> LICENSE;
839
831
  ::flatbuffers::aligned_runtime::AlignedString<255> LICENSE_URL;
840
832
  ::flatbuffers::aligned_runtime::AlignedString<255> CITATION;
841
833
  bool SHARE_ALIKE;
@@ -934,10 +926,10 @@ struct StorageIngestParams {
934
926
  static const StorageIngestParams* fromBytes(const void* data) {
935
927
  return reinterpret_cast<const StorageIngestParams*>(data);
936
928
  }
937
- void copyTo(void* dest) const { std::memcpy(dest, this, 1868); }
938
- void copyFrom(const StorageIngestParams& src) { std::memcpy(this, &src, 1868); }
929
+ void copyTo(void* dest) const { std::memcpy(dest, this, 1996); }
930
+ void copyFrom(const StorageIngestParams& src) { std::memcpy(this, &src, 1996); }
939
931
  };
940
- static_assert(sizeof(StorageIngestParams) == 1868, "StorageIngestParams size mismatch");
932
+ static_assert(sizeof(StorageIngestParams) == 1996, "StorageIngestParams size mismatch");
941
933
  static_assert(alignof(StorageIngestParams) == 1, "StorageIngestParams alignment mismatch");
942
934
  static_assert(offsetof(StorageIngestParams, SCHEMA) == 2, "StorageIngestParams.SCHEMA offset mismatch");
943
935
  static_assert(offsetof(StorageIngestParams, PROVIDER_ID) == 67, "StorageIngestParams.PROVIDER_ID offset mismatch");
@@ -945,15 +937,15 @@ static_assert(offsetof(StorageIngestParams, SOURCE_NAME) == 196, "StorageIngestP
945
937
  static_assert(offsetof(StorageIngestParams, BATCH_ID) == 325, "StorageIngestParams.BATCH_ID offset mismatch");
946
938
  static_assert(offsetof(StorageIngestParams, SOURCE_URL) == 454, "StorageIngestParams.SOURCE_URL offset mismatch");
947
939
  static_assert(offsetof(StorageIngestParams, CONTENT_KEY_ID) == 710, "StorageIngestParams.CONTENT_KEY_ID offset mismatch");
948
- static_assert(offsetof(StorageIngestParams, SOURCE_PEER) == 775, "StorageIngestParams.SOURCE_PEER offset mismatch");
949
- static_assert(offsetof(StorageIngestParams, LICENSE) == 904, "StorageIngestParams.LICENSE offset mismatch");
950
- static_assert(offsetof(StorageIngestParams, LICENSE_URL) == 969, "StorageIngestParams.LICENSE_URL offset mismatch");
951
- static_assert(offsetof(StorageIngestParams, CITATION) == 1225, "StorageIngestParams.CITATION offset mismatch");
952
- static_assert(offsetof(StorageIngestParams, SHARE_ALIKE) == 1481, "StorageIngestParams.SHARE_ALIKE offset mismatch");
953
- static_assert(offsetof(StorageIngestParams, RECONCILE) == 1482, "StorageIngestParams.RECONCILE offset mismatch");
954
- static_assert(offsetof(StorageIngestParams, ARCHIVE_SOURCE) == 1483, "StorageIngestParams.ARCHIVE_SOURCE offset mismatch");
955
- static_assert(offsetof(StorageIngestParams, ARCHIVE_NAME) == 1612, "StorageIngestParams.ARCHIVE_NAME offset mismatch");
956
- constexpr size_t StorageIngestParams_SIZE = 1868;
940
+ static_assert(offsetof(StorageIngestParams, SOURCE_PEER) == 839, "StorageIngestParams.SOURCE_PEER offset mismatch");
941
+ static_assert(offsetof(StorageIngestParams, LICENSE) == 968, "StorageIngestParams.LICENSE offset mismatch");
942
+ static_assert(offsetof(StorageIngestParams, LICENSE_URL) == 1097, "StorageIngestParams.LICENSE_URL offset mismatch");
943
+ static_assert(offsetof(StorageIngestParams, CITATION) == 1353, "StorageIngestParams.CITATION offset mismatch");
944
+ static_assert(offsetof(StorageIngestParams, SHARE_ALIKE) == 1609, "StorageIngestParams.SHARE_ALIKE offset mismatch");
945
+ static_assert(offsetof(StorageIngestParams, RECONCILE) == 1610, "StorageIngestParams.RECONCILE offset mismatch");
946
+ static_assert(offsetof(StorageIngestParams, ARCHIVE_SOURCE) == 1611, "StorageIngestParams.ARCHIVE_SOURCE offset mismatch");
947
+ static_assert(offsetof(StorageIngestParams, ARCHIVE_NAME) == 1740, "StorageIngestParams.ARCHIVE_NAME offset mismatch");
948
+ constexpr size_t StorageIngestParams_SIZE = 1996;
957
949
  constexpr size_t StorageIngestParams_ALIGN = 1;
958
950
 
959
951
  } // namespace Aligned
@@ -968,12 +960,12 @@ struct Provenance {
968
960
  uint8_t __presence[1];
969
961
  ::flatbuffers::aligned_runtime::AlignedString<255> SOURCE_URL;
970
962
  int32_t HTTP_STATUS;
971
- ::flatbuffers::aligned_runtime::AlignedString<128> ETAG;
963
+ ::flatbuffers::aligned_runtime::AlignedString<255> ETAG;
972
964
  ::flatbuffers::aligned_runtime::AlignedString<64> LAST_MODIFIED;
973
965
  ::flatbuffers::aligned_runtime::AlignedString<128> CONTENT_TYPE;
974
966
  uint64_t RETRIEVED_MS;
975
- ::flatbuffers::aligned_runtime::AlignedString<64> PARSER;
976
- ::flatbuffers::aligned_runtime::AlignedString<32> PARSER_VERSION;
967
+ ::flatbuffers::aligned_runtime::AlignedString<128> PARSER;
968
+ ::flatbuffers::aligned_runtime::AlignedString<64> PARSER_VERSION;
977
969
  ::flatbuffers::aligned_runtime::AlignedString<64> SOURCE_SHA256;
978
970
  ::flatbuffers::aligned_runtime::AlignedString<64> NORMALIZED_SHA256;
979
971
  uint64_t NORMALIZED_COUNT;
@@ -1042,24 +1034,24 @@ struct Provenance {
1042
1034
  static const Provenance* fromBytes(const void* data) {
1043
1035
  return reinterpret_cast<const Provenance*>(data);
1044
1036
  }
1045
- void copyTo(void* dest) const { std::memcpy(dest, this, 848); }
1046
- void copyFrom(const Provenance& src) { std::memcpy(this, &src, 848); }
1037
+ void copyTo(void* dest) const { std::memcpy(dest, this, 1072); }
1038
+ void copyFrom(const Provenance& src) { std::memcpy(this, &src, 1072); }
1047
1039
  };
1048
- static_assert(sizeof(Provenance) == 848, "Provenance size mismatch");
1040
+ static_assert(sizeof(Provenance) == 1072, "Provenance size mismatch");
1049
1041
  static_assert(alignof(Provenance) == 8, "Provenance alignment mismatch");
1050
1042
  static_assert(offsetof(Provenance, SOURCE_URL) == 1, "Provenance.SOURCE_URL offset mismatch");
1051
1043
  static_assert(offsetof(Provenance, HTTP_STATUS) == 260, "Provenance.HTTP_STATUS offset mismatch");
1052
1044
  static_assert(offsetof(Provenance, ETAG) == 264, "Provenance.ETAG offset mismatch");
1053
- static_assert(offsetof(Provenance, LAST_MODIFIED) == 393, "Provenance.LAST_MODIFIED offset mismatch");
1054
- static_assert(offsetof(Provenance, CONTENT_TYPE) == 458, "Provenance.CONTENT_TYPE offset mismatch");
1055
- static_assert(offsetof(Provenance, RETRIEVED_MS) == 592, "Provenance.RETRIEVED_MS offset mismatch");
1056
- static_assert(offsetof(Provenance, PARSER) == 600, "Provenance.PARSER offset mismatch");
1057
- static_assert(offsetof(Provenance, PARSER_VERSION) == 665, "Provenance.PARSER_VERSION offset mismatch");
1058
- static_assert(offsetof(Provenance, SOURCE_SHA256) == 698, "Provenance.SOURCE_SHA256 offset mismatch");
1059
- static_assert(offsetof(Provenance, NORMALIZED_SHA256) == 763, "Provenance.NORMALIZED_SHA256 offset mismatch");
1060
- static_assert(offsetof(Provenance, NORMALIZED_COUNT) == 832, "Provenance.NORMALIZED_COUNT offset mismatch");
1061
- static_assert(offsetof(Provenance, FROM_CACHE) == 840, "Provenance.FROM_CACHE offset mismatch");
1062
- constexpr size_t Provenance_SIZE = 848;
1045
+ static_assert(offsetof(Provenance, LAST_MODIFIED) == 520, "Provenance.LAST_MODIFIED offset mismatch");
1046
+ static_assert(offsetof(Provenance, CONTENT_TYPE) == 585, "Provenance.CONTENT_TYPE offset mismatch");
1047
+ static_assert(offsetof(Provenance, RETRIEVED_MS) == 720, "Provenance.RETRIEVED_MS offset mismatch");
1048
+ static_assert(offsetof(Provenance, PARSER) == 728, "Provenance.PARSER offset mismatch");
1049
+ static_assert(offsetof(Provenance, PARSER_VERSION) == 857, "Provenance.PARSER_VERSION offset mismatch");
1050
+ static_assert(offsetof(Provenance, SOURCE_SHA256) == 922, "Provenance.SOURCE_SHA256 offset mismatch");
1051
+ static_assert(offsetof(Provenance, NORMALIZED_SHA256) == 987, "Provenance.NORMALIZED_SHA256 offset mismatch");
1052
+ static_assert(offsetof(Provenance, NORMALIZED_COUNT) == 1056, "Provenance.NORMALIZED_COUNT offset mismatch");
1053
+ static_assert(offsetof(Provenance, FROM_CACHE) == 1064, "Provenance.FROM_CACHE offset mismatch");
1054
+ constexpr size_t Provenance_SIZE = 1072;
1063
1055
  constexpr size_t Provenance_ALIGN = 8;
1064
1056
 
1065
1057
  } // namespace Aligned
@@ -1070,6 +1062,50 @@ namespace sdn {
1070
1062
  namespace runtime {
1071
1063
  namespace Aligned {
1072
1064
 
1065
+ struct ProvenanceAttribute {
1066
+ uint8_t __presence[1];
1067
+ ::flatbuffers::aligned_runtime::AlignedString<128> NAME;
1068
+ ::flatbuffers::aligned_runtime::AlignedString<255> VALUE;
1069
+
1070
+ bool has_NAME() const {
1071
+ return (__presence[0] & 1) != 0;
1072
+ }
1073
+ void set_has_NAME(bool value) {
1074
+ if (value) __presence[0] |= 1;
1075
+ else __presence[0] &= ~1;
1076
+ }
1077
+ bool has_VALUE() const {
1078
+ return (__presence[0] & 2) != 0;
1079
+ }
1080
+ void set_has_VALUE(bool value) {
1081
+ if (value) __presence[0] |= 2;
1082
+ else __presence[0] &= ~2;
1083
+ }
1084
+
1085
+ static ProvenanceAttribute* fromBytes(void* data) {
1086
+ return reinterpret_cast<ProvenanceAttribute*>(data);
1087
+ }
1088
+ static const ProvenanceAttribute* fromBytes(const void* data) {
1089
+ return reinterpret_cast<const ProvenanceAttribute*>(data);
1090
+ }
1091
+ void copyTo(void* dest) const { std::memcpy(dest, this, 386); }
1092
+ void copyFrom(const ProvenanceAttribute& src) { std::memcpy(this, &src, 386); }
1093
+ };
1094
+ static_assert(sizeof(ProvenanceAttribute) == 386, "ProvenanceAttribute size mismatch");
1095
+ static_assert(alignof(ProvenanceAttribute) == 1, "ProvenanceAttribute alignment mismatch");
1096
+ static_assert(offsetof(ProvenanceAttribute, NAME) == 1, "ProvenanceAttribute.NAME offset mismatch");
1097
+ static_assert(offsetof(ProvenanceAttribute, VALUE) == 130, "ProvenanceAttribute.VALUE offset mismatch");
1098
+ constexpr size_t ProvenanceAttribute_SIZE = 386;
1099
+ constexpr size_t ProvenanceAttribute_ALIGN = 1;
1100
+
1101
+ } // namespace Aligned
1102
+ } // namespace runtime
1103
+ } // namespace sdn
1104
+
1105
+ namespace sdn {
1106
+ namespace runtime {
1107
+ namespace Aligned {
1108
+
1073
1109
  struct StorageIngestResult {
1074
1110
  uint8_t __presence[1];
1075
1111
  ::flatbuffers::aligned_runtime::AlignedString<64> SCHEMA;
@@ -1138,49 +1174,6 @@ namespace sdn {
1138
1174
  namespace runtime {
1139
1175
  namespace Aligned {
1140
1176
 
1141
- struct SqlValue {
1142
- uint8_t __presence[1];
1143
- sqlValueKind KIND;
1144
- bool BOOL_VALUE;
1145
- int64_t I64_VALUE;
1146
- double F64_VALUE;
1147
- ::flatbuffers::aligned_runtime::AlignedString<255> STR_VALUE;
1148
-
1149
- bool has_STR_VALUE() const {
1150
- return (__presence[0] & 1) != 0;
1151
- }
1152
- void set_has_STR_VALUE(bool value) {
1153
- if (value) __presence[0] |= 1;
1154
- else __presence[0] &= ~1;
1155
- }
1156
-
1157
- static SqlValue* fromBytes(void* data) {
1158
- return reinterpret_cast<SqlValue*>(data);
1159
- }
1160
- static const SqlValue* fromBytes(const void* data) {
1161
- return reinterpret_cast<const SqlValue*>(data);
1162
- }
1163
- void copyTo(void* dest) const { std::memcpy(dest, this, 280); }
1164
- void copyFrom(const SqlValue& src) { std::memcpy(this, &src, 280); }
1165
- };
1166
- static_assert(sizeof(SqlValue) == 280, "SqlValue size mismatch");
1167
- static_assert(alignof(SqlValue) == 8, "SqlValue alignment mismatch");
1168
- static_assert(offsetof(SqlValue, KIND) == 1, "SqlValue.KIND offset mismatch");
1169
- static_assert(offsetof(SqlValue, BOOL_VALUE) == 2, "SqlValue.BOOL_VALUE offset mismatch");
1170
- static_assert(offsetof(SqlValue, I64_VALUE) == 8, "SqlValue.I64_VALUE offset mismatch");
1171
- static_assert(offsetof(SqlValue, F64_VALUE) == 16, "SqlValue.F64_VALUE offset mismatch");
1172
- static_assert(offsetof(SqlValue, STR_VALUE) == 24, "SqlValue.STR_VALUE offset mismatch");
1173
- constexpr size_t SqlValue_SIZE = 280;
1174
- constexpr size_t SqlValue_ALIGN = 8;
1175
-
1176
- } // namespace Aligned
1177
- } // namespace runtime
1178
- } // namespace sdn
1179
-
1180
- namespace sdn {
1181
- namespace runtime {
1182
- namespace Aligned {
1183
-
1184
1177
  struct SqlStreamParams {
1185
1178
  deliverMode DELIVER;
1186
1179
 
@@ -2337,7 +2330,7 @@ struct P2pPnmEntry {
2337
2330
  ::flatbuffers::aligned_runtime::AlignedString<128> GOSSIP_PEER_ID;
2338
2331
  ::flatbuffers::aligned_runtime::AlignedString<16> STANDARD;
2339
2332
  ::flatbuffers::aligned_runtime::AlignedString<64> SCHEMA;
2340
- ::flatbuffers::aligned_runtime::AlignedString<16> FILE_ID;
2333
+ ::flatbuffers::aligned_runtime::AlignedString<255> FILE_ID;
2341
2334
  ::flatbuffers::aligned_runtime::AlignedString<255> FILE_NAME;
2342
2335
  ::flatbuffers::aligned_runtime::AlignedString<128> CID;
2343
2336
  uint64_t PUBLISH_MS;
@@ -2447,10 +2440,10 @@ struct P2pPnmEntry {
2447
2440
  static const P2pPnmEntry* fromBytes(const void* data) {
2448
2441
  return reinterpret_cast<const P2pPnmEntry*>(data);
2449
2442
  }
2450
- void copyTo(void* dest) const { std::memcpy(dest, this, 1400); }
2451
- void copyFrom(const P2pPnmEntry& src) { std::memcpy(this, &src, 1400); }
2443
+ void copyTo(void* dest) const { std::memcpy(dest, this, 1632); }
2444
+ void copyFrom(const P2pPnmEntry& src) { std::memcpy(this, &src, 1632); }
2452
2445
  };
2453
- static_assert(sizeof(P2pPnmEntry) == 1400, "P2pPnmEntry size mismatch");
2446
+ static_assert(sizeof(P2pPnmEntry) == 1632, "P2pPnmEntry size mismatch");
2454
2447
  static_assert(alignof(P2pPnmEntry) == 8, "P2pPnmEntry alignment mismatch");
2455
2448
  static_assert(offsetof(P2pPnmEntry, PEER_ID) == 2, "P2pPnmEntry.PEER_ID offset mismatch");
2456
2449
  static_assert(offsetof(P2pPnmEntry, PUBLISHER_PEER_ID) == 131, "P2pPnmEntry.PUBLISHER_PEER_ID offset mismatch");
@@ -2458,17 +2451,17 @@ static_assert(offsetof(P2pPnmEntry, GOSSIP_PEER_ID) == 260, "P2pPnmEntry.GOSSIP_
2458
2451
  static_assert(offsetof(P2pPnmEntry, STANDARD) == 389, "P2pPnmEntry.STANDARD offset mismatch");
2459
2452
  static_assert(offsetof(P2pPnmEntry, SCHEMA) == 406, "P2pPnmEntry.SCHEMA offset mismatch");
2460
2453
  static_assert(offsetof(P2pPnmEntry, FILE_ID) == 471, "P2pPnmEntry.FILE_ID offset mismatch");
2461
- static_assert(offsetof(P2pPnmEntry, FILE_NAME) == 488, "P2pPnmEntry.FILE_NAME offset mismatch");
2462
- static_assert(offsetof(P2pPnmEntry, CID) == 744, "P2pPnmEntry.CID offset mismatch");
2463
- static_assert(offsetof(P2pPnmEntry, PUBLISH_MS) == 880, "P2pPnmEntry.PUBLISH_MS offset mismatch");
2464
- static_assert(offsetof(P2pPnmEntry, SIGNATURE_TYPE) == 888, "P2pPnmEntry.SIGNATURE_TYPE offset mismatch");
2465
- static_assert(offsetof(P2pPnmEntry, SIGNATURE_HEX) == 921, "P2pPnmEntry.SIGNATURE_HEX offset mismatch");
2466
- static_assert(offsetof(P2pPnmEntry, SIGNATURE_VERIFIED) == 1177, "P2pPnmEntry.SIGNATURE_VERIFIED offset mismatch");
2467
- static_assert(offsetof(P2pPnmEntry, ATTRIBUTION) == 1178, "P2pPnmEntry.ATTRIBUTION offset mismatch");
2468
- static_assert(offsetof(P2pPnmEntry, PNM_INDEX) == 1196, "P2pPnmEntry.PNM_INDEX offset mismatch");
2469
- static_assert(offsetof(P2pPnmEntry, PUBLISHER_KEY_HEX) == 1200, "P2pPnmEntry.PUBLISHER_KEY_HEX offset mismatch");
2470
- static_assert(offsetof(P2pPnmEntry, PUBLISHER_KEY_SOURCE) == 1329, "P2pPnmEntry.PUBLISHER_KEY_SOURCE offset mismatch");
2471
- constexpr size_t P2pPnmEntry_SIZE = 1400;
2454
+ static_assert(offsetof(P2pPnmEntry, FILE_NAME) == 727, "P2pPnmEntry.FILE_NAME offset mismatch");
2455
+ static_assert(offsetof(P2pPnmEntry, CID) == 983, "P2pPnmEntry.CID offset mismatch");
2456
+ static_assert(offsetof(P2pPnmEntry, PUBLISH_MS) == 1112, "P2pPnmEntry.PUBLISH_MS offset mismatch");
2457
+ static_assert(offsetof(P2pPnmEntry, SIGNATURE_TYPE) == 1120, "P2pPnmEntry.SIGNATURE_TYPE offset mismatch");
2458
+ static_assert(offsetof(P2pPnmEntry, SIGNATURE_HEX) == 1153, "P2pPnmEntry.SIGNATURE_HEX offset mismatch");
2459
+ static_assert(offsetof(P2pPnmEntry, SIGNATURE_VERIFIED) == 1409, "P2pPnmEntry.SIGNATURE_VERIFIED offset mismatch");
2460
+ static_assert(offsetof(P2pPnmEntry, ATTRIBUTION) == 1410, "P2pPnmEntry.ATTRIBUTION offset mismatch");
2461
+ static_assert(offsetof(P2pPnmEntry, PNM_INDEX) == 1428, "P2pPnmEntry.PNM_INDEX offset mismatch");
2462
+ static_assert(offsetof(P2pPnmEntry, PUBLISHER_KEY_HEX) == 1432, "P2pPnmEntry.PUBLISHER_KEY_HEX offset mismatch");
2463
+ static_assert(offsetof(P2pPnmEntry, PUBLISHER_KEY_SOURCE) == 1561, "P2pPnmEntry.PUBLISHER_KEY_SOURCE offset mismatch");
2464
+ constexpr size_t P2pPnmEntry_SIZE = 1632;
2472
2465
  constexpr size_t P2pPnmEntry_ALIGN = 8;
2473
2466
 
2474
2467
  } // namespace Aligned
@@ -2489,7 +2482,7 @@ struct P2pLatestDataset {
2489
2482
  ::flatbuffers::aligned_runtime::AlignedString<16> STANDARD;
2490
2483
  ::flatbuffers::aligned_runtime::AlignedString<64> SCHEMA;
2491
2484
  ::flatbuffers::aligned_runtime::AlignedString<128> PNM_CID;
2492
- ::flatbuffers::aligned_runtime::AlignedString<16> PNM_FILE_ID;
2485
+ ::flatbuffers::aligned_runtime::AlignedString<255> PNM_FILE_ID;
2493
2486
  uint64_t PNM_PUBLISH_MS;
2494
2487
  bool PNM_SIGNATURE_VERIFIED;
2495
2488
  ::flatbuffers::aligned_runtime::AlignedString<16> PNM_ATTRIBUTION;
@@ -2587,10 +2580,10 @@ struct P2pLatestDataset {
2587
2580
  static const P2pLatestDataset* fromBytes(const void* data) {
2588
2581
  return reinterpret_cast<const P2pLatestDataset*>(data);
2589
2582
  }
2590
- void copyTo(void* dest) const { std::memcpy(dest, this, 832); }
2591
- void copyFrom(const P2pLatestDataset& src) { std::memcpy(this, &src, 832); }
2583
+ void copyTo(void* dest) const { std::memcpy(dest, this, 1072); }
2584
+ void copyFrom(const P2pLatestDataset& src) { std::memcpy(this, &src, 1072); }
2592
2585
  };
2593
- static_assert(sizeof(P2pLatestDataset) == 832, "P2pLatestDataset size mismatch");
2586
+ static_assert(sizeof(P2pLatestDataset) == 1072, "P2pLatestDataset size mismatch");
2594
2587
  static_assert(alignof(P2pLatestDataset) == 8, "P2pLatestDataset alignment mismatch");
2595
2588
  static_assert(offsetof(P2pLatestDataset, KNOWN) == 2, "P2pLatestDataset.KNOWN offset mismatch");
2596
2589
  static_assert(offsetof(P2pLatestDataset, REASON) == 3, "P2pLatestDataset.REASON offset mismatch");
@@ -2601,19 +2594,19 @@ static_assert(offsetof(P2pLatestDataset, STANDARD) == 71, "P2pLatestDataset.STAN
2601
2594
  static_assert(offsetof(P2pLatestDataset, SCHEMA) == 88, "P2pLatestDataset.SCHEMA offset mismatch");
2602
2595
  static_assert(offsetof(P2pLatestDataset, PNM_CID) == 153, "P2pLatestDataset.PNM_CID offset mismatch");
2603
2596
  static_assert(offsetof(P2pLatestDataset, PNM_FILE_ID) == 282, "P2pLatestDataset.PNM_FILE_ID offset mismatch");
2604
- static_assert(offsetof(P2pLatestDataset, PNM_PUBLISH_MS) == 304, "P2pLatestDataset.PNM_PUBLISH_MS offset mismatch");
2605
- static_assert(offsetof(P2pLatestDataset, PNM_SIGNATURE_VERIFIED) == 312, "P2pLatestDataset.PNM_SIGNATURE_VERIFIED offset mismatch");
2606
- static_assert(offsetof(P2pLatestDataset, PNM_ATTRIBUTION) == 313, "P2pLatestDataset.PNM_ATTRIBUTION offset mismatch");
2607
- static_assert(offsetof(P2pLatestDataset, BATCH_ID) == 330, "P2pLatestDataset.BATCH_ID offset mismatch");
2608
- static_assert(offsetof(P2pLatestDataset, PROVIDER_ID) == 459, "P2pLatestDataset.PROVIDER_ID offset mismatch");
2609
- static_assert(offsetof(P2pLatestDataset, SOURCE_NAME) == 588, "P2pLatestDataset.SOURCE_NAME offset mismatch");
2610
- static_assert(offsetof(P2pLatestDataset, RECORD_COUNT) == 720, "P2pLatestDataset.RECORD_COUNT offset mismatch");
2611
- static_assert(offsetof(P2pLatestDataset, BYTE_COUNT) == 728, "P2pLatestDataset.BYTE_COUNT offset mismatch");
2612
- static_assert(offsetof(P2pLatestDataset, PARTS) == 736, "P2pLatestDataset.PARTS offset mismatch");
2613
- static_assert(offsetof(P2pLatestDataset, PUBLISHED_MS) == 744, "P2pLatestDataset.PUBLISHED_MS offset mismatch");
2614
- static_assert(offsetof(P2pLatestDataset, ETAG_FNV1A64) == 752, "P2pLatestDataset.ETAG_FNV1A64 offset mismatch");
2615
- static_assert(offsetof(P2pLatestDataset, REF) == 776, "P2pLatestDataset.REF offset mismatch");
2616
- constexpr size_t P2pLatestDataset_SIZE = 832;
2597
+ static_assert(offsetof(P2pLatestDataset, PNM_PUBLISH_MS) == 544, "P2pLatestDataset.PNM_PUBLISH_MS offset mismatch");
2598
+ static_assert(offsetof(P2pLatestDataset, PNM_SIGNATURE_VERIFIED) == 552, "P2pLatestDataset.PNM_SIGNATURE_VERIFIED offset mismatch");
2599
+ static_assert(offsetof(P2pLatestDataset, PNM_ATTRIBUTION) == 553, "P2pLatestDataset.PNM_ATTRIBUTION offset mismatch");
2600
+ static_assert(offsetof(P2pLatestDataset, BATCH_ID) == 570, "P2pLatestDataset.BATCH_ID offset mismatch");
2601
+ static_assert(offsetof(P2pLatestDataset, PROVIDER_ID) == 699, "P2pLatestDataset.PROVIDER_ID offset mismatch");
2602
+ static_assert(offsetof(P2pLatestDataset, SOURCE_NAME) == 828, "P2pLatestDataset.SOURCE_NAME offset mismatch");
2603
+ static_assert(offsetof(P2pLatestDataset, RECORD_COUNT) == 960, "P2pLatestDataset.RECORD_COUNT offset mismatch");
2604
+ static_assert(offsetof(P2pLatestDataset, BYTE_COUNT) == 968, "P2pLatestDataset.BYTE_COUNT offset mismatch");
2605
+ static_assert(offsetof(P2pLatestDataset, PARTS) == 976, "P2pLatestDataset.PARTS offset mismatch");
2606
+ static_assert(offsetof(P2pLatestDataset, PUBLISHED_MS) == 984, "P2pLatestDataset.PUBLISHED_MS offset mismatch");
2607
+ static_assert(offsetof(P2pLatestDataset, ETAG_FNV1A64) == 992, "P2pLatestDataset.ETAG_FNV1A64 offset mismatch");
2608
+ static_assert(offsetof(P2pLatestDataset, REF) == 1016, "P2pLatestDataset.REF offset mismatch");
2609
+ constexpr size_t P2pLatestDataset_SIZE = 1072;
2617
2610
  constexpr size_t P2pLatestDataset_ALIGN = 8;
2618
2611
 
2619
2612
  } // namespace Aligned
@@ -165,6 +165,11 @@ struct ProvenanceT : public ::flatbuffers::NativeTable {
165
165
  std::vector<uint64_t> SCHEMA_COUNTS{};
166
166
  std::vector<std::string> WARNINGS{};
167
167
  bool FROM_CACHE = false;
168
+ std::vector<std::unique_ptr<sdn::runtime::HeaderT>> ATTRIBUTES{};
169
+ ProvenanceT() = default;
170
+ ProvenanceT(const ProvenanceT &o);
171
+ ProvenanceT(ProvenanceT&&) FLATBUFFERS_NOEXCEPT = default;
172
+ ProvenanceT &operator=(ProvenanceT o) FLATBUFFERS_NOEXCEPT;
168
173
  };
169
174
 
170
175
  /// How a batch was produced: what was fetched, what came of it.
@@ -186,7 +191,8 @@ struct Provenance FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
186
191
  VT_SCHEMAS = 26,
187
192
  VT_SCHEMA_COUNTS = 28,
188
193
  VT_WARNINGS = 30,
189
- VT_FROM_CACHE = 32
194
+ VT_FROM_CACHE = 32,
195
+ VT_ATTRIBUTES = 34
190
196
  };
191
197
  const ::flatbuffers::String *SOURCE_URL() const {
192
198
  return GetPointer<const ::flatbuffers::String *>(VT_SOURCE_URL);
@@ -237,6 +243,11 @@ struct Provenance FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
237
243
  bool FROM_CACHE() const {
238
244
  return GetField<uint8_t>(VT_FROM_CACHE, 0) != 0;
239
245
  }
246
+ /// Descriptive provenance the parser has no field above for - the method, units, the date range covered, counts
247
+ /// of what was dropped or filled - as name / value pairs, kept in order (a name may repeat). Values are text.
248
+ const ::flatbuffers::Vector<::flatbuffers::Offset<sdn::runtime::Header>> *ATTRIBUTES() const {
249
+ return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<sdn::runtime::Header>> *>(VT_ATTRIBUTES);
250
+ }
240
251
  template <bool B = false>
241
252
  bool Verify(::flatbuffers::VerifierTemplate<B> &verifier) const {
242
253
  return VerifyTableStart(verifier) &&
@@ -268,6 +279,9 @@ struct Provenance FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
268
279
  verifier.VerifyVector(WARNINGS()) &&
269
280
  verifier.VerifyVectorOfStrings(WARNINGS()) &&
270
281
  VerifyField<uint8_t>(verifier, VT_FROM_CACHE, 1) &&
282
+ VerifyOffset(verifier, VT_ATTRIBUTES) &&
283
+ verifier.VerifyVector(ATTRIBUTES()) &&
284
+ verifier.VerifyVectorOfTables(ATTRIBUTES()) &&
271
285
  verifier.EndTable();
272
286
  }
273
287
  ProvenanceT *UnPack(const ::flatbuffers::resolver_function_t *_resolver = nullptr) const;
@@ -324,6 +338,9 @@ struct ProvenanceBuilder {
324
338
  void add_FROM_CACHE(bool FROM_CACHE) {
325
339
  fbb_.AddElement<uint8_t>(Provenance::VT_FROM_CACHE, static_cast<uint8_t>(FROM_CACHE), 0);
326
340
  }
341
+ void add_ATTRIBUTES(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<sdn::runtime::Header>>> ATTRIBUTES) {
342
+ fbb_.AddOffset(Provenance::VT_ATTRIBUTES, ATTRIBUTES);
343
+ }
327
344
  explicit ProvenanceBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
328
345
  : fbb_(_fbb) {
329
346
  start_ = fbb_.StartTable();
@@ -351,10 +368,12 @@ inline ::flatbuffers::Offset<Provenance> CreateProvenance(
351
368
  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String>>> SCHEMAS = 0,
352
369
  ::flatbuffers::Offset<::flatbuffers::Vector<uint64_t>> SCHEMA_COUNTS = 0,
353
370
  ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String>>> WARNINGS = 0,
354
- bool FROM_CACHE = false) {
371
+ bool FROM_CACHE = false,
372
+ ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<sdn::runtime::Header>>> ATTRIBUTES = 0) {
355
373
  ProvenanceBuilder builder_(_fbb);
356
374
  builder_.add_NORMALIZED_COUNT(NORMALIZED_COUNT);
357
375
  builder_.add_RETRIEVED_MS(RETRIEVED_MS);
376
+ builder_.add_ATTRIBUTES(ATTRIBUTES);
358
377
  builder_.add_WARNINGS(WARNINGS);
359
378
  builder_.add_SCHEMA_COUNTS(SCHEMA_COUNTS);
360
379
  builder_.add_SCHEMAS(SCHEMAS);
@@ -387,7 +406,8 @@ inline ::flatbuffers::Offset<Provenance> CreateProvenanceDirect(
387
406
  const std::vector<::flatbuffers::Offset<::flatbuffers::String>> *SCHEMAS = nullptr,
388
407
  const std::vector<uint64_t> *SCHEMA_COUNTS = nullptr,
389
408
  const std::vector<::flatbuffers::Offset<::flatbuffers::String>> *WARNINGS = nullptr,
390
- bool FROM_CACHE = false) {
409
+ bool FROM_CACHE = false,
410
+ std::vector<::flatbuffers::Offset<sdn::runtime::Header>> *ATTRIBUTES = nullptr) {
391
411
  auto SOURCE_URL__ = SOURCE_URL ? _fbb.CreateString(SOURCE_URL) : 0;
392
412
  auto ETAG__ = ETAG ? _fbb.CreateString(ETAG) : 0;
393
413
  auto LAST_MODIFIED__ = LAST_MODIFIED ? _fbb.CreateString(LAST_MODIFIED) : 0;
@@ -399,6 +419,7 @@ inline ::flatbuffers::Offset<Provenance> CreateProvenanceDirect(
399
419
  auto SCHEMAS__ = SCHEMAS ? _fbb.CreateVector<::flatbuffers::Offset<::flatbuffers::String>>(*SCHEMAS) : 0;
400
420
  auto SCHEMA_COUNTS__ = SCHEMA_COUNTS ? _fbb.CreateVector<uint64_t>(*SCHEMA_COUNTS) : 0;
401
421
  auto WARNINGS__ = WARNINGS ? _fbb.CreateVector<::flatbuffers::Offset<::flatbuffers::String>>(*WARNINGS) : 0;
422
+ auto ATTRIBUTES__ = ATTRIBUTES ? _fbb.CreateVectorOfSortedTables<sdn::runtime::Header>(ATTRIBUTES) : 0;
402
423
  return sdn::runtime::CreateProvenance(
403
424
  _fbb,
404
425
  SOURCE_URL__,
@@ -415,7 +436,8 @@ inline ::flatbuffers::Offset<Provenance> CreateProvenanceDirect(
415
436
  SCHEMAS__,
416
437
  SCHEMA_COUNTS__,
417
438
  WARNINGS__,
418
- FROM_CACHE);
439
+ FROM_CACHE,
440
+ ATTRIBUTES__);
419
441
  }
420
442
 
421
443
  ::flatbuffers::Offset<Provenance> CreateProvenance(::flatbuffers::FlatBufferBuilder &_fbb, const ProvenanceT *_o, const ::flatbuffers::rehasher_function_t *_rehasher = nullptr);
@@ -577,6 +599,46 @@ inline ::flatbuffers::Offset<ArchiveTarget> ArchiveTarget::Pack(::flatbuffers::F
577
599
  _NAME);
578
600
  }
579
601
 
602
+ inline ProvenanceT::ProvenanceT(const ProvenanceT &o)
603
+ : SOURCE_URL(o.SOURCE_URL),
604
+ HTTP_STATUS(o.HTTP_STATUS),
605
+ ETAG(o.ETAG),
606
+ LAST_MODIFIED(o.LAST_MODIFIED),
607
+ CONTENT_TYPE(o.CONTENT_TYPE),
608
+ RETRIEVED_MS(o.RETRIEVED_MS),
609
+ PARSER(o.PARSER),
610
+ PARSER_VERSION(o.PARSER_VERSION),
611
+ SOURCE_SHA256(o.SOURCE_SHA256),
612
+ NORMALIZED_SHA256(o.NORMALIZED_SHA256),
613
+ NORMALIZED_COUNT(o.NORMALIZED_COUNT),
614
+ SCHEMAS(o.SCHEMAS),
615
+ SCHEMA_COUNTS(o.SCHEMA_COUNTS),
616
+ WARNINGS(o.WARNINGS),
617
+ FROM_CACHE(o.FROM_CACHE) {
618
+ ATTRIBUTES.reserve(o.ATTRIBUTES.size());
619
+ for (const auto &ATTRIBUTES_ : o.ATTRIBUTES) { ATTRIBUTES.emplace_back((ATTRIBUTES_) ? new sdn::runtime::HeaderT(*ATTRIBUTES_) : nullptr); }
620
+ }
621
+
622
+ inline ProvenanceT &ProvenanceT::operator=(ProvenanceT o) FLATBUFFERS_NOEXCEPT {
623
+ std::swap(SOURCE_URL, o.SOURCE_URL);
624
+ std::swap(HTTP_STATUS, o.HTTP_STATUS);
625
+ std::swap(ETAG, o.ETAG);
626
+ std::swap(LAST_MODIFIED, o.LAST_MODIFIED);
627
+ std::swap(CONTENT_TYPE, o.CONTENT_TYPE);
628
+ std::swap(RETRIEVED_MS, o.RETRIEVED_MS);
629
+ std::swap(PARSER, o.PARSER);
630
+ std::swap(PARSER_VERSION, o.PARSER_VERSION);
631
+ std::swap(SOURCE_SHA256, o.SOURCE_SHA256);
632
+ std::swap(NORMALIZED_SHA256, o.NORMALIZED_SHA256);
633
+ std::swap(NORMALIZED_COUNT, o.NORMALIZED_COUNT);
634
+ std::swap(SCHEMAS, o.SCHEMAS);
635
+ std::swap(SCHEMA_COUNTS, o.SCHEMA_COUNTS);
636
+ std::swap(WARNINGS, o.WARNINGS);
637
+ std::swap(FROM_CACHE, o.FROM_CACHE);
638
+ std::swap(ATTRIBUTES, o.ATTRIBUTES);
639
+ return *this;
640
+ }
641
+
580
642
  inline ProvenanceT *Provenance::UnPack(const ::flatbuffers::resolver_function_t *_resolver) const {
581
643
  auto _o = std::unique_ptr<ProvenanceT>(new ProvenanceT());
582
644
  UnPackTo(_o.get(), _resolver);
@@ -601,6 +663,7 @@ inline void Provenance::UnPackTo(ProvenanceT *_o, const ::flatbuffers::resolver_
601
663
  { auto _e = SCHEMA_COUNTS(); if (_e) { _o->SCHEMA_COUNTS.resize(_e->size()); for (::flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->SCHEMA_COUNTS[_i] = _e->Get(_i); } } else { _o->SCHEMA_COUNTS.resize(0); } }
602
664
  { auto _e = WARNINGS(); if (_e) { _o->WARNINGS.resize(_e->size()); for (::flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->WARNINGS[_i] = _e->Get(_i)->str(); } } else { _o->WARNINGS.resize(0); } }
603
665
  { auto _e = FROM_CACHE(); _o->FROM_CACHE = _e; }
666
+ { auto _e = ATTRIBUTES(); if (_e) { _o->ATTRIBUTES.resize(_e->size()); for (::flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { if(_o->ATTRIBUTES[_i]) { _e->Get(_i)->UnPackTo(_o->ATTRIBUTES[_i].get(), _resolver); } else { _o->ATTRIBUTES[_i] = std::unique_ptr<sdn::runtime::HeaderT>(_e->Get(_i)->UnPack(_resolver)); } } } else { _o->ATTRIBUTES.resize(0); } }
604
667
  }
605
668
 
606
669
  inline ::flatbuffers::Offset<Provenance> CreateProvenance(::flatbuffers::FlatBufferBuilder &_fbb, const ProvenanceT *_o, const ::flatbuffers::rehasher_function_t *_rehasher) {
@@ -626,6 +689,7 @@ inline ::flatbuffers::Offset<Provenance> Provenance::Pack(::flatbuffers::FlatBuf
626
689
  auto _SCHEMA_COUNTS = _o->SCHEMA_COUNTS.size() ? _fbb.CreateVector(_o->SCHEMA_COUNTS) : 0;
627
690
  auto _WARNINGS = _o->WARNINGS.size() ? _fbb.CreateVectorOfStrings(_o->WARNINGS) : 0;
628
691
  auto _FROM_CACHE = _o->FROM_CACHE;
692
+ auto _ATTRIBUTES = _o->ATTRIBUTES.size() ? _fbb.CreateVector<::flatbuffers::Offset<sdn::runtime::Header>> (_o->ATTRIBUTES.size(), [](size_t i, _VectorArgs *__va) { return sdn::runtime::CreateHeader(*__va->__fbb, __va->__o->ATTRIBUTES[i].get(), __va->__rehasher); }, &_va ) : 0;
629
693
  return sdn::runtime::CreateProvenance(
630
694
  _fbb,
631
695
  _SOURCE_URL,
@@ -642,7 +706,8 @@ inline ::flatbuffers::Offset<Provenance> Provenance::Pack(::flatbuffers::FlatBuf
642
706
  _SCHEMAS,
643
707
  _SCHEMA_COUNTS,
644
708
  _WARNINGS,
645
- _FROM_CACHE);
709
+ _FROM_CACHE,
710
+ _ATTRIBUTES);
646
711
  }
647
712
 
648
713
  inline IngestRequestT::IngestRequestT(const IngestRequestT &o)