@percayso-community/cayso-contracts 0.27.0 → 0.30.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.
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export const CONTRACT_SCHEMA = {
17
- "contractVersion": "0.27.0",
17
+ "contractVersion": "0.30.0",
18
18
  "packageName": "@percayso-community/cayso-contracts",
19
19
  "capabilities": {
20
20
  "wallet": "cayso.wallet",
@@ -61,6 +61,14 @@ export const CONTRACT_SCHEMA = {
61
61
  "method": "POST",
62
62
  "path": "/api/citizen-transfers"
63
63
  },
64
+ "handleChange": {
65
+ "method": "POST",
66
+ "path": "/api/handle-changes"
67
+ },
68
+ "handleChangeReceipt": {
69
+ "method": "GET",
70
+ "path": "/api/handle-changes/receipt"
71
+ },
64
72
  "citizenMarket": {
65
73
  "method": "GET",
66
74
  "path": "/api/citizen-market"
@@ -85,6 +93,14 @@ export const CONTRACT_SCHEMA = {
85
93
  "method": "POST",
86
94
  "path": "/api/cloud/standing-authorisations"
87
95
  },
96
+ "revokeStandingAuthorisation": {
97
+ "method": "POST",
98
+ "path": "/api/cloud/standing-authorisation-revocations"
99
+ },
100
+ "bindNode": {
101
+ "method": "POST",
102
+ "path": "/api/cloud/node-bindings"
103
+ },
88
104
  "version": {
89
105
  "method": "GET",
90
106
  "path": "/api/version"
@@ -94,9 +110,87 @@ export const CONTRACT_SCHEMA = {
94
110
  "cloudSettlement": {
95
111
  "method": "POST",
96
112
  "path": "/api/cloud/settlement-assertions"
113
+ },
114
+ "nodeBindingQuery": {
115
+ "method": "POST",
116
+ "path": "/api/cloud/node-binding-queries"
117
+ }
118
+ },
119
+ "keyRoutes": {
120
+ "acknowledgementKeys": {
121
+ "method": "GET",
122
+ "path": "/api/acknowledgement-keys"
97
123
  }
98
124
  },
99
125
  "types": {
126
+ "AcknowledgementKeyId": {
127
+ "kind": "alias",
128
+ "of": {
129
+ "scalar": "string"
130
+ }
131
+ },
132
+ "AcknowledgementKeySet": {
133
+ "kind": "object",
134
+ "properties": {
135
+ "keys": {
136
+ "type": {
137
+ "array": {
138
+ "ref": "AcknowledgementPublicKey"
139
+ },
140
+ "readonly": true
141
+ },
142
+ "readonly": true,
143
+ "optional": false
144
+ }
145
+ }
146
+ },
147
+ "AcknowledgementPublicKey": {
148
+ "kind": "object",
149
+ "properties": {
150
+ "kty": {
151
+ "type": {
152
+ "literal": "OKP"
153
+ },
154
+ "readonly": true,
155
+ "optional": false
156
+ },
157
+ "crv": {
158
+ "type": {
159
+ "literal": "Ed25519"
160
+ },
161
+ "readonly": true,
162
+ "optional": false
163
+ },
164
+ "x": {
165
+ "type": {
166
+ "scalar": "string"
167
+ },
168
+ "readonly": true,
169
+ "optional": false
170
+ },
171
+ "kid": {
172
+ "type": {
173
+ "ref": "AcknowledgementKeyId"
174
+ },
175
+ "readonly": true,
176
+ "optional": false
177
+ },
178
+ "alg": {
179
+ "type": {
180
+ "literal": "EdDSA"
181
+ },
182
+ "readonly": true,
183
+ "optional": false
184
+ },
185
+ "use": {
186
+ "type": {
187
+ "literal": "sig"
188
+ },
189
+ "readonly": true,
190
+ "optional": false
191
+ }
192
+ }
193
+ },
100
194
  "Allowance": {
101
195
  "kind": "object",
102
196
  "properties": {
@@ -234,6 +328,13 @@ export const CONTRACT_SCHEMA = {
234
328
  "readonly": true,
235
329
  "optional": true
236
330
  },
331
+ "handleChangeReference": {
332
+ "type": {
333
+ "scalar": "string"
334
+ },
335
+ "readonly": true,
336
+ "optional": true
337
+ },
237
338
  "mandateFor": {
238
339
  "type": {
239
340
  "array": {
@@ -661,6 +762,15 @@ export const CONTRACT_SCHEMA = {
661
762
  {
662
763
  "literal": "citizen_transfer_store_not_configured"
663
764
  },
765
+ {
766
+ "literal": "handle_change_store_not_configured"
767
+ },
768
+ {
769
+ "literal": "handle_change_price_not_configured"
770
+ },
771
+ {
772
+ "literal": "handle_change_payee_not_configured"
773
+ },
664
774
  {
665
775
  "literal": "citizen_market_not_configured"
666
776
  },
@@ -673,6 +783,30 @@ export const CONTRACT_SCHEMA = {
673
783
  {
674
784
  "literal": "receipt_signing_not_configured"
675
785
  },
786
+ {
787
+ "literal": "acknowledgement_signing_not_configured"
788
+ },
789
+ {
790
+ "literal": "standing_authorisation_store_not_configured"
791
+ },
792
+ {
793
+ "literal": "standing_authorisation_cap_ceiling_not_configured"
794
+ },
795
+ {
796
+ "literal": "standing_authorisation_life_ceiling_not_configured"
797
+ },
798
+ {
799
+ "literal": "node_binding_store_not_configured"
800
+ },
801
+ {
802
+ "literal": "core_node_ids_not_configured"
803
+ },
804
+ {
805
+ "literal": "contribution_store_issuer_not_configured"
806
+ },
807
+ {
808
+ "literal": "cloud_settlement_store_not_configured"
809
+ },
676
810
  {
677
811
  "literal": "marketplace_order_keys_not_configured"
678
812
  },
@@ -706,6 +840,12 @@ export const CONTRACT_SCHEMA = {
706
840
  {
707
841
  "ref": "CitizenTransferRefusal"
708
842
  },
843
+ {
844
+ "ref": "HandleChangeRefusal"
845
+ },
846
+ {
847
+ "ref": "HandleChangeReceiptReadRefusal"
848
+ },
709
849
  {
710
850
  "ref": "QuotePlacementRefusal"
711
851
  },
@@ -727,6 +867,15 @@ export const CONTRACT_SCHEMA = {
727
867
  {
728
868
  "ref": "StandingAuthorisationRefusal"
729
869
  },
870
+ {
871
+ "ref": "StandingAuthorisationRevocationRefusal"
872
+ },
873
+ {
874
+ "ref": "NodeBindingRefusal"
875
+ },
876
+ {
877
+ "ref": "NodeBindingQueryRefusal"
878
+ },
730
879
  {
731
880
  "ref": "SettlementAssertionRefusal"
732
881
  }
@@ -1423,11 +1572,17 @@ export const CONTRACT_SCHEMA = {
1423
1572
  {
1424
1573
  "literal": "consumption_authorisation_revoked"
1425
1574
  },
1575
+ {
1576
+ "literal": "consumption_authorisation_not_in_force"
1577
+ },
1426
1578
  {
1427
1579
  "literal": "consumption_cap_not_the_acknowledged_cap"
1428
1580
  },
1429
1581
  {
1430
1582
  "literal": "consumption_over_cap"
1583
+ },
1584
+ {
1585
+ "literal": "consumption_wallet_short"
1431
1586
  }
1432
1587
  ]
1433
1588
  }
@@ -1499,6 +1654,12 @@ export const CONTRACT_SCHEMA = {
1499
1654
  {
1500
1655
  "literal": "make-citizen-transfer"
1501
1656
  },
1657
+ {
1658
+ "literal": "change-handle"
1659
+ },
1660
+ {
1661
+ "literal": "read-handle-change-receipt"
1662
+ },
1502
1663
  {
1503
1664
  "literal": "place-quote"
1504
1665
  },
@@ -1522,6 +1683,12 @@ export const CONTRACT_SCHEMA = {
1522
1683
  },
1523
1684
  {
1524
1685
  "literal": "present-standing-authorisation"
1686
+ },
1687
+ {
1688
+ "literal": "revoke-standing-authorisation"
1689
+ },
1690
+ {
1691
+ "literal": "bind-node"
1525
1692
  }
1526
1693
  ]
1527
1694
  }
@@ -1615,7 +1782,17 @@ export const CONTRACT_SCHEMA = {
1615
1782
  "ContributionRowRefusal": {
1616
1783
  "kind": "alias",
1617
1784
  "of": {
1618
- "literal": "contribution_node_not_bound"
1785
+ "union": [
1786
+ {
1787
+ "literal": "contribution_node_not_bound"
1788
+ },
1789
+ {
1790
+ "literal": "contribution_node_is_a_core_node"
1791
+ },
1792
+ {
1793
+ "literal": "contribution_treasury_short"
1794
+ }
1795
+ ]
1619
1796
  }
1620
1797
  },
1621
1798
  "ContributionRowRefused": {
@@ -1744,107 +1921,136 @@ export const CONTRACT_SCHEMA = {
1744
1921
  ]
1745
1922
  }
1746
1923
  },
1747
- "HolderType": {
1748
- "kind": "alias",
1749
- "of": {
1750
- "union": [
1751
- {
1752
- "literal": "citizen"
1753
- },
1754
- {
1755
- "literal": "organisation"
1756
- }
1757
- ]
1758
- }
1759
- },
1760
- "HousePublisherChargeReceiptStatement": {
1924
+ "HandleChangeCharged": {
1761
1925
  "kind": "object",
1762
1926
  "properties": {
1763
- "movementKind": {
1927
+ "outcome": {
1764
1928
  "type": {
1765
- "literal": "charge"
1929
+ "literal": "charged"
1766
1930
  },
1767
1931
  "readonly": true,
1768
1932
  "optional": false
1769
1933
  },
1770
- "saleKind": {
1934
+ "receipt": {
1771
1935
  "type": {
1772
- "literal": "house-publisher"
1936
+ "ref": "HandleChangeReceipt"
1773
1937
  },
1774
1938
  "readonly": true,
1775
1939
  "optional": false
1776
- },
1777
- "movementId": {
1940
+ }
1941
+ }
1942
+ },
1943
+ "HandleChangeNoCharge": {
1944
+ "kind": "object",
1945
+ "properties": {
1946
+ "outcome": {
1778
1947
  "type": {
1779
- "scalar": "string"
1948
+ "literal": "no-charge"
1780
1949
  },
1781
1950
  "readonly": true,
1782
1951
  "optional": false
1783
- },
1784
- "orderDigest": {
1952
+ }
1953
+ }
1954
+ },
1955
+ "HandleChangeReceipt": {
1956
+ "kind": "object",
1957
+ "properties": {
1958
+ "statement": {
1785
1959
  "type": {
1786
- "scalar": "string"
1960
+ "ref": "HandleChangeReceiptStatement"
1787
1961
  },
1788
1962
  "readonly": true,
1789
1963
  "optional": false
1790
1964
  },
1791
- "idempotencyKey": {
1965
+ "signature": {
1792
1966
  "type": {
1793
1967
  "scalar": "string"
1794
1968
  },
1795
1969
  "readonly": true,
1796
1970
  "optional": false
1797
- },
1798
- "buyerWalletId": {
1971
+ }
1972
+ }
1973
+ },
1974
+ "HandleChangeReceiptFound": {
1975
+ "kind": "object",
1976
+ "properties": {
1977
+ "outcome": {
1799
1978
  "type": {
1800
- "scalar": "string"
1979
+ "literal": "receipt"
1801
1980
  },
1802
1981
  "readonly": true,
1803
1982
  "optional": false
1804
1983
  },
1805
- "communityLeg": {
1984
+ "receipt": {
1806
1985
  "type": {
1807
- "ref": "MarketplaceReceiptLeg"
1986
+ "ref": "HandleChangeReceipt"
1808
1987
  },
1809
1988
  "readonly": true,
1810
1989
  "optional": false
1811
- },
1812
- "allocationPolicyVersion": {
1813
- "type": {
1814
- "scalar": "string"
1990
+ }
1991
+ }
1992
+ },
1993
+ "HandleChangeReceiptReadRefusal": {
1994
+ "kind": "alias",
1995
+ "of": {
1996
+ "union": [
1997
+ {
1998
+ "literal": "payer_has_no_citizen_wallet"
1815
1999
  },
1816
- "readonly": true,
1817
- "optional": false
1818
- },
1819
- "writtenAt": {
2000
+ {
2001
+ "literal": "handle_change_reference_charged_to_another_wallet"
2002
+ }
2003
+ ]
2004
+ }
2005
+ },
2006
+ "HandleChangeReceiptReadRefused": {
2007
+ "kind": "object",
2008
+ "properties": {
2009
+ "outcome": {
1820
2010
  "type": {
1821
- "ref": "Millis"
2011
+ "literal": "refused"
1822
2012
  },
1823
2013
  "readonly": true,
1824
2014
  "optional": false
1825
2015
  },
1826
- "keyId": {
2016
+ "error": {
1827
2017
  "type": {
1828
- "ref": "MarketplaceReceiptKeyId"
2018
+ "ref": "HandleChangeReceiptReadRefusal"
1829
2019
  },
1830
2020
  "readonly": true,
1831
2021
  "optional": false
1832
2022
  }
1833
2023
  }
1834
2024
  },
1835
- "HousePublisherRefundReceiptStatement": {
2025
+ "HandleChangeReceiptReadResponse": {
2026
+ "kind": "alias",
2027
+ "of": {
2028
+ "union": [
2029
+ {
2030
+ "ref": "HandleChangeReceiptFound"
2031
+ },
2032
+ {
2033
+ "ref": "HandleChangeNoCharge"
2034
+ },
2035
+ {
2036
+ "ref": "HandleChangeReceiptReadRefused"
2037
+ }
2038
+ ]
2039
+ }
2040
+ },
2041
+ "HandleChangeReceiptStatement": {
1836
2042
  "kind": "object",
1837
2043
  "properties": {
1838
- "movementKind": {
2044
+ "reason": {
1839
2045
  "type": {
1840
- "literal": "marketplace_refund"
2046
+ "literal": "handle-change"
1841
2047
  },
1842
2048
  "readonly": true,
1843
2049
  "optional": false
1844
2050
  },
1845
- "saleKind": {
2051
+ "movementKind": {
1846
2052
  "type": {
1847
- "literal": "house-publisher"
2053
+ "literal": "charge"
1848
2054
  },
1849
2055
  "readonly": true,
1850
2056
  "optional": false
@@ -1856,37 +2062,37 @@ export const CONTRACT_SCHEMA = {
1856
2062
  "readonly": true,
1857
2063
  "optional": false
1858
2064
  },
1859
- "orderDigest": {
2065
+ "handleChangeReference": {
1860
2066
  "type": {
1861
2067
  "scalar": "string"
1862
2068
  },
1863
2069
  "readonly": true,
1864
2070
  "optional": false
1865
2071
  },
1866
- "idempotencyKey": {
2072
+ "assertionIssuer": {
1867
2073
  "type": {
1868
2074
  "scalar": "string"
1869
2075
  },
1870
2076
  "readonly": true,
1871
2077
  "optional": false
1872
2078
  },
1873
- "buyerWalletId": {
2079
+ "assertionId": {
1874
2080
  "type": {
1875
2081
  "scalar": "string"
1876
2082
  },
1877
2083
  "readonly": true,
1878
2084
  "optional": false
1879
2085
  },
1880
- "communityLeg": {
2086
+ "payerWalletId": {
1881
2087
  "type": {
1882
- "ref": "MarketplaceReceiptLeg"
2088
+ "scalar": "string"
1883
2089
  },
1884
2090
  "readonly": true,
1885
2091
  "optional": false
1886
2092
  },
1887
- "allocationPolicyVersion": {
2093
+ "payeeLeg": {
1888
2094
  "type": {
1889
- "scalar": "string"
2095
+ "ref": "MarketplaceReceiptLeg"
1890
2096
  },
1891
2097
  "readonly": true,
1892
2098
  "optional": false
@@ -1907,32 +2113,252 @@ export const CONTRACT_SCHEMA = {
1907
2113
  }
1908
2114
  }
1909
2115
  },
1910
- "InstanceKeyId": {
1911
- "kind": "alias",
1912
- "of": {
1913
- "scalar": "string"
1914
- }
1915
- },
1916
- "InternalOperation": {
1917
- "kind": "alias",
1918
- "of": {
1919
- "scalar": "string"
1920
- }
1921
- },
1922
- "LivePurchaseStatus": {
2116
+ "HandleChangeRefusal": {
1923
2117
  "kind": "alias",
1924
2118
  "of": {
1925
2119
  "union": [
1926
2120
  {
1927
- "literal": "pending"
2121
+ "literal": "assurance_not_money_grade"
1928
2122
  },
1929
2123
  {
1930
- "literal": "issued_uncaptured"
1931
- }
1932
- ]
1933
- }
1934
- },
1935
- "MarketplaceNoMovement": {
2124
+ "literal": "payer_has_no_citizen_wallet"
2125
+ },
2126
+ {
2127
+ "literal": "cents_insufficient"
2128
+ },
2129
+ {
2130
+ "literal": "cents_frozen"
2131
+ },
2132
+ {
2133
+ "literal": "handle_change_reference_charged_to_another_wallet"
2134
+ },
2135
+ {
2136
+ "literal": "carve_contended"
2137
+ }
2138
+ ]
2139
+ }
2140
+ },
2141
+ "HandleChangeRefused": {
2142
+ "kind": "object",
2143
+ "properties": {
2144
+ "outcome": {
2145
+ "type": {
2146
+ "literal": "refused"
2147
+ },
2148
+ "readonly": true,
2149
+ "optional": false
2150
+ },
2151
+ "error": {
2152
+ "type": {
2153
+ "ref": "HandleChangeRefusal"
2154
+ },
2155
+ "readonly": true,
2156
+ "optional": false
2157
+ }
2158
+ }
2159
+ },
2160
+ "HandleChangeResponse": {
2161
+ "kind": "alias",
2162
+ "of": {
2163
+ "union": [
2164
+ {
2165
+ "ref": "HandleChangeCharged"
2166
+ },
2167
+ {
2168
+ "ref": "HandleChangeRefused"
2169
+ }
2170
+ ]
2171
+ }
2172
+ },
2173
+ "HolderType": {
2174
+ "kind": "alias",
2175
+ "of": {
2176
+ "union": [
2177
+ {
2178
+ "literal": "citizen"
2179
+ },
2180
+ {
2181
+ "literal": "organisation"
2182
+ }
2183
+ ]
2184
+ }
2185
+ },
2186
+ "HousePublisherChargeReceiptStatement": {
2187
+ "kind": "object",
2188
+ "properties": {
2189
+ "movementKind": {
2190
+ "type": {
2191
+ "literal": "charge"
2192
+ },
2193
+ "readonly": true,
2194
+ "optional": false
2195
+ },
2196
+ "saleKind": {
2197
+ "type": {
2198
+ "literal": "house-publisher"
2199
+ },
2200
+ "readonly": true,
2201
+ "optional": false
2202
+ },
2203
+ "movementId": {
2204
+ "type": {
2205
+ "scalar": "string"
2206
+ },
2207
+ "readonly": true,
2208
+ "optional": false
2209
+ },
2210
+ "orderDigest": {
2211
+ "type": {
2212
+ "scalar": "string"
2213
+ },
2214
+ "readonly": true,
2215
+ "optional": false
2216
+ },
2217
+ "idempotencyKey": {
2218
+ "type": {
2219
+ "scalar": "string"
2220
+ },
2221
+ "readonly": true,
2222
+ "optional": false
2223
+ },
2224
+ "buyerWalletId": {
2225
+ "type": {
2226
+ "scalar": "string"
2227
+ },
2228
+ "readonly": true,
2229
+ "optional": false
2230
+ },
2231
+ "communityLeg": {
2232
+ "type": {
2233
+ "ref": "MarketplaceReceiptLeg"
2234
+ },
2235
+ "readonly": true,
2236
+ "optional": false
2237
+ },
2238
+ "allocationPolicyVersion": {
2239
+ "type": {
2240
+ "scalar": "string"
2241
+ },
2242
+ "readonly": true,
2243
+ "optional": false
2244
+ },
2245
+ "writtenAt": {
2246
+ "type": {
2247
+ "ref": "Millis"
2248
+ },
2249
+ "readonly": true,
2250
+ "optional": false
2251
+ },
2252
+ "keyId": {
2253
+ "type": {
2254
+ "ref": "MarketplaceReceiptKeyId"
2255
+ },
2256
+ "readonly": true,
2257
+ "optional": false
2258
+ }
2259
+ }
2260
+ },
2261
+ "HousePublisherRefundReceiptStatement": {
2262
+ "kind": "object",
2263
+ "properties": {
2264
+ "movementKind": {
2265
+ "type": {
2266
+ "literal": "marketplace_refund"
2267
+ },
2268
+ "readonly": true,
2269
+ "optional": false
2270
+ },
2271
+ "saleKind": {
2272
+ "type": {
2273
+ "literal": "house-publisher"
2274
+ },
2275
+ "readonly": true,
2276
+ "optional": false
2277
+ },
2278
+ "movementId": {
2279
+ "type": {
2280
+ "scalar": "string"
2281
+ },
2282
+ "readonly": true,
2283
+ "optional": false
2284
+ },
2285
+ "orderDigest": {
2286
+ "type": {
2287
+ "scalar": "string"
2288
+ },
2289
+ "readonly": true,
2290
+ "optional": false
2291
+ },
2292
+ "idempotencyKey": {
2293
+ "type": {
2294
+ "scalar": "string"
2295
+ },
2296
+ "readonly": true,
2297
+ "optional": false
2298
+ },
2299
+ "buyerWalletId": {
2300
+ "type": {
2301
+ "scalar": "string"
2302
+ },
2303
+ "readonly": true,
2304
+ "optional": false
2305
+ },
2306
+ "communityLeg": {
2307
+ "type": {
2308
+ "ref": "MarketplaceReceiptLeg"
2309
+ },
2310
+ "readonly": true,
2311
+ "optional": false
2312
+ },
2313
+ "allocationPolicyVersion": {
2314
+ "type": {
2315
+ "scalar": "string"
2316
+ },
2317
+ "readonly": true,
2318
+ "optional": false
2319
+ },
2320
+ "writtenAt": {
2321
+ "type": {
2322
+ "ref": "Millis"
2323
+ },
2324
+ "readonly": true,
2325
+ "optional": false
2326
+ },
2327
+ "keyId": {
2328
+ "type": {
2329
+ "ref": "MarketplaceReceiptKeyId"
2330
+ },
2331
+ "readonly": true,
2332
+ "optional": false
2333
+ }
2334
+ }
2335
+ },
2336
+ "InstanceKeyId": {
2337
+ "kind": "alias",
2338
+ "of": {
2339
+ "scalar": "string"
2340
+ }
2341
+ },
2342
+ "InternalOperation": {
2343
+ "kind": "alias",
2344
+ "of": {
2345
+ "scalar": "string"
2346
+ }
2347
+ },
2348
+ "LivePurchaseStatus": {
2349
+ "kind": "alias",
2350
+ "of": {
2351
+ "union": [
2352
+ {
2353
+ "literal": "pending"
2354
+ },
2355
+ {
2356
+ "literal": "issued_uncaptured"
2357
+ }
2358
+ ]
2359
+ }
2360
+ },
2361
+ "MarketplaceNoMovement": {
1936
2362
  "kind": "object",
1937
2363
  "properties": {
1938
2364
  "outcome": {
@@ -1998,6 +2424,9 @@ export const CONTRACT_SCHEMA = {
1998
2424
  {
1999
2425
  "literal": "allocation_policy_version_not_configured"
2000
2426
  },
2427
+ {
2428
+ "literal": "allocation_share_out_of_range"
2429
+ },
2001
2430
  {
2002
2431
  "literal": "payee_wallet_not_found"
2003
2432
  },
@@ -2007,6 +2436,9 @@ export const CONTRACT_SCHEMA = {
2007
2436
  {
2008
2437
  "literal": "payee_wallet_has_no_live_binding"
2009
2438
  },
2439
+ {
2440
+ "literal": "payee_wallet_is_the_buyers"
2441
+ },
2010
2442
  {
2011
2443
  "literal": "unrestricted_cents_insufficient"
2012
2444
  },
@@ -2207,43 +2639,343 @@ export const CONTRACT_SCHEMA = {
2207
2639
  "literal": "ES256"
2208
2640
  }
2209
2641
  },
2210
- "MarketplaceReceiptStatement": {
2642
+ "MarketplaceReceiptStatement": {
2643
+ "kind": "alias",
2644
+ "of": {
2645
+ "union": [
2646
+ {
2647
+ "ref": "MarketplaceSettlementReceiptStatement"
2648
+ },
2649
+ {
2650
+ "ref": "HousePublisherChargeReceiptStatement"
2651
+ },
2652
+ {
2653
+ "ref": "ThirdPartyRefundReceiptStatement"
2654
+ },
2655
+ {
2656
+ "ref": "HousePublisherRefundReceiptStatement"
2657
+ }
2658
+ ]
2659
+ }
2660
+ },
2661
+ "MarketplaceRefundReceipt": {
2662
+ "kind": "object",
2663
+ "properties": {
2664
+ "statement": {
2665
+ "type": {
2666
+ "union": [
2667
+ {
2668
+ "ref": "ThirdPartyRefundReceiptStatement"
2669
+ },
2670
+ {
2671
+ "ref": "HousePublisherRefundReceiptStatement"
2672
+ }
2673
+ ]
2674
+ },
2675
+ "readonly": true,
2676
+ "optional": false
2677
+ },
2678
+ "signature": {
2679
+ "type": {
2680
+ "scalar": "string"
2681
+ },
2682
+ "readonly": true,
2683
+ "optional": false
2684
+ }
2685
+ }
2686
+ },
2687
+ "MarketplaceRefundRefusal": {
2688
+ "kind": "alias",
2689
+ "of": {
2690
+ "union": [
2691
+ {
2692
+ "literal": "assurance_not_money_grade"
2693
+ },
2694
+ {
2695
+ "literal": "wallet_has_no_live_binding"
2696
+ },
2697
+ {
2698
+ "literal": "refund_decision_key_not_recognised"
2699
+ },
2700
+ {
2701
+ "literal": "refund_decision_signature_invalid"
2702
+ },
2703
+ {
2704
+ "literal": "sale_not_found"
2705
+ },
2706
+ {
2707
+ "literal": "idempotency_key_reused_for_a_different_refund"
2708
+ },
2709
+ {
2710
+ "literal": "refund_window_passed"
2711
+ },
2712
+ {
2713
+ "literal": "listing_already_refunded"
2714
+ },
2715
+ {
2716
+ "literal": "refund_figure_not_configured"
2717
+ },
2718
+ {
2719
+ "literal": "publisher_unrestricted_cents_insufficient"
2720
+ },
2721
+ {
2722
+ "literal": "cents_frozen"
2723
+ },
2724
+ {
2725
+ "literal": "carve_contended"
2726
+ }
2727
+ ]
2728
+ }
2729
+ },
2730
+ "MarketplaceRefundRefused": {
2731
+ "kind": "object",
2732
+ "properties": {
2733
+ "outcome": {
2734
+ "type": {
2735
+ "literal": "refused"
2736
+ },
2737
+ "readonly": true,
2738
+ "optional": false
2739
+ },
2740
+ "error": {
2741
+ "type": {
2742
+ "ref": "MarketplaceRefundRefusal"
2743
+ },
2744
+ "readonly": true,
2745
+ "optional": false
2746
+ }
2747
+ }
2748
+ },
2749
+ "MarketplaceRefundRequest": {
2750
+ "kind": "object",
2751
+ "properties": {
2752
+ "signedRefundDecision": {
2753
+ "type": {
2754
+ "ref": "StoreSignedStatement"
2755
+ },
2756
+ "readonly": true,
2757
+ "optional": false
2758
+ }
2759
+ }
2760
+ },
2761
+ "MarketplaceRefundResponse": {
2762
+ "kind": "alias",
2763
+ "of": {
2764
+ "union": [
2765
+ {
2766
+ "ref": "MarketplaceRefundSettled"
2767
+ },
2768
+ {
2769
+ "ref": "MarketplaceRefundRefused"
2770
+ }
2771
+ ]
2772
+ }
2773
+ },
2774
+ "MarketplaceRefundSettled": {
2775
+ "kind": "object",
2776
+ "properties": {
2777
+ "outcome": {
2778
+ "type": {
2779
+ "literal": "refunded"
2780
+ },
2781
+ "readonly": true,
2782
+ "optional": false
2783
+ },
2784
+ "receipt": {
2785
+ "type": {
2786
+ "ref": "MarketplaceRefundReceipt"
2787
+ },
2788
+ "readonly": true,
2789
+ "optional": false
2790
+ }
2791
+ }
2792
+ },
2793
+ "MarketplaceSaleKind": {
2794
+ "kind": "alias",
2795
+ "of": {
2796
+ "union": [
2797
+ {
2798
+ "literal": "third-party"
2799
+ },
2800
+ {
2801
+ "literal": "house-publisher"
2802
+ }
2803
+ ]
2804
+ }
2805
+ },
2806
+ "MarketplaceSettlementReceiptStatement": {
2807
+ "kind": "object",
2808
+ "properties": {
2809
+ "movementKind": {
2810
+ "type": {
2811
+ "literal": "marketplace_settlement"
2812
+ },
2813
+ "readonly": true,
2814
+ "optional": false
2815
+ },
2816
+ "saleKind": {
2817
+ "type": {
2818
+ "literal": "third-party"
2819
+ },
2820
+ "readonly": true,
2821
+ "optional": false
2822
+ },
2823
+ "movementId": {
2824
+ "type": {
2825
+ "scalar": "string"
2826
+ },
2827
+ "readonly": true,
2828
+ "optional": false
2829
+ },
2830
+ "orderDigest": {
2831
+ "type": {
2832
+ "scalar": "string"
2833
+ },
2834
+ "readonly": true,
2835
+ "optional": false
2836
+ },
2837
+ "idempotencyKey": {
2838
+ "type": {
2839
+ "scalar": "string"
2840
+ },
2841
+ "readonly": true,
2842
+ "optional": false
2843
+ },
2844
+ "buyerWalletId": {
2845
+ "type": {
2846
+ "scalar": "string"
2847
+ },
2848
+ "readonly": true,
2849
+ "optional": false
2850
+ },
2851
+ "publisherLeg": {
2852
+ "type": {
2853
+ "ref": "MarketplaceReceiptLeg"
2854
+ },
2855
+ "readonly": true,
2856
+ "optional": false
2857
+ },
2858
+ "communityLeg": {
2859
+ "type": {
2860
+ "ref": "MarketplaceReceiptLeg"
2861
+ },
2862
+ "readonly": true,
2863
+ "optional": false
2864
+ },
2865
+ "allocationPolicyVersion": {
2866
+ "type": {
2867
+ "scalar": "string"
2868
+ },
2869
+ "readonly": true,
2870
+ "optional": false
2871
+ },
2872
+ "writtenAt": {
2873
+ "type": {
2874
+ "ref": "Millis"
2875
+ },
2876
+ "readonly": true,
2877
+ "optional": false
2878
+ },
2879
+ "keyId": {
2880
+ "type": {
2881
+ "ref": "MarketplaceReceiptKeyId"
2882
+ },
2883
+ "readonly": true,
2884
+ "optional": false
2885
+ }
2886
+ }
2887
+ },
2888
+ "Millis": {
2889
+ "kind": "alias",
2890
+ "of": {
2891
+ "scalar": "number"
2892
+ }
2893
+ },
2894
+ "NodeBindingQueryClaims": {
2895
+ "kind": "object",
2896
+ "properties": {
2897
+ "iss": {
2898
+ "type": {
2899
+ "ref": "ContributionStoreIssuer"
2900
+ },
2901
+ "readonly": true,
2902
+ "optional": false
2903
+ },
2904
+ "aud": {
2905
+ "type": {
2906
+ "literal": "cayso"
2907
+ },
2908
+ "readonly": true,
2909
+ "optional": false
2910
+ },
2911
+ "node_id": {
2912
+ "type": {
2913
+ "ref": "NodeId"
2914
+ },
2915
+ "readonly": true,
2916
+ "optional": false
2917
+ },
2918
+ "iat": {
2919
+ "type": {
2920
+ "scalar": "number"
2921
+ },
2922
+ "readonly": true,
2923
+ "optional": false
2924
+ },
2925
+ "exp": {
2926
+ "type": {
2927
+ "scalar": "number"
2928
+ },
2929
+ "readonly": true,
2930
+ "optional": false
2931
+ }
2932
+ }
2933
+ },
2934
+ "NodeBindingQueryRefusal": {
2211
2935
  "kind": "alias",
2212
2936
  "of": {
2213
2937
  "union": [
2214
2938
  {
2215
- "ref": "MarketplaceSettlementReceiptStatement"
2939
+ "literal": "node_binding_query_malformed"
2216
2940
  },
2217
2941
  {
2218
- "ref": "HousePublisherChargeReceiptStatement"
2942
+ "literal": "node_binding_query_issuer_not_recognised"
2219
2943
  },
2220
2944
  {
2221
- "ref": "ThirdPartyRefundReceiptStatement"
2945
+ "literal": "node_binding_query_issuer_for_another_environment"
2222
2946
  },
2223
2947
  {
2224
- "ref": "HousePublisherRefundReceiptStatement"
2948
+ "literal": "node_binding_query_signature_invalid"
2949
+ },
2950
+ {
2951
+ "literal": "node_binding_query_not_current"
2225
2952
  }
2226
2953
  ]
2227
2954
  }
2228
2955
  },
2229
- "MarketplaceRefundReceipt": {
2956
+ "NodeBindingQueryRefused": {
2230
2957
  "kind": "object",
2231
2958
  "properties": {
2232
- "statement": {
2959
+ "outcome": {
2233
2960
  "type": {
2234
- "union": [
2235
- {
2236
- "ref": "ThirdPartyRefundReceiptStatement"
2237
- },
2238
- {
2239
- "ref": "HousePublisherRefundReceiptStatement"
2240
- }
2241
- ]
2961
+ "literal": "refused"
2242
2962
  },
2243
2963
  "readonly": true,
2244
2964
  "optional": false
2245
2965
  },
2246
- "signature": {
2966
+ "error": {
2967
+ "type": {
2968
+ "ref": "NodeBindingQueryRefusal"
2969
+ },
2970
+ "readonly": true,
2971
+ "optional": false
2972
+ }
2973
+ }
2974
+ },
2975
+ "NodeBindingQueryRequest": {
2976
+ "kind": "object",
2977
+ "properties": {
2978
+ "nodeBindingQuery": {
2247
2979
  "type": {
2248
2980
  "scalar": "string"
2249
2981
  },
@@ -2252,7 +2984,7 @@ export const CONTRACT_SCHEMA = {
2252
2984
  }
2253
2985
  }
2254
2986
  },
2255
- "MarketplaceRefundRefusal": {
2987
+ "NodeBindingRefusal": {
2256
2988
  "kind": "alias",
2257
2989
  "of": {
2258
2990
  "union": [
@@ -2260,42 +2992,30 @@ export const CONTRACT_SCHEMA = {
2260
2992
  "literal": "assurance_not_money_grade"
2261
2993
  },
2262
2994
  {
2263
- "literal": "wallet_has_no_live_binding"
2264
- },
2265
- {
2266
- "literal": "refund_decision_key_not_recognised"
2267
- },
2268
- {
2269
- "literal": "refund_decision_signature_invalid"
2270
- },
2271
- {
2272
- "literal": "sale_not_found"
2273
- },
2274
- {
2275
- "literal": "idempotency_key_reused_for_a_different_refund"
2995
+ "literal": "node_presentation_malformed"
2276
2996
  },
2277
2997
  {
2278
- "literal": "refund_window_passed"
2998
+ "literal": "instance_key_malformed"
2279
2999
  },
2280
3000
  {
2281
- "literal": "listing_already_refunded"
3001
+ "literal": "node_presentation_not_signed_by_its_instance_key"
2282
3002
  },
2283
3003
  {
2284
- "literal": "refund_figure_not_configured"
3004
+ "literal": "node_presentation_not_current"
2285
3005
  },
2286
3006
  {
2287
- "literal": "publisher_unrestricted_cents_insufficient"
3007
+ "literal": "instance_key_not_bound_to_holder"
2288
3008
  },
2289
3009
  {
2290
- "literal": "cents_frozen"
3010
+ "literal": "core_node_not_bound"
2291
3011
  },
2292
3012
  {
2293
- "literal": "carve_contended"
3013
+ "literal": "node_bound_to_another_wallet"
2294
3014
  }
2295
3015
  ]
2296
3016
  }
2297
3017
  },
2298
- "MarketplaceRefundRefused": {
3018
+ "NodeBindingRefused": {
2299
3019
  "kind": "object",
2300
3020
  "properties": {
2301
3021
  "outcome": {
@@ -2307,164 +3027,129 @@ export const CONTRACT_SCHEMA = {
2307
3027
  },
2308
3028
  "error": {
2309
3029
  "type": {
2310
- "ref": "MarketplaceRefundRefusal"
2311
- },
2312
- "readonly": true,
2313
- "optional": false
2314
- }
2315
- }
2316
- },
2317
- "MarketplaceRefundRequest": {
2318
- "kind": "object",
2319
- "properties": {
2320
- "signedRefundDecision": {
2321
- "type": {
2322
- "ref": "StoreSignedStatement"
3030
+ "ref": "NodeBindingRefusal"
2323
3031
  },
2324
3032
  "readonly": true,
2325
3033
  "optional": false
2326
3034
  }
2327
3035
  }
2328
3036
  },
2329
- "MarketplaceRefundResponse": {
2330
- "kind": "alias",
2331
- "of": {
2332
- "union": [
2333
- {
2334
- "ref": "MarketplaceRefundSettled"
2335
- },
2336
- {
2337
- "ref": "MarketplaceRefundRefused"
2338
- }
2339
- ]
2340
- }
2341
- },
2342
- "MarketplaceRefundSettled": {
3037
+ "NodeBindingRequest": {
2343
3038
  "kind": "object",
2344
3039
  "properties": {
2345
- "outcome": {
3040
+ "nodePresentation": {
2346
3041
  "type": {
2347
- "literal": "refunded"
3042
+ "scalar": "string"
2348
3043
  },
2349
3044
  "readonly": true,
2350
3045
  "optional": false
2351
3046
  },
2352
- "receipt": {
3047
+ "instanceKey": {
2353
3048
  "type": {
2354
- "ref": "MarketplaceRefundReceipt"
3049
+ "scalar": "string"
2355
3050
  },
2356
3051
  "readonly": true,
2357
3052
  "optional": false
2358
3053
  }
2359
3054
  }
2360
3055
  },
2361
- "MarketplaceSaleKind": {
3056
+ "NodeBindingResponse": {
2362
3057
  "kind": "alias",
2363
3058
  "of": {
2364
3059
  "union": [
2365
3060
  {
2366
- "literal": "third-party"
3061
+ "ref": "NodeBound"
2367
3062
  },
2368
3063
  {
2369
- "literal": "house-publisher"
3064
+ "ref": "NodeBindingRefused"
2370
3065
  }
2371
3066
  ]
2372
3067
  }
2373
3068
  },
2374
- "MarketplaceSettlementReceiptStatement": {
3069
+ "NodeBindingStatus": {
2375
3070
  "kind": "object",
2376
3071
  "properties": {
2377
- "movementKind": {
2378
- "type": {
2379
- "literal": "marketplace_settlement"
2380
- },
2381
- "readonly": true,
2382
- "optional": false
2383
- },
2384
- "saleKind": {
2385
- "type": {
2386
- "literal": "third-party"
2387
- },
2388
- "readonly": true,
2389
- "optional": false
2390
- },
2391
- "movementId": {
3072
+ "nodeId": {
2392
3073
  "type": {
2393
- "scalar": "string"
3074
+ "ref": "NodeId"
2394
3075
  },
2395
3076
  "readonly": true,
2396
3077
  "optional": false
2397
3078
  },
2398
- "orderDigest": {
3079
+ "bound": {
2399
3080
  "type": {
2400
- "scalar": "string"
3081
+ "scalar": "boolean"
2401
3082
  },
2402
3083
  "readonly": true,
2403
3084
  "optional": false
2404
- },
2405
- "idempotencyKey": {
3085
+ }
3086
+ }
3087
+ },
3088
+ "NodeBound": {
3089
+ "kind": "object",
3090
+ "properties": {
3091
+ "outcome": {
2406
3092
  "type": {
2407
- "scalar": "string"
3093
+ "literal": "bound"
2408
3094
  },
2409
3095
  "readonly": true,
2410
3096
  "optional": false
2411
3097
  },
2412
- "buyerWalletId": {
3098
+ "nodeId": {
2413
3099
  "type": {
2414
- "scalar": "string"
3100
+ "ref": "NodeId"
2415
3101
  },
2416
3102
  "readonly": true,
2417
3103
  "optional": false
2418
- },
2419
- "publisherLeg": {
3104
+ }
3105
+ }
3106
+ },
3107
+ "NodeId": {
3108
+ "kind": "alias",
3109
+ "of": {
3110
+ "scalar": "string"
3111
+ }
3112
+ },
3113
+ "NodePresentationClaims": {
3114
+ "kind": "object",
3115
+ "properties": {
3116
+ "iss": {
2420
3117
  "type": {
2421
- "ref": "MarketplaceReceiptLeg"
3118
+ "ref": "InstanceKeyId"
2422
3119
  },
2423
3120
  "readonly": true,
2424
3121
  "optional": false
2425
3122
  },
2426
- "communityLeg": {
3123
+ "aud": {
2427
3124
  "type": {
2428
- "ref": "MarketplaceReceiptLeg"
3125
+ "literal": "cayso"
2429
3126
  },
2430
3127
  "readonly": true,
2431
3128
  "optional": false
2432
3129
  },
2433
- "allocationPolicyVersion": {
3130
+ "node_id": {
2434
3131
  "type": {
2435
- "scalar": "string"
3132
+ "ref": "NodeId"
2436
3133
  },
2437
3134
  "readonly": true,
2438
3135
  "optional": false
2439
3136
  },
2440
- "writtenAt": {
3137
+ "iat": {
2441
3138
  "type": {
2442
- "ref": "Millis"
3139
+ "scalar": "number"
2443
3140
  },
2444
3141
  "readonly": true,
2445
3142
  "optional": false
2446
3143
  },
2447
- "keyId": {
3144
+ "exp": {
2448
3145
  "type": {
2449
- "ref": "MarketplaceReceiptKeyId"
3146
+ "scalar": "number"
2450
3147
  },
2451
3148
  "readonly": true,
2452
3149
  "optional": false
2453
3150
  }
2454
3151
  }
2455
3152
  },
2456
- "Millis": {
2457
- "kind": "alias",
2458
- "of": {
2459
- "scalar": "number"
2460
- }
2461
- },
2462
- "NodeId": {
2463
- "kind": "alias",
2464
- "of": {
2465
- "scalar": "string"
2466
- }
2467
- },
2468
3153
  "OrganisationView": {
2469
3154
  "kind": "object",
2470
3155
  "properties": {
@@ -3515,11 +4200,20 @@ export const CONTRACT_SCHEMA = {
3515
4200
  {
3516
4201
  "literal": "settlement_jti_not_the_period"
3517
4202
  },
4203
+ {
4204
+ "literal": "settlement_period_not_recognised"
4205
+ },
4206
+ {
4207
+ "literal": "settlement_period_not_ended"
4208
+ },
3518
4209
  {
3519
4210
  "literal": "settlement_period_already_settled_differently"
3520
4211
  },
3521
4212
  {
3522
4213
  "literal": "settlement_totals_do_not_add"
4214
+ },
4215
+ {
4216
+ "literal": "settlement_carve_contended"
3523
4217
  }
3524
4218
  ]
3525
4219
  }
@@ -3925,6 +4619,85 @@ export const CONTRACT_SCHEMA = {
3925
4619
  ]
3926
4620
  }
3927
4621
  },
4622
+ "StandingAuthorisationRevocationRefusal": {
4623
+ "kind": "alias",
4624
+ "of": {
4625
+ "union": [
4626
+ {
4627
+ "literal": "assurance_not_money_grade"
4628
+ },
4629
+ {
4630
+ "literal": "wallet_has_no_live_binding"
4631
+ },
4632
+ {
4633
+ "literal": "authorisation_not_held_by_this_wallet"
4634
+ }
4635
+ ]
4636
+ }
4637
+ },
4638
+ "StandingAuthorisationRevocationRefused": {
4639
+ "kind": "object",
4640
+ "properties": {
4641
+ "outcome": {
4642
+ "type": {
4643
+ "literal": "refused"
4644
+ },
4645
+ "readonly": true,
4646
+ "optional": false
4647
+ },
4648
+ "error": {
4649
+ "type": {
4650
+ "ref": "StandingAuthorisationRevocationRefusal"
4651
+ },
4652
+ "readonly": true,
4653
+ "optional": false
4654
+ }
4655
+ }
4656
+ },
4657
+ "StandingAuthorisationRevocationRequest": {
4658
+ "kind": "object",
4659
+ "properties": {
4660
+ "authorisation": {
4661
+ "type": {
4662
+ "scalar": "string"
4663
+ },
4664
+ "readonly": true,
4665
+ "optional": false
4666
+ }
4667
+ }
4668
+ },
4669
+ "StandingAuthorisationRevocationResponse": {
4670
+ "kind": "alias",
4671
+ "of": {
4672
+ "union": [
4673
+ {
4674
+ "ref": "StandingAuthorisationRevoked"
4675
+ },
4676
+ {
4677
+ "ref": "StandingAuthorisationRevocationRefused"
4678
+ }
4679
+ ]
4680
+ }
4681
+ },
4682
+ "StandingAuthorisationRevoked": {
4683
+ "kind": "object",
4684
+ "properties": {
4685
+ "outcome": {
4686
+ "type": {
4687
+ "literal": "revoked"
4688
+ },
4689
+ "readonly": true,
4690
+ "optional": false
4691
+ },
4692
+ "authorisation": {
4693
+ "type": {
4694
+ "scalar": "string"
4695
+ },
4696
+ "readonly": true,
4697
+ "optional": false
4698
+ }
4699
+ }
4700
+ },
3928
4701
  "StoreSignedStatement": {
3929
4702
  "kind": "object",
3930
4703
  "properties": {
@@ -4217,6 +4990,15 @@ export const CONTRACT_SCHEMA = {
4217
4990
  },
4218
4991
  {
4219
4992
  "literal": "quoted_sale_compensation"
4993
+ },
4994
+ {
4995
+ "literal": "marketplace_settlement"
4996
+ },
4997
+ {
4998
+ "literal": "contribution_settlement"
4999
+ },
5000
+ {
5001
+ "literal": "consumption_settlement"
4220
5002
  }
4221
5003
  ]
4222
5004
  }