lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

terms_installation.v1.json (12970B)


      1 {
      2   "schema": "radroots.terms_installation_commands.v1",
      3   "provenance": "Synthetic command inputs; independent ECMAScript ASCII-key canonicalization and Node SHA-256. No Rust writer or actual authority is used.",
      4   "producer": "Node.js 26.10.0",
      5   "source_context_fixture_sha256": "29b768ebc164016ef34da0024f9391c090e93ba704c993a170de1d1f15c9cef8",
      6   "cases": [
      7     {
      8       "name": "automatic_without_approval",
      9       "wire": {
     10         "type": "orders.install_terms",
     11         "context": {
     12           "actor": {
     13             "grant_id": "0303030303030303030303030303030303030303030303030303030303030303",
     14             "organization": null,
     15             "participant": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",
     16             "role": "seller"
     17           },
     18           "approval": null,
     19           "authority": {
     20             "executor_id": "0202020202020202020202020202020202020202020202020202020202020202",
     21             "generation": "1"
     22           },
     23           "correlation_id": null,
     24           "expected": {
     25             "agreement": "4040404040404040404040404040404040404040404040404040404040404040",
     26             "buyer_head": "3232323232323232323232323232323232323232323232323232323232323232",
     27             "checkpoint": {
     28               "coverage": "scope_satisfied",
     29               "digest": "2222222222222222222222222222222222222222222222222222222222222222",
     30               "missing": [],
     31               "sequence": "1"
     32             },
     33             "order_id": "2323232323232323232323232323232323232323232323232323232323232323",
     34             "seller_sequence": "1"
     35           },
     36           "not_after": "200",
     37           "operation_id": "5151515151515151515151515151515151515151515151515151515151515151",
     38           "route_digest": "0606060606060606060606060606060606060606060606060606060606060606",
     39           "workspace_id": "0101010101010101010101010101010101010101010101010101010101010101"
     40         },
     41         "input": {
     42           "proposal": "3131313131313131313131313131313131313131313131313131313131313131",
     43           "authorization": "3232323232323232323232323232323232323232323232323232323232323232",
     44           "terms_digest": "2424242424242424242424242424242424242424242424242424242424242424",
     45           "allocation": {
     46             "type": "automatic"
     47           }
     48         }
     49       },
     50       "protected_canonical_utf8": "{\"context\":{\"actor\":{\"grant_id\":\"0303030303030303030303030303030303030303030303030303030303030303\",\"organization\":null,\"participant\":\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"role\":\"seller\"},\"approval\":null,\"authority\":{\"executor_id\":\"0202020202020202020202020202020202020202020202020202020202020202\",\"generation\":\"1\"},\"correlation_id\":null,\"expected\":{\"agreement\":\"4040404040404040404040404040404040404040404040404040404040404040\",\"buyer_head\":\"3232323232323232323232323232323232323232323232323232323232323232\",\"checkpoint\":{\"coverage\":\"scope_satisfied\",\"digest\":\"2222222222222222222222222222222222222222222222222222222222222222\",\"missing\":[],\"sequence\":\"1\"},\"order_id\":\"2323232323232323232323232323232323232323232323232323232323232323\",\"seller_sequence\":\"1\"},\"not_after\":\"200\",\"operation_id\":\"5151515151515151515151515151515151515151515151515151515151515151\",\"route_digest\":\"0606060606060606060606060606060606060606060606060606060606060606\",\"workspace_id\":\"0101010101010101010101010101010101010101010101010101010101010101\"},\"input\":{\"allocation\":{\"type\":\"automatic\"},\"authorization\":\"3232323232323232323232323232323232323232323232323232323232323232\",\"proposal\":\"3131313131313131313131313131313131313131313131313131313131313131\",\"terms_digest\":\"2424242424242424242424242424242424242424242424242424242424242424\"},\"type\":\"orders.install_terms\"}",
     51       "semantic_canonical_utf8": "{\"context\":{\"actor\":{\"grant_id\":\"0303030303030303030303030303030303030303030303030303030303030303\",\"organization\":null,\"participant\":\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"role\":\"seller\"},\"approval\":null,\"authority\":{\"executor_id\":\"0202020202020202020202020202020202020202020202020202020202020202\",\"generation\":\"1\"},\"expected\":{\"agreement\":\"4040404040404040404040404040404040404040404040404040404040404040\",\"buyer_head\":\"3232323232323232323232323232323232323232323232323232323232323232\",\"checkpoint\":{\"coverage\":\"scope_satisfied\",\"digest\":\"2222222222222222222222222222222222222222222222222222222222222222\",\"missing\":[],\"sequence\":\"1\"},\"order_id\":\"2323232323232323232323232323232323232323232323232323232323232323\",\"seller_sequence\":\"1\"},\"not_after\":\"200\",\"operation_id\":\"5151515151515151515151515151515151515151515151515151515151515151\",\"route_digest\":\"0606060606060606060606060606060606060606060606060606060606060606\",\"workspace_id\":\"0101010101010101010101010101010101010101010101010101010101010101\"},\"input\":{\"allocation\":{\"type\":\"automatic\"},\"authorization\":\"3232323232323232323232323232323232323232323232323232323232323232\",\"proposal\":\"3131313131313131313131313131313131313131313131313131313131313131\",\"terms_digest\":\"2424242424242424242424242424242424242424242424242424242424242424\"},\"type\":\"orders.install_terms\"}",
     52       "command_digest": "5de9d5fc537cdcf2ab8bf4b103e3e0a6ad5014c84a6fc803d89fcf87a2de45c9",
     53       "approval_intent_digest": "c341ab703f9f5dd014c3f09e5b7a7e98becbdd81c4b13a97b64f8b45de4ff059"
     54     },
     55     {
     56       "name": "explicit_with_approval",
     57       "wire": {
     58         "type": "orders.install_terms",
     59         "context": {
     60           "actor": {
     61             "grant_id": "0303030303030303030303030303030303030303030303030303030303030303",
     62             "organization": null,
     63             "participant": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",
     64             "role": "seller"
     65           },
     66           "approval": {
     67             "intent_digest": "32e72a66a024f3590a470a1ffbdff19169ea2280129aac1c11fd223040a2bc3f",
     68             "scope": "orders.install_terms",
     69             "expires_at": "190"
     70           },
     71           "authority": {
     72             "executor_id": "0202020202020202020202020202020202020202020202020202020202020202",
     73             "generation": "1"
     74           },
     75           "correlation_id": "replacement 🥬 observer",
     76           "expected": {
     77             "agreement": "4040404040404040404040404040404040404040404040404040404040404040",
     78             "buyer_head": "3232323232323232323232323232323232323232323232323232323232323232",
     79             "checkpoint": {
     80               "coverage": "scope_satisfied",
     81               "digest": "2222222222222222222222222222222222222222222222222222222222222222",
     82               "missing": [],
     83               "sequence": "1"
     84             },
     85             "order_id": "2323232323232323232323232323232323232323232323232323232323232323",
     86             "seller_sequence": "1"
     87           },
     88           "not_after": "200",
     89           "operation_id": "5252525252525252525252525252525252525252525252525252525252525252",
     90           "route_digest": "0606060606060606060606060606060606060606060606060606060606060606",
     91           "workspace_id": "0101010101010101010101010101010101010101010101010101010101010101"
     92         },
     93         "input": {
     94           "proposal": "3131313131313131313131313131313131313131313131313131313131313131",
     95           "authorization": "3232323232323232323232323232323232323232323232323232323232323232",
     96           "terms_digest": "2424242424242424242424242424242424242424242424242424242424242424",
     97           "allocation": {
     98             "type": "explicit",
     99             "allocations": [
    100               {
    101                 "line_id": "2525252525252525252525252525252525252525252525252525252525252525",
    102                 "pool_id": "2626262626262626262626262626262626262626262626262626262626262626",
    103                 "quantity": {
    104                   "amount": "250",
    105                   "unit": "g"
    106                 },
    107                 "expected_pool_version": "1"
    108               },
    109               {
    110                 "line_id": "2525252525252525252525252525252525252525252525252525252525252525",
    111                 "pool_id": "2727272727272727272727272727272727272727272727272727272727272727",
    112                 "quantity": {
    113                   "amount": "0.5",
    114                   "unit": "kg"
    115                 },
    116                 "expected_pool_version": "4"
    117               }
    118             ]
    119           }
    120         }
    121       },
    122       "protected_canonical_utf8": "{\"context\":{\"actor\":{\"grant_id\":\"0303030303030303030303030303030303030303030303030303030303030303\",\"organization\":null,\"participant\":\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"role\":\"seller\"},\"approval\":{\"expires_at\":\"190\",\"intent_digest\":\"32e72a66a024f3590a470a1ffbdff19169ea2280129aac1c11fd223040a2bc3f\",\"scope\":\"orders.install_terms\"},\"authority\":{\"executor_id\":\"0202020202020202020202020202020202020202020202020202020202020202\",\"generation\":\"1\"},\"correlation_id\":\"replacement 🥬 observer\",\"expected\":{\"agreement\":\"4040404040404040404040404040404040404040404040404040404040404040\",\"buyer_head\":\"3232323232323232323232323232323232323232323232323232323232323232\",\"checkpoint\":{\"coverage\":\"scope_satisfied\",\"digest\":\"2222222222222222222222222222222222222222222222222222222222222222\",\"missing\":[],\"sequence\":\"1\"},\"order_id\":\"2323232323232323232323232323232323232323232323232323232323232323\",\"seller_sequence\":\"1\"},\"not_after\":\"200\",\"operation_id\":\"5252525252525252525252525252525252525252525252525252525252525252\",\"route_digest\":\"0606060606060606060606060606060606060606060606060606060606060606\",\"workspace_id\":\"0101010101010101010101010101010101010101010101010101010101010101\"},\"input\":{\"allocation\":{\"allocations\":[{\"expected_pool_version\":\"1\",\"line_id\":\"2525252525252525252525252525252525252525252525252525252525252525\",\"pool_id\":\"2626262626262626262626262626262626262626262626262626262626262626\",\"quantity\":{\"amount\":\"250\",\"unit\":\"g\"}},{\"expected_pool_version\":\"4\",\"line_id\":\"2525252525252525252525252525252525252525252525252525252525252525\",\"pool_id\":\"2727272727272727272727272727272727272727272727272727272727272727\",\"quantity\":{\"amount\":\"0.5\",\"unit\":\"kg\"}}],\"type\":\"explicit\"},\"authorization\":\"3232323232323232323232323232323232323232323232323232323232323232\",\"proposal\":\"3131313131313131313131313131313131313131313131313131313131313131\",\"terms_digest\":\"2424242424242424242424242424242424242424242424242424242424242424\"},\"type\":\"orders.install_terms\"}",
    123       "semantic_canonical_utf8": "{\"context\":{\"actor\":{\"grant_id\":\"0303030303030303030303030303030303030303030303030303030303030303\",\"organization\":null,\"participant\":\"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"role\":\"seller\"},\"approval\":{\"expires_at\":\"190\",\"intent_digest\":\"32e72a66a024f3590a470a1ffbdff19169ea2280129aac1c11fd223040a2bc3f\",\"scope\":\"orders.install_terms\"},\"authority\":{\"executor_id\":\"0202020202020202020202020202020202020202020202020202020202020202\",\"generation\":\"1\"},\"expected\":{\"agreement\":\"4040404040404040404040404040404040404040404040404040404040404040\",\"buyer_head\":\"3232323232323232323232323232323232323232323232323232323232323232\",\"checkpoint\":{\"coverage\":\"scope_satisfied\",\"digest\":\"2222222222222222222222222222222222222222222222222222222222222222\",\"missing\":[],\"sequence\":\"1\"},\"order_id\":\"2323232323232323232323232323232323232323232323232323232323232323\",\"seller_sequence\":\"1\"},\"not_after\":\"200\",\"operation_id\":\"5252525252525252525252525252525252525252525252525252525252525252\",\"route_digest\":\"0606060606060606060606060606060606060606060606060606060606060606\",\"workspace_id\":\"0101010101010101010101010101010101010101010101010101010101010101\"},\"input\":{\"allocation\":{\"allocations\":[{\"expected_pool_version\":\"1\",\"line_id\":\"2525252525252525252525252525252525252525252525252525252525252525\",\"pool_id\":\"2626262626262626262626262626262626262626262626262626262626262626\",\"quantity\":{\"amount\":\"250\",\"unit\":\"g\"}},{\"expected_pool_version\":\"4\",\"line_id\":\"2525252525252525252525252525252525252525252525252525252525252525\",\"pool_id\":\"2727272727272727272727272727272727272727272727272727272727272727\",\"quantity\":{\"amount\":\"0.5\",\"unit\":\"kg\"}}],\"type\":\"explicit\"},\"authorization\":\"3232323232323232323232323232323232323232323232323232323232323232\",\"proposal\":\"3131313131313131313131313131313131313131313131313131313131313131\",\"terms_digest\":\"2424242424242424242424242424242424242424242424242424242424242424\"},\"type\":\"orders.install_terms\"}",
    124       "command_digest": "35ea8104865455ef6b39c25f4bb1743d9aef37c1ca4e9f138acac2d18a96269f",
    125       "approval_intent_digest": "32e72a66a024f3590a470a1ffbdff19169ea2280129aac1c11fd223040a2bc3f"
    126     }
    127   ]
    128 }