@openfort/openfort-node 0.2.9 → 0.3.1

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 (395) hide show
  1. package/.prettierignore +1 -0
  2. package/.prettierrc +7 -0
  3. package/README.md +16 -16
  4. package/dist/{api → generated/api}/accountsApi.d.ts +7 -7
  5. package/dist/{api → generated/api}/accountsApi.js +63 -73
  6. package/dist/generated/api/accountsApi.js.map +1 -0
  7. package/dist/generated/api/apis.d.ts +26 -0
  8. package/dist/{api → generated/api}/apis.js +3 -12
  9. package/dist/generated/api/apis.js.map +1 -0
  10. package/dist/{api → generated/api}/contractsApi.d.ts +7 -7
  11. package/dist/{api → generated/api}/contractsApi.js +46 -54
  12. package/dist/generated/api/contractsApi.js.map +1 -0
  13. package/dist/{api → generated/api}/defaultApi.d.ts +6 -6
  14. package/dist/{api → generated/api}/defaultApi.js +46 -52
  15. package/dist/generated/api/defaultApi.js.map +1 -0
  16. package/dist/{api → generated/api}/playersApi.d.ts +11 -11
  17. package/dist/{api → generated/api}/playersApi.js +138 -158
  18. package/dist/generated/api/playersApi.js.map +1 -0
  19. package/dist/{api → generated/api}/policiesApi.d.ts +11 -43
  20. package/dist/{api → generated/api}/policiesApi.js +99 -290
  21. package/dist/generated/api/policiesApi.js.map +1 -0
  22. package/dist/{api → generated/api}/projectsApi.d.ts +12 -8
  23. package/dist/{api → generated/api}/projectsApi.js +69 -78
  24. package/dist/generated/api/projectsApi.js.map +1 -0
  25. package/dist/{api → generated/api}/sessionsApi.d.ts +5 -5
  26. package/dist/{api → generated/api}/sessionsApi.js +64 -75
  27. package/dist/generated/api/sessionsApi.js.map +1 -0
  28. package/dist/{api → generated/api}/transactionIntentsApi.d.ts +6 -6
  29. package/dist/{api → generated/api}/transactionIntentsApi.js +74 -90
  30. package/dist/generated/api/transactionIntentsApi.js.map +1 -0
  31. package/dist/{model → generated/model}/accountResponse.d.ts +9 -9
  32. package/dist/{model → generated/model}/accountResponse.js +25 -25
  33. package/dist/generated/model/accountResponse.js.map +1 -0
  34. package/dist/{model → generated/model}/accountsResponse.d.ts +4 -4
  35. package/dist/{model → generated/model}/accountsResponse.js +10 -10
  36. package/dist/generated/model/accountsResponse.js.map +1 -0
  37. package/dist/{model → generated/model}/apiKeyResponse.d.ts +4 -4
  38. package/dist/{model → generated/model}/apiKeyResponse.js +13 -13
  39. package/dist/generated/model/apiKeyResponse.js.map +1 -0
  40. package/dist/{model → generated/model}/assetInventory.d.ts +9 -8
  41. package/dist/{model → generated/model}/assetInventory.js +13 -13
  42. package/dist/generated/model/assetInventory.js.map +1 -0
  43. package/dist/generated/model/assetType.js.map +1 -0
  44. package/dist/{model → generated/model}/contractDeleteResponse.d.ts +3 -3
  45. package/dist/{model → generated/model}/contractDeleteResponse.js +10 -10
  46. package/dist/generated/model/contractDeleteResponse.js.map +1 -0
  47. package/dist/{model → generated/model}/contractResponse.d.ts +9 -9
  48. package/dist/{model → generated/model}/contractResponse.js +25 -25
  49. package/dist/generated/model/contractResponse.js.map +1 -0
  50. package/dist/{model → generated/model}/contractsResponse.d.ts +4 -4
  51. package/dist/{model → generated/model}/contractsResponse.js +10 -10
  52. package/dist/generated/model/contractsResponse.js.map +1 -0
  53. package/dist/{model → generated/model}/gas.d.ts +3 -3
  54. package/dist/{model → generated/model}/gas.js +10 -10
  55. package/dist/generated/model/gas.js.map +1 -0
  56. package/dist/{model → generated/model}/getProjectResponse.d.ts +3 -3
  57. package/dist/{model → generated/model}/getProjectResponse.js +10 -10
  58. package/dist/generated/model/getProjectResponse.js.map +1 -0
  59. package/dist/{model → generated/model}/interaction.d.ts +3 -3
  60. package/dist/{model → generated/model}/interaction.js +10 -10
  61. package/dist/generated/model/interaction.js.map +1 -0
  62. package/dist/{model → generated/model}/inventoryResponse.d.ts +5 -5
  63. package/dist/{model → generated/model}/inventoryResponse.js +13 -13
  64. package/dist/generated/model/inventoryResponse.js.map +1 -0
  65. package/dist/{model → generated/model}/log.d.ts +7 -7
  66. package/dist/{model → generated/model}/log.js +22 -22
  67. package/dist/generated/model/log.js.map +1 -0
  68. package/dist/generated/model/models.d.ts +88 -0
  69. package/dist/{model → generated/model}/models.js +59 -71
  70. package/dist/generated/model/models.js.map +1 -0
  71. package/dist/{model → generated/model}/playerResponse.d.ts +12 -12
  72. package/dist/generated/model/playerResponse.js +74 -0
  73. package/dist/generated/model/playerResponse.js.map +1 -0
  74. package/dist/generated/model/playerResponseAccounts.js.map +1 -0
  75. package/dist/{model → generated/model}/playersResponse.d.ts +4 -4
  76. package/dist/{model → generated/model}/playersResponse.js +10 -10
  77. package/dist/generated/model/playersResponse.js.map +1 -0
  78. package/dist/{model → generated/model}/policiesResponse.d.ts +4 -4
  79. package/dist/{model → generated/model}/policiesResponse.js +10 -10
  80. package/dist/generated/model/policiesResponse.js.map +1 -0
  81. package/dist/{model → generated/model}/policyDeleteResponse.d.ts +3 -3
  82. package/dist/{model → generated/model}/policyDeleteResponse.js +10 -10
  83. package/dist/generated/model/policyDeleteResponse.js.map +1 -0
  84. package/dist/{model → generated/model}/policyResponse.d.ts +10 -10
  85. package/dist/{model → generated/model}/policyResponse.js +25 -25
  86. package/dist/generated/model/policyResponse.js.map +1 -0
  87. package/dist/generated/model/policyResponsePolicyRules.js.map +1 -0
  88. package/dist/generated/model/policyResponseTransactionIntents.js.map +1 -0
  89. package/dist/{model → generated/model}/policyRuleResponse.d.ts +10 -9
  90. package/dist/{model → generated/model}/policyRuleResponse.js +19 -19
  91. package/dist/generated/model/policyRuleResponse.js.map +1 -0
  92. package/dist/{model → generated/model}/policyRulesResponse.d.ts +4 -4
  93. package/dist/{model → generated/model}/policyRulesResponse.js +10 -10
  94. package/dist/generated/model/policyRulesResponse.js.map +1 -0
  95. package/dist/{model → generated/model}/policySchema.js +2 -2
  96. package/dist/generated/model/policySchema.js.map +1 -0
  97. package/dist/{model → generated/model}/prismaJsonValue.d.ts +2 -2
  98. package/dist/{model → generated/model}/prismaJsonValue.js +2 -2
  99. package/dist/generated/model/prismaJsonValue.js.map +1 -0
  100. package/dist/{model → generated/model}/projectLogs.d.ts +4 -4
  101. package/dist/{model → generated/model}/projectLogs.js +10 -10
  102. package/dist/generated/model/projectLogs.js.map +1 -0
  103. package/dist/{model → generated/model}/projectResponse.d.ts +8 -8
  104. package/dist/{model → generated/model}/projectResponse.js +22 -22
  105. package/dist/generated/model/projectResponse.js.map +1 -0
  106. package/dist/generated/model/projectResponseApikeys.js.map +1 -0
  107. package/dist/{model → generated/model}/projectsResponse.d.ts +4 -4
  108. package/dist/{model → generated/model}/projectsResponse.js +10 -10
  109. package/dist/generated/model/projectsResponse.js.map +1 -0
  110. package/dist/{model → generated/model}/responseResponse.d.ts +9 -9
  111. package/dist/{model → generated/model}/responseResponse.js +25 -25
  112. package/dist/generated/model/responseResponse.js.map +1 -0
  113. package/dist/{model → generated/model}/sessionResponse.d.ts +13 -13
  114. package/dist/generated/model/sessionResponse.js +84 -0
  115. package/dist/generated/model/sessionResponse.js.map +1 -0
  116. package/dist/generated/model/sessionResponseTransactionIntents.js.map +1 -0
  117. package/dist/{model → generated/model}/sessionsResponse.d.ts +4 -4
  118. package/dist/{model → generated/model}/sessionsResponse.js +10 -10
  119. package/dist/generated/model/sessionsResponse.js.map +1 -0
  120. package/dist/{model → generated/model}/sumGas.d.ts +3 -3
  121. package/dist/{model → generated/model}/sumGas.js +10 -10
  122. package/dist/generated/model/sumGas.js.map +1 -0
  123. package/dist/generated/model/transactionIntentResponse.d.ts +43 -0
  124. package/dist/generated/model/transactionIntentResponse.js +89 -0
  125. package/dist/generated/model/transactionIntentResponse.js.map +1 -0
  126. package/dist/{model → generated/model}/transactionIntentResponseAccount.d.ts +9 -9
  127. package/dist/{model → generated/model}/transactionIntentResponseAccount.js +25 -25
  128. package/dist/generated/model/transactionIntentResponseAccount.js.map +1 -0
  129. package/dist/{model → generated/model}/transactionIntentResponsePlayer.d.ts +12 -12
  130. package/dist/generated/model/transactionIntentResponsePlayer.js +74 -0
  131. package/dist/generated/model/transactionIntentResponsePlayer.js.map +1 -0
  132. package/dist/{model → generated/model}/transactionIntentResponsePolicy.d.ts +10 -10
  133. package/dist/{model → generated/model}/transactionIntentResponsePolicy.js +25 -25
  134. package/dist/generated/model/transactionIntentResponsePolicy.js.map +1 -0
  135. package/dist/{model → generated/model}/transactionIntentsResponse.d.ts +4 -4
  136. package/dist/{model → generated/model}/transactionIntentsResponse.js +10 -10
  137. package/dist/generated/model/transactionIntentsResponse.js.map +1 -0
  138. package/dist/index.d.ts +23 -21
  139. package/dist/index.js +47 -39
  140. package/dist/index.js.map +1 -1
  141. package/dist/model/createAccountRequest.d.ts +6 -0
  142. package/dist/model/createAccountRequest.js +3 -0
  143. package/dist/model/createAccountRequest.js.map +1 -0
  144. package/dist/model/createContractRequest.d.ts +9 -0
  145. package/dist/model/createContractRequest.js +3 -0
  146. package/dist/model/createContractRequest.js.map +1 -0
  147. package/dist/model/createPlayerAccountRequest.d.ts +6 -0
  148. package/dist/model/createPlayerAccountRequest.js +3 -0
  149. package/dist/model/createPlayerAccountRequest.js.map +1 -0
  150. package/dist/model/createPlayerRequest.d.ts +5 -0
  151. package/dist/model/createPlayerRequest.js +3 -0
  152. package/dist/model/createPlayerRequest.js.map +1 -0
  153. package/dist/model/createPlayerSessionRequest.d.ts +11 -0
  154. package/dist/model/createPlayerSessionRequest.js +3 -0
  155. package/dist/model/createPlayerSessionRequest.js.map +1 -0
  156. package/dist/model/createPolicyAllowFunctionRequest.d.ts +8 -0
  157. package/dist/model/createPolicyAllowFunctionRequest.js +3 -0
  158. package/dist/model/createPolicyAllowFunctionRequest.js.map +1 -0
  159. package/dist/model/createPolicyRulesRequest.d.ts +8 -0
  160. package/dist/model/createPolicyRulesRequest.js +3 -0
  161. package/dist/model/createPolicyRulesRequest.js.map +1 -0
  162. package/dist/model/createProjectRequest.d.ts +7 -0
  163. package/dist/model/createProjectRequest.js +3 -0
  164. package/dist/model/createProjectRequest.js.map +1 -0
  165. package/dist/model/createSessionRequest.d.ts +11 -0
  166. package/dist/model/createSessionRequest.js +3 -0
  167. package/dist/model/createSessionRequest.js.map +1 -0
  168. package/dist/model/createTransactionIntentRequest.d.ts +10 -0
  169. package/dist/model/createTransactionIntentRequest.js +3 -0
  170. package/dist/model/createTransactionIntentRequest.js.map +1 -0
  171. package/dist/model/getAccountInventoryRequest.d.ts +4 -0
  172. package/dist/model/getAccountInventoryRequest.js +3 -0
  173. package/dist/model/getAccountInventoryRequest.js.map +1 -0
  174. package/dist/model/getAccountRequest.d.ts +5 -0
  175. package/dist/model/getAccountRequest.js +3 -0
  176. package/dist/model/getAccountRequest.js.map +1 -0
  177. package/dist/model/getAllowFunctionsRequest.d.ts +4 -0
  178. package/dist/model/getAllowFunctionsRequest.js +3 -0
  179. package/dist/model/getAllowFunctionsRequest.js.map +1 -0
  180. package/dist/model/getContractRequest.d.ts +4 -0
  181. package/dist/model/getContractRequest.js +3 -0
  182. package/dist/model/getContractRequest.js.map +1 -0
  183. package/dist/model/getPlayerInventoryRequest.d.ts +5 -0
  184. package/dist/model/getPlayerInventoryRequest.js +3 -0
  185. package/dist/model/getPlayerInventoryRequest.js.map +1 -0
  186. package/dist/model/getPlayerRequest.d.ts +5 -0
  187. package/dist/model/getPlayerRequest.js +3 -0
  188. package/dist/model/getPlayerRequest.js.map +1 -0
  189. package/dist/model/getPolicyDailyGasUsageRequest.d.ts +5 -0
  190. package/dist/model/getPolicyDailyGasUsageRequest.js +3 -0
  191. package/dist/model/getPolicyDailyGasUsageRequest.js.map +1 -0
  192. package/dist/model/getPolicyRequest.d.ts +5 -0
  193. package/dist/model/getPolicyRequest.js +3 -0
  194. package/dist/model/getPolicyRequest.js.map +1 -0
  195. package/dist/model/getPolicyRulesRequest.d.ts +4 -0
  196. package/dist/model/getPolicyRulesRequest.js +3 -0
  197. package/dist/model/getPolicyRulesRequest.js.map +1 -0
  198. package/dist/model/getPolicyTotalGasUsageRequest.d.ts +5 -0
  199. package/dist/model/getPolicyTotalGasUsageRequest.js +3 -0
  200. package/dist/model/getPolicyTotalGasUsageRequest.js.map +1 -0
  201. package/dist/model/getTransactionIntentRequest.d.ts +4 -0
  202. package/dist/model/getTransactionIntentRequest.js +3 -0
  203. package/dist/model/getTransactionIntentRequest.js.map +1 -0
  204. package/dist/model/index.d.ts +39 -0
  205. package/dist/model/index.js +56 -0
  206. package/dist/model/index.js.map +1 -0
  207. package/dist/model/listAccountsRequest.d.ts +6 -0
  208. package/dist/model/listAccountsRequest.js +3 -0
  209. package/dist/model/listAccountsRequest.js.map +1 -0
  210. package/dist/model/listContractsRequest.d.ts +4 -0
  211. package/dist/model/listContractsRequest.js +3 -0
  212. package/dist/model/listContractsRequest.js.map +1 -0
  213. package/dist/model/listPlayerAccountsRequest.d.ts +5 -0
  214. package/dist/model/listPlayerAccountsRequest.js +3 -0
  215. package/dist/model/listPlayerAccountsRequest.js.map +1 -0
  216. package/dist/model/listPlayersRequest.d.ts +8 -0
  217. package/dist/model/listPlayersRequest.js +3 -0
  218. package/dist/model/listPlayersRequest.js.map +1 -0
  219. package/dist/model/listPoliciesRequest.d.ts +5 -0
  220. package/dist/model/listPoliciesRequest.js +3 -0
  221. package/dist/model/listPoliciesRequest.js.map +1 -0
  222. package/dist/model/listSessionsRequest.d.ts +9 -0
  223. package/dist/model/listSessionsRequest.js +3 -0
  224. package/dist/model/listSessionsRequest.js.map +1 -0
  225. package/dist/model/listTransactionIntentsRequest.d.ts +8 -0
  226. package/dist/model/listTransactionIntentsRequest.js +3 -0
  227. package/dist/model/listTransactionIntentsRequest.js.map +1 -0
  228. package/dist/model/revokePlayerSessionRequest.d.ts +6 -0
  229. package/dist/model/revokePlayerSessionRequest.js +3 -0
  230. package/dist/model/revokePlayerSessionRequest.js.map +1 -0
  231. package/dist/model/revokeSessionRequest.d.ts +6 -0
  232. package/dist/model/revokeSessionRequest.js +3 -0
  233. package/dist/model/revokeSessionRequest.js.map +1 -0
  234. package/dist/model/signatureSessionRequest.d.ts +4 -0
  235. package/dist/model/signatureSessionRequest.js +3 -0
  236. package/dist/model/signatureSessionRequest.js.map +1 -0
  237. package/dist/model/signatureTransactionIntentRequest.d.ts +4 -0
  238. package/dist/model/signatureTransactionIntentRequest.js +3 -0
  239. package/dist/model/signatureTransactionIntentRequest.js.map +1 -0
  240. package/dist/model/transferAccountOwnershipRequest.d.ts +8 -0
  241. package/dist/model/transferAccountOwnershipRequest.js +3 -0
  242. package/dist/model/transferAccountOwnershipRequest.js.map +1 -0
  243. package/dist/model/transferOwnershipRequest.d.ts +6 -0
  244. package/dist/model/transferOwnershipRequest.js +3 -0
  245. package/dist/model/transferOwnershipRequest.js.map +1 -0
  246. package/dist/model/updatePlayerRequest.d.ts +6 -0
  247. package/dist/model/updatePlayerRequest.js +3 -0
  248. package/dist/model/updatePlayerRequest.js.map +1 -0
  249. package/dist/model/updatePolicyAllowFunctionRequest.d.ts +10 -0
  250. package/dist/model/updatePolicyAllowFunctionRequest.js +3 -0
  251. package/dist/model/updatePolicyAllowFunctionRequest.js.map +1 -0
  252. package/dist/model/updatePolicyRulesRequest.d.ts +9 -0
  253. package/dist/model/updatePolicyRulesRequest.js +3 -0
  254. package/dist/model/updatePolicyRulesRequest.js.map +1 -0
  255. package/dist/model/updateProjectRequest.d.ts +8 -0
  256. package/dist/model/updateProjectRequest.js +3 -0
  257. package/dist/model/updateProjectRequest.js.map +1 -0
  258. package/dist/model/updateTransactionIntentRequest.d.ts +4 -0
  259. package/dist/model/updateTransactionIntentRequest.js +3 -0
  260. package/dist/model/updateTransactionIntentRequest.js.map +1 -0
  261. package/dist/wrapper/accountsApiWrapper.d.ts +38 -0
  262. package/dist/wrapper/accountsApiWrapper.js +92 -0
  263. package/dist/wrapper/accountsApiWrapper.js.map +1 -0
  264. package/dist/wrapper/contractsApiWrapper.d.ts +30 -0
  265. package/dist/wrapper/contractsApiWrapper.js +78 -0
  266. package/dist/wrapper/contractsApiWrapper.js.map +1 -0
  267. package/dist/wrapper/http-error-handler.d.ts +5 -0
  268. package/dist/wrapper/http-error-handler.js +43 -0
  269. package/dist/wrapper/http-error-handler.js.map +1 -0
  270. package/dist/wrapper/playersApiWrapper.d.ts +71 -0
  271. package/dist/wrapper/playersApiWrapper.js +162 -0
  272. package/dist/wrapper/playersApiWrapper.js.map +1 -0
  273. package/dist/wrapper/policiesApiWrapper.d.ts +58 -0
  274. package/dist/wrapper/policiesApiWrapper.js +134 -0
  275. package/dist/wrapper/policiesApiWrapper.js.map +1 -0
  276. package/dist/wrapper/policyRulesApiWrapper.d.ts +24 -0
  277. package/dist/wrapper/policyRulesApiWrapper.js +64 -0
  278. package/dist/wrapper/policyRulesApiWrapper.js.map +1 -0
  279. package/dist/wrapper/projectsApiWrapper.d.ts +33 -0
  280. package/dist/wrapper/projectsApiWrapper.js +91 -0
  281. package/dist/wrapper/projectsApiWrapper.js.map +1 -0
  282. package/dist/wrapper/sessionsApiWrapper.d.ts +30 -0
  283. package/dist/wrapper/sessionsApiWrapper.js +78 -0
  284. package/dist/wrapper/sessionsApiWrapper.js.map +1 -0
  285. package/dist/wrapper/transactionIntentsApiWrapper.d.ts +42 -0
  286. package/dist/wrapper/transactionIntentsApiWrapper.js +107 -0
  287. package/dist/wrapper/transactionIntentsApiWrapper.js.map +1 -0
  288. package/package.json +7 -3
  289. package/tsconfig.tsbuildinfo +1 -1
  290. package/tslint.json +8 -0
  291. package/dist/api/accountsApi.js.map +0 -1
  292. package/dist/api/apis.d.ts +0 -26
  293. package/dist/api/apis.js.map +0 -1
  294. package/dist/api/contractsApi.js.map +0 -1
  295. package/dist/api/defaultApi.js.map +0 -1
  296. package/dist/api/logsApi.d.ts +0 -52
  297. package/dist/api/logsApi.js +0 -155
  298. package/dist/api/logsApi.js.map +0 -1
  299. package/dist/api/playersApi.js.map +0 -1
  300. package/dist/api/policiesApi.js.map +0 -1
  301. package/dist/api/projectsApi.js.map +0 -1
  302. package/dist/api/sessionsApi.js.map +0 -1
  303. package/dist/api/transactionIntentsApi.js.map +0 -1
  304. package/dist/model/accountResponse.js.map +0 -1
  305. package/dist/model/accountsResponse.js.map +0 -1
  306. package/dist/model/allowFunctionResponse.d.ts +0 -31
  307. package/dist/model/allowFunctionResponse.js +0 -54
  308. package/dist/model/allowFunctionResponse.js.map +0 -1
  309. package/dist/model/allowFunctionsResponse.d.ts +0 -28
  310. package/dist/model/allowFunctionsResponse.js +0 -39
  311. package/dist/model/allowFunctionsResponse.js.map +0 -1
  312. package/dist/model/apiKeyResponse.js.map +0 -1
  313. package/dist/model/assetInventory.js.map +0 -1
  314. package/dist/model/assetType.js.map +0 -1
  315. package/dist/model/authResponse.d.ts +0 -26
  316. package/dist/model/authResponse.js +0 -34
  317. package/dist/model/authResponse.js.map +0 -1
  318. package/dist/model/contractDeleteResponse.js.map +0 -1
  319. package/dist/model/contractResponse.js.map +0 -1
  320. package/dist/model/contractResponseAbi.d.ts +0 -24
  321. package/dist/model/contractResponseAbi.js +0 -23
  322. package/dist/model/contractResponseAbi.js.map +0 -1
  323. package/dist/model/contractResponseAbiAnyOfInner.d.ts +0 -34
  324. package/dist/model/contractResponseAbiAnyOfInner.js +0 -74
  325. package/dist/model/contractResponseAbiAnyOfInner.js.map +0 -1
  326. package/dist/model/contractsResponse.js.map +0 -1
  327. package/dist/model/createSessionPlayerRequest.d.ts +0 -31
  328. package/dist/model/createSessionPlayerRequest.js +0 -59
  329. package/dist/model/createSessionPlayerRequest.js.map +0 -1
  330. package/dist/model/fragment.d.ts +0 -29
  331. package/dist/model/fragment.js +0 -44
  332. package/dist/model/fragment.js.map +0 -1
  333. package/dist/model/gas.js.map +0 -1
  334. package/dist/model/getProjectResponse.js.map +0 -1
  335. package/dist/model/interaction.js.map +0 -1
  336. package/dist/model/inventoryResponse.js.map +0 -1
  337. package/dist/model/jsonFragment.d.ts +0 -33
  338. package/dist/model/jsonFragment.js +0 -69
  339. package/dist/model/jsonFragment.js.map +0 -1
  340. package/dist/model/log.js.map +0 -1
  341. package/dist/model/models.d.ts +0 -88
  342. package/dist/model/models.js.map +0 -1
  343. package/dist/model/paramType.d.ts +0 -32
  344. package/dist/model/paramType.js +0 -64
  345. package/dist/model/paramType.js.map +0 -1
  346. package/dist/model/playerResponse.js +0 -74
  347. package/dist/model/playerResponse.js.map +0 -1
  348. package/dist/model/playerResponseAccounts.js.map +0 -1
  349. package/dist/model/playersResponse.js.map +0 -1
  350. package/dist/model/policiesResponse.js.map +0 -1
  351. package/dist/model/policyDeleteResponse.js.map +0 -1
  352. package/dist/model/policyResponse.js.map +0 -1
  353. package/dist/model/policyResponsePolicyRules.js.map +0 -1
  354. package/dist/model/policyResponseTransactionIntents.js.map +0 -1
  355. package/dist/model/policyRuleResponse.js.map +0 -1
  356. package/dist/model/policyRulesResponse.js.map +0 -1
  357. package/dist/model/policySchema.js.map +0 -1
  358. package/dist/model/prismaJsonValue.js.map +0 -1
  359. package/dist/model/projectLogs.js.map +0 -1
  360. package/dist/model/projectResponse.js.map +0 -1
  361. package/dist/model/projectResponseApikeys.js.map +0 -1
  362. package/dist/model/projectsResponse.js.map +0 -1
  363. package/dist/model/responseResponse.js.map +0 -1
  364. package/dist/model/sessionResponse.js +0 -84
  365. package/dist/model/sessionResponse.js.map +0 -1
  366. package/dist/model/sessionResponseTransactionIntents.js.map +0 -1
  367. package/dist/model/sessionsResponse.js.map +0 -1
  368. package/dist/model/strategy.d.ts +0 -27
  369. package/dist/model/strategy.js +0 -39
  370. package/dist/model/strategy.js.map +0 -1
  371. package/dist/model/sumGas.js.map +0 -1
  372. package/dist/model/transactionIntentResponse.d.ts +0 -43
  373. package/dist/model/transactionIntentResponse.js +0 -89
  374. package/dist/model/transactionIntentResponse.js.map +0 -1
  375. package/dist/model/transactionIntentResponseAccount.js.map +0 -1
  376. package/dist/model/transactionIntentResponsePlayer.js +0 -74
  377. package/dist/model/transactionIntentResponsePlayer.js.map +0 -1
  378. package/dist/model/transactionIntentResponsePolicy.js.map +0 -1
  379. package/dist/model/transactionIntentsResponse.js.map +0 -1
  380. package/dist/model/userOpResult.d.ts +0 -26
  381. package/dist/model/userOpResult.js +0 -34
  382. package/dist/model/userOpResult.js.map +0 -1
  383. /package/dist/{model → generated/model}/assetType.d.ts +0 -0
  384. /package/dist/{model → generated/model}/assetType.js +0 -0
  385. /package/dist/{model → generated/model}/playerResponseAccounts.d.ts +0 -0
  386. /package/dist/{model → generated/model}/playerResponseAccounts.js +0 -0
  387. /package/dist/{model → generated/model}/policyResponsePolicyRules.d.ts +0 -0
  388. /package/dist/{model → generated/model}/policyResponsePolicyRules.js +0 -0
  389. /package/dist/{model → generated/model}/policyResponseTransactionIntents.d.ts +0 -0
  390. /package/dist/{model → generated/model}/policyResponseTransactionIntents.js +0 -0
  391. /package/dist/{model → generated/model}/policySchema.d.ts +0 -0
  392. /package/dist/{model → generated/model}/projectResponseApikeys.d.ts +0 -0
  393. /package/dist/{model → generated/model}/projectResponseApikeys.js +0 -0
  394. /package/dist/{model → generated/model}/sessionResponseTransactionIntents.d.ts +0 -0
  395. /package/dist/{model → generated/model}/sessionResponseTransactionIntents.js +0 -0
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PolicyRulesApiWrapper = void 0;
13
+ const defaultApi_1 = require("../generated/api/defaultApi");
14
+ const http_error_handler_1 = require("./http-error-handler");
15
+ class PolicyRulesApiWrapper {
16
+ constructor(accessToken, basePath) {
17
+ this._api = new defaultApi_1.DefaultApi(basePath);
18
+ this._api.accessToken = accessToken;
19
+ }
20
+ /**
21
+ * Creates an allow function object.
22
+ * @param req Parameters to create policy rules.
23
+ */
24
+ async create(req) {
25
+ const response = await this._api.createPolicyRules(req.type, req.function_name, req.policy, req.contract, req.project);
26
+ return response.body;
27
+ }
28
+ /**
29
+ * Returns a list of your allow functions for the given policy. The allow functions are returned sorted by creation date, with the most recently created allow functions appearing first.
30
+ * @param req Criteria to get policy rules by.
31
+ */
32
+ async get(req) {
33
+ const response = await this._api.getPolicyRules(req?.project, req?.policy);
34
+ return response.body;
35
+ }
36
+ /**
37
+ * Updates your allow functions object.
38
+ * @param req Parameters to update policy rules
39
+ */
40
+ async update(req) {
41
+ const response = await this._api.updatePolicyRules(req.id, req.type, req.function_name, req.policy, req.contract, req.policy);
42
+ return response.body;
43
+ }
44
+ }
45
+ __decorate([
46
+ (0, http_error_handler_1.httpErrorHandler)(),
47
+ __metadata("design:type", Function),
48
+ __metadata("design:paramtypes", [Object]),
49
+ __metadata("design:returntype", Promise)
50
+ ], PolicyRulesApiWrapper.prototype, "create", null);
51
+ __decorate([
52
+ (0, http_error_handler_1.httpErrorHandler)(),
53
+ __metadata("design:type", Function),
54
+ __metadata("design:paramtypes", [Object]),
55
+ __metadata("design:returntype", Promise)
56
+ ], PolicyRulesApiWrapper.prototype, "get", null);
57
+ __decorate([
58
+ (0, http_error_handler_1.httpErrorHandler)(),
59
+ __metadata("design:type", Function),
60
+ __metadata("design:paramtypes", [Object]),
61
+ __metadata("design:returntype", Promise)
62
+ ], PolicyRulesApiWrapper.prototype, "update", null);
63
+ exports.PolicyRulesApiWrapper = PolicyRulesApiWrapper;
64
+ //# sourceMappingURL=policyRulesApiWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policyRulesApiWrapper.js","sourceRoot":"","sources":["../../src/wrapper/policyRulesApiWrapper.ts"],"names":[],"mapp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AjDL,sDAkDC"}
@@ -0,0 +1,33 @@
1
+ import { GetProjectResponse } from "../generated/model/getProjectResponse";
2
+ import { ProjectResponse } from "../generated/model/projectResponse";
3
+ import { ProjectsResponse } from "../generated/model/projectsResponse";
4
+ import { CreateProjectRequest } from "../model/createProjectRequest";
5
+ import { UpdateProjectRequest } from "../model/updateProjectRequest";
6
+ export declare class ProjectsApiWrapper {
7
+ private readonly _api;
8
+ constructor(accessToken: string, basePath?: string);
9
+ /**
10
+ * Creates a project object.
11
+ * @param req Parameters to create project
12
+ */
13
+ create(req: CreateProjectRequest): Promise<ProjectResponse>;
14
+ /**
15
+ * Get current project
16
+ */
17
+ getCurrent(): Promise<GetProjectResponse>;
18
+ /**
19
+ * Get project by id
20
+ * @param id Id of the project
21
+ */
22
+ get(id: string): Promise<ProjectResponse>;
23
+ /**
24
+ * List of projects
25
+ * @param project
26
+ */
27
+ list(project?: string): Promise<ProjectsResponse>;
28
+ /**
29
+ * Updates a project object.
30
+ * @param req Parameters for update project
31
+ */
32
+ updateProject(req: UpdateProjectRequest): Promise<ProjectResponse>;
33
+ }
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProjectsApiWrapper = void 0;
13
+ const http_error_handler_1 = require("./http-error-handler");
14
+ const projectsApi_1 = require("../generated/api/projectsApi");
15
+ class ProjectsApiWrapper {
16
+ constructor(accessToken, basePath) {
17
+ this._api = new projectsApi_1.ProjectsApi(basePath);
18
+ this._api.accessToken = accessToken;
19
+ }
20
+ /**
21
+ * Creates a project object.
22
+ * @param req Parameters to create project
23
+ */
24
+ async create(req) {
25
+ const response = await this._api.createProject(req.name, req.livemode, req.project, req.pk_policy, req.pk_location);
26
+ return response.body;
27
+ }
28
+ /**
29
+ * Get current project
30
+ */
31
+ async getCurrent() {
32
+ const response = await this._api.get();
33
+ return response.body;
34
+ }
35
+ /**
36
+ * Get project by id
37
+ * @param id Id of the project
38
+ */
39
+ async get(id) {
40
+ const response = await this._api.getProject(id);
41
+ return response.body;
42
+ }
43
+ /**
44
+ * List of projects
45
+ * @param project
46
+ */
47
+ async list(project) {
48
+ const response = await this._api.getProjects(project);
49
+ return response.body;
50
+ }
51
+ /**
52
+ * Updates a project object.
53
+ * @param req Parameters for update project
54
+ */
55
+ async updateProject(req) {
56
+ const response = await this._api.updateProject(req.id, req.name, req.livemode, req.project, req.pk_policy, req.pk_location);
57
+ return response.body;
58
+ }
59
+ }
60
+ __decorate([
61
+ (0, http_error_handler_1.httpErrorHandler)(),
62
+ __metadata("design:type", Function),
63
+ __metadata("design:paramtypes", [Object]),
64
+ __metadata("design:returntype", Promise)
65
+ ], ProjectsApiWrapper.prototype, "create", null);
66
+ __decorate([
67
+ (0, http_error_handler_1.httpErrorHandler)(),
68
+ __metadata("design:type", Function),
69
+ __metadata("design:paramtypes", []),
70
+ __metadata("design:returntype", Promise)
71
+ ], ProjectsApiWrapper.prototype, "getCurrent", null);
72
+ __decorate([
73
+ (0, http_error_handler_1.httpErrorHandler)(),
74
+ __metadata("design:type", Function),
75
+ __metadata("design:paramtypes", [String]),
76
+ __metadata("design:returntype", Promise)
77
+ ], ProjectsApiWrapper.prototype, "get", null);
78
+ __decorate([
79
+ (0, http_error_handler_1.httpErrorHandler)(),
80
+ __metadata("design:type", Function),
81
+ __metadata("design:paramtypes", [String]),
82
+ __metadata("design:returntype", Promise)
83
+ ], ProjectsApiWrapper.prototype, "list", null);
84
+ __decorate([
85
+ (0, http_error_handler_1.httpErrorHandler)(),
86
+ __metadata("design:type", Function),
87
+ __metadata("design:paramtypes", [Object]),
88
+ __metadata("design:returntype", Promise)
89
+ ], ProjectsApiWrapper.prototype, "updateProject", null);
90
+ exports.ProjectsApiWrapper = ProjectsApiWrapper;
91
+ //# sourceMappingURL=projectsApiWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsApiWrapper.js","sourceRoot":"","sources":["../../src/wrapper/projectsApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,6DAAsD;AAEtD,8DAAyD;AAGzD,MAAa,kBAAkB;IAG3B,YAAY,WAAmB,EAAE,QAAiB;QAC9C,IAAI,CAAC,IAAI,GAAG,IAAI,yBAAW,CAAC,QAAQ,CAAC,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACxC,CAAC;IAED;;;OAGG;IAEU,AAAN,KAAK,CAAC,MAAM,CAAC,GAAyB;QACzC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,CAC1C,GAAG,CAAC,IAAI,EACR,GAAG,CAAC,QAAQ,EACZ,GAAG,CAAC,OAAO,EACX,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,WAAW,CAClB,CAAC;QACF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;IAED;;OAEG;IAEU,AAAN,KAAK,CAAC,UAAU;QACnB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;QACvC,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;IAED;;;OAGG;IAEU,AAAN,KAAK,CAAC,GAAG,CAAC,EAAU;QACvB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAChD,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;IAED;;;OAGG;IAEU,AAAN,KAAK,CAAC,IAAI,CAAC,OAAgB;QAC9B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACtD,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;IACD;;;OAGG;IAEU,AAAN,KAAK,CAAC,aAAa,CAAC,GAAyB;QAChD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,CAC1C,GAAG,CAAC,EAAE,EACN,GAAG,CAAC,IAAI,EACR,GAAG,CAAC,QAAQ,EACZ,GAAG,CAAC,OAAO,EACX,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,WAAW,CAClB,CAAC;QACF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;CACJ;AAvDgB;IADZ,IAAA,qCAAgB,GAAE;;;;gDAUlB;AAMY;IADZ,IAAA,qCAAgB,GAAE;;;;oDAIlB;AAOY;IADZ,IAAA,qCAAgB,GAAE;;;;6CAIlB;AAOY;IADZ,IAAA,qCAAgB,GAAE;;;;8CAIlB;AAMY;IADZ,IAAA,qCAAgB,GAAE;;;;uDAWlB;AAnEL,gDAoEC"}
@@ -0,0 +1,30 @@
1
+ import { SessionResponse } from "../generated/model/sessionResponse";
2
+ import { SessionsResponse } from "../generated/model/sessionsResponse";
3
+ import { CreateSessionRequest } from "../model/createSessionRequest";
4
+ import { ListSessionsRequest } from "../model/listSessionsRequest";
5
+ import { RevokeSessionRequest } from "../model/revokeSessionRequest";
6
+ import { SignatureSessionRequest } from "../model/signatureSessionRequest";
7
+ export declare class SessionsApiWrapper {
8
+ private readonly _api;
9
+ constructor(accessToken: string, basePath?: string);
10
+ /**
11
+ * Creates the session for the account.
12
+ * @param req Parameters to create session
13
+ */
14
+ create(req: CreateSessionRequest): Promise<SessionResponse>;
15
+ /**
16
+ * Returns a list of your players. The players are returned sorted by creation date, with the most recently created players appearing first.
17
+ * @param req Criteria to retrieve the list of the sessions
18
+ */
19
+ list(req: ListSessionsRequest): Promise<SessionsResponse>;
20
+ /**
21
+ * Revokes the session for the account.
22
+ * @param req Parameters to revoke the session
23
+ */
24
+ revoke(req: RevokeSessionRequest): Promise<SessionResponse>;
25
+ /**
26
+ * Confirms the creation of a session with an external owner.
27
+ * @param req: Parameters for session signature
28
+ */
29
+ signature(req: SignatureSessionRequest): Promise<SessionResponse>;
30
+ }
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SessionsApiWrapper = void 0;
13
+ const sessionsApi_1 = require("../generated/api/sessionsApi");
14
+ const http_error_handler_1 = require("./http-error-handler");
15
+ class SessionsApiWrapper {
16
+ constructor(accessToken, basePath) {
17
+ this._api = new sessionsApi_1.SessionsApi(basePath);
18
+ this._api.accessToken = accessToken;
19
+ }
20
+ /**
21
+ * Creates the session for the account.
22
+ * @param req Parameters to create session
23
+ */
24
+ async create(req) {
25
+ const response = await this._api.createSession(req.player, req.address, req.chain_id, req.valid_until, req.valid_after, req.policy, req.external_owner_address, req.whitelist, req.limit);
26
+ return response.body;
27
+ }
28
+ /**
29
+ * Returns a list of your players. The players are returned sorted by creation date, with the most recently created players appearing first.
30
+ * @param req Criteria to retrieve the list of the sessions
31
+ */
32
+ async list(req) {
33
+ const response = await this._api.getPlayerSessions(req.player, req.expand, req.limit, req.project, req.filter, req.order, req.skip);
34
+ return response.body;
35
+ }
36
+ /**
37
+ * Revokes the session for the account.
38
+ * @param req Parameters to revoke the session
39
+ */
40
+ async revoke(req) {
41
+ const response = await this._api.revokeSession(req.player, req.chain_id, req.address, req.policy);
42
+ return response.body;
43
+ }
44
+ /**
45
+ * Confirms the creation of a session with an external owner.
46
+ * @param req: Parameters for session signature
47
+ */
48
+ async signature(req) {
49
+ const response = await this._api.signatureSession(req.id, req.signature);
50
+ return response.body;
51
+ }
52
+ }
53
+ __decorate([
54
+ (0, http_error_handler_1.httpErrorHandler)(),
55
+ __metadata("design:type", Function),
56
+ __metadata("design:paramtypes", [Object]),
57
+ __metadata("design:returntype", Promise)
58
+ ], SessionsApiWrapper.prototype, "create", null);
59
+ __decorate([
60
+ (0, http_error_handler_1.httpErrorHandler)(),
61
+ __metadata("design:type", Function),
62
+ __metadata("design:paramtypes", [Object]),
63
+ __metadata("design:returntype", Promise)
64
+ ], SessionsApiWrapper.prototype, "list", null);
65
+ __decorate([
66
+ (0, http_error_handler_1.httpErrorHandler)(),
67
+ __metadata("design:type", Function),
68
+ __metadata("design:paramtypes", [Object]),
69
+ __metadata("design:returntype", Promise)
70
+ ], SessionsApiWrapper.prototype, "revoke", null);
71
+ __decorate([
72
+ (0, http_error_handler_1.httpErrorHandler)(),
73
+ __metadata("design:type", Function),
74
+ __metadata("design:paramtypes", [Object]),
75
+ __metadata("design:returntype", Promise)
76
+ ], SessionsApiWrapper.prototype, "signature", null);
77
+ exports.SessionsApiWrapper = SessionsApiWrapper;
78
+ //# sourceMappingURL=sessionsApiWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessionsApiWrapper.js","sourceRoot":"","sources":["../../src/wrapper/sessionsApiWrapper.ts"],"names":[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AI,CAAC;IACzB,CAAC;IAED;;;OAGG;IAEU,AAAN,KAAK,CAAC,SAAS,CAAC,GAA4B;QAC/C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;QACzE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;CACJ;AApDgB;IADZ,IAAA,qCAAgB,GAAE;;;;gDAclB;AAOY;IADZ,IAAA,qCAAgB,GAAE;;;;8CAYlB;AAOY;IADZ,IAAA,qCAAgB,GAAE;;;;gDAIlB;AAOY;IADZ,IAAA,qCAAgB,GAAE;;;;mDAIlB;AAhEL,gDAiEC"}
@@ -0,0 +1,42 @@
1
+ import { TransactionIntentResponse } from "../generated/model/transactionIntentResponse";
2
+ import { TransactionIntentsResponse } from "../generated/model/transactionIntentsResponse";
3
+ import { CreateTransactionIntentRequest } from "../model/createTransactionIntentRequest";
4
+ import { GetTransactionIntentRequest } from "../model/getTransactionIntentRequest";
5
+ import { ListTransactionIntentsRequest } from "../model/listTransactionIntentsRequest";
6
+ import { SignatureTransactionIntentRequest } from "../model/signatureTransactionIntentRequest";
7
+ import { UpdateTransactionIntentRequest } from "../model/updateTransactionIntentRequest";
8
+ export declare class TransactionIntentsApiWrapper {
9
+ private readonly _api;
10
+ constructor(accessToken: string, basePath?: string);
11
+ /**
12
+ * Creates a transaction intent object.
13
+ * @param req Parameters to create transaction intent
14
+ */
15
+ create(req: CreateTransactionIntentRequest): Promise<TransactionIntentResponse>;
16
+ /**
17
+ * Retrieves a transaction intent object.
18
+ * @param req Parameters to retrieve transaction intent
19
+ */
20
+ get(req: GetTransactionIntentRequest): Promise<TransactionIntentResponse>;
21
+ /**
22
+ * Returns a list of transaction intents for the given project. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
23
+ * @param req Parameters to get list of the transaction intents
24
+ */
25
+ list(req?: ListTransactionIntentsRequest): Promise<TransactionIntentsResponse>;
26
+ /**
27
+ * Confirms the creation of a transaction intent with an external owner.
28
+ * @param req Parameters to signature session
29
+ */
30
+ signature(req: SignatureTransactionIntentRequest): Promise<TransactionIntentResponse>;
31
+ /**
32
+ *
33
+ * @param id
34
+ * @param project
35
+ */
36
+ update(req: UpdateTransactionIntentRequest): Promise<TransactionIntentResponse>;
37
+ /**
38
+ *
39
+ * @param project
40
+ */
41
+ updateList(project?: string): Promise<TransactionIntentsResponse>;
42
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TransactionIntentsApiWrapper = void 0;
13
+ const transactionIntentsApi_1 = require("../generated/api/transactionIntentsApi");
14
+ const http_error_handler_1 = require("./http-error-handler");
15
+ class TransactionIntentsApiWrapper {
16
+ constructor(accessToken, basePath) {
17
+ this._api = new transactionIntentsApi_1.TransactionIntentsApi(basePath);
18
+ this._api.accessToken = accessToken;
19
+ }
20
+ /**
21
+ * Creates a transaction intent object.
22
+ * @param req Parameters to create transaction intent
23
+ */
24
+ async create(req) {
25
+ const response = await this._api.createTransactionIntent(req.player, req.chain_id, req.optimistic, req.interactions, req.policy, req.external_owner_address, req.project);
26
+ return response.body;
27
+ }
28
+ /**
29
+ * Retrieves a transaction intent object.
30
+ * @param req Parameters to retrieve transaction intent
31
+ */
32
+ async get(req) {
33
+ const response = await this._api.getTransactionIntent(req.id, req.project);
34
+ return response.body;
35
+ }
36
+ /**
37
+ * Returns a list of transaction intents for the given project. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
38
+ * @param req Parameters to get list of the transaction intents
39
+ */
40
+ async list(req) {
41
+ const response = await this._api.getTransactionIntents(req?.expand, req?.limit, req?.project, req?.filter, req?.order, req?.skip);
42
+ return response.body;
43
+ }
44
+ /**
45
+ * Confirms the creation of a transaction intent with an external owner.
46
+ * @param req Parameters to signature session
47
+ */
48
+ async signature(req) {
49
+ const response = await this._api.signature(req.id, req.signature);
50
+ return response.body;
51
+ }
52
+ /**
53
+ *
54
+ * @param id
55
+ * @param project
56
+ */
57
+ async update(req) {
58
+ const response = await this._api.updateTransactionIntentResponse(req.id, req.project);
59
+ return response.body;
60
+ }
61
+ /**
62
+ *
63
+ * @param project
64
+ */
65
+ async updateList(project) {
66
+ const response = await this._api.updateTransactionIntentsResponse(project);
67
+ return response.body;
68
+ }
69
+ }
70
+ __decorate([
71
+ (0, http_error_handler_1.httpErrorHandler)(),
72
+ __metadata("design:type", Function),
73
+ __metadata("design:paramtypes", [Object]),
74
+ __metadata("design:returntype", Promise)
75
+ ], TransactionIntentsApiWrapper.prototype, "create", null);
76
+ __decorate([
77
+ (0, http_error_handler_1.httpErrorHandler)(),
78
+ __metadata("design:type", Function),
79
+ __metadata("design:paramtypes", [Object]),
80
+ __metadata("design:returntype", Promise)
81
+ ], TransactionIntentsApiWrapper.prototype, "get", null);
82
+ __decorate([
83
+ (0, http_error_handler_1.httpErrorHandler)(),
84
+ __metadata("design:type", Function),
85
+ __metadata("design:paramtypes", [Object]),
86
+ __metadata("design:returntype", Promise)
87
+ ], TransactionIntentsApiWrapper.prototype, "list", null);
88
+ __decorate([
89
+ (0, http_error_handler_1.httpErrorHandler)(),
90
+ __metadata("design:type", Function),
91
+ __metadata("design:paramtypes", [Object]),
92
+ __metadata("design:returntype", Promise)
93
+ ], TransactionIntentsApiWrapper.prototype, "signature", null);
94
+ __decorate([
95
+ (0, http_error_handler_1.httpErrorHandler)(),
96
+ __metadata("design:type", Function),
97
+ __metadata("design:paramtypes", [Object]),
98
+ __metadata("design:returntype", Promise)
99
+ ], TransactionIntentsApiWrapper.prototype, "update", null);
100
+ __decorate([
101
+ (0, http_error_handler_1.httpErrorHandler)(),
102
+ __metadata("design:type", Function),
103
+ __metadata("design:paramtypes", [String]),
104
+ __metadata("design:returntype", Promise)
105
+ ], TransactionIntentsApiWrapper.prototype, "updateList", null);
106
+ exports.TransactionIntentsApiWrapper = TransactionIntentsApiWrapper;
107
+ //# sourceMappingURL=transactionIntentsApiWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionIntentsApiWrapper.js","sourceRoot":"","sources":["../../src/wrapper/transactionIntentsApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,kFAA6E;AAM7E,6DAAsD;AAEtD,MAAa,4BAA4B;IAGrC,YAAY,WAAmB,EAAE,QAAiB;QAC9C,IAAI,CAAC,IAAI,GAAG,IAAI,6CAAqB,CAAC,QAAQ,CAAC,CAAC;QAChD,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACxC,CAAC;IAED;;;OAGG;IAEU,AAAN,KAAK,CAAC,MAAM,CAAC,GAAmC;QACnD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,uBAAuB,CACpD,GAAG,CAAC,MAAM,EACV,GAAG,CAAC,QAAQ,EACZ,GAAG,CAAC,UAAU,EACd,GAAG,CAAC,YAAY,EAChB,GAAG,CAAC,MAAM,EACV,GAAG,CAAC,sBAAsB,EAC1B,GAAG,CAAC,OAAO,CACd,CAAC;QACF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;IAED;;;OAGG;IAEU,AAAN,KAAK,CAAC,GAAG,CAAC,GAAgC;QAC7C,MAAM,QAAQ,GAAG,MAAM,I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CAAgB,GAAE;;;;wDAWlB;AAOY;IADZ,IAAA,qCAAgB,GAAE;;;;6DAIlB;AAQY;IADZ,IAAA,qCAAgB,GAAE;;;;0DAIlB;AAOY;IADZ,IAAA,qCAAgB,GAAE;;;;8DAIlB;AAlFL,oEAmFC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfort/openfort-node",
3
- "version": "0.2.9",
3
+ "version": "0.3.1",
4
4
  "description": "OpenAPI client for @openfort/openfort-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -33,21 +33,25 @@
33
33
  "scripts": {
34
34
  "build": "tsc",
35
35
  "format": "prettier --write \"**/*.ts\"",
36
+ "lint": "tslint -p tsconfig.json",
36
37
  "prepublishOnly": "yarn install && yarn build"
37
38
  },
38
39
  "publishConfig": {
39
40
  "registry": "https://registry.npmjs.org/"
40
41
  },
41
42
  "dependencies": {
43
+ "@types/node": "^12",
42
44
  "bluebird": "^3.5.0",
43
45
  "request": "^2.81.0",
44
- "rewire": "^3.0.2",
45
- "@types/node": "^12"
46
+ "rewire": "^3.0.2"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@types/bluebird": "^3.5.33",
49
50
  "@types/request": "^2.48.8",
50
51
  "prettier": "^2.8.8",
52
+ "ts-node": "^10.9.1",
53
+ "tslint": "^6.1.3",
54
+ "tslint-config-prettier": "^1.18.0",
51
55
  "typescript": "^4.0"
52
56
  }
53
57
  }