@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,70 @@
1
+ // ========================================
2
+ // API_SHIT_1170_TX_QUEUE_GET
3
+ // GET /api/shit-1170/tx-queue — the queue list, filterable.
4
+ //
5
+ // the list is OPEN: anyone with an api key can list the queues. a queue
6
+ // is an open offer, and hiding it would defeat the point.
7
+ //
8
+ // the answer is `{ "items": [ ...one batch each... ], "total": N,
9
+ // "nextCursor": "..." }`, where `total` is the count BEFORE the limit
10
+ // and the cursor took their cut. it is how many pages there are.
11
+ //
12
+ // --- WHY --- the query names are snake_case and are NOT renamed:
13
+ // `serde_urlencoded` matches the query key literally, so `accountId`
14
+ // would never see the `account_id` the route reads and the filter would
15
+ // be silently ignored.
16
+ //
17
+ // --- WHY --- `account_id` and `contract_id` go out as ONE COMMA
18
+ // SEPARATED STRING: the route reads one value per param, so a list
19
+ // would need the param to be repeated. one string carries many values,
20
+ // and a single value still works.
21
+ //
22
+ // --- WHY --- `hide_sent` needs an account and the check is made HERE
23
+ // as well as on the server: "has this account sent it" is a question
24
+ // about ONE account. a queue can be sent by alice and not by bob, so
25
+ // there is no single answer about all the accounts at once. asking for
26
+ // the filter without the account is a mistake worth naming before the
27
+ // round trip, and the backend answers a 400 for the same reason.
28
+ //
29
+ // --- WHY --- `hide_sent` goes out as the word `true` and not as `1`:
30
+ // the backend reads both, and the word is the readable one.
31
+ //
32
+ // --- WHY --- `cursor` is handed back EXACTLY as the backend gave it:
33
+ // the cursor is opaque, and a middleman that reshaped it would break
34
+ // the page the moment the backend changed the order.
35
+ // ========================================
36
+ import { api_call } from "../stuff/api_call";
37
+ export async function api_shit_1170_tx_queue_get(base_url, query = {}, options = {}) {
38
+ const account_id = query.account_id?.trim();
39
+ if (query.hide_sent && !account_id) {
40
+ throw new Error("api_shit_1170_tx_queue_get failed: invalid_request: hide_sent needs an account_id — it is a filter on one account's view");
41
+ }
42
+ const json = await api_call({
43
+ base_url,
44
+ key: "api_shit_1170_tx_queue",
45
+ query: {
46
+ account_id,
47
+ hide_sent: query.hide_sent,
48
+ contract_id: query.contract_id?.trim(),
49
+ method: query.method?.trim(),
50
+ limit: query.limit,
51
+ cursor: query.cursor?.trim(),
52
+ },
53
+ method: "GET",
54
+ options,
55
+ label: "SHIT_1170 TX QUEUE GET",
56
+ fallback: "api_shit_1170_tx_queue_get failed",
57
+ });
58
+ if (typeof json !== "object" ||
59
+ json === null ||
60
+ Array.isArray(json) ||
61
+ !Array.isArray(json.items) ||
62
+ typeof json.total !== "number" ||
63
+ (json.nextCursor !== null && typeof json.nextCursor !== "string")) {
64
+ throw new Error("api_shit_1170_tx_queue_get failed: invalid_response: expected a json object with an items array, a total and a nextCursor");
65
+ }
66
+ return json;
67
+ }
68
+ // ========================================
69
+ // copyright 2026 by sleet.near
70
+ //# sourceMappingURL=api_shit_1170_tx_queue_get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_get.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_get.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,6BAA6B;AAC7B,4DAA4D;AAC5D,EAAE;AACF,wEAAwE;AACxE,0DAA0D;AAC1D,EAAE;AACF,kEAAkE;AAClE,sEAAsE;AACtE,iEAAiE;AACjE,EAAE;AACF,kEAAkE;AAClE,qEAAqE;AACrE,wEAAwE;AACxE,uBAAuB;AACvB,EAAE;AACF,iEAAiE;AACjE,mEAAmE;AACnE,uEAAuE;AACvE,kCAAkC;AAClC,EAAE;AACF,sEAAsE;AACtE,qEAAqE;AACrE,qEAAqE;AACrE,uEAAuE;AACvE,sEAAsE;AACtE,iEAAiE;AACjE,EAAE;AACF,sEAAsE;AACtE,4DAA4D;AAC5D,EAAE;AACF,sEAAsE;AACtE,qEAAqE;AACrE,qDAAqD;AACrD,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,QAAgB,EAChB,KAAK,GAA6B,EAAE,EACpC,OAAO,GAAoB,EAAE;IAE7B,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC;IAC5C,IAAI,KAAK,CAAC,SAAS,IAAI,CAAC,UAAU,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CACb,0HAA0H,CAC3H,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAA0B;QACnD,QAAQ;QACR,GAAG,EAAE,wBAAwB;QAC7B,KAAK,EAAE;YACL,UAAU;YACV,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,IAAI,EAAE;YACtC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE;YAC5B,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE;SAC7B;QACD,MAAM,EAAE,KAAK;QACb,OAAO;QACP,KAAK,EAAE,wBAAwB;QAC/B,QAAQ,EAAE,mCAAmC;KAC9C,CAAC,CAAC;IAEH,IACE,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACnB,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ;QAC9B,CAAC,IAAI,CAAC,UAAU,KAAK,IAAI,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,CAAC,EACjE,CAAC;QACD,MAAM,IAAI,KAAK,CACb,2HAA2H,CAC5H,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,4 @@
1
+ import type { REQUEST_OPTIONS } from "../stuff/request_options";
2
+ import type { SHIT_1170_TX_QUEUE } from "../types/shit_1170_tx_queue";
3
+ export declare function api_shit_1170_tx_queue_one_get(base_url: string, queue_id: string, options?: REQUEST_OPTIONS): Promise<SHIT_1170_TX_QUEUE>;
4
+ //# sourceMappingURL=api_shit_1170_tx_queue_one_get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_one_get.d.ts","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_one_get.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,wBAAsB,8BAA8B,CAClD,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,kBAAkB,CAAC,CA+B7B"}
@@ -0,0 +1,46 @@
1
+ // ========================================
2
+ // API_SHIT_1170_TX_QUEUE_ONE_GET
3
+ // GET /api/shit-1170/tx-queue/{queue_id} — one queued batch, with its
4
+ // transactions and its accounts.
5
+ //
6
+ // the answer is the same shape as one item of the list: the queue, its
7
+ // calls in `position` order, and the WHO.
8
+ //
9
+ // --- WHY --- the path is built HERE and not read out of the endpoint
10
+ // map: the queue_id sits in the MIDDLE of the path, so the whole path
11
+ // cannot be a constant. the map keeps the routes whose path is fixed.
12
+ //
13
+ // --- WHY --- the queue_id is url-encoded: it is a uuid today, but the
14
+ // path is a url and a path piece with a slash in it would change the
15
+ // route the request lands on.
16
+ //
17
+ // 404 = there is no queue with that id. the error is thrown like any
18
+ // other.
19
+ // ========================================
20
+ import { api_call } from "../stuff/api_call";
21
+ export async function api_shit_1170_tx_queue_one_get(base_url, queue_id, options = {}) {
22
+ const queue_id_trimmed = queue_id.trim();
23
+ if (queue_id_trimmed.length === 0) {
24
+ throw new Error("api_shit_1170_tx_queue_one_get failed: invalid_request: a queue id is required");
25
+ }
26
+ const json = await api_call({
27
+ base_url,
28
+ key: "api_shit_1170_tx_queue",
29
+ path: `/api/shit-1170/tx-queue/${encodeURIComponent(queue_id_trimmed)}`,
30
+ method: "GET",
31
+ options,
32
+ label: "SHIT_1170 TX QUEUE ONE GET",
33
+ fallback: "api_shit_1170_tx_queue_one_get failed",
34
+ });
35
+ if (typeof json !== "object" ||
36
+ json === null ||
37
+ Array.isArray(json) ||
38
+ typeof json.queueId !== "string" ||
39
+ !Array.isArray(json.transactions)) {
40
+ throw new Error("api_shit_1170_tx_queue_one_get failed: invalid_response: expected a json object with a queueId and a transactions array");
41
+ }
42
+ return json;
43
+ }
44
+ // ========================================
45
+ // copyright 2026 by sleet.near
46
+ //# sourceMappingURL=api_shit_1170_tx_queue_one_get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_one_get.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_one_get.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,iCAAiC;AACjC,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,uEAAuE;AACvE,0CAA0C;AAC1C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,sEAAsE;AACtE,EAAE;AACF,uEAAuE;AACvE,qEAAqE;AACrE,8BAA8B;AAC9B,EAAE;AACF,qEAAqE;AACrE,SAAS;AACT,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,QAAgB,EAChB,QAAgB,EAChB,OAAO,GAAoB,EAAE;IAE7B,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzC,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAqB;QAC9C,QAAQ;QACR,GAAG,EAAE,wBAAwB;QAC7B,IAAI,EAAE,2BAA2B,kBAAkB,CAAC,gBAAgB,CAAC,EAAE;QACvE,MAAM,EAAE,KAAK;QACb,OAAO;QACP,KAAK,EAAE,4BAA4B;QACnC,QAAQ,EAAE,uCAAuC;KAClD,CAAC,CAAC;IAEH,IACE,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACnB,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ;QAChC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EACjC,CAAC;QACD,MAAM,IAAI,KAAK,CACb,yHAAyH,CAC1H,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,4 @@
1
+ import type { REQUEST_OPTIONS } from "../stuff/request_options";
2
+ import type { SHIT_1170_TX_QUEUE, SHIT_1170_TX_QUEUE_REQUEST } from "../types/shit_1170_tx_queue";
3
+ export declare function api_shit_1170_tx_queue_post(base_url: string, body: SHIT_1170_TX_QUEUE_REQUEST, options?: REQUEST_OPTIONS): Promise<SHIT_1170_TX_QUEUE>;
4
+ //# sourceMappingURL=api_shit_1170_tx_queue_post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_post.d.ts","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_post.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EACV,kBAAkB,EAClB,0BAA0B,EAC3B,MAAM,6BAA6B,CAAC;AAMrC,wBAAsB,2BAA2B,CAC/C,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,0BAA0B,EAChC,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,kBAAkB,CAAC,CAmC7B"}
@@ -0,0 +1,57 @@
1
+ // ========================================
2
+ // API_SHIT_1170_TX_QUEUE_POST
3
+ // POST /api/shit-1170/tx-queue — queue a BATCH of transactions.
4
+ //
5
+ // a queue_id is a batch, not one transaction. the agent queues a swap
6
+ // that needs three calls, they go in together, and the user signs them
7
+ // as one batch in one wallet popup.
8
+ //
9
+ // the WHO is the `accounts` list — the accounts the agent is queuing
10
+ // this for. every one of them must be an account the agent holds an api
11
+ // key for, or the backend answers a 400. that is the NAMING RULE: an
12
+ // agent may not drop a tx into somebody else's feed.
13
+ //
14
+ // the api key travels in the header and names the account the batch is
15
+ // queued FOR.
16
+ //
17
+ // --- WHY --- the batch is checked HERE and not only on the server: an
18
+ // empty batch is a programming mistake, and catching it before the
19
+ // request means the caller gets a clear message instead of a 400 from
20
+ // the wire.
21
+ //
22
+ // --- WHY --- the cap is checked here too: fifty is the number the
23
+ // wallet popup can be read at, and a caller who goes over it deserves
24
+ // to hear about it before the round trip.
25
+ // ========================================
26
+ import { api_call } from "../stuff/api_call";
27
+ // how many transactions one batch may hold. it is the backend's cap,
28
+ // and it is the number the wallet popup can be read at.
29
+ const SHIT_1170_TX_QUEUE_MAX_TRANSACTIONS = 50;
30
+ export async function api_shit_1170_tx_queue_post(base_url, body, options = {}) {
31
+ if (!Array.isArray(body.transactions) || body.transactions.length === 0) {
32
+ throw new Error("api_shit_1170_tx_queue_post failed: invalid_request: a queue must hold at least one transaction");
33
+ }
34
+ if (body.transactions.length > SHIT_1170_TX_QUEUE_MAX_TRANSACTIONS) {
35
+ throw new Error(`api_shit_1170_tx_queue_post failed: invalid_request: a queue holds at most ${SHIT_1170_TX_QUEUE_MAX_TRANSACTIONS} transactions`);
36
+ }
37
+ const json = await api_call({
38
+ base_url,
39
+ key: "api_shit_1170_tx_queue",
40
+ method: "POST",
41
+ body,
42
+ options,
43
+ label: "SHIT_1170 TX QUEUE POST",
44
+ fallback: "api_shit_1170_tx_queue_post failed",
45
+ });
46
+ if (typeof json !== "object" ||
47
+ json === null ||
48
+ Array.isArray(json) ||
49
+ typeof json.queueId !== "string" ||
50
+ !Array.isArray(json.transactions)) {
51
+ throw new Error("api_shit_1170_tx_queue_post failed: invalid_response: expected a json object with a queueId and a transactions array");
52
+ }
53
+ return json;
54
+ }
55
+ // ========================================
56
+ // copyright 2026 by sleet.near
57
+ //# sourceMappingURL=api_shit_1170_tx_queue_post.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_post.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_post.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,8BAA8B;AAC9B,gEAAgE;AAChE,EAAE;AACF,sEAAsE;AACtE,uEAAuE;AACvE,oCAAoC;AACpC,EAAE;AACF,qEAAqE;AACrE,wEAAwE;AACxE,qEAAqE;AACrE,qDAAqD;AACrD,EAAE;AACF,uEAAuE;AACvE,cAAc;AACd,EAAE;AACF,uEAAuE;AACvE,mEAAmE;AACnE,sEAAsE;AACtE,YAAY;AACZ,EAAE;AACF,mEAAmE;AACnE,sEAAsE;AACtE,0CAA0C;AAC1C,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO7C,qEAAqE;AACrE,wDAAwD;AACxD,MAAM,mCAAmC,GAAG,EAAE,CAAC;AAE/C,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,QAAgB,EAChB,IAAgC,EAChC,OAAO,GAAoB,EAAE;IAE7B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxE,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC;IACJ,CAAC;IACD,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,mCAAmC,EAAE,CAAC;QACnE,MAAM,IAAI,KAAK,CACb,8EAA8E,mCAAmC,eAAe,CACjI,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAqB;QAC9C,QAAQ;QACR,GAAG,EAAE,wBAAwB;QAC7B,MAAM,EAAE,MAAM;QACd,IAAI;QACJ,OAAO;QACP,KAAK,EAAE,yBAAyB;QAChC,QAAQ,EAAE,oCAAoC;KAC/C,CAAC,CAAC;IAEH,IACE,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACnB,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ;QAChC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EACjC,CAAC;QACD,MAAM,IAAI,KAAK,CACb,sHAAsH,CACvH,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,4 @@
1
+ import type { REQUEST_OPTIONS } from "../stuff/request_options";
2
+ import type { SHIT_1170_TX_QUEUE, SHIT_1170_TX_QUEUE_SENT_REQUEST } from "../types/shit_1170_tx_queue";
3
+ export declare function api_shit_1170_tx_queue_sent_post(base_url: string, queue_id: string, body: SHIT_1170_TX_QUEUE_SENT_REQUEST, options?: REQUEST_OPTIONS): Promise<SHIT_1170_TX_QUEUE>;
4
+ //# sourceMappingURL=api_shit_1170_tx_queue_sent_post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_sent_post.d.ts","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_sent_post.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EACV,kBAAkB,EAClB,+BAA+B,EAChC,MAAM,6BAA6B,CAAC;AAErC,wBAAsB,gCAAgC,CACpD,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,+BAA+B,EACrC,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,kBAAkB,CAAC,CAqC7B"}
@@ -0,0 +1,59 @@
1
+ // ========================================
2
+ // API_SHIT_1170_TX_QUEUE_SENT_POST
3
+ // POST /api/shit-1170/tx-queue/{queue_id}/sent — record that the
4
+ // transactions were sent.
5
+ //
6
+ // the body:
7
+ // { "txHashes": [ { "txId": "...", "txHash": "...", "status": "succeeded" } ] }
8
+ //
9
+ // ONE call for the whole batch: the wallet sent every transaction in
10
+ // one popup, so the app reports every hash in one call.
11
+ //
12
+ // `txId` is required on each entry — it says which transaction of the
13
+ // batch the hash belongs to. `status` is optional: `succeeded` or
14
+ // `failed`. when it is left out the status is `sent`, which means "we
15
+ // do not know the outcome yet".
16
+ //
17
+ // --- WHY --- the account comes from the HEADER and the body does NOT
18
+ // repeat it: the key IS the account. a body that named the account
19
+ // could name somebody else's, and then the check would be a suggestion.
20
+ //
21
+ // --- WHY --- the request is checked HERE and not only on the server:
22
+ // an empty hash list is a programming mistake, and catching it before
23
+ // the request means the caller gets a clear message instead of a 400
24
+ // from the wire.
25
+ //
26
+ // --- WHY --- the path is built HERE and not read out of the endpoint
27
+ // map: the queue_id sits in the MIDDLE of the path.
28
+ // ========================================
29
+ import { api_call } from "../stuff/api_call";
30
+ export async function api_shit_1170_tx_queue_sent_post(base_url, queue_id, body, options = {}) {
31
+ const queue_id_trimmed = queue_id.trim();
32
+ if (queue_id_trimmed.length === 0) {
33
+ throw new Error("api_shit_1170_tx_queue_sent_post failed: invalid_request: a queue id is required");
34
+ }
35
+ if (!Array.isArray(body.txHashes) || body.txHashes.length === 0) {
36
+ throw new Error("api_shit_1170_tx_queue_sent_post failed: invalid_request: a send must carry at least one transaction hash");
37
+ }
38
+ const json = await api_call({
39
+ base_url,
40
+ key: "api_shit_1170_tx_queue",
41
+ path: `/api/shit-1170/tx-queue/${encodeURIComponent(queue_id_trimmed)}/sent`,
42
+ method: "POST",
43
+ body,
44
+ options,
45
+ label: "SHIT_1170 TX QUEUE SENT POST",
46
+ fallback: "api_shit_1170_tx_queue_sent_post failed",
47
+ });
48
+ if (typeof json !== "object" ||
49
+ json === null ||
50
+ Array.isArray(json) ||
51
+ typeof json.queueId !== "string" ||
52
+ !Array.isArray(json.transactions)) {
53
+ throw new Error("api_shit_1170_tx_queue_sent_post failed: invalid_response: expected a json object with a queueId and a transactions array");
54
+ }
55
+ return json;
56
+ }
57
+ // ========================================
58
+ // copyright 2026 by sleet.near
59
+ //# sourceMappingURL=api_shit_1170_tx_queue_sent_post.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_sent_post.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_sent_post.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,mCAAmC;AACnC,iEAAiE;AACjE,0BAA0B;AAC1B,EAAE;AACF,YAAY;AACZ,kFAAkF;AAClF,EAAE;AACF,qEAAqE;AACrE,wDAAwD;AACxD,EAAE;AACF,sEAAsE;AACtE,kEAAkE;AAClE,sEAAsE;AACtE,gCAAgC;AAChC,EAAE;AACF,sEAAsE;AACtE,mEAAmE;AACnE,wEAAwE;AACxE,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,qEAAqE;AACrE,iBAAiB;AACjB,EAAE;AACF,sEAAsE;AACtE,oDAAoD;AACpD,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO7C,MAAM,CAAC,KAAK,UAAU,gCAAgC,CACpD,QAAgB,EAChB,QAAgB,EAChB,IAAqC,EACrC,OAAO,GAAoB,EAAE;IAE7B,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzC,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChE,MAAM,IAAI,KAAK,CACb,2GAA2G,CAC5G,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAqB;QAC9C,QAAQ;QACR,GAAG,EAAE,wBAAwB;QAC7B,IAAI,EAAE,2BAA2B,kBAAkB,CAAC,gBAAgB,CAAC,OAAO;QAC5E,MAAM,EAAE,MAAM;QACd,IAAI;QACJ,OAAO;QACP,KAAK,EAAE,8BAA8B;QACrC,QAAQ,EAAE,yCAAyC;KACpD,CAAC,CAAC;IAEH,IACE,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACnB,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ;QAChC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EACjC,CAAC;QACD,MAAM,IAAI,KAAK,CACb,2HAA2H,CAC5H,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,5 @@
1
+ import type { REQUEST_OPTIONS } from "../stuff/request_options";
2
+ import type { SHIT_1170_TX_QUEUE_CONTRACT_STATS } from "../types/shit_1170_tx_queue";
3
+ import type { SHIT_1170_TX_QUEUE_STATS_QUERY } from "../types/shit_1170_tx_queue_query";
4
+ export declare function api_shit_1170_tx_queue_stats_contracts_get(base_url: string, query?: SHIT_1170_TX_QUEUE_STATS_QUERY, options?: REQUEST_OPTIONS): Promise<SHIT_1170_TX_QUEUE_CONTRACT_STATS>;
5
+ //# sourceMappingURL=api_shit_1170_tx_queue_stats_contracts_get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_stats_contracts_get.d.ts","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_stats_contracts_get.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AAExF,wBAAsB,0CAA0C,CAC9D,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,8BAAmC,EAC1C,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,iCAAiC,CAAC,CAuB5C"}
@@ -0,0 +1,41 @@
1
+ // ========================================
2
+ // API_SHIT_1170_TX_QUEUE_STATS_CONTRACTS_GET
3
+ // GET /api/shit-1170/tx-queue/stats/contracts — how many queued
4
+ // transactions hit each contract.
5
+ //
6
+ // the answer:
7
+ // { "items": [ { "contractId": "ref.finance.near", "count": 12 } ] }
8
+ //
9
+ // ordered by count, biggest first. a `limit` query param, default 20.
10
+ //
11
+ // --- WHY --- this route exists even though the ui does not read it
12
+ // yet: the `contract_id` COLUMN is the whole reason it is a column. a
13
+ // group by on an indexed column is a cheap read, and a group by inside
14
+ // a json blob is a scan of every row, every time.
15
+ //
16
+ // --- WHY --- the api key is required even though the answer says
17
+ // nothing private: the key is the gate for the whole api, and one
18
+ // route without it would be a hole in that gate.
19
+ // ========================================
20
+ import { api_call } from "../stuff/api_call";
21
+ export async function api_shit_1170_tx_queue_stats_contracts_get(base_url, query = {}, options = {}) {
22
+ const json = await api_call({
23
+ base_url,
24
+ key: "api_shit_1170_tx_queue_stats_contracts",
25
+ query: { limit: query.limit },
26
+ method: "GET",
27
+ options,
28
+ label: "SHIT_1170 TX QUEUE STATS CONTRACTS GET",
29
+ fallback: "api_shit_1170_tx_queue_stats_contracts_get failed",
30
+ });
31
+ if (typeof json !== "object" ||
32
+ json === null ||
33
+ Array.isArray(json) ||
34
+ !Array.isArray(json.items)) {
35
+ throw new Error("api_shit_1170_tx_queue_stats_contracts_get failed: invalid_response: expected a json object with an items array");
36
+ }
37
+ return json;
38
+ }
39
+ // ========================================
40
+ // copyright 2026 by sleet.near
41
+ //# sourceMappingURL=api_shit_1170_tx_queue_stats_contracts_get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_stats_contracts_get.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_stats_contracts_get.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,6CAA6C;AAC7C,gEAAgE;AAChE,kCAAkC;AAClC,EAAE;AACF,cAAc;AACd,uEAAuE;AACvE,EAAE;AACF,sEAAsE;AACtE,EAAE;AACF,oEAAoE;AACpE,sEAAsE;AACtE,uEAAuE;AACvE,kDAAkD;AAClD,EAAE;AACF,kEAAkE;AAClE,kEAAkE;AAClE,iDAAiD;AACjD,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,MAAM,CAAC,KAAK,UAAU,0CAA0C,CAC9D,QAAgB,EAChB,KAAK,GAAmC,EAAE,EAC1C,OAAO,GAAoB,EAAE;IAE7B,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAoC;QAC7D,QAAQ;QACR,GAAG,EAAE,wCAAwC;QAC7C,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE;QAC7B,MAAM,EAAE,KAAK;QACb,OAAO;QACP,KAAK,EAAE,wCAAwC;QAC/C,QAAQ,EAAE,mDAAmD;KAC9D,CAAC,CAAC;IAEH,IACE,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACnB,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAC1B,CAAC;QACD,MAAM,IAAI,KAAK,CACb,iHAAiH,CAClH,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,5 @@
1
+ import type { REQUEST_OPTIONS } from "../stuff/request_options";
2
+ import type { SHIT_1170_TX_QUEUE_METHOD_STATS } from "../types/shit_1170_tx_queue";
3
+ import type { SHIT_1170_TX_QUEUE_STATS_QUERY } from "../types/shit_1170_tx_queue_query";
4
+ export declare function api_shit_1170_tx_queue_stats_methods_get(base_url: string, query?: SHIT_1170_TX_QUEUE_STATS_QUERY, options?: REQUEST_OPTIONS): Promise<SHIT_1170_TX_QUEUE_METHOD_STATS>;
5
+ //# sourceMappingURL=api_shit_1170_tx_queue_stats_methods_get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_stats_methods_get.d.ts","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_stats_methods_get.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AAExF,wBAAsB,wCAAwC,CAC5D,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,8BAAmC,EAC1C,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,+BAA+B,CAAC,CAuB1C"}
@@ -0,0 +1,41 @@
1
+ // ========================================
2
+ // API_SHIT_1170_TX_QUEUE_STATS_METHODS_GET
3
+ // GET /api/shit-1170/tx-queue/stats/methods — how many queued
4
+ // transactions call each method.
5
+ //
6
+ // the answer:
7
+ // { "items": [ { "method": "ft_swap", "contractId": "ref.finance.near", "count": 9 } ] }
8
+ //
9
+ // ordered by count, biggest first. a `limit` query param, default 20.
10
+ //
11
+ // --- WHY --- the methods carry the contract id: `ft_swap` on two
12
+ // different contracts is two different transactions, and a method count
13
+ // without the contract would blend them, and "the most common methods"
14
+ // would be a misleading number.
15
+ //
16
+ // --- WHY --- the api key is required even though the answer says
17
+ // nothing private: the key is the gate for the whole api, and one
18
+ // route without it would be a hole in that gate.
19
+ // ========================================
20
+ import { api_call } from "../stuff/api_call";
21
+ export async function api_shit_1170_tx_queue_stats_methods_get(base_url, query = {}, options = {}) {
22
+ const json = await api_call({
23
+ base_url,
24
+ key: "api_shit_1170_tx_queue_stats_methods",
25
+ query: { limit: query.limit },
26
+ method: "GET",
27
+ options,
28
+ label: "SHIT_1170 TX QUEUE STATS METHODS GET",
29
+ fallback: "api_shit_1170_tx_queue_stats_methods_get failed",
30
+ });
31
+ if (typeof json !== "object" ||
32
+ json === null ||
33
+ Array.isArray(json) ||
34
+ !Array.isArray(json.items)) {
35
+ throw new Error("api_shit_1170_tx_queue_stats_methods_get failed: invalid_response: expected a json object with an items array");
36
+ }
37
+ return json;
38
+ }
39
+ // ========================================
40
+ // copyright 2026 by sleet.near
41
+ //# sourceMappingURL=api_shit_1170_tx_queue_stats_methods_get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_stats_methods_get.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_stats_methods_get.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,2CAA2C;AAC3C,8DAA8D;AAC9D,iCAAiC;AACjC,EAAE;AACF,cAAc;AACd,2FAA2F;AAC3F,EAAE;AACF,sEAAsE;AACtE,EAAE;AACF,kEAAkE;AAClE,wEAAwE;AACxE,uEAAuE;AACvE,gCAAgC;AAChC,EAAE;AACF,kEAAkE;AAClE,kEAAkE;AAClE,iDAAiD;AACjD,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,MAAM,CAAC,KAAK,UAAU,wCAAwC,CAC5D,QAAgB,EAChB,KAAK,GAAmC,EAAE,EAC1C,OAAO,GAAoB,EAAE;IAE7B,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAkC;QAC3D,QAAQ;QACR,GAAG,EAAE,sCAAsC;QAC3C,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE;QAC7B,MAAM,EAAE,KAAK;QACb,OAAO;QACP,KAAK,EAAE,sCAAsC;QAC7C,QAAQ,EAAE,iDAAiD;KAC5D,CAAC,CAAC;IAEH,IACE,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACnB,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAC1B,CAAC;QACD,MAAM,IAAI,KAAK,CACb,+GAA+G,CAChH,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,4 @@
1
+ import type { TREZU_TREASURY } from "../types/trezu_treasury";
2
+ import type { TREZU_TREASURIES_QUERY } from "../types/trezu_treasuries_query";
3
+ export declare function api_trezu_treasuries_get(base_url: string, query: TREZU_TREASURIES_QUERY): Promise<TREZU_TREASURY[]>;
4
+ //# sourceMappingURL=api_trezu_treasuries_get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_trezu_treasuries_get.d.ts","sourceRoot":"","sources":["../../src/fun/api_trezu_treasuries_get.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,wBAAsB,wBAAwB,CAC5C,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,sBAAsB,GAC5B,OAAO,CAAC,cAAc,EAAE,CAAC,CA2B3B"}
@@ -0,0 +1,34 @@
1
+ // ========================================
2
+ // API_TREZU_TREASURIES_GET
3
+ // GET /api/trezu/user/treasuries — the treasuries (sputnik daos) an
4
+ // account belongs to, proxied through our own backend to trezu.
5
+ //
6
+ // same-origin call to our backend, which forwards to trezu and hands
7
+ // the json array back untouched. a non-2xx or a body that is not a
8
+ // json array throws a readable Error.
9
+ // ========================================
10
+ import { api_call } from "../stuff/api_call";
11
+ export async function api_trezu_treasuries_get(base_url, query) {
12
+ const account_id = query.accountId.trim();
13
+ if (account_id.length === 0) {
14
+ throw new Error("api_trezu_treasuries_get failed: invalid_account_id: accountId is required and must not be blank");
15
+ }
16
+ const json = await api_call({
17
+ base_url,
18
+ key: "api_trezu_treasuries",
19
+ query: {
20
+ accountId: account_id,
21
+ includeHidden: query.includeHidden,
22
+ },
23
+ method: "GET",
24
+ label: "TREZU TREASURIES GET",
25
+ fallback: "api_trezu_treasuries_get failed",
26
+ });
27
+ if (!Array.isArray(json)) {
28
+ throw new Error("api_trezu_treasuries_get failed: invalid_response: expected a json array of treasuries");
29
+ }
30
+ return json;
31
+ }
32
+ // ========================================
33
+ // copyright 2026 by sleet.near
34
+ //# sourceMappingURL=api_trezu_treasuries_get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_trezu_treasuries_get.js","sourceRoot":"","sources":["../../src/fun/api_trezu_treasuries_get.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,2BAA2B;AAC3B,oEAAoE;AACpE,gEAAgE;AAChE,EAAE;AACF,qEAAqE;AACrE,mEAAmE;AACnE,sCAAsC;AACtC,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,QAAgB,EAChB,KAA6B;IAE7B,MAAM,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CACb,kGAAkG,CACnG,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAmB;QAC5C,QAAQ;QACR,GAAG,EAAE,sBAAsB;QAC3B,KAAK,EAAE;YACL,SAAS,EAAE,UAAU;YACrB,aAAa,EAAE,KAAK,CAAC,aAAa;SACnC;QACD,MAAM,EAAE,KAAK;QACb,KAAK,EAAE,sBAAsB;QAC7B,QAAQ,EAAE,iCAAiC;KAC5C,CAAC,CAAC;IAEH,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CACb,wFAAwF,CACzF,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,40 @@
1
+ export * from "./fun/api_shit_1170_api_key_me_get";
2
+ export * from "./fun/api_shit_1170_api_key_rotate_post";
3
+ export * from "./fun/api_shit_1170_api_keys_post";
4
+ export * from "./fun/api_shit_1170_ping_get";
5
+ export * from "./fun/api_shit_1170_swap_queue_accounts_delete";
6
+ export * from "./fun/api_shit_1170_swap_queue_accounts_post";
7
+ export * from "./fun/api_shit_1170_swap_queue_get";
8
+ export * from "./fun/api_shit_1170_swap_queue_one_get";
9
+ export * from "./fun/api_shit_1170_swap_queue_post";
10
+ export * from "./fun/api_shit_1170_swap_queue_sent_post";
11
+ export * from "./fun/api_shit_1170_tx_queue_accounts_delete";
12
+ export * from "./fun/api_shit_1170_tx_queue_accounts_post";
13
+ export * from "./fun/api_shit_1170_tx_queue_facets_get";
14
+ export * from "./fun/api_shit_1170_tx_queue_get";
15
+ export * from "./fun/api_shit_1170_tx_queue_one_get";
16
+ export * from "./fun/api_shit_1170_tx_queue_post";
17
+ export * from "./fun/api_shit_1170_tx_queue_sent_post";
18
+ export * from "./fun/api_shit_1170_tx_queue_stats_contracts_get";
19
+ export * from "./fun/api_shit_1170_tx_queue_stats_methods_get";
20
+ export * from "./fun/api_trezu_treasuries_get";
21
+ export { api_call } from "./stuff/api_call";
22
+ export type { API_CALL_PARAMS } from "./stuff/api_call";
23
+ export { ENDPOINT_PATHS } from "./stuff/endpoint_paths";
24
+ export type { EndpointKey } from "./stuff/endpoint_paths";
25
+ export { parse_error } from "./stuff/parse_error";
26
+ export type { SHIT_1170_API_ERROR, PARSE_ERROR_CONTEXT, } from "./stuff/parse_error";
27
+ export { build_headers } from "./stuff/request_options";
28
+ export type { REQUEST_OPTIONS } from "./stuff/request_options";
29
+ export type { SHIT_1170_ERROR_RESPONSE } from "./types/common";
30
+ export type { SHIT_1170_PING } from "./types/shit_1170_ping";
31
+ export type { SHIT_1170_API_KEY, SHIT_1170_API_KEYS_REQUEST, SHIT_1170_API_KEYS_RESPONSE, SHIT_1170_API_KEY_ME, SHIT_1170_SIGNED_ACCOUNT, } from "./types/shit_1170_api_keys";
32
+ export type { SHIT_1170_SWAP_QUEUE, SHIT_1170_SWAP_QUEUE_ACCOUNT, SHIT_1170_SWAP_QUEUE_ACCOUNT_REQUEST, SHIT_1170_SWAP_QUEUE_LIST, SHIT_1170_SWAP_QUEUE_QUERY, SHIT_1170_SWAP_QUEUE_REQUEST, SHIT_1170_SWAP_QUEUE_SENT_REQUEST, SHIT_1170_SWAP_QUEUE_STATUS, } from "./types/shit_1170_swap_queue";
33
+ export type { SHIT_1170_TX_QUEUE, SHIT_1170_TX_QUEUE_ACCOUNT, SHIT_1170_TX_QUEUE_ACCOUNT_REQUEST, SHIT_1170_TX_QUEUE_CONTRACT_STAT, SHIT_1170_TX_QUEUE_CONTRACT_STATS, SHIT_1170_TX_QUEUE_HASH_REQUEST, SHIT_1170_TX_QUEUE_LIST, SHIT_1170_TX_QUEUE_METHOD_STAT, SHIT_1170_TX_QUEUE_METHOD_STATS, SHIT_1170_TX_QUEUE_REQUEST, SHIT_1170_TX_QUEUE_SENT_REQUEST, SHIT_1170_TX_QUEUE_STATUS, SHIT_1170_TX_QUEUE_TRANSACTION, SHIT_1170_TX_QUEUE_TRANSACTION_REQUEST, } from "./types/shit_1170_tx_queue";
34
+ export type { SHIT_1170_TX_QUEUE_FACET_ACCOUNT, SHIT_1170_TX_QUEUE_FACET_CONTRACT, SHIT_1170_TX_QUEUE_FACETS, } from "./types/shit_1170_tx_queue_facets";
35
+ export type { SHIT_1170_TX_QUEUE_FACETS_QUERY, SHIT_1170_TX_QUEUE_QUERY, SHIT_1170_TX_QUEUE_STATS_QUERY, } from "./types/shit_1170_tx_queue_query";
36
+ export type { TREZU_TREASURY } from "./types/trezu_treasury";
37
+ export type { TREZU_TREASURY_CONFIG } from "./types/trezu_treasury_config";
38
+ export type { TREZU_TREASURY_METADATA } from "./types/trezu_treasury_metadata";
39
+ export type { TREZU_TREASURIES_QUERY } from "./types/trezu_treasuries_query";
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,YAAY,EACV,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,YAAY,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EACV,iBAAiB,EACjB,0BAA0B,EAC1B,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,oBAAoB,EACpB,4BAA4B,EAC5B,oCAAoC,EACpC,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,iCAAiC,EACjC,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,kBAAkB,EAClB,0BAA0B,EAC1B,kCAAkC,EAClC,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,uBAAuB,EACvB,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,EAC1B,+BAA+B,EAC/B,yBAAyB,EACzB,8BAA8B,EAC9B,sCAAsC,GACvC,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,gCAAgC,EAChC,iCAAiC,EACjC,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EACV,+BAA+B,EAC/B,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,42 @@
1
+ // ========================================
2
+ // SHIT_1170
3
+ // typed client for our own backend routes. every call is same-origin
4
+ // against the backend we serve, so the browser never talks to a third
5
+ // party api directly.
6
+ //
7
+ // the naming rule (see DOCS/ROUTES.md): a route is named after the api
8
+ // it fronts, not after us.
9
+ // * `api_shit_1170_*` — our OWN routes, under /api/shit-1170/*.
10
+ // * `api_trezu_*` — the trezu routes we proxy, under /api/trezu/*.
11
+ //
12
+ // the base url is a parameter on every call: the frontend passes the
13
+ // origin of the page it is served from, a bin whatever backend it was
14
+ // told to talk to.
15
+ // ========================================
16
+ export * from "./fun/api_shit_1170_api_key_me_get";
17
+ export * from "./fun/api_shit_1170_api_key_rotate_post";
18
+ export * from "./fun/api_shit_1170_api_keys_post";
19
+ export * from "./fun/api_shit_1170_ping_get";
20
+ export * from "./fun/api_shit_1170_swap_queue_accounts_delete";
21
+ export * from "./fun/api_shit_1170_swap_queue_accounts_post";
22
+ export * from "./fun/api_shit_1170_swap_queue_get";
23
+ export * from "./fun/api_shit_1170_swap_queue_one_get";
24
+ export * from "./fun/api_shit_1170_swap_queue_post";
25
+ export * from "./fun/api_shit_1170_swap_queue_sent_post";
26
+ export * from "./fun/api_shit_1170_tx_queue_accounts_delete";
27
+ export * from "./fun/api_shit_1170_tx_queue_accounts_post";
28
+ export * from "./fun/api_shit_1170_tx_queue_facets_get";
29
+ export * from "./fun/api_shit_1170_tx_queue_get";
30
+ export * from "./fun/api_shit_1170_tx_queue_one_get";
31
+ export * from "./fun/api_shit_1170_tx_queue_post";
32
+ export * from "./fun/api_shit_1170_tx_queue_sent_post";
33
+ export * from "./fun/api_shit_1170_tx_queue_stats_contracts_get";
34
+ export * from "./fun/api_shit_1170_tx_queue_stats_methods_get";
35
+ export * from "./fun/api_trezu_treasuries_get";
36
+ export { api_call } from "./stuff/api_call";
37
+ export { ENDPOINT_PATHS } from "./stuff/endpoint_paths";
38
+ export { parse_error } from "./stuff/parse_error";
39
+ export { build_headers } from "./stuff/request_options";
40
+ // ========================================
41
+ // copyright 2026 by sleet.near
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,YAAY;AACZ,qEAAqE;AACrE,sEAAsE;AACtE,sBAAsB;AACtB,EAAE;AACF,uEAAuE;AACvE,2BAA2B;AAC3B,kEAAkE;AAClE,qEAAqE;AACrE,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,mBAAmB;AACnB,2CAA2C;AAE3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKlD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAoDxD,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,15 @@
1
+ import { type EndpointKey } from "./endpoint_paths";
2
+ import { type REQUEST_OPTIONS } from "./request_options";
3
+ export interface API_CALL_PARAMS {
4
+ base_url: string;
5
+ key: EndpointKey;
6
+ path?: string;
7
+ query?: Record<string, string | number | boolean | undefined>;
8
+ method: "GET" | "POST" | "PUT" | "DELETE";
9
+ body?: unknown;
10
+ options?: REQUEST_OPTIONS;
11
+ label: string;
12
+ fallback: string;
13
+ }
14
+ export declare function api_call<T = unknown>({ base_url, key, path, query, method, body, options, label, fallback, }: API_CALL_PARAMS): Promise<T>;
15
+ //# sourceMappingURL=api_call.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_call.d.ts","sourceRoot":"","sources":["../../src/stuff/api_call.ts"],"names":[],"mappings":"AA8BA,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpE,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAExE,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,WAAW,CAAC;IAIjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IAC9D,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC1C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,eAAe,CAAC;IAE1B,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAsB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,EAC1C,QAAQ,EACR,GAAG,EACH,IAAI,EACJ,KAAK,EACL,MAAM,EACN,IAAI,EACJ,OAAY,EACZ,KAAK,EACL,QAAQ,GACT,EAAE,eAAe,GAAG,OAAO,CAAC,CAAC,CAAC,CAoD9B"}