@huggies/shit-1170-rex-engine-middleman 0.0.0-stage → 0.0.2

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 (171) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +43 -2
  3. package/bin/README.md +38 -0
  4. package/bin/fun/resolve_base_url.ts +45 -0
  5. package/bin/fun/split_argv.ts +67 -0
  6. package/bin/shit-1170/README.md +333 -0
  7. package/bin/shit-1170/api_shit_1170_api_key_me_get.ts +46 -0
  8. package/bin/shit-1170/api_shit_1170_api_key_rotate_post.ts +83 -0
  9. package/bin/shit-1170/api_shit_1170_api_keys_post.ts +68 -0
  10. package/bin/shit-1170/api_shit_1170_ping_get.ts +28 -0
  11. package/bin/shit-1170/api_shit_1170_swap_queue_accounts_delete.ts +81 -0
  12. package/bin/shit-1170/api_shit_1170_swap_queue_accounts_post.ts +80 -0
  13. package/bin/shit-1170/api_shit_1170_swap_queue_get.ts +91 -0
  14. package/bin/shit-1170/api_shit_1170_swap_queue_one_get.ts +62 -0
  15. package/bin/shit-1170/api_shit_1170_swap_queue_post.ts +118 -0
  16. package/bin/shit-1170/api_shit_1170_swap_queue_sent_post.ts +87 -0
  17. package/bin/shit-1170/api_shit_1170_tx_queue_accounts_delete.ts +68 -0
  18. package/bin/shit-1170/api_shit_1170_tx_queue_accounts_post.ts +65 -0
  19. package/bin/shit-1170/api_shit_1170_tx_queue_facets_get.ts +68 -0
  20. package/bin/shit-1170/api_shit_1170_tx_queue_get.ts +99 -0
  21. package/bin/shit-1170/api_shit_1170_tx_queue_one_get.ts +67 -0
  22. package/bin/shit-1170/api_shit_1170_tx_queue_post.ts +243 -0
  23. package/bin/shit-1170/api_shit_1170_tx_queue_sent_post.ts +172 -0
  24. package/bin/shit-1170/api_shit_1170_tx_queue_stats_contracts_get.ts +60 -0
  25. package/bin/shit-1170/api_shit_1170_tx_queue_stats_methods_get.ts +60 -0
  26. package/bin/shit-1170/api_trezu_treasuries_get.ts +62 -0
  27. package/dist/fun/api_shit_1170_api_key_me_get.d.ts +4 -0
  28. package/dist/fun/api_shit_1170_api_key_me_get.d.ts.map +1 -0
  29. package/dist/fun/api_shit_1170_api_key_me_get.js +38 -0
  30. package/dist/fun/api_shit_1170_api_key_me_get.js.map +1 -0
  31. package/dist/fun/api_shit_1170_api_key_rotate_post.d.ts +4 -0
  32. package/dist/fun/api_shit_1170_api_key_rotate_post.d.ts.map +1 -0
  33. package/dist/fun/api_shit_1170_api_key_rotate_post.js +46 -0
  34. package/dist/fun/api_shit_1170_api_key_rotate_post.js.map +1 -0
  35. package/dist/fun/api_shit_1170_api_keys_post.d.ts +3 -0
  36. package/dist/fun/api_shit_1170_api_keys_post.d.ts.map +1 -0
  37. package/dist/fun/api_shit_1170_api_keys_post.js +52 -0
  38. package/dist/fun/api_shit_1170_api_keys_post.js.map +1 -0
  39. package/dist/fun/api_shit_1170_ping_get.d.ts +3 -0
  40. package/dist/fun/api_shit_1170_ping_get.d.ts.map +1 -0
  41. package/dist/fun/api_shit_1170_ping_get.js +32 -0
  42. package/dist/fun/api_shit_1170_ping_get.js.map +1 -0
  43. package/dist/fun/api_shit_1170_swap_queue_accounts_delete.d.ts +4 -0
  44. package/dist/fun/api_shit_1170_swap_queue_accounts_delete.d.ts.map +1 -0
  45. package/dist/fun/api_shit_1170_swap_queue_accounts_delete.js +46 -0
  46. package/dist/fun/api_shit_1170_swap_queue_accounts_delete.js.map +1 -0
  47. package/dist/fun/api_shit_1170_swap_queue_accounts_post.d.ts +4 -0
  48. package/dist/fun/api_shit_1170_swap_queue_accounts_post.d.ts.map +1 -0
  49. package/dist/fun/api_shit_1170_swap_queue_accounts_post.js +42 -0
  50. package/dist/fun/api_shit_1170_swap_queue_accounts_post.js.map +1 -0
  51. package/dist/fun/api_shit_1170_swap_queue_get.d.ts +5 -0
  52. package/dist/fun/api_shit_1170_swap_queue_get.d.ts.map +1 -0
  53. package/dist/fun/api_shit_1170_swap_queue_get.js +77 -0
  54. package/dist/fun/api_shit_1170_swap_queue_get.js.map +1 -0
  55. package/dist/fun/api_shit_1170_swap_queue_one_get.d.ts +4 -0
  56. package/dist/fun/api_shit_1170_swap_queue_one_get.d.ts.map +1 -0
  57. package/dist/fun/api_shit_1170_swap_queue_one_get.js +38 -0
  58. package/dist/fun/api_shit_1170_swap_queue_one_get.js.map +1 -0
  59. package/dist/fun/api_shit_1170_swap_queue_post.d.ts +4 -0
  60. package/dist/fun/api_shit_1170_swap_queue_post.d.ts.map +1 -0
  61. package/dist/fun/api_shit_1170_swap_queue_post.js +62 -0
  62. package/dist/fun/api_shit_1170_swap_queue_post.js.map +1 -0
  63. package/dist/fun/api_shit_1170_swap_queue_sent_post.d.ts +4 -0
  64. package/dist/fun/api_shit_1170_swap_queue_sent_post.d.ts.map +1 -0
  65. package/dist/fun/api_shit_1170_swap_queue_sent_post.js +63 -0
  66. package/dist/fun/api_shit_1170_swap_queue_sent_post.js.map +1 -0
  67. package/dist/fun/api_shit_1170_tx_queue_accounts_delete.d.ts +4 -0
  68. package/dist/fun/api_shit_1170_tx_queue_accounts_delete.d.ts.map +1 -0
  69. package/dist/fun/api_shit_1170_tx_queue_accounts_delete.js +60 -0
  70. package/dist/fun/api_shit_1170_tx_queue_accounts_delete.js.map +1 -0
  71. package/dist/fun/api_shit_1170_tx_queue_accounts_post.d.ts +4 -0
  72. package/dist/fun/api_shit_1170_tx_queue_accounts_post.d.ts.map +1 -0
  73. package/dist/fun/api_shit_1170_tx_queue_accounts_post.js +54 -0
  74. package/dist/fun/api_shit_1170_tx_queue_accounts_post.js.map +1 -0
  75. package/dist/fun/api_shit_1170_tx_queue_facets_get.d.ts +5 -0
  76. package/dist/fun/api_shit_1170_tx_queue_facets_get.d.ts.map +1 -0
  77. package/dist/fun/api_shit_1170_tx_queue_facets_get.js +45 -0
  78. package/dist/fun/api_shit_1170_tx_queue_facets_get.js.map +1 -0
  79. package/dist/fun/api_shit_1170_tx_queue_get.d.ts +5 -0
  80. package/dist/fun/api_shit_1170_tx_queue_get.d.ts.map +1 -0
  81. package/dist/fun/api_shit_1170_tx_queue_get.js +70 -0
  82. package/dist/fun/api_shit_1170_tx_queue_get.js.map +1 -0
  83. package/dist/fun/api_shit_1170_tx_queue_one_get.d.ts +4 -0
  84. package/dist/fun/api_shit_1170_tx_queue_one_get.d.ts.map +1 -0
  85. package/dist/fun/api_shit_1170_tx_queue_one_get.js +46 -0
  86. package/dist/fun/api_shit_1170_tx_queue_one_get.js.map +1 -0
  87. package/dist/fun/api_shit_1170_tx_queue_post.d.ts +4 -0
  88. package/dist/fun/api_shit_1170_tx_queue_post.d.ts.map +1 -0
  89. package/dist/fun/api_shit_1170_tx_queue_post.js +57 -0
  90. package/dist/fun/api_shit_1170_tx_queue_post.js.map +1 -0
  91. package/dist/fun/api_shit_1170_tx_queue_sent_post.d.ts +4 -0
  92. package/dist/fun/api_shit_1170_tx_queue_sent_post.d.ts.map +1 -0
  93. package/dist/fun/api_shit_1170_tx_queue_sent_post.js +59 -0
  94. package/dist/fun/api_shit_1170_tx_queue_sent_post.js.map +1 -0
  95. package/dist/fun/api_shit_1170_tx_queue_stats_contracts_get.d.ts +5 -0
  96. package/dist/fun/api_shit_1170_tx_queue_stats_contracts_get.d.ts.map +1 -0
  97. package/dist/fun/api_shit_1170_tx_queue_stats_contracts_get.js +41 -0
  98. package/dist/fun/api_shit_1170_tx_queue_stats_contracts_get.js.map +1 -0
  99. package/dist/fun/api_shit_1170_tx_queue_stats_methods_get.d.ts +5 -0
  100. package/dist/fun/api_shit_1170_tx_queue_stats_methods_get.d.ts.map +1 -0
  101. package/dist/fun/api_shit_1170_tx_queue_stats_methods_get.js +41 -0
  102. package/dist/fun/api_shit_1170_tx_queue_stats_methods_get.js.map +1 -0
  103. package/dist/fun/api_trezu_treasuries_get.d.ts +4 -0
  104. package/dist/fun/api_trezu_treasuries_get.d.ts.map +1 -0
  105. package/dist/fun/api_trezu_treasuries_get.js +34 -0
  106. package/dist/fun/api_trezu_treasuries_get.js.map +1 -0
  107. package/dist/index.d.ts +40 -0
  108. package/dist/index.d.ts.map +1 -0
  109. package/dist/index.js +42 -0
  110. package/dist/index.js.map +1 -0
  111. package/dist/stuff/api_call.d.ts +15 -0
  112. package/dist/stuff/api_call.d.ts.map +1 -0
  113. package/dist/stuff/api_call.js +86 -0
  114. package/dist/stuff/api_call.js.map +1 -0
  115. package/dist/stuff/endpoint_paths.d.ts +14 -0
  116. package/dist/stuff/endpoint_paths.d.ts.map +1 -0
  117. package/dist/stuff/endpoint_paths.js +30 -0
  118. package/dist/stuff/endpoint_paths.js.map +1 -0
  119. package/dist/stuff/parse_error.d.ts +12 -0
  120. package/dist/stuff/parse_error.d.ts.map +1 -0
  121. package/dist/stuff/parse_error.js +84 -0
  122. package/dist/stuff/parse_error.js.map +1 -0
  123. package/dist/stuff/request_options.d.ts +6 -0
  124. package/dist/stuff/request_options.d.ts.map +1 -0
  125. package/dist/stuff/request_options.js +43 -0
  126. package/dist/stuff/request_options.js.map +1 -0
  127. package/dist/types/common.d.ts +7 -0
  128. package/dist/types/common.d.ts.map +1 -0
  129. package/dist/types/common.js +6 -0
  130. package/dist/types/common.js.map +1 -0
  131. package/dist/types/shit_1170_api_keys.d.ts +25 -0
  132. package/dist/types/shit_1170_api_keys.d.ts.map +1 -0
  133. package/dist/types/shit_1170_api_keys.js +23 -0
  134. package/dist/types/shit_1170_api_keys.js.map +1 -0
  135. package/dist/types/shit_1170_ping.d.ts +5 -0
  136. package/dist/types/shit_1170_ping.d.ts.map +1 -0
  137. package/dist/types/shit_1170_ping.js +11 -0
  138. package/dist/types/shit_1170_ping.js.map +1 -0
  139. package/dist/types/shit_1170_swap_queue.d.ts +57 -0
  140. package/dist/types/shit_1170_swap_queue.d.ts.map +1 -0
  141. package/dist/types/shit_1170_swap_queue.js +37 -0
  142. package/dist/types/shit_1170_swap_queue.js.map +1 -0
  143. package/dist/types/shit_1170_tx_queue.d.ts +74 -0
  144. package/dist/types/shit_1170_tx_queue.d.ts.map +1 -0
  145. package/dist/types/shit_1170_tx_queue.js +34 -0
  146. package/dist/types/shit_1170_tx_queue.js.map +1 -0
  147. package/dist/types/shit_1170_tx_queue_facets.d.ts +13 -0
  148. package/dist/types/shit_1170_tx_queue_facets.d.ts.map +1 -0
  149. package/dist/types/shit_1170_tx_queue_facets.js +20 -0
  150. package/dist/types/shit_1170_tx_queue_facets.js.map +1 -0
  151. package/dist/types/shit_1170_tx_queue_query.d.ts +15 -0
  152. package/dist/types/shit_1170_tx_queue_query.d.ts.map +1 -0
  153. package/dist/types/shit_1170_tx_queue_query.js +30 -0
  154. package/dist/types/shit_1170_tx_queue_query.js.map +1 -0
  155. package/dist/types/trezu_treasuries_query.d.ts +5 -0
  156. package/dist/types/trezu_treasuries_query.d.ts.map +1 -0
  157. package/dist/types/trezu_treasuries_query.js +9 -0
  158. package/dist/types/trezu_treasuries_query.js.map +1 -0
  159. package/dist/types/trezu_treasury.d.ts +10 -0
  160. package/dist/types/trezu_treasury.d.ts.map +1 -0
  161. package/dist/types/trezu_treasury.js +15 -0
  162. package/dist/types/trezu_treasury.js.map +1 -0
  163. package/dist/types/trezu_treasury_config.d.ts +8 -0
  164. package/dist/types/trezu_treasury_config.d.ts.map +1 -0
  165. package/dist/types/trezu_treasury_config.js +14 -0
  166. package/dist/types/trezu_treasury_config.js.map +1 -0
  167. package/dist/types/trezu_treasury_metadata.d.ts +5 -0
  168. package/dist/types/trezu_treasury_metadata.d.ts.map +1 -0
  169. package/dist/types/trezu_treasury_metadata.js +13 -0
  170. package/dist/types/trezu_treasury_metadata.js.map +1 -0
  171. package/package.json +45 -4
@@ -0,0 +1,34 @@
1
+ // ========================================
2
+ // SHIT_1170_TX_QUEUE
3
+ // the shapes of our own tx queue routes, under /api/shit-1170/tx-queue.
4
+ //
5
+ // a QUEUE is a BATCH of transactions, not one transaction. the agent
6
+ // queues a swap that needs three calls, they go in together under one
7
+ // queue_id, and the user signs them as one batch in one wallet popup.
8
+ //
9
+ // the model is three levels deep:
10
+ //
11
+ // a QUEUE (queue_id) what / when / why
12
+ // └── a TRANSACTION contractId / method / args / gas / deposit
13
+ // └── an ACCOUNT ROW accountId / status / txHash
14
+ //
15
+ // --- WHY --- the fields are camelCase: they mirror the browser's own
16
+ // session object (`accountId`), and the near-kit toolbox's transaction
17
+ // object, so a queued transaction can be handed to
18
+ // `generic_contract_call_wallet` without being reshaped.
19
+ //
20
+ // --- WHY --- `args` is a json OBJECT and not a string: the toolbox
21
+ // takes a json object of arguments. a string would make the frontend
22
+ // parse it and then re-serialize it.
23
+ //
24
+ // --- WHY --- there is no status on the queue and none on the
25
+ // transaction: the truth is on the account row. a queue is never done —
26
+ // any account may still send it — so there is nothing for a queue
27
+ // status to say, and two accounts sending the same queued transaction
28
+ // produce two different on-chain transactions with two different
29
+ // outcomes.
30
+ // ========================================
31
+ export {};
32
+ // ========================================
33
+ // copyright 2026 by sleet.near
34
+ //# sourceMappingURL=shit_1170_tx_queue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shit_1170_tx_queue.js","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,qBAAqB;AACrB,wEAAwE;AACxE,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,sEAAsE;AACtE,EAAE;AACF,kCAAkC;AAClC,EAAE;AACF,mDAAmD;AACnD,4EAA4E;AAC5E,8DAA8D;AAC9D,EAAE;AACF,sEAAsE;AACtE,uEAAuE;AACvE,mDAAmD;AACnD,yDAAyD;AACzD,EAAE;AACF,oEAAoE;AACpE,qEAAqE;AACrE,qCAAqC;AACrC,EAAE;AACF,8DAA8D;AAC9D,wEAAwE;AACxE,kEAAkE;AAClE,sEAAsE;AACtE,iEAAiE;AACjE,YAAY;AACZ,2CAA2C;;AAgL3C,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,13 @@
1
+ export interface SHIT_1170_TX_QUEUE_FACET_CONTRACT {
2
+ contractId: string;
3
+ count: number;
4
+ }
5
+ export interface SHIT_1170_TX_QUEUE_FACET_ACCOUNT {
6
+ accountId: string;
7
+ count: number;
8
+ }
9
+ export interface SHIT_1170_TX_QUEUE_FACETS {
10
+ contracts: SHIT_1170_TX_QUEUE_FACET_CONTRACT[];
11
+ accounts: SHIT_1170_TX_QUEUE_FACET_ACCOUNT[];
12
+ }
13
+ //# sourceMappingURL=shit_1170_tx_queue_facets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shit_1170_tx_queue_facets.d.ts","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue_facets.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,iCAAiC;IAEhD,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,MAAM,WAAW,gCAAgC;IAE/C,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,EAAE,MAAM,CAAC;CACf;AAOD,MAAM,WAAW,yBAAyB;IAExC,SAAS,EAAE,iCAAiC,EAAE,CAAC;IAE/C,QAAQ,EAAE,gCAAgC,EAAE,CAAC;CAC9C"}
@@ -0,0 +1,20 @@
1
+ // ========================================
2
+ // SHIT_1170_TX_QUEUE_FACETS
3
+ // the shapes of the facets route, under /api/shit-1170/tx-queue/facets.
4
+ //
5
+ // the facets are the CONTRACTS and the ACCOUNTS that have queued work.
6
+ // the feed's filter bar builds its buttons from them, and it cannot
7
+ // show a button for something that is not there.
8
+ //
9
+ // --- WHY --- the fields are camelCase: they mirror the browser's own
10
+ // session object (`accountId`) and the rest of the tx queue shapes, so
11
+ // nothing is renamed on the way.
12
+ //
13
+ // --- WHY --- the counts are NUMBERS and not strings: a count is a
14
+ // number on the wire and a string would make every reader parse it
15
+ // again.
16
+ // ========================================
17
+ export {};
18
+ // ========================================
19
+ // copyright 2026 by sleet.near
20
+ //# sourceMappingURL=shit_1170_tx_queue_facets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shit_1170_tx_queue_facets.js","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue_facets.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,4BAA4B;AAC5B,wEAAwE;AACxE,EAAE;AACF,uEAAuE;AACvE,oEAAoE;AACpE,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,uEAAuE;AACvE,iCAAiC;AACjC,EAAE;AACF,mEAAmE;AACnE,mEAAmE;AACnE,SAAS;AACT,2CAA2C;;AA6B3C,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,15 @@
1
+ export interface SHIT_1170_TX_QUEUE_QUERY {
2
+ account_id?: string;
3
+ hide_sent?: boolean;
4
+ contract_id?: string;
5
+ method?: string;
6
+ limit?: number;
7
+ cursor?: string;
8
+ }
9
+ export interface SHIT_1170_TX_QUEUE_STATS_QUERY {
10
+ limit?: number;
11
+ }
12
+ export interface SHIT_1170_TX_QUEUE_FACETS_QUERY {
13
+ limit?: number;
14
+ }
15
+ //# sourceMappingURL=shit_1170_tx_queue_query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shit_1170_tx_queue_query.d.ts","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue_query.ts"],"names":[],"mappings":"AA2BA,MAAM,WAAW,wBAAwB;IAEvC,UAAU,CAAC,EAAE,MAAM,CAAC;IAQpB,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAcf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD,MAAM,WAAW,8BAA8B;IAE7C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAQD,MAAM,WAAW,+BAA+B;IAG9C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,30 @@
1
+ // ========================================
2
+ // SHIT_1170_TX_QUEUE_QUERY
3
+ // the filters our GET /api/shit-1170/tx-queue route takes.
4
+ //
5
+ // --- WHY --- the field names are snake_case here and NOT renamed to
6
+ // camelCase: the wire names are the ones the api docs and the backend
7
+ // use — `account_id`, `hide_sent`, `contract_id`, `method`, `limit` and
8
+ // `cursor`. `serde_urlencoded` matches the query key literally, so a
9
+ // camelCase name here would be silently ignored by the route.
10
+ //
11
+ // --- WHY --- `account_id` and `contract_id` are COMMA SEPARATED STRINGS
12
+ // and not arrays: the query extractor reads ONE value per param, so a
13
+ // list would need the param to be repeated, and a browser cannot build
14
+ // a repeated param out of a map. one comma separated string carries
15
+ // many values, and it reads the same in a hand-written url. a single
16
+ // value still works — "alice.near" is a list of one.
17
+ //
18
+ // --- WHY --- there is no `status` filter: the status is per account
19
+ // and per transaction, and a queue has no global status to filter on.
20
+ //
21
+ // --- WHY --- `hide_sent` is about ONE account and never about
22
+ // everybody: "has this account sent it" is a question about one
23
+ // account, because a queue can be sent by alice and not by bob. so it
24
+ // needs the account it is about, and the backend answers a 400 when it
25
+ // is given without one.
26
+ // ========================================
27
+ export {};
28
+ // ========================================
29
+ // copyright 2026 by sleet.near
30
+ //# sourceMappingURL=shit_1170_tx_queue_query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shit_1170_tx_queue_query.js","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue_query.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,2BAA2B;AAC3B,2DAA2D;AAC3D,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,wEAAwE;AACxE,qEAAqE;AACrE,8DAA8D;AAC9D,EAAE;AACF,yEAAyE;AACzE,sEAAsE;AACtE,uEAAuE;AACvE,oEAAoE;AACpE,qEAAqE;AACrE,qDAAqD;AACrD,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,EAAE;AACF,+DAA+D;AAC/D,gEAAgE;AAChE,sEAAsE;AACtE,uEAAuE;AACvE,wBAAwB;AACxB,2CAA2C;;AA0D3C,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,5 @@
1
+ export interface TREZU_TREASURIES_QUERY {
2
+ accountId: string;
3
+ includeHidden?: boolean;
4
+ }
5
+ //# sourceMappingURL=trezu_treasuries_query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trezu_treasuries_query.d.ts","sourceRoot":"","sources":["../../src/types/trezu_treasuries_query.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
@@ -0,0 +1,9 @@
1
+ // ========================================
2
+ // TREZU_TREASURIES_QUERY
3
+ // the params our /api/trezu/user/treasuries route takes: the account
4
+ // to look up and whether hidden treasuries come back too.
5
+ // ========================================
6
+ export {};
7
+ // ========================================
8
+ // copyright 2026 by sleet.near
9
+ //# sourceMappingURL=trezu_treasuries_query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trezu_treasuries_query.js","sourceRoot":"","sources":["../../src/types/trezu_treasuries_query.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,yBAAyB;AACzB,qEAAqE;AACrE,0DAA0D;AAC1D,2CAA2C;;AAM3C,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,10 @@
1
+ import type { TREZU_TREASURY_CONFIG } from "./trezu_treasury_config";
2
+ export interface TREZU_TREASURY {
3
+ daoId: string;
4
+ config: TREZU_TREASURY_CONFIG | null;
5
+ isMember: boolean;
6
+ isSaved: boolean;
7
+ isHidden: boolean;
8
+ isConfidential: boolean;
9
+ }
10
+ //# sourceMappingURL=trezu_treasury.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trezu_treasury.d.ts","sourceRoot":"","sources":["../../src/types/trezu_treasury.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;CACzB"}
@@ -0,0 +1,15 @@
1
+ // ========================================
2
+ // TREZU_TREASURY
3
+ // one treasury (sputnik dao) as trezu returns it for an account.
4
+ // `daoId` is the dao account, `config` carries the display info and
5
+ // can be null, the four flags describe how the account relates to the
6
+ // treasury.
7
+ //
8
+ // --- WHY --- the field names are camelCase on purpose: the backend
9
+ // forwards the trezu json untouched, so these are the exact keys that
10
+ // arrive in the browser.
11
+ // ========================================
12
+ export {};
13
+ // ========================================
14
+ // copyright 2026 by sleet.near
15
+ //# sourceMappingURL=trezu_treasury.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trezu_treasury.js","sourceRoot":"","sources":["../../src/types/trezu_treasury.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,iBAAiB;AACjB,iEAAiE;AACjE,oEAAoE;AACpE,sEAAsE;AACtE,YAAY;AACZ,EAAE;AACF,oEAAoE;AACpE,sEAAsE;AACtE,yBAAyB;AACzB,2CAA2C;;AAY3C,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,8 @@
1
+ import type { TREZU_TREASURY_METADATA } from "./trezu_treasury_metadata";
2
+ export interface TREZU_TREASURY_CONFIG {
3
+ metadata: TREZU_TREASURY_METADATA | null;
4
+ name?: string;
5
+ purpose?: string;
6
+ isConfidential: boolean;
7
+ }
8
+ //# sourceMappingURL=trezu_treasury_config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trezu_treasury_config.d.ts","sourceRoot":"","sources":["../../src/types/trezu_treasury_config.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;CACzB"}
@@ -0,0 +1,14 @@
1
+ // ========================================
2
+ // TREZU_TREASURY_CONFIG
3
+ // the config trezu attaches to a treasury. `metadata` can be null
4
+ // entirely, the rest of the fields can be missing, and
5
+ // `isConfidential` is always present.
6
+ //
7
+ // the field names are camelCase on purpose: the backend forwards the
8
+ // trezu json untouched, so these are the exact keys that arrive in the
9
+ // browser.
10
+ // ========================================
11
+ export {};
12
+ // ========================================
13
+ // copyright 2026 by sleet.near
14
+ //# sourceMappingURL=trezu_treasury_config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trezu_treasury_config.js","sourceRoot":"","sources":["../../src/types/trezu_treasury_config.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,wBAAwB;AACxB,kEAAkE;AAClE,uDAAuD;AACvD,sCAAsC;AACtC,EAAE;AACF,qEAAqE;AACrE,uEAAuE;AACvE,WAAW;AACX,2CAA2C;;AAU3C,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,5 @@
1
+ export interface TREZU_TREASURY_METADATA {
2
+ primaryColor?: string | null;
3
+ flagLogo?: string | null;
4
+ }
5
+ //# sourceMappingURL=trezu_treasury_metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trezu_treasury_metadata.d.ts","sourceRoot":"","sources":["../../src/types/trezu_treasury_metadata.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
@@ -0,0 +1,13 @@
1
+ // ========================================
2
+ // TREZU_TREASURY_METADATA
3
+ // the metadata block trezu puts on a treasury config. both color and
4
+ // logo can be null, so both are optional.
5
+ //
6
+ // the field names are camelCase on purpose: the backend forwards the
7
+ // trezu json untouched, so these are the exact keys that arrive in the
8
+ // browser. renaming them here would break every caller.
9
+ // ========================================
10
+ export {};
11
+ // ========================================
12
+ // copyright 2026 by sleet.near
13
+ //# sourceMappingURL=trezu_treasury_metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trezu_treasury_metadata.js","sourceRoot":"","sources":["../../src/types/trezu_treasury_metadata.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,0BAA0B;AAC1B,qEAAqE;AACrE,0CAA0C;AAC1C,EAAE;AACF,qEAAqE;AACrE,uEAAuE;AACvE,wDAAwD;AACxD,2CAA2C;;AAM3C,2CAA2C;AAC3C,+BAA+B"}
package/package.json CHANGED
@@ -1,6 +1,47 @@
1
1
  {
2
2
  "name": "@huggies/shit-1170-rex-engine-middleman",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.2",
4
+ "description": "💩 middleman for interacting with shit-1170 agentic and defi engine",
5
+ "license": "MIT",
6
+ "homepage": "https://sleet-js.near.page",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/huggiesdotnear/shit-1170-rex-engine.git",
10
+ "directory": "middleman"
11
+ },
12
+ "type": "module",
13
+ "module": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js"
19
+ }
20
+ },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "files": [
25
+ "README.md",
26
+ "LICENSE",
27
+ "dist/**/*",
28
+ "bin/**/*"
29
+ ],
30
+ "scripts": {
31
+ "typecheck": "tsc --noEmit",
32
+ "build": "rm -f .tsbuildinfo && bun run tsc --build tsconfig.build.json --force",
33
+ "clean": "bun run tsc --build --clean && rm -rf dist .tsbuildinfo",
34
+ "version:sync": "bun run scripts/version-sync.ts",
35
+ "version:dry-run": "bun run scripts/version-sync.ts --dry-run",
36
+ "release:version": "bun run scripts/release-version.ts"
37
+ },
38
+ "devDependencies": {
39
+ "@types/bun": "latest",
40
+ "@types/node": "^26.6.6",
41
+ "typescript": "^7.0.2"
42
+ },
43
+ "peerDependencies": {
44
+ "typescript": "^7"
45
+ },
46
+ "//": "compatible with bun + tsc --build; emit ESM to dist/, publish dist + bin + README + LICENSE."
47
+ }