@cratis/chronicle.contracts 19.128.0 → 19.129.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/cjs/generated/descriptorSet.js +1 -1
  2. package/dist/cjs/generated/descriptorSet.js.map +1 -1
  3. package/dist/cjs/generated/index.d.ts +1 -1
  4. package/dist/cjs/generated/index.d.ts.map +1 -1
  5. package/dist/cjs/generated/projections.d.ts +96 -0
  6. package/dist/cjs/generated/projections.d.ts.map +1 -1
  7. package/dist/cjs/generated/projections.js +1471 -0
  8. package/dist/cjs/generated/projections.js.map +1 -1
  9. package/dist/cjs/index.js +15 -0
  10. package/dist/cjs/index.js.map +1 -1
  11. package/dist/esm/generated/descriptorSet.js +1 -1
  12. package/dist/esm/generated/descriptorSet.js.map +1 -1
  13. package/dist/esm/generated/index.d.ts +1 -1
  14. package/dist/esm/generated/index.d.ts.map +1 -1
  15. package/dist/esm/generated/projections.d.ts +96 -0
  16. package/dist/esm/generated/projections.d.ts.map +1 -1
  17. package/dist/esm/generated/projections.js +1457 -1
  18. package/dist/esm/generated/projections.js.map +1 -1
  19. package/dist/esm/index.js +1 -1
  20. package/dist/generated/descriptorSet.js +1 -1
  21. package/dist/generated/descriptorSet.js.map +1 -1
  22. package/dist/generated/index.d.ts +1 -1
  23. package/dist/generated/index.d.ts.map +1 -1
  24. package/dist/generated/index.js +1 -1
  25. package/dist/generated/index.js.map +1 -1
  26. package/dist/generated/projections.d.ts +96 -0
  27. package/dist/generated/projections.d.ts.map +1 -1
  28. package/dist/generated/projections.js +1456 -0
  29. package/dist/generated/projections.js.map +1 -1
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/generated/descriptorSet.ts +1 -1
  32. package/generated/index.ts +1 -1
  33. package/generated/projections.ts +1918 -194
  34. package/package.json +1 -1
@@ -1667,6 +1667,1444 @@ export const GetAllDefinitionsRequest = {
1667
1667
  return message;
1668
1668
  },
1669
1669
  };
1670
+ function createBaseGraphEdgeFromDefinition() {
1671
+ return { SourceKey: "", TargetKey: "", Identity: "", Properties: {} };
1672
+ }
1673
+ export const GraphEdgeFromDefinition = {
1674
+ encode(message, writer = new BinaryWriter()) {
1675
+ if (message.SourceKey !== "") {
1676
+ writer.uint32(10).string(message.SourceKey);
1677
+ }
1678
+ if (message.TargetKey !== "") {
1679
+ writer.uint32(18).string(message.TargetKey);
1680
+ }
1681
+ if (message.Identity !== "") {
1682
+ writer.uint32(26).string(message.Identity);
1683
+ }
1684
+ globalThis.Object.entries(message.Properties).forEach(([key, value]) => {
1685
+ GraphEdgeFromDefinition_PropertiesEntry.encode({ key: key, value }, writer.uint32(34).fork()).join();
1686
+ });
1687
+ return writer;
1688
+ },
1689
+ decode(input, length) {
1690
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1691
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
1692
+ if (previousRecursionDepth >= 100) {
1693
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1694
+ }
1695
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
1696
+ try {
1697
+ const end = length === undefined ? reader.len : reader.pos + length;
1698
+ const message = createBaseGraphEdgeFromDefinition();
1699
+ while (reader.pos < end) {
1700
+ const tag = reader.uint32();
1701
+ switch (tag >>> 3) {
1702
+ case 1: {
1703
+ if (tag !== 10) {
1704
+ break;
1705
+ }
1706
+ message.SourceKey = reader.string();
1707
+ continue;
1708
+ }
1709
+ case 2: {
1710
+ if (tag !== 18) {
1711
+ break;
1712
+ }
1713
+ message.TargetKey = reader.string();
1714
+ continue;
1715
+ }
1716
+ case 3: {
1717
+ if (tag !== 26) {
1718
+ break;
1719
+ }
1720
+ message.Identity = reader.string();
1721
+ continue;
1722
+ }
1723
+ case 4: {
1724
+ if (tag !== 34) {
1725
+ break;
1726
+ }
1727
+ const entry4 = GraphEdgeFromDefinition_PropertiesEntry.decode(reader, reader.uint32());
1728
+ if (entry4.value !== undefined) {
1729
+ message.Properties[entry4.key] = entry4.value;
1730
+ }
1731
+ continue;
1732
+ }
1733
+ }
1734
+ if ((tag & 7) === 4 || tag === 0) {
1735
+ break;
1736
+ }
1737
+ reader.skip(tag & 7);
1738
+ }
1739
+ return message;
1740
+ }
1741
+ finally {
1742
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1743
+ }
1744
+ },
1745
+ fromJSON(object) {
1746
+ return {
1747
+ SourceKey: isSet(object.SourceKey) ? globalThis.String(object.SourceKey) : "",
1748
+ TargetKey: isSet(object.TargetKey) ? globalThis.String(object.TargetKey) : "",
1749
+ Identity: isSet(object.Identity) ? globalThis.String(object.Identity) : "",
1750
+ Properties: isObject(object.Properties)
1751
+ ? globalThis.Object.entries(object.Properties).reduce((acc, [key, value]) => {
1752
+ globalThis.Object.defineProperty(acc, key, {
1753
+ value: globalThis.String(value),
1754
+ enumerable: true,
1755
+ configurable: true,
1756
+ writable: true,
1757
+ });
1758
+ return acc;
1759
+ }, {})
1760
+ : {},
1761
+ };
1762
+ },
1763
+ toJSON(message) {
1764
+ const obj = {};
1765
+ if (message.SourceKey !== "") {
1766
+ obj.SourceKey = message.SourceKey;
1767
+ }
1768
+ if (message.TargetKey !== "") {
1769
+ obj.TargetKey = message.TargetKey;
1770
+ }
1771
+ if (message.Identity !== "") {
1772
+ obj.Identity = message.Identity;
1773
+ }
1774
+ if (message.Properties) {
1775
+ const entries = globalThis.Object.entries(message.Properties);
1776
+ if (entries.length > 0) {
1777
+ obj.Properties = {};
1778
+ entries.forEach(([k, v]) => {
1779
+ obj.Properties[k] = v;
1780
+ });
1781
+ }
1782
+ }
1783
+ return obj;
1784
+ },
1785
+ create(base) {
1786
+ return GraphEdgeFromDefinition.fromPartial(base ?? {});
1787
+ },
1788
+ fromPartial(object) {
1789
+ const message = createBaseGraphEdgeFromDefinition();
1790
+ message.SourceKey = object.SourceKey ?? "";
1791
+ message.TargetKey = object.TargetKey ?? "";
1792
+ message.Identity = object.Identity ?? "";
1793
+ message.Properties = globalThis.Object.entries(object.Properties ?? {}).reduce((acc, [key, value]) => {
1794
+ if (value !== undefined) {
1795
+ acc[key] = globalThis.String(value);
1796
+ }
1797
+ return acc;
1798
+ }, {});
1799
+ return message;
1800
+ },
1801
+ };
1802
+ function createBaseGraphEdgeFromDefinition_PropertiesEntry() {
1803
+ return { key: "", value: "" };
1804
+ }
1805
+ export const GraphEdgeFromDefinition_PropertiesEntry = {
1806
+ encode(message, writer = new BinaryWriter()) {
1807
+ if (message.key !== "") {
1808
+ writer.uint32(10).string(message.key);
1809
+ }
1810
+ if (message.value !== "") {
1811
+ writer.uint32(18).string(message.value);
1812
+ }
1813
+ return writer;
1814
+ },
1815
+ decode(input, length) {
1816
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1817
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
1818
+ if (previousRecursionDepth >= 100) {
1819
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1820
+ }
1821
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
1822
+ try {
1823
+ const end = length === undefined ? reader.len : reader.pos + length;
1824
+ const message = createBaseGraphEdgeFromDefinition_PropertiesEntry();
1825
+ while (reader.pos < end) {
1826
+ const tag = reader.uint32();
1827
+ switch (tag >>> 3) {
1828
+ case 1: {
1829
+ if (tag !== 10) {
1830
+ break;
1831
+ }
1832
+ message.key = reader.string();
1833
+ continue;
1834
+ }
1835
+ case 2: {
1836
+ if (tag !== 18) {
1837
+ break;
1838
+ }
1839
+ message.value = reader.string();
1840
+ continue;
1841
+ }
1842
+ }
1843
+ if ((tag & 7) === 4 || tag === 0) {
1844
+ break;
1845
+ }
1846
+ reader.skip(tag & 7);
1847
+ }
1848
+ return message;
1849
+ }
1850
+ finally {
1851
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1852
+ }
1853
+ },
1854
+ fromJSON(object) {
1855
+ return {
1856
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
1857
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
1858
+ };
1859
+ },
1860
+ toJSON(message) {
1861
+ const obj = {};
1862
+ if (message.key !== "") {
1863
+ obj.key = message.key;
1864
+ }
1865
+ if (message.value !== "") {
1866
+ obj.value = message.value;
1867
+ }
1868
+ return obj;
1869
+ },
1870
+ create(base) {
1871
+ return GraphEdgeFromDefinition_PropertiesEntry.fromPartial(base ?? {});
1872
+ },
1873
+ fromPartial(object) {
1874
+ const message = createBaseGraphEdgeFromDefinition_PropertiesEntry();
1875
+ message.key = object.key ?? "";
1876
+ message.value = object.value ?? "";
1877
+ return message;
1878
+ },
1879
+ };
1880
+ function createBaseGraphEdgeProjectionDefinition() {
1881
+ return { From: {}, RemovedWith: {} };
1882
+ }
1883
+ export const GraphEdgeProjectionDefinition = {
1884
+ encode(message, writer = new BinaryWriter()) {
1885
+ globalThis.Object.entries(message.From).forEach(([key, value]) => {
1886
+ GraphEdgeProjectionDefinition_FromEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
1887
+ });
1888
+ globalThis.Object.entries(message.RemovedWith).forEach(([key, value]) => {
1889
+ GraphEdgeProjectionDefinition_RemovedWithEntry.encode({ key: key, value }, writer.uint32(18).fork())
1890
+ .join();
1891
+ });
1892
+ return writer;
1893
+ },
1894
+ decode(input, length) {
1895
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1896
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
1897
+ if (previousRecursionDepth >= 100) {
1898
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1899
+ }
1900
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
1901
+ try {
1902
+ const end = length === undefined ? reader.len : reader.pos + length;
1903
+ const message = createBaseGraphEdgeProjectionDefinition();
1904
+ while (reader.pos < end) {
1905
+ const tag = reader.uint32();
1906
+ switch (tag >>> 3) {
1907
+ case 1: {
1908
+ if (tag !== 10) {
1909
+ break;
1910
+ }
1911
+ const entry1 = GraphEdgeProjectionDefinition_FromEntry.decode(reader, reader.uint32());
1912
+ if (entry1.value !== undefined) {
1913
+ message.From[entry1.key] = entry1.value;
1914
+ }
1915
+ continue;
1916
+ }
1917
+ case 2: {
1918
+ if (tag !== 18) {
1919
+ break;
1920
+ }
1921
+ const entry2 = GraphEdgeProjectionDefinition_RemovedWithEntry.decode(reader, reader.uint32());
1922
+ if (entry2.value !== undefined) {
1923
+ message.RemovedWith[entry2.key] = entry2.value;
1924
+ }
1925
+ continue;
1926
+ }
1927
+ }
1928
+ if ((tag & 7) === 4 || tag === 0) {
1929
+ break;
1930
+ }
1931
+ reader.skip(tag & 7);
1932
+ }
1933
+ return message;
1934
+ }
1935
+ finally {
1936
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1937
+ }
1938
+ },
1939
+ fromJSON(object) {
1940
+ return {
1941
+ From: isObject(object.From)
1942
+ ? globalThis.Object.entries(object.From).reduce((acc, [key, value]) => {
1943
+ globalThis.Object.defineProperty(acc, key, {
1944
+ value: GraphEdgeFromDefinition.fromJSON(value),
1945
+ enumerable: true,
1946
+ configurable: true,
1947
+ writable: true,
1948
+ });
1949
+ return acc;
1950
+ }, {})
1951
+ : {},
1952
+ RemovedWith: isObject(object.RemovedWith)
1953
+ ? globalThis.Object.entries(object.RemovedWith).reduce((acc, [key, value]) => {
1954
+ globalThis.Object.defineProperty(acc, key, {
1955
+ value: GraphEdgeRemovedWithDefinition.fromJSON(value),
1956
+ enumerable: true,
1957
+ configurable: true,
1958
+ writable: true,
1959
+ });
1960
+ return acc;
1961
+ }, {})
1962
+ : {},
1963
+ };
1964
+ },
1965
+ toJSON(message) {
1966
+ const obj = {};
1967
+ if (message.From) {
1968
+ const entries = globalThis.Object.entries(message.From);
1969
+ if (entries.length > 0) {
1970
+ obj.From = {};
1971
+ entries.forEach(([k, v]) => {
1972
+ obj.From[k] = GraphEdgeFromDefinition.toJSON(v);
1973
+ });
1974
+ }
1975
+ }
1976
+ if (message.RemovedWith) {
1977
+ const entries = globalThis.Object.entries(message.RemovedWith);
1978
+ if (entries.length > 0) {
1979
+ obj.RemovedWith = {};
1980
+ entries.forEach(([k, v]) => {
1981
+ obj.RemovedWith[k] = GraphEdgeRemovedWithDefinition.toJSON(v);
1982
+ });
1983
+ }
1984
+ }
1985
+ return obj;
1986
+ },
1987
+ create(base) {
1988
+ return GraphEdgeProjectionDefinition.fromPartial(base ?? {});
1989
+ },
1990
+ fromPartial(object) {
1991
+ const message = createBaseGraphEdgeProjectionDefinition();
1992
+ message.From = globalThis.Object.entries(object.From ?? {}).reduce((acc, [key, value]) => {
1993
+ if (value !== undefined) {
1994
+ acc[key] = GraphEdgeFromDefinition.fromPartial(value);
1995
+ }
1996
+ return acc;
1997
+ }, {});
1998
+ message.RemovedWith =
1999
+ globalThis.Object.entries(object.RemovedWith ?? {}).reduce((acc, [key, value]) => {
2000
+ if (value !== undefined) {
2001
+ acc[key] = GraphEdgeRemovedWithDefinition.fromPartial(value);
2002
+ }
2003
+ return acc;
2004
+ }, {});
2005
+ return message;
2006
+ },
2007
+ };
2008
+ function createBaseGraphEdgeProjectionDefinition_FromEntry() {
2009
+ return { key: "", value: undefined };
2010
+ }
2011
+ export const GraphEdgeProjectionDefinition_FromEntry = {
2012
+ encode(message, writer = new BinaryWriter()) {
2013
+ if (message.key !== "") {
2014
+ writer.uint32(10).string(message.key);
2015
+ }
2016
+ if (message.value !== undefined) {
2017
+ GraphEdgeFromDefinition.encode(message.value, writer.uint32(18).fork()).join();
2018
+ }
2019
+ return writer;
2020
+ },
2021
+ decode(input, length) {
2022
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2023
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2024
+ if (previousRecursionDepth >= 100) {
2025
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2026
+ }
2027
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2028
+ try {
2029
+ const end = length === undefined ? reader.len : reader.pos + length;
2030
+ const message = createBaseGraphEdgeProjectionDefinition_FromEntry();
2031
+ while (reader.pos < end) {
2032
+ const tag = reader.uint32();
2033
+ switch (tag >>> 3) {
2034
+ case 1: {
2035
+ if (tag !== 10) {
2036
+ break;
2037
+ }
2038
+ message.key = reader.string();
2039
+ continue;
2040
+ }
2041
+ case 2: {
2042
+ if (tag !== 18) {
2043
+ break;
2044
+ }
2045
+ message.value = GraphEdgeFromDefinition.decode(reader, reader.uint32());
2046
+ continue;
2047
+ }
2048
+ }
2049
+ if ((tag & 7) === 4 || tag === 0) {
2050
+ break;
2051
+ }
2052
+ reader.skip(tag & 7);
2053
+ }
2054
+ return message;
2055
+ }
2056
+ finally {
2057
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2058
+ }
2059
+ },
2060
+ fromJSON(object) {
2061
+ return {
2062
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2063
+ value: isSet(object.value) ? GraphEdgeFromDefinition.fromJSON(object.value) : undefined,
2064
+ };
2065
+ },
2066
+ toJSON(message) {
2067
+ const obj = {};
2068
+ if (message.key !== "") {
2069
+ obj.key = message.key;
2070
+ }
2071
+ if (message.value !== undefined) {
2072
+ obj.value = GraphEdgeFromDefinition.toJSON(message.value);
2073
+ }
2074
+ return obj;
2075
+ },
2076
+ create(base) {
2077
+ return GraphEdgeProjectionDefinition_FromEntry.fromPartial(base ?? {});
2078
+ },
2079
+ fromPartial(object) {
2080
+ const message = createBaseGraphEdgeProjectionDefinition_FromEntry();
2081
+ message.key = object.key ?? "";
2082
+ message.value = (object.value !== undefined && object.value !== null)
2083
+ ? GraphEdgeFromDefinition.fromPartial(object.value)
2084
+ : undefined;
2085
+ return message;
2086
+ },
2087
+ };
2088
+ function createBaseGraphEdgeProjectionDefinition_RemovedWithEntry() {
2089
+ return { key: "", value: undefined };
2090
+ }
2091
+ export const GraphEdgeProjectionDefinition_RemovedWithEntry = {
2092
+ encode(message, writer = new BinaryWriter()) {
2093
+ if (message.key !== "") {
2094
+ writer.uint32(10).string(message.key);
2095
+ }
2096
+ if (message.value !== undefined) {
2097
+ GraphEdgeRemovedWithDefinition.encode(message.value, writer.uint32(18).fork()).join();
2098
+ }
2099
+ return writer;
2100
+ },
2101
+ decode(input, length) {
2102
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2103
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2104
+ if (previousRecursionDepth >= 100) {
2105
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2106
+ }
2107
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2108
+ try {
2109
+ const end = length === undefined ? reader.len : reader.pos + length;
2110
+ const message = createBaseGraphEdgeProjectionDefinition_RemovedWithEntry();
2111
+ while (reader.pos < end) {
2112
+ const tag = reader.uint32();
2113
+ switch (tag >>> 3) {
2114
+ case 1: {
2115
+ if (tag !== 10) {
2116
+ break;
2117
+ }
2118
+ message.key = reader.string();
2119
+ continue;
2120
+ }
2121
+ case 2: {
2122
+ if (tag !== 18) {
2123
+ break;
2124
+ }
2125
+ message.value = GraphEdgeRemovedWithDefinition.decode(reader, reader.uint32());
2126
+ continue;
2127
+ }
2128
+ }
2129
+ if ((tag & 7) === 4 || tag === 0) {
2130
+ break;
2131
+ }
2132
+ reader.skip(tag & 7);
2133
+ }
2134
+ return message;
2135
+ }
2136
+ finally {
2137
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2138
+ }
2139
+ },
2140
+ fromJSON(object) {
2141
+ return {
2142
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2143
+ value: isSet(object.value) ? GraphEdgeRemovedWithDefinition.fromJSON(object.value) : undefined,
2144
+ };
2145
+ },
2146
+ toJSON(message) {
2147
+ const obj = {};
2148
+ if (message.key !== "") {
2149
+ obj.key = message.key;
2150
+ }
2151
+ if (message.value !== undefined) {
2152
+ obj.value = GraphEdgeRemovedWithDefinition.toJSON(message.value);
2153
+ }
2154
+ return obj;
2155
+ },
2156
+ create(base) {
2157
+ return GraphEdgeProjectionDefinition_RemovedWithEntry.fromPartial(base ?? {});
2158
+ },
2159
+ fromPartial(object) {
2160
+ const message = createBaseGraphEdgeProjectionDefinition_RemovedWithEntry();
2161
+ message.key = object.key ?? "";
2162
+ message.value = (object.value !== undefined && object.value !== null)
2163
+ ? GraphEdgeRemovedWithDefinition.fromPartial(object.value)
2164
+ : undefined;
2165
+ return message;
2166
+ },
2167
+ };
2168
+ function createBaseGraphEdgeRemovedWithDefinition() {
2169
+ return { SourceKey: "", TargetKey: "", Identity: "" };
2170
+ }
2171
+ export const GraphEdgeRemovedWithDefinition = {
2172
+ encode(message, writer = new BinaryWriter()) {
2173
+ if (message.SourceKey !== "") {
2174
+ writer.uint32(10).string(message.SourceKey);
2175
+ }
2176
+ if (message.TargetKey !== "") {
2177
+ writer.uint32(18).string(message.TargetKey);
2178
+ }
2179
+ if (message.Identity !== "") {
2180
+ writer.uint32(26).string(message.Identity);
2181
+ }
2182
+ return writer;
2183
+ },
2184
+ decode(input, length) {
2185
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2186
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2187
+ if (previousRecursionDepth >= 100) {
2188
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2189
+ }
2190
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2191
+ try {
2192
+ const end = length === undefined ? reader.len : reader.pos + length;
2193
+ const message = createBaseGraphEdgeRemovedWithDefinition();
2194
+ while (reader.pos < end) {
2195
+ const tag = reader.uint32();
2196
+ switch (tag >>> 3) {
2197
+ case 1: {
2198
+ if (tag !== 10) {
2199
+ break;
2200
+ }
2201
+ message.SourceKey = reader.string();
2202
+ continue;
2203
+ }
2204
+ case 2: {
2205
+ if (tag !== 18) {
2206
+ break;
2207
+ }
2208
+ message.TargetKey = reader.string();
2209
+ continue;
2210
+ }
2211
+ case 3: {
2212
+ if (tag !== 26) {
2213
+ break;
2214
+ }
2215
+ message.Identity = reader.string();
2216
+ continue;
2217
+ }
2218
+ }
2219
+ if ((tag & 7) === 4 || tag === 0) {
2220
+ break;
2221
+ }
2222
+ reader.skip(tag & 7);
2223
+ }
2224
+ return message;
2225
+ }
2226
+ finally {
2227
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2228
+ }
2229
+ },
2230
+ fromJSON(object) {
2231
+ return {
2232
+ SourceKey: isSet(object.SourceKey) ? globalThis.String(object.SourceKey) : "",
2233
+ TargetKey: isSet(object.TargetKey) ? globalThis.String(object.TargetKey) : "",
2234
+ Identity: isSet(object.Identity) ? globalThis.String(object.Identity) : "",
2235
+ };
2236
+ },
2237
+ toJSON(message) {
2238
+ const obj = {};
2239
+ if (message.SourceKey !== "") {
2240
+ obj.SourceKey = message.SourceKey;
2241
+ }
2242
+ if (message.TargetKey !== "") {
2243
+ obj.TargetKey = message.TargetKey;
2244
+ }
2245
+ if (message.Identity !== "") {
2246
+ obj.Identity = message.Identity;
2247
+ }
2248
+ return obj;
2249
+ },
2250
+ create(base) {
2251
+ return GraphEdgeRemovedWithDefinition.fromPartial(base ?? {});
2252
+ },
2253
+ fromPartial(object) {
2254
+ const message = createBaseGraphEdgeRemovedWithDefinition();
2255
+ message.SourceKey = object.SourceKey ?? "";
2256
+ message.TargetKey = object.TargetKey ?? "";
2257
+ message.Identity = object.Identity ?? "";
2258
+ return message;
2259
+ },
2260
+ };
2261
+ function createBaseGraphNodeFromDefinition() {
2262
+ return { Key: "", Properties: {}, UpdateOnly: false };
2263
+ }
2264
+ export const GraphNodeFromDefinition = {
2265
+ encode(message, writer = new BinaryWriter()) {
2266
+ if (message.Key !== "") {
2267
+ writer.uint32(10).string(message.Key);
2268
+ }
2269
+ globalThis.Object.entries(message.Properties).forEach(([key, value]) => {
2270
+ GraphNodeFromDefinition_PropertiesEntry.encode({ key: key, value }, writer.uint32(18).fork()).join();
2271
+ });
2272
+ if (message.UpdateOnly !== false) {
2273
+ writer.uint32(24).bool(message.UpdateOnly);
2274
+ }
2275
+ return writer;
2276
+ },
2277
+ decode(input, length) {
2278
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2279
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2280
+ if (previousRecursionDepth >= 100) {
2281
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2282
+ }
2283
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2284
+ try {
2285
+ const end = length === undefined ? reader.len : reader.pos + length;
2286
+ const message = createBaseGraphNodeFromDefinition();
2287
+ while (reader.pos < end) {
2288
+ const tag = reader.uint32();
2289
+ switch (tag >>> 3) {
2290
+ case 1: {
2291
+ if (tag !== 10) {
2292
+ break;
2293
+ }
2294
+ message.Key = reader.string();
2295
+ continue;
2296
+ }
2297
+ case 2: {
2298
+ if (tag !== 18) {
2299
+ break;
2300
+ }
2301
+ const entry2 = GraphNodeFromDefinition_PropertiesEntry.decode(reader, reader.uint32());
2302
+ if (entry2.value !== undefined) {
2303
+ message.Properties[entry2.key] = entry2.value;
2304
+ }
2305
+ continue;
2306
+ }
2307
+ case 3: {
2308
+ if (tag !== 24) {
2309
+ break;
2310
+ }
2311
+ message.UpdateOnly = reader.bool();
2312
+ continue;
2313
+ }
2314
+ }
2315
+ if ((tag & 7) === 4 || tag === 0) {
2316
+ break;
2317
+ }
2318
+ reader.skip(tag & 7);
2319
+ }
2320
+ return message;
2321
+ }
2322
+ finally {
2323
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2324
+ }
2325
+ },
2326
+ fromJSON(object) {
2327
+ return {
2328
+ Key: isSet(object.Key) ? globalThis.String(object.Key) : "",
2329
+ Properties: isObject(object.Properties)
2330
+ ? globalThis.Object.entries(object.Properties).reduce((acc, [key, value]) => {
2331
+ globalThis.Object.defineProperty(acc, key, {
2332
+ value: globalThis.String(value),
2333
+ enumerable: true,
2334
+ configurable: true,
2335
+ writable: true,
2336
+ });
2337
+ return acc;
2338
+ }, {})
2339
+ : {},
2340
+ UpdateOnly: isSet(object.UpdateOnly) ? globalThis.Boolean(object.UpdateOnly) : false,
2341
+ };
2342
+ },
2343
+ toJSON(message) {
2344
+ const obj = {};
2345
+ if (message.Key !== "") {
2346
+ obj.Key = message.Key;
2347
+ }
2348
+ if (message.Properties) {
2349
+ const entries = globalThis.Object.entries(message.Properties);
2350
+ if (entries.length > 0) {
2351
+ obj.Properties = {};
2352
+ entries.forEach(([k, v]) => {
2353
+ obj.Properties[k] = v;
2354
+ });
2355
+ }
2356
+ }
2357
+ if (message.UpdateOnly !== false) {
2358
+ obj.UpdateOnly = message.UpdateOnly;
2359
+ }
2360
+ return obj;
2361
+ },
2362
+ create(base) {
2363
+ return GraphNodeFromDefinition.fromPartial(base ?? {});
2364
+ },
2365
+ fromPartial(object) {
2366
+ const message = createBaseGraphNodeFromDefinition();
2367
+ message.Key = object.Key ?? "";
2368
+ message.Properties = globalThis.Object.entries(object.Properties ?? {}).reduce((acc, [key, value]) => {
2369
+ if (value !== undefined) {
2370
+ acc[key] = globalThis.String(value);
2371
+ }
2372
+ return acc;
2373
+ }, {});
2374
+ message.UpdateOnly = object.UpdateOnly ?? false;
2375
+ return message;
2376
+ },
2377
+ };
2378
+ function createBaseGraphNodeFromDefinition_PropertiesEntry() {
2379
+ return { key: "", value: "" };
2380
+ }
2381
+ export const GraphNodeFromDefinition_PropertiesEntry = {
2382
+ encode(message, writer = new BinaryWriter()) {
2383
+ if (message.key !== "") {
2384
+ writer.uint32(10).string(message.key);
2385
+ }
2386
+ if (message.value !== "") {
2387
+ writer.uint32(18).string(message.value);
2388
+ }
2389
+ return writer;
2390
+ },
2391
+ decode(input, length) {
2392
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2393
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2394
+ if (previousRecursionDepth >= 100) {
2395
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2396
+ }
2397
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2398
+ try {
2399
+ const end = length === undefined ? reader.len : reader.pos + length;
2400
+ const message = createBaseGraphNodeFromDefinition_PropertiesEntry();
2401
+ while (reader.pos < end) {
2402
+ const tag = reader.uint32();
2403
+ switch (tag >>> 3) {
2404
+ case 1: {
2405
+ if (tag !== 10) {
2406
+ break;
2407
+ }
2408
+ message.key = reader.string();
2409
+ continue;
2410
+ }
2411
+ case 2: {
2412
+ if (tag !== 18) {
2413
+ break;
2414
+ }
2415
+ message.value = reader.string();
2416
+ continue;
2417
+ }
2418
+ }
2419
+ if ((tag & 7) === 4 || tag === 0) {
2420
+ break;
2421
+ }
2422
+ reader.skip(tag & 7);
2423
+ }
2424
+ return message;
2425
+ }
2426
+ finally {
2427
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2428
+ }
2429
+ },
2430
+ fromJSON(object) {
2431
+ return {
2432
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2433
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
2434
+ };
2435
+ },
2436
+ toJSON(message) {
2437
+ const obj = {};
2438
+ if (message.key !== "") {
2439
+ obj.key = message.key;
2440
+ }
2441
+ if (message.value !== "") {
2442
+ obj.value = message.value;
2443
+ }
2444
+ return obj;
2445
+ },
2446
+ create(base) {
2447
+ return GraphNodeFromDefinition_PropertiesEntry.fromPartial(base ?? {});
2448
+ },
2449
+ fromPartial(object) {
2450
+ const message = createBaseGraphNodeFromDefinition_PropertiesEntry();
2451
+ message.key = object.key ?? "";
2452
+ message.value = object.value ?? "";
2453
+ return message;
2454
+ },
2455
+ };
2456
+ function createBaseGraphNodeProjectionDefinition() {
2457
+ return { From: {}, RemovedWith: {} };
2458
+ }
2459
+ export const GraphNodeProjectionDefinition = {
2460
+ encode(message, writer = new BinaryWriter()) {
2461
+ globalThis.Object.entries(message.From).forEach(([key, value]) => {
2462
+ GraphNodeProjectionDefinition_FromEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
2463
+ });
2464
+ globalThis.Object.entries(message.RemovedWith).forEach(([key, value]) => {
2465
+ GraphNodeProjectionDefinition_RemovedWithEntry.encode({ key: key, value }, writer.uint32(18).fork())
2466
+ .join();
2467
+ });
2468
+ return writer;
2469
+ },
2470
+ decode(input, length) {
2471
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2472
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2473
+ if (previousRecursionDepth >= 100) {
2474
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2475
+ }
2476
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2477
+ try {
2478
+ const end = length === undefined ? reader.len : reader.pos + length;
2479
+ const message = createBaseGraphNodeProjectionDefinition();
2480
+ while (reader.pos < end) {
2481
+ const tag = reader.uint32();
2482
+ switch (tag >>> 3) {
2483
+ case 1: {
2484
+ if (tag !== 10) {
2485
+ break;
2486
+ }
2487
+ const entry1 = GraphNodeProjectionDefinition_FromEntry.decode(reader, reader.uint32());
2488
+ if (entry1.value !== undefined) {
2489
+ message.From[entry1.key] = entry1.value;
2490
+ }
2491
+ continue;
2492
+ }
2493
+ case 2: {
2494
+ if (tag !== 18) {
2495
+ break;
2496
+ }
2497
+ const entry2 = GraphNodeProjectionDefinition_RemovedWithEntry.decode(reader, reader.uint32());
2498
+ if (entry2.value !== undefined) {
2499
+ message.RemovedWith[entry2.key] = entry2.value;
2500
+ }
2501
+ continue;
2502
+ }
2503
+ }
2504
+ if ((tag & 7) === 4 || tag === 0) {
2505
+ break;
2506
+ }
2507
+ reader.skip(tag & 7);
2508
+ }
2509
+ return message;
2510
+ }
2511
+ finally {
2512
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2513
+ }
2514
+ },
2515
+ fromJSON(object) {
2516
+ return {
2517
+ From: isObject(object.From)
2518
+ ? globalThis.Object.entries(object.From).reduce((acc, [key, value]) => {
2519
+ globalThis.Object.defineProperty(acc, key, {
2520
+ value: GraphNodeFromDefinition.fromJSON(value),
2521
+ enumerable: true,
2522
+ configurable: true,
2523
+ writable: true,
2524
+ });
2525
+ return acc;
2526
+ }, {})
2527
+ : {},
2528
+ RemovedWith: isObject(object.RemovedWith)
2529
+ ? globalThis.Object.entries(object.RemovedWith).reduce((acc, [key, value]) => {
2530
+ globalThis.Object.defineProperty(acc, key, {
2531
+ value: GraphNodeRemovedWithDefinition.fromJSON(value),
2532
+ enumerable: true,
2533
+ configurable: true,
2534
+ writable: true,
2535
+ });
2536
+ return acc;
2537
+ }, {})
2538
+ : {},
2539
+ };
2540
+ },
2541
+ toJSON(message) {
2542
+ const obj = {};
2543
+ if (message.From) {
2544
+ const entries = globalThis.Object.entries(message.From);
2545
+ if (entries.length > 0) {
2546
+ obj.From = {};
2547
+ entries.forEach(([k, v]) => {
2548
+ obj.From[k] = GraphNodeFromDefinition.toJSON(v);
2549
+ });
2550
+ }
2551
+ }
2552
+ if (message.RemovedWith) {
2553
+ const entries = globalThis.Object.entries(message.RemovedWith);
2554
+ if (entries.length > 0) {
2555
+ obj.RemovedWith = {};
2556
+ entries.forEach(([k, v]) => {
2557
+ obj.RemovedWith[k] = GraphNodeRemovedWithDefinition.toJSON(v);
2558
+ });
2559
+ }
2560
+ }
2561
+ return obj;
2562
+ },
2563
+ create(base) {
2564
+ return GraphNodeProjectionDefinition.fromPartial(base ?? {});
2565
+ },
2566
+ fromPartial(object) {
2567
+ const message = createBaseGraphNodeProjectionDefinition();
2568
+ message.From = globalThis.Object.entries(object.From ?? {}).reduce((acc, [key, value]) => {
2569
+ if (value !== undefined) {
2570
+ acc[key] = GraphNodeFromDefinition.fromPartial(value);
2571
+ }
2572
+ return acc;
2573
+ }, {});
2574
+ message.RemovedWith =
2575
+ globalThis.Object.entries(object.RemovedWith ?? {}).reduce((acc, [key, value]) => {
2576
+ if (value !== undefined) {
2577
+ acc[key] = GraphNodeRemovedWithDefinition.fromPartial(value);
2578
+ }
2579
+ return acc;
2580
+ }, {});
2581
+ return message;
2582
+ },
2583
+ };
2584
+ function createBaseGraphNodeProjectionDefinition_FromEntry() {
2585
+ return { key: "", value: undefined };
2586
+ }
2587
+ export const GraphNodeProjectionDefinition_FromEntry = {
2588
+ encode(message, writer = new BinaryWriter()) {
2589
+ if (message.key !== "") {
2590
+ writer.uint32(10).string(message.key);
2591
+ }
2592
+ if (message.value !== undefined) {
2593
+ GraphNodeFromDefinition.encode(message.value, writer.uint32(18).fork()).join();
2594
+ }
2595
+ return writer;
2596
+ },
2597
+ decode(input, length) {
2598
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2599
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2600
+ if (previousRecursionDepth >= 100) {
2601
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2602
+ }
2603
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2604
+ try {
2605
+ const end = length === undefined ? reader.len : reader.pos + length;
2606
+ const message = createBaseGraphNodeProjectionDefinition_FromEntry();
2607
+ while (reader.pos < end) {
2608
+ const tag = reader.uint32();
2609
+ switch (tag >>> 3) {
2610
+ case 1: {
2611
+ if (tag !== 10) {
2612
+ break;
2613
+ }
2614
+ message.key = reader.string();
2615
+ continue;
2616
+ }
2617
+ case 2: {
2618
+ if (tag !== 18) {
2619
+ break;
2620
+ }
2621
+ message.value = GraphNodeFromDefinition.decode(reader, reader.uint32());
2622
+ continue;
2623
+ }
2624
+ }
2625
+ if ((tag & 7) === 4 || tag === 0) {
2626
+ break;
2627
+ }
2628
+ reader.skip(tag & 7);
2629
+ }
2630
+ return message;
2631
+ }
2632
+ finally {
2633
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2634
+ }
2635
+ },
2636
+ fromJSON(object) {
2637
+ return {
2638
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2639
+ value: isSet(object.value) ? GraphNodeFromDefinition.fromJSON(object.value) : undefined,
2640
+ };
2641
+ },
2642
+ toJSON(message) {
2643
+ const obj = {};
2644
+ if (message.key !== "") {
2645
+ obj.key = message.key;
2646
+ }
2647
+ if (message.value !== undefined) {
2648
+ obj.value = GraphNodeFromDefinition.toJSON(message.value);
2649
+ }
2650
+ return obj;
2651
+ },
2652
+ create(base) {
2653
+ return GraphNodeProjectionDefinition_FromEntry.fromPartial(base ?? {});
2654
+ },
2655
+ fromPartial(object) {
2656
+ const message = createBaseGraphNodeProjectionDefinition_FromEntry();
2657
+ message.key = object.key ?? "";
2658
+ message.value = (object.value !== undefined && object.value !== null)
2659
+ ? GraphNodeFromDefinition.fromPartial(object.value)
2660
+ : undefined;
2661
+ return message;
2662
+ },
2663
+ };
2664
+ function createBaseGraphNodeProjectionDefinition_RemovedWithEntry() {
2665
+ return { key: "", value: undefined };
2666
+ }
2667
+ export const GraphNodeProjectionDefinition_RemovedWithEntry = {
2668
+ encode(message, writer = new BinaryWriter()) {
2669
+ if (message.key !== "") {
2670
+ writer.uint32(10).string(message.key);
2671
+ }
2672
+ if (message.value !== undefined) {
2673
+ GraphNodeRemovedWithDefinition.encode(message.value, writer.uint32(18).fork()).join();
2674
+ }
2675
+ return writer;
2676
+ },
2677
+ decode(input, length) {
2678
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2679
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2680
+ if (previousRecursionDepth >= 100) {
2681
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2682
+ }
2683
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2684
+ try {
2685
+ const end = length === undefined ? reader.len : reader.pos + length;
2686
+ const message = createBaseGraphNodeProjectionDefinition_RemovedWithEntry();
2687
+ while (reader.pos < end) {
2688
+ const tag = reader.uint32();
2689
+ switch (tag >>> 3) {
2690
+ case 1: {
2691
+ if (tag !== 10) {
2692
+ break;
2693
+ }
2694
+ message.key = reader.string();
2695
+ continue;
2696
+ }
2697
+ case 2: {
2698
+ if (tag !== 18) {
2699
+ break;
2700
+ }
2701
+ message.value = GraphNodeRemovedWithDefinition.decode(reader, reader.uint32());
2702
+ continue;
2703
+ }
2704
+ }
2705
+ if ((tag & 7) === 4 || tag === 0) {
2706
+ break;
2707
+ }
2708
+ reader.skip(tag & 7);
2709
+ }
2710
+ return message;
2711
+ }
2712
+ finally {
2713
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2714
+ }
2715
+ },
2716
+ fromJSON(object) {
2717
+ return {
2718
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2719
+ value: isSet(object.value) ? GraphNodeRemovedWithDefinition.fromJSON(object.value) : undefined,
2720
+ };
2721
+ },
2722
+ toJSON(message) {
2723
+ const obj = {};
2724
+ if (message.key !== "") {
2725
+ obj.key = message.key;
2726
+ }
2727
+ if (message.value !== undefined) {
2728
+ obj.value = GraphNodeRemovedWithDefinition.toJSON(message.value);
2729
+ }
2730
+ return obj;
2731
+ },
2732
+ create(base) {
2733
+ return GraphNodeProjectionDefinition_RemovedWithEntry.fromPartial(base ?? {});
2734
+ },
2735
+ fromPartial(object) {
2736
+ const message = createBaseGraphNodeProjectionDefinition_RemovedWithEntry();
2737
+ message.key = object.key ?? "";
2738
+ message.value = (object.value !== undefined && object.value !== null)
2739
+ ? GraphNodeRemovedWithDefinition.fromPartial(object.value)
2740
+ : undefined;
2741
+ return message;
2742
+ },
2743
+ };
2744
+ function createBaseGraphNodeRemovedWithDefinition() {
2745
+ return { Key: "", Detach: false };
2746
+ }
2747
+ export const GraphNodeRemovedWithDefinition = {
2748
+ encode(message, writer = new BinaryWriter()) {
2749
+ if (message.Key !== "") {
2750
+ writer.uint32(10).string(message.Key);
2751
+ }
2752
+ if (message.Detach !== false) {
2753
+ writer.uint32(16).bool(message.Detach);
2754
+ }
2755
+ return writer;
2756
+ },
2757
+ decode(input, length) {
2758
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2759
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2760
+ if (previousRecursionDepth >= 100) {
2761
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2762
+ }
2763
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2764
+ try {
2765
+ const end = length === undefined ? reader.len : reader.pos + length;
2766
+ const message = createBaseGraphNodeRemovedWithDefinition();
2767
+ while (reader.pos < end) {
2768
+ const tag = reader.uint32();
2769
+ switch (tag >>> 3) {
2770
+ case 1: {
2771
+ if (tag !== 10) {
2772
+ break;
2773
+ }
2774
+ message.Key = reader.string();
2775
+ continue;
2776
+ }
2777
+ case 2: {
2778
+ if (tag !== 16) {
2779
+ break;
2780
+ }
2781
+ message.Detach = reader.bool();
2782
+ continue;
2783
+ }
2784
+ }
2785
+ if ((tag & 7) === 4 || tag === 0) {
2786
+ break;
2787
+ }
2788
+ reader.skip(tag & 7);
2789
+ }
2790
+ return message;
2791
+ }
2792
+ finally {
2793
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2794
+ }
2795
+ },
2796
+ fromJSON(object) {
2797
+ return {
2798
+ Key: isSet(object.Key) ? globalThis.String(object.Key) : "",
2799
+ Detach: isSet(object.Detach) ? globalThis.Boolean(object.Detach) : false,
2800
+ };
2801
+ },
2802
+ toJSON(message) {
2803
+ const obj = {};
2804
+ if (message.Key !== "") {
2805
+ obj.Key = message.Key;
2806
+ }
2807
+ if (message.Detach !== false) {
2808
+ obj.Detach = message.Detach;
2809
+ }
2810
+ return obj;
2811
+ },
2812
+ create(base) {
2813
+ return GraphNodeRemovedWithDefinition.fromPartial(base ?? {});
2814
+ },
2815
+ fromPartial(object) {
2816
+ const message = createBaseGraphNodeRemovedWithDefinition();
2817
+ message.Key = object.Key ?? "";
2818
+ message.Detach = object.Detach ?? false;
2819
+ return message;
2820
+ },
2821
+ };
2822
+ function createBaseGraphProjectionDefinition() {
2823
+ return { Nodes: {}, Edges: {} };
2824
+ }
2825
+ export const GraphProjectionDefinition = {
2826
+ encode(message, writer = new BinaryWriter()) {
2827
+ globalThis.Object.entries(message.Nodes).forEach(([key, value]) => {
2828
+ GraphProjectionDefinition_NodesEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
2829
+ });
2830
+ globalThis.Object.entries(message.Edges).forEach(([key, value]) => {
2831
+ GraphProjectionDefinition_EdgesEntry.encode({ key: key, value }, writer.uint32(18).fork()).join();
2832
+ });
2833
+ return writer;
2834
+ },
2835
+ decode(input, length) {
2836
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2837
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2838
+ if (previousRecursionDepth >= 100) {
2839
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2840
+ }
2841
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2842
+ try {
2843
+ const end = length === undefined ? reader.len : reader.pos + length;
2844
+ const message = createBaseGraphProjectionDefinition();
2845
+ while (reader.pos < end) {
2846
+ const tag = reader.uint32();
2847
+ switch (tag >>> 3) {
2848
+ case 1: {
2849
+ if (tag !== 10) {
2850
+ break;
2851
+ }
2852
+ const entry1 = GraphProjectionDefinition_NodesEntry.decode(reader, reader.uint32());
2853
+ if (entry1.value !== undefined) {
2854
+ message.Nodes[entry1.key] = entry1.value;
2855
+ }
2856
+ continue;
2857
+ }
2858
+ case 2: {
2859
+ if (tag !== 18) {
2860
+ break;
2861
+ }
2862
+ const entry2 = GraphProjectionDefinition_EdgesEntry.decode(reader, reader.uint32());
2863
+ if (entry2.value !== undefined) {
2864
+ message.Edges[entry2.key] = entry2.value;
2865
+ }
2866
+ continue;
2867
+ }
2868
+ }
2869
+ if ((tag & 7) === 4 || tag === 0) {
2870
+ break;
2871
+ }
2872
+ reader.skip(tag & 7);
2873
+ }
2874
+ return message;
2875
+ }
2876
+ finally {
2877
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2878
+ }
2879
+ },
2880
+ fromJSON(object) {
2881
+ return {
2882
+ Nodes: isObject(object.Nodes)
2883
+ ? globalThis.Object.entries(object.Nodes).reduce((acc, [key, value]) => {
2884
+ globalThis.Object.defineProperty(acc, key, {
2885
+ value: GraphNodeProjectionDefinition.fromJSON(value),
2886
+ enumerable: true,
2887
+ configurable: true,
2888
+ writable: true,
2889
+ });
2890
+ return acc;
2891
+ }, {})
2892
+ : {},
2893
+ Edges: isObject(object.Edges)
2894
+ ? globalThis.Object.entries(object.Edges).reduce((acc, [key, value]) => {
2895
+ globalThis.Object.defineProperty(acc, key, {
2896
+ value: GraphEdgeProjectionDefinition.fromJSON(value),
2897
+ enumerable: true,
2898
+ configurable: true,
2899
+ writable: true,
2900
+ });
2901
+ return acc;
2902
+ }, {})
2903
+ : {},
2904
+ };
2905
+ },
2906
+ toJSON(message) {
2907
+ const obj = {};
2908
+ if (message.Nodes) {
2909
+ const entries = globalThis.Object.entries(message.Nodes);
2910
+ if (entries.length > 0) {
2911
+ obj.Nodes = {};
2912
+ entries.forEach(([k, v]) => {
2913
+ obj.Nodes[k] = GraphNodeProjectionDefinition.toJSON(v);
2914
+ });
2915
+ }
2916
+ }
2917
+ if (message.Edges) {
2918
+ const entries = globalThis.Object.entries(message.Edges);
2919
+ if (entries.length > 0) {
2920
+ obj.Edges = {};
2921
+ entries.forEach(([k, v]) => {
2922
+ obj.Edges[k] = GraphEdgeProjectionDefinition.toJSON(v);
2923
+ });
2924
+ }
2925
+ }
2926
+ return obj;
2927
+ },
2928
+ create(base) {
2929
+ return GraphProjectionDefinition.fromPartial(base ?? {});
2930
+ },
2931
+ fromPartial(object) {
2932
+ const message = createBaseGraphProjectionDefinition();
2933
+ message.Nodes = globalThis.Object.entries(object.Nodes ?? {}).reduce((acc, [key, value]) => {
2934
+ if (value !== undefined) {
2935
+ acc[key] = GraphNodeProjectionDefinition.fromPartial(value);
2936
+ }
2937
+ return acc;
2938
+ }, {});
2939
+ message.Edges = globalThis.Object.entries(object.Edges ?? {}).reduce((acc, [key, value]) => {
2940
+ if (value !== undefined) {
2941
+ acc[key] = GraphEdgeProjectionDefinition.fromPartial(value);
2942
+ }
2943
+ return acc;
2944
+ }, {});
2945
+ return message;
2946
+ },
2947
+ };
2948
+ function createBaseGraphProjectionDefinition_NodesEntry() {
2949
+ return { key: "", value: undefined };
2950
+ }
2951
+ export const GraphProjectionDefinition_NodesEntry = {
2952
+ encode(message, writer = new BinaryWriter()) {
2953
+ if (message.key !== "") {
2954
+ writer.uint32(10).string(message.key);
2955
+ }
2956
+ if (message.value !== undefined) {
2957
+ GraphNodeProjectionDefinition.encode(message.value, writer.uint32(18).fork()).join();
2958
+ }
2959
+ return writer;
2960
+ },
2961
+ decode(input, length) {
2962
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2963
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2964
+ if (previousRecursionDepth >= 100) {
2965
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2966
+ }
2967
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2968
+ try {
2969
+ const end = length === undefined ? reader.len : reader.pos + length;
2970
+ const message = createBaseGraphProjectionDefinition_NodesEntry();
2971
+ while (reader.pos < end) {
2972
+ const tag = reader.uint32();
2973
+ switch (tag >>> 3) {
2974
+ case 1: {
2975
+ if (tag !== 10) {
2976
+ break;
2977
+ }
2978
+ message.key = reader.string();
2979
+ continue;
2980
+ }
2981
+ case 2: {
2982
+ if (tag !== 18) {
2983
+ break;
2984
+ }
2985
+ message.value = GraphNodeProjectionDefinition.decode(reader, reader.uint32());
2986
+ continue;
2987
+ }
2988
+ }
2989
+ if ((tag & 7) === 4 || tag === 0) {
2990
+ break;
2991
+ }
2992
+ reader.skip(tag & 7);
2993
+ }
2994
+ return message;
2995
+ }
2996
+ finally {
2997
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2998
+ }
2999
+ },
3000
+ fromJSON(object) {
3001
+ return {
3002
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
3003
+ value: isSet(object.value) ? GraphNodeProjectionDefinition.fromJSON(object.value) : undefined,
3004
+ };
3005
+ },
3006
+ toJSON(message) {
3007
+ const obj = {};
3008
+ if (message.key !== "") {
3009
+ obj.key = message.key;
3010
+ }
3011
+ if (message.value !== undefined) {
3012
+ obj.value = GraphNodeProjectionDefinition.toJSON(message.value);
3013
+ }
3014
+ return obj;
3015
+ },
3016
+ create(base) {
3017
+ return GraphProjectionDefinition_NodesEntry.fromPartial(base ?? {});
3018
+ },
3019
+ fromPartial(object) {
3020
+ const message = createBaseGraphProjectionDefinition_NodesEntry();
3021
+ message.key = object.key ?? "";
3022
+ message.value = (object.value !== undefined && object.value !== null)
3023
+ ? GraphNodeProjectionDefinition.fromPartial(object.value)
3024
+ : undefined;
3025
+ return message;
3026
+ },
3027
+ };
3028
+ function createBaseGraphProjectionDefinition_EdgesEntry() {
3029
+ return { key: "", value: undefined };
3030
+ }
3031
+ export const GraphProjectionDefinition_EdgesEntry = {
3032
+ encode(message, writer = new BinaryWriter()) {
3033
+ if (message.key !== "") {
3034
+ writer.uint32(10).string(message.key);
3035
+ }
3036
+ if (message.value !== undefined) {
3037
+ GraphEdgeProjectionDefinition.encode(message.value, writer.uint32(18).fork()).join();
3038
+ }
3039
+ return writer;
3040
+ },
3041
+ decode(input, length) {
3042
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3043
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
3044
+ if (previousRecursionDepth >= 100) {
3045
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3046
+ }
3047
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
3048
+ try {
3049
+ const end = length === undefined ? reader.len : reader.pos + length;
3050
+ const message = createBaseGraphProjectionDefinition_EdgesEntry();
3051
+ while (reader.pos < end) {
3052
+ const tag = reader.uint32();
3053
+ switch (tag >>> 3) {
3054
+ case 1: {
3055
+ if (tag !== 10) {
3056
+ break;
3057
+ }
3058
+ message.key = reader.string();
3059
+ continue;
3060
+ }
3061
+ case 2: {
3062
+ if (tag !== 18) {
3063
+ break;
3064
+ }
3065
+ message.value = GraphEdgeProjectionDefinition.decode(reader, reader.uint32());
3066
+ continue;
3067
+ }
3068
+ }
3069
+ if ((tag & 7) === 4 || tag === 0) {
3070
+ break;
3071
+ }
3072
+ reader.skip(tag & 7);
3073
+ }
3074
+ return message;
3075
+ }
3076
+ finally {
3077
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
3078
+ }
3079
+ },
3080
+ fromJSON(object) {
3081
+ return {
3082
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
3083
+ value: isSet(object.value) ? GraphEdgeProjectionDefinition.fromJSON(object.value) : undefined,
3084
+ };
3085
+ },
3086
+ toJSON(message) {
3087
+ const obj = {};
3088
+ if (message.key !== "") {
3089
+ obj.key = message.key;
3090
+ }
3091
+ if (message.value !== undefined) {
3092
+ obj.value = GraphEdgeProjectionDefinition.toJSON(message.value);
3093
+ }
3094
+ return obj;
3095
+ },
3096
+ create(base) {
3097
+ return GraphProjectionDefinition_EdgesEntry.fromPartial(base ?? {});
3098
+ },
3099
+ fromPartial(object) {
3100
+ const message = createBaseGraphProjectionDefinition_EdgesEntry();
3101
+ message.key = object.key ?? "";
3102
+ message.value = (object.value !== undefined && object.value !== null)
3103
+ ? GraphEdgeProjectionDefinition.fromPartial(object.value)
3104
+ : undefined;
3105
+ return message;
3106
+ },
3107
+ };
1670
3108
  function createBaseIEnumerableProjectionDefinition() {
1671
3109
  return { items: [] };
1672
3110
  }
@@ -2875,6 +4313,7 @@ function createBaseProjectionDefinition() {
2875
4313
  SubscribesToAllEvents: false,
2876
4314
  NoAutoMapProperties: [],
2877
4315
  GenerationDelivery: 0,
4316
+ Graph: undefined,
2878
4317
  };
2879
4318
  }
2880
4319
  export const ProjectionDefinition = {
@@ -2942,6 +4381,9 @@ export const ProjectionDefinition = {
2942
4381
  if (message.GenerationDelivery !== 0) {
2943
4382
  writer.uint32(168).int32(message.GenerationDelivery);
2944
4383
  }
4384
+ if (message.Graph !== undefined) {
4385
+ GraphProjectionDefinition.encode(message.Graph, writer.uint32(178).fork()).join();
4386
+ }
2945
4387
  return writer;
2946
4388
  },
2947
4389
  decode(input, length) {
@@ -3110,6 +4552,13 @@ export const ProjectionDefinition = {
3110
4552
  message.GenerationDelivery = reader.int32();
3111
4553
  continue;
3112
4554
  }
4555
+ case 22: {
4556
+ if (tag !== 178) {
4557
+ break;
4558
+ }
4559
+ message.Graph = GraphProjectionDefinition.decode(reader, reader.uint32());
4560
+ continue;
4561
+ }
3113
4562
  }
3114
4563
  if ((tag & 7) === 4 || tag === 0) {
3115
4564
  break;
@@ -3183,6 +4632,7 @@ export const ProjectionDefinition = {
3183
4632
  GenerationDelivery: isSet(object.GenerationDelivery)
3184
4633
  ? eventGenerationDeliveryFromJSON(object.GenerationDelivery)
3185
4634
  : 0,
4635
+ Graph: isSet(object.Graph) ? GraphProjectionDefinition.fromJSON(object.Graph) : undefined,
3186
4636
  };
3187
4637
  },
3188
4638
  toJSON(message) {
@@ -3262,6 +4712,9 @@ export const ProjectionDefinition = {
3262
4712
  if (message.GenerationDelivery !== 0) {
3263
4713
  obj.GenerationDelivery = eventGenerationDeliveryToJSON(message.GenerationDelivery);
3264
4714
  }
4715
+ if (message.Graph !== undefined) {
4716
+ obj.Graph = GraphProjectionDefinition.toJSON(message.Graph);
4717
+ }
3265
4718
  return obj;
3266
4719
  },
3267
4720
  create(base) {
@@ -3308,6 +4761,9 @@ export const ProjectionDefinition = {
3308
4761
  message.SubscribesToAllEvents = object.SubscribesToAllEvents ?? false;
3309
4762
  message.NoAutoMapProperties = object.NoAutoMapProperties?.map((e) => e) || [];
3310
4763
  message.GenerationDelivery = object.GenerationDelivery ?? 0;
4764
+ message.Graph = (object.Graph !== undefined && object.Graph !== null)
4765
+ ? GraphProjectionDefinition.fromPartial(object.Graph)
4766
+ : undefined;
3311
4767
  return message;
3312
4768
  },
3313
4769
  };