@dfns/sdk 0.2.3-rc.1 → 0.2.4

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 (377) hide show
  1. package/baseAuthApi.d.ts +113 -0
  2. package/baseAuthApi.js +97 -0
  3. package/codegen/Assets/AssetsClient.d.ts +13 -0
  4. package/codegen/Assets/AssetsClient.js +93 -0
  5. package/codegen/Assets/DelegatedAssetsClient.d.ts +16 -0
  6. package/codegen/Assets/DelegatedAssetsClient.js +124 -0
  7. package/codegen/Assets/index.d.ts +3 -0
  8. package/codegen/Assets/index.js +19 -0
  9. package/codegen/Assets/types.d.ts +37 -0
  10. package/codegen/Assets/types.js +2 -0
  11. package/codegen/Auth/AuthClient.d.ts +50 -0
  12. package/codegen/Auth/AuthClient.js +518 -0
  13. package/codegen/Auth/DelegatedAuthClient.d.ts +78 -0
  14. package/codegen/Auth/DelegatedAuthClient.js +936 -0
  15. package/codegen/Auth/index.d.ts +3 -0
  16. package/codegen/Auth/index.js +19 -0
  17. package/codegen/Auth/types.d.ts +177 -0
  18. package/codegen/Auth/types.js +2 -0
  19. package/codegen/Blockchains/BlockchainsClient.d.ts +7 -0
  20. package/codegen/Blockchains/BlockchainsClient.js +23 -0
  21. package/codegen/Blockchains/DelegatedBlockchainsClient.d.ts +7 -0
  22. package/codegen/Blockchains/DelegatedBlockchainsClient.js +23 -0
  23. package/codegen/Blockchains/index.d.ts +3 -0
  24. package/codegen/Blockchains/index.js +19 -0
  25. package/codegen/Blockchains/types.d.ts +6 -0
  26. package/codegen/Blockchains/types.js +2 -0
  27. package/codegen/Callbacks/CallbacksClient.d.ts +12 -0
  28. package/codegen/Callbacks/CallbacksClient.js +78 -0
  29. package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +15 -0
  30. package/codegen/Callbacks/DelegatedCallbacksClient.js +110 -0
  31. package/codegen/Callbacks/index.d.ts +3 -0
  32. package/codegen/Callbacks/index.js +19 -0
  33. package/codegen/Callbacks/{types.ts → types.d.ts} +18 -26
  34. package/codegen/Callbacks/types.js +2 -0
  35. package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +11 -0
  36. package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +61 -0
  37. package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +9 -0
  38. package/codegen/PolicyExecution/PolicyExecutionClient.js +45 -0
  39. package/codegen/PolicyExecution/index.d.ts +3 -0
  40. package/codegen/PolicyExecution/index.js +19 -0
  41. package/codegen/PolicyExecution/types.d.ts +18 -0
  42. package/codegen/PolicyExecution/types.js +2 -0
  43. package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +25 -0
  44. package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +240 -0
  45. package/codegen/PolicyManagement/PolicyManagementClient.d.ts +18 -0
  46. package/codegen/PolicyManagement/PolicyManagementClient.js +146 -0
  47. package/codegen/PolicyManagement/index.d.ts +3 -0
  48. package/codegen/PolicyManagement/index.js +19 -0
  49. package/codegen/PolicyManagement/{types.ts → types.d.ts} +40 -56
  50. package/codegen/PolicyManagement/types.js +2 -0
  51. package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +21 -0
  52. package/codegen/PublicKeys/DelegatedPublicKeysClient.js +189 -0
  53. package/codegen/PublicKeys/PublicKeysClient.d.ts +16 -0
  54. package/codegen/PublicKeys/PublicKeysClient.js +128 -0
  55. package/codegen/PublicKeys/index.d.ts +3 -0
  56. package/codegen/PublicKeys/index.js +19 -0
  57. package/codegen/PublicKeys/types.d.ts +51 -0
  58. package/codegen/PublicKeys/types.js +2 -0
  59. package/codegen/Signers/DelegatedSignersClient.d.ts +7 -0
  60. package/codegen/Signers/DelegatedSignersClient.js +22 -0
  61. package/codegen/Signers/SignersClient.d.ts +7 -0
  62. package/codegen/Signers/SignersClient.js +22 -0
  63. package/codegen/Signers/index.d.ts +3 -0
  64. package/codegen/Signers/index.js +19 -0
  65. package/codegen/Signers/types.d.ts +2 -0
  66. package/codegen/Signers/types.js +2 -0
  67. package/codegen/Wallets/DelegatedWalletsClient.d.ts +32 -0
  68. package/codegen/Wallets/DelegatedWalletsClient.js +325 -0
  69. package/codegen/Wallets/WalletsClient.d.ts +24 -0
  70. package/codegen/Wallets/WalletsClient.js +219 -0
  71. package/codegen/Wallets/index.d.ts +3 -0
  72. package/codegen/Wallets/index.js +19 -0
  73. package/codegen/Wallets/types.d.ts +101 -0
  74. package/codegen/Wallets/types.js +2 -0
  75. package/codegen/datamodel/ApiKeys/errors.d.ts +6 -0
  76. package/codegen/datamodel/ApiKeys/errors.js +15 -0
  77. package/codegen/datamodel/ApiKeys/index.d.ts +3 -0
  78. package/codegen/datamodel/ApiKeys/index.js +19 -0
  79. package/codegen/datamodel/ApiKeys/responses.d.ts +25 -0
  80. package/codegen/datamodel/ApiKeys/responses.js +2 -0
  81. package/codegen/datamodel/ApiKeys/types.d.ts +32 -0
  82. package/codegen/datamodel/ApiKeys/types.js +11 -0
  83. package/codegen/datamodel/Assets/errors.d.ts +11 -0
  84. package/codegen/datamodel/Assets/errors.js +17 -0
  85. package/codegen/datamodel/Assets/index.d.ts +3 -0
  86. package/codegen/datamodel/Assets/index.js +19 -0
  87. package/codegen/datamodel/Assets/responses.d.ts +47 -0
  88. package/codegen/datamodel/Assets/responses.js +2 -0
  89. package/codegen/datamodel/Assets/types.d.ts +225 -0
  90. package/codegen/datamodel/Assets/types.js +75 -0
  91. package/codegen/datamodel/Auth/errors.js +1 -0
  92. package/codegen/datamodel/Auth/index.d.ts +2 -0
  93. package/codegen/datamodel/Auth/index.js +18 -0
  94. package/codegen/datamodel/Auth/responses.d.ts +358 -0
  95. package/codegen/datamodel/Auth/responses.js +2 -0
  96. package/codegen/datamodel/Auth/types.d.ts +615 -0
  97. package/codegen/datamodel/Auth/types.js +127 -0
  98. package/codegen/datamodel/BlockchainIndexing/errors.js +1 -0
  99. package/codegen/datamodel/BlockchainIndexing/index.d.ts +1 -0
  100. package/codegen/datamodel/BlockchainIndexing/index.js +17 -0
  101. package/codegen/datamodel/BlockchainIndexing/{responses.ts → responses.d.ts} +5 -10
  102. package/codegen/datamodel/BlockchainIndexing/responses.js +2 -0
  103. package/codegen/datamodel/BlockchainIndexing/types.js +1 -0
  104. package/codegen/datamodel/Blockchains/errors.js +1 -0
  105. package/codegen/datamodel/Blockchains/index.d.ts +2 -0
  106. package/codegen/datamodel/Blockchains/index.js +18 -0
  107. package/codegen/datamodel/Blockchains/responses.d.ts +12 -0
  108. package/codegen/datamodel/Blockchains/responses.js +2 -0
  109. package/codegen/datamodel/Blockchains/types.d.ts +270 -0
  110. package/codegen/datamodel/Blockchains/types.js +53 -0
  111. package/codegen/datamodel/Callbacks/errors.js +1 -0
  112. package/codegen/datamodel/Callbacks/index.d.ts +2 -0
  113. package/codegen/datamodel/Callbacks/index.js +18 -0
  114. package/codegen/datamodel/Callbacks/responses.d.ts +36 -0
  115. package/codegen/datamodel/Callbacks/responses.js +2 -0
  116. package/codegen/datamodel/Callbacks/types.d.ts +43 -0
  117. package/codegen/datamodel/Callbacks/types.js +39 -0
  118. package/codegen/datamodel/Foundations/errors.d.ts +131 -0
  119. package/codegen/datamodel/Foundations/errors.js +182 -0
  120. package/codegen/datamodel/Foundations/index.d.ts +2 -0
  121. package/codegen/datamodel/Foundations/index.js +18 -0
  122. package/codegen/datamodel/Foundations/responses.js +1 -0
  123. package/codegen/datamodel/Foundations/types.d.ts +9759 -0
  124. package/codegen/datamodel/Foundations/types.js +57755 -0
  125. package/codegen/datamodel/Orgs/errors.js +1 -0
  126. package/codegen/datamodel/Orgs/index.d.ts +2 -0
  127. package/codegen/datamodel/Orgs/index.js +18 -0
  128. package/codegen/datamodel/Orgs/responses.d.ts +45 -0
  129. package/codegen/datamodel/Orgs/responses.js +2 -0
  130. package/codegen/datamodel/Orgs/types.d.ts +240 -0
  131. package/codegen/datamodel/Orgs/types.js +39 -0
  132. package/codegen/datamodel/Permissions/errors.js +1 -0
  133. package/codegen/datamodel/Permissions/index.d.ts +2 -0
  134. package/codegen/datamodel/Permissions/index.js +18 -0
  135. package/codegen/datamodel/Permissions/responses.d.ts +75 -0
  136. package/codegen/datamodel/Permissions/responses.js +2 -0
  137. package/codegen/datamodel/Permissions/types.d.ts +93 -0
  138. package/codegen/datamodel/Permissions/types.js +43 -0
  139. package/codegen/datamodel/PolicyExecution/errors.d.ts +11 -0
  140. package/codegen/datamodel/PolicyExecution/errors.js +17 -0
  141. package/codegen/datamodel/PolicyExecution/index.d.ts +3 -0
  142. package/codegen/datamodel/PolicyExecution/index.js +19 -0
  143. package/codegen/datamodel/PolicyExecution/responses.d.ts +19 -0
  144. package/codegen/datamodel/PolicyExecution/responses.js +2 -0
  145. package/codegen/datamodel/PolicyExecution/types.d.ts +60 -0
  146. package/codegen/datamodel/PolicyExecution/types.js +17 -0
  147. package/codegen/datamodel/PolicyManagement/errors.js +1 -0
  148. package/codegen/datamodel/PolicyManagement/index.d.ts +2 -0
  149. package/codegen/datamodel/PolicyManagement/index.js +18 -0
  150. package/codegen/datamodel/PolicyManagement/responses.d.ts +83 -0
  151. package/codegen/datamodel/PolicyManagement/responses.js +2 -0
  152. package/codegen/datamodel/PolicyManagement/types.d.ts +391 -0
  153. package/codegen/datamodel/PolicyManagement/types.js +95 -0
  154. package/codegen/datamodel/PublicKeys/errors.js +1 -0
  155. package/codegen/datamodel/PublicKeys/index.d.ts +2 -0
  156. package/codegen/datamodel/PublicKeys/index.js +18 -0
  157. package/codegen/datamodel/PublicKeys/responses.d.ts +56 -0
  158. package/codegen/datamodel/PublicKeys/responses.js +2 -0
  159. package/codegen/datamodel/PublicKeys/types.d.ts +223 -0
  160. package/codegen/datamodel/PublicKeys/types.js +59 -0
  161. package/codegen/datamodel/Signers/errors.js +1 -0
  162. package/codegen/datamodel/Signers/index.d.ts +2 -0
  163. package/codegen/datamodel/Signers/index.js +18 -0
  164. package/codegen/datamodel/Signers/responses.d.ts +27 -0
  165. package/codegen/datamodel/Signers/responses.js +2 -0
  166. package/codegen/datamodel/Signers/types.d.ts +21 -0
  167. package/codegen/datamodel/Signers/types.js +2 -0
  168. package/codegen/datamodel/Wallets/errors.js +1 -0
  169. package/codegen/datamodel/Wallets/index.d.ts +2 -0
  170. package/codegen/datamodel/Wallets/index.js +18 -0
  171. package/codegen/datamodel/Wallets/responses.d.ts +92 -0
  172. package/codegen/datamodel/Wallets/responses.js +2 -0
  173. package/codegen/datamodel/Wallets/types.d.ts +677 -0
  174. package/codegen/datamodel/Wallets/types.js +251 -0
  175. package/dfnsApiClient.d.ts +39 -0
  176. package/dfnsApiClient.js +63 -0
  177. package/dfnsAuthenticator.d.ts +17 -0
  178. package/dfnsAuthenticator.js +29 -0
  179. package/dfnsDelegatedApiClient.d.ts +38 -0
  180. package/dfnsDelegatedApiClient.js +63 -0
  181. package/dfnsError.d.ts +5 -0
  182. package/dfnsError.js +11 -0
  183. package/generated/permissions/client.d.ts +14 -0
  184. package/generated/permissions/client.js +104 -0
  185. package/generated/permissions/delegatedClient.d.ts +20 -0
  186. package/generated/permissions/delegatedClient.js +180 -0
  187. package/generated/permissions/index.d.ts +3 -0
  188. package/generated/permissions/index.js +19 -0
  189. package/generated/permissions/types.d.ts +225 -0
  190. package/generated/permissions/types.js +2 -0
  191. package/generated/policies/client.d.ts +13 -0
  192. package/generated/policies/client.js +92 -0
  193. package/generated/policies/delegatedClient.d.ts +18 -0
  194. package/generated/policies/delegatedClient.js +153 -0
  195. package/generated/policies/index.d.ts +3 -0
  196. package/generated/policies/index.js +19 -0
  197. package/generated/policies/{types.ts → types.d.ts} +409 -39
  198. package/generated/policies/types.js +2 -0
  199. package/generated/signers/client.d.ts +7 -0
  200. package/generated/signers/client.js +22 -0
  201. package/generated/signers/delegatedClient.d.ts +7 -0
  202. package/generated/signers/delegatedClient.js +22 -0
  203. package/generated/signers/index.d.ts +3 -0
  204. package/generated/signers/index.js +19 -0
  205. package/generated/signers/{types.ts → types.d.ts} +0 -1
  206. package/generated/signers/types.js +2 -0
  207. package/generated/wallets/client.d.ts +25 -0
  208. package/generated/wallets/client.js +228 -0
  209. package/generated/wallets/delegatedClient.d.ts +34 -0
  210. package/generated/wallets/delegatedClient.js +349 -0
  211. package/generated/wallets/index.d.ts +3 -0
  212. package/generated/wallets/index.js +19 -0
  213. package/generated/wallets/{types.ts → types.d.ts} +68 -109
  214. package/generated/wallets/types.js +2 -0
  215. package/generated/webhooks/client.d.ts +14 -0
  216. package/generated/webhooks/client.js +103 -0
  217. package/generated/webhooks/delegatedClient.d.ts +19 -0
  218. package/generated/webhooks/delegatedClient.js +164 -0
  219. package/generated/webhooks/index.d.ts +3 -0
  220. package/generated/webhooks/index.js +19 -0
  221. package/generated/webhooks/{types.ts → types.d.ts} +16 -34
  222. package/generated/webhooks/types.js +2 -0
  223. package/index.d.ts +7 -0
  224. package/index.js +23 -0
  225. package/package.json +8 -1
  226. package/signer.d.ts +52 -0
  227. package/signer.js +2 -0
  228. package/store.d.ts +79 -0
  229. package/store.js +2 -0
  230. package/types/policies.d.ts +1 -0
  231. package/types/policies.js +17 -0
  232. package/types/signers.d.ts +1 -0
  233. package/types/signers.js +17 -0
  234. package/types/wallets.d.ts +1 -0
  235. package/types/wallets.js +17 -0
  236. package/types/webhooks.d.ts +1 -0
  237. package/types/webhooks.js +17 -0
  238. package/utils/base64.d.ts +3 -0
  239. package/utils/base64.js +20 -0
  240. package/utils/fetch.d.ts +12 -0
  241. package/utils/fetch.js +94 -0
  242. package/utils/index.d.ts +4 -0
  243. package/utils/index.js +20 -0
  244. package/utils/nonce.d.ts +1 -0
  245. package/utils/nonce.js +12 -0
  246. package/utils/url.d.ts +4 -0
  247. package/utils/url.js +16 -0
  248. package/baseAuthApi.ts +0 -236
  249. package/codegen/Assets/AssetsClient.ts +0 -137
  250. package/codegen/Assets/DelegatedAssetsClient.ts +0 -201
  251. package/codegen/Assets/index.ts +0 -3
  252. package/codegen/Assets/types.ts +0 -45
  253. package/codegen/Auth/AuthClient.ts +0 -729
  254. package/codegen/Auth/DelegatedAuthClient.ts +0 -1508
  255. package/codegen/Auth/index.ts +0 -3
  256. package/codegen/Auth/types.ts +0 -262
  257. package/codegen/Blockchains/BlockchainsClient.ts +0 -25
  258. package/codegen/Blockchains/DelegatedBlockchainsClient.ts +0 -25
  259. package/codegen/Blockchains/index.ts +0 -3
  260. package/codegen/Blockchains/types.ts +0 -8
  261. package/codegen/Callbacks/CallbacksClient.ts +0 -107
  262. package/codegen/Callbacks/DelegatedCallbacksClient.ts +0 -172
  263. package/codegen/Callbacks/index.ts +0 -3
  264. package/codegen/Permissions/DelegatedPermissionsClient.ts +0 -468
  265. package/codegen/Permissions/PermissionsClient.ts +0 -223
  266. package/codegen/Permissions/index.ts +0 -3
  267. package/codegen/Permissions/types.ts +0 -82
  268. package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.ts +0 -99
  269. package/codegen/PolicyExecution/PolicyExecutionClient.ts +0 -63
  270. package/codegen/PolicyExecution/index.ts +0 -3
  271. package/codegen/PolicyExecution/types.ts +0 -24
  272. package/codegen/PolicyManagement/DelegatedPolicyManagementClient.ts +0 -384
  273. package/codegen/PolicyManagement/PolicyManagementClient.ts +0 -205
  274. package/codegen/PolicyManagement/index.ts +0 -3
  275. package/codegen/PublicKeys/DelegatedPublicKeysClient.ts +0 -299
  276. package/codegen/PublicKeys/PublicKeysClient.ts +0 -179
  277. package/codegen/PublicKeys/index.ts +0 -3
  278. package/codegen/PublicKeys/types.ts +0 -68
  279. package/codegen/Signers/DelegatedSignersClient.ts +0 -22
  280. package/codegen/Signers/SignersClient.ts +0 -22
  281. package/codegen/Signers/index.ts +0 -3
  282. package/codegen/Signers/types.ts +0 -3
  283. package/codegen/Wallets/DelegatedWalletsClient.ts +0 -511
  284. package/codegen/Wallets/WalletsClient.ts +0 -310
  285. package/codegen/Wallets/index.ts +0 -3
  286. package/codegen/Wallets/types.ts +0 -137
  287. package/codegen/datamodel/ApiKeys/errors.ts +0 -9
  288. package/codegen/datamodel/ApiKeys/index.ts +0 -3
  289. package/codegen/datamodel/ApiKeys/responses.ts +0 -68
  290. package/codegen/datamodel/ApiKeys/types.ts +0 -81
  291. package/codegen/datamodel/Assets/errors.ts +0 -24
  292. package/codegen/datamodel/Assets/index.ts +0 -3
  293. package/codegen/datamodel/Assets/responses.ts +0 -146
  294. package/codegen/datamodel/Assets/types.ts +0 -417
  295. package/codegen/datamodel/Auth/index.ts +0 -2
  296. package/codegen/datamodel/Auth/responses.ts +0 -1110
  297. package/codegen/datamodel/Auth/types.ts +0 -1404
  298. package/codegen/datamodel/BlockchainIndexing/index.ts +0 -1
  299. package/codegen/datamodel/Blockchains/index.ts +0 -2
  300. package/codegen/datamodel/Blockchains/responses.ts +0 -41
  301. package/codegen/datamodel/Blockchains/types.ts +0 -695
  302. package/codegen/datamodel/Callbacks/index.ts +0 -2
  303. package/codegen/datamodel/Callbacks/responses.ts +0 -110
  304. package/codegen/datamodel/Callbacks/types.ts +0 -100
  305. package/codegen/datamodel/Foundations/errors.ts +0 -299
  306. package/codegen/datamodel/Foundations/index.ts +0 -2
  307. package/codegen/datamodel/Foundations/types.ts +0 -57921
  308. package/codegen/datamodel/Orgs/index.ts +0 -2
  309. package/codegen/datamodel/Orgs/responses.ts +0 -104
  310. package/codegen/datamodel/Orgs/types.ts +0 -322
  311. package/codegen/datamodel/Permissions/index.ts +0 -2
  312. package/codegen/datamodel/Permissions/responses.ts +0 -258
  313. package/codegen/datamodel/Permissions/types.ts +0 -221
  314. package/codegen/datamodel/PolicyExecution/errors.ts +0 -24
  315. package/codegen/datamodel/PolicyExecution/index.ts +0 -3
  316. package/codegen/datamodel/PolicyExecution/responses.ts +0 -59
  317. package/codegen/datamodel/PolicyExecution/types.ts +0 -122
  318. package/codegen/datamodel/PolicyManagement/index.ts +0 -2
  319. package/codegen/datamodel/PolicyManagement/responses.ts +0 -255
  320. package/codegen/datamodel/PolicyManagement/types.ts +0 -711
  321. package/codegen/datamodel/PublicKeys/index.ts +0 -2
  322. package/codegen/datamodel/PublicKeys/responses.ts +0 -190
  323. package/codegen/datamodel/PublicKeys/types.ts +0 -558
  324. package/codegen/datamodel/Signers/index.ts +0 -2
  325. package/codegen/datamodel/Signers/responses.ts +0 -64
  326. package/codegen/datamodel/Signers/types.ts +0 -31
  327. package/codegen/datamodel/Wallets/errors.ts +0 -0
  328. package/codegen/datamodel/Wallets/index.ts +0 -2
  329. package/codegen/datamodel/Wallets/responses.ts +0 -318
  330. package/codegen/datamodel/Wallets/types.ts +0 -1268
  331. package/dfnsApiClient.ts +0 -76
  332. package/dfnsAuthenticator.ts +0 -59
  333. package/dfnsDelegatedApiClient.ts +0 -75
  334. package/dfnsError.ts +0 -5
  335. package/generated/permissions/client.ts +0 -125
  336. package/generated/permissions/delegatedClient.ts +0 -266
  337. package/generated/permissions/index.ts +0 -3
  338. package/generated/permissions/types.ts +0 -202
  339. package/generated/policies/client.ts +0 -110
  340. package/generated/policies/delegatedClient.ts +0 -223
  341. package/generated/policies/index.ts +0 -3
  342. package/generated/signers/client.ts +0 -22
  343. package/generated/signers/delegatedClient.ts +0 -23
  344. package/generated/signers/index.ts +0 -3
  345. package/generated/wallets/client.ts +0 -282
  346. package/generated/wallets/delegatedClient.ts +0 -507
  347. package/generated/wallets/index.ts +0 -3
  348. package/generated/webhooks/client.ts +0 -124
  349. package/generated/webhooks/delegatedClient.ts +0 -237
  350. package/generated/webhooks/index.ts +0 -3
  351. package/index.ts +0 -7
  352. package/project.json +0 -14
  353. package/signer.ts +0 -60
  354. package/store.ts +0 -99
  355. package/tsconfig.json +0 -7
  356. package/typedoc.json +0 -21
  357. package/types/policies.ts +0 -1
  358. package/types/signers.ts +0 -1
  359. package/types/wallets.ts +0 -1
  360. package/types/webhooks.ts +0 -1
  361. package/utils/base64.ts +0 -19
  362. package/utils/fetch.ts +0 -130
  363. package/utils/index.ts +0 -4
  364. package/utils/nonce.ts +0 -12
  365. package/utils/url.ts +0 -19
  366. /package/{README.md → codegen/datamodel/Auth/errors.d.ts} +0 -0
  367. /package/codegen/datamodel/{Auth/errors.ts → BlockchainIndexing/errors.d.ts} +0 -0
  368. /package/codegen/datamodel/BlockchainIndexing/{errors.ts → types.d.ts} +0 -0
  369. /package/codegen/datamodel/{BlockchainIndexing/types.ts → Blockchains/errors.d.ts} +0 -0
  370. /package/codegen/datamodel/{Blockchains/errors.ts → Callbacks/errors.d.ts} +0 -0
  371. /package/codegen/datamodel/{Callbacks/errors.ts → Foundations/responses.d.ts} +0 -0
  372. /package/codegen/datamodel/{Foundations/responses.ts → Orgs/errors.d.ts} +0 -0
  373. /package/codegen/datamodel/{Orgs/errors.ts → Permissions/errors.d.ts} +0 -0
  374. /package/codegen/datamodel/{Permissions/errors.ts → PolicyManagement/errors.d.ts} +0 -0
  375. /package/codegen/datamodel/{PolicyManagement/errors.ts → PublicKeys/errors.d.ts} +0 -0
  376. /package/codegen/datamodel/{PublicKeys/errors.ts → Signers/errors.d.ts} +0 -0
  377. /package/codegen/datamodel/{Signers/errors.ts → Wallets/errors.d.ts} +0 -0
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../generated/signers/types"), exports);
@@ -0,0 +1 @@
1
+ export * from '../generated/wallets/types';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../generated/wallets/types"), exports);
@@ -0,0 +1 @@
1
+ export * from '../generated/webhooks/types';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../generated/webhooks/types"), exports);
@@ -0,0 +1,3 @@
1
+ import { Buffer } from 'buffer';
2
+ export declare const toBase64Url: (buffer: string | Buffer) => string;
3
+ export declare const fromBase64Url: (encoded: string) => Buffer;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromBase64Url = exports.toBase64Url = void 0;
4
+ const buffer_1 = require("buffer");
5
+ const toBase64Url = (buffer) => {
6
+ if (typeof buffer === 'string') {
7
+ buffer = buffer_1.Buffer.from(buffer);
8
+ }
9
+ return buffer.toString('base64').replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_');
10
+ };
11
+ exports.toBase64Url = toBase64Url;
12
+ const fromBase64Url = (encoded) => {
13
+ const padLength = 4 - (encoded.length % 4);
14
+ if (padLength < 4) {
15
+ encoded += '='.repeat(padLength);
16
+ }
17
+ encoded = encoded.replace(/\-/g, '+').replace(/_/g, '/');
18
+ return buffer_1.Buffer.from(encoded, 'base64');
19
+ };
20
+ exports.fromBase64Url = fromBase64Url;
@@ -0,0 +1,12 @@
1
+ import { DfnsBaseApiOptions } from '../baseAuthApi';
2
+ import { DfnsApiClientOptions } from '../dfnsApiClient';
3
+ export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE';
4
+ export type FetchOptions<T> = {
5
+ method: HttpMethod;
6
+ headers?: Record<string, string>;
7
+ body?: string | unknown;
8
+ apiOptions: T;
9
+ };
10
+ export type Fetch<T> = (resource: string | URL, options: FetchOptions<T>) => Promise<Response>;
11
+ export declare const simpleFetch: Fetch<DfnsBaseApiOptions>;
12
+ export declare const userActionFetch: Fetch<DfnsApiClientOptions>;
package/utils/fetch.js ADDED
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userActionFetch = exports.simpleFetch = void 0;
4
+ const cross_fetch_1 = require("cross-fetch");
5
+ const dfnsError_1 = require("../dfnsError");
6
+ const baseAuthApi_1 = require("../baseAuthApi");
7
+ const nonce_1 = require("./nonce");
8
+ const fullUrl = (fetch) => {
9
+ return async (resource, options) => {
10
+ const { baseUrl } = options.apiOptions;
11
+ resource = new URL(resource, baseUrl);
12
+ return fetch(resource, options);
13
+ };
14
+ };
15
+ const jsonSerializer = (fetch) => {
16
+ return async (resource, options) => {
17
+ if (options.body) {
18
+ options.body = JSON.stringify(options.body);
19
+ options.headers = {
20
+ 'content-type': 'application/json',
21
+ ...(options.headers ?? {}),
22
+ };
23
+ }
24
+ return fetch(resource, options);
25
+ };
26
+ };
27
+ const errorHandler = (fetch) => {
28
+ return async (resource, options) => {
29
+ const response = await fetch(resource, options);
30
+ if (response.ok) {
31
+ return response;
32
+ }
33
+ else {
34
+ const body = await response.json();
35
+ const message = body?.error?.message ?? body?.message;
36
+ throw new dfnsError_1.DfnsError(response.status, message, {
37
+ url: response.url,
38
+ headers: response.headers,
39
+ body,
40
+ });
41
+ }
42
+ };
43
+ };
44
+ const dfnsAuth = (fetch) => {
45
+ return async (resource, options) => {
46
+ const { appId, appSecret, authToken } = options.apiOptions;
47
+ const authorization = authToken
48
+ ? {
49
+ authorization: `Bearer ${authToken}`,
50
+ }
51
+ : {};
52
+ const dfnsAppSecret = appSecret
53
+ ? {
54
+ 'x-dfns-appsecret': appSecret,
55
+ }
56
+ : {};
57
+ options.headers = {
58
+ 'x-dfns-appid': appId,
59
+ 'x-dfns-nonce': (0, nonce_1.generateNonce)(),
60
+ ...dfnsAppSecret,
61
+ ...authorization,
62
+ ...(options.headers ?? {}),
63
+ };
64
+ return fetch(resource, options);
65
+ };
66
+ };
67
+ const userAction = (fetch) => {
68
+ return async (resource, options) => {
69
+ if (options.method !== 'GET') {
70
+ const apiOptions = {
71
+ ...options.apiOptions,
72
+ baseUrl: options.apiOptions.baseAuthUrl || options.apiOptions.baseUrl,
73
+ };
74
+ const { challenge, challengeIdentifier, allowCredentials } = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
75
+ userActionPayload: options.body ?? '',
76
+ userActionHttpMethod: options.method,
77
+ userActionHttpPath: resource.pathname,
78
+ userActionServerKind: apiOptions?.userActionServerKind || 'Api',
79
+ }, apiOptions);
80
+ const assertion = await apiOptions.signer.sign(challenge, allowCredentials);
81
+ const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge({
82
+ challengeIdentifier,
83
+ firstFactor: assertion,
84
+ }, apiOptions);
85
+ options.headers = {
86
+ 'x-dfns-useraction': userAction,
87
+ ...(options.headers ?? {}),
88
+ };
89
+ }
90
+ return fetch(resource, options);
91
+ };
92
+ };
93
+ exports.simpleFetch = fullUrl(jsonSerializer(dfnsAuth(errorHandler(cross_fetch_1.fetch))));
94
+ exports.userActionFetch = fullUrl(jsonSerializer(dfnsAuth(userAction(errorHandler(cross_fetch_1.fetch)))));
@@ -0,0 +1,4 @@
1
+ export * from './base64';
2
+ export * from './fetch';
3
+ export * from './nonce';
4
+ export * from './url';
package/utils/index.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./base64"), exports);
18
+ __exportStar(require("./fetch"), exports);
19
+ __exportStar(require("./nonce"), exports);
20
+ __exportStar(require("./url"), exports);
@@ -0,0 +1 @@
1
+ export declare const generateNonce: () => string;
package/utils/nonce.js ADDED
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateNonce = void 0;
4
+ const uuid_1 = require("uuid");
5
+ const base64_1 = require("./base64");
6
+ const generateNonce = () => {
7
+ return (0, base64_1.toBase64Url)(JSON.stringify({
8
+ uuid: (0, uuid_1.v4)(),
9
+ date: new Date().toISOString(),
10
+ }));
11
+ };
12
+ exports.generateNonce = generateNonce;
package/utils/url.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export declare const buildPathAndQuery: (pattern: string, params: {
2
+ path: Record<string, any>;
3
+ query: Record<string, string | number | boolean | undefined>;
4
+ }) => string;
package/utils/url.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildPathAndQuery = void 0;
4
+ const buildPathAndQuery = (pattern, params) => {
5
+ let path = pattern;
6
+ const paramsToReplace = (path.match(new RegExp(`:[a-zA-Z]+`, 'g')) || []).map((v) => v.replace(/^:/, ''));
7
+ for (const key of paramsToReplace) {
8
+ path = path.replace(new RegExp(`:${key}`, 'g'), encodeURIComponent(params.path[key]));
9
+ }
10
+ const query = Object.entries(params.query)
11
+ .filter(([_, value]) => !!value)
12
+ .map(([key, value]) => `${key}=${encodeURIComponent(value.toString())}`)
13
+ .join('&');
14
+ return query === '' ? path : `${path}?${query}`;
15
+ };
16
+ exports.buildPathAndQuery = buildPathAndQuery;
package/baseAuthApi.ts DELETED
@@ -1,236 +0,0 @@
1
- import {
2
- FirstFactorAttestation,
3
- RecoveryFactorAttestation,
4
- SecondFactorAttestation,
5
- UserRegistrationChallenge,
6
- } from './store'
7
- import {
8
- AllowCredential,
9
- CredentialKind,
10
- FirstFactorAssertion,
11
- RecoveryKeyAssertion,
12
- SecondFactorAssertion,
13
- } from './signer'
14
- import { HttpMethod, simpleFetch } from './utils/fetch'
15
-
16
- export type DfnsBaseApiOptions = {
17
- appId: string
18
- appSecret?: string
19
- authToken?: string
20
- baseUrl: string
21
- }
22
-
23
- export type CreateUserActionChallengeRequest = {
24
- userActionPayload: string
25
- userActionHttpMethod: HttpMethod
26
- userActionHttpPath: string
27
- userActionServerKind: 'Api'
28
- }
29
-
30
- export type CredentialFactor = 'first' | 'second' | 'either'
31
-
32
- export type UserActionChallengeResponse = {
33
- supportedCredentialKinds: {
34
- kind: CredentialKind
35
- factor: CredentialFactor
36
- requiresSecondFactor: boolean
37
- }[]
38
- challenge: string
39
- challengeIdentifier: string
40
- externalAuthenticationUrl: string
41
- allowCredentials: {
42
- key: AllowCredential[]
43
- webauthn: AllowCredential[]
44
- }
45
- }
46
-
47
- export type SignUserActionChallengeRequest = {
48
- challengeIdentifier: string
49
- firstFactor: FirstFactorAssertion
50
- secondFactor?: SecondFactorAssertion
51
- }
52
-
53
- export type UserActionResponse = {
54
- userAction: string
55
- }
56
-
57
- export type CreateUserLoginChallengeRequest = {
58
- username: string
59
- orgId: string
60
- }
61
-
62
- export type UserLoginChallengeResponse = UserActionChallengeResponse
63
-
64
- export type CreateUserLoginRequest = SignUserActionChallengeRequest
65
-
66
- export type UserLoginResponse = {
67
- token: string
68
- }
69
-
70
- export type CreateUserRegistrationChallengeRequest = {
71
- orgId: string
72
- username: string
73
- registrationCode: string
74
- }
75
-
76
- export type UserRegistrationChallengeResponse = UserRegistrationChallenge
77
-
78
- export type CreateUserRegistrationRequest = {
79
- firstFactorCredential: FirstFactorAttestation
80
- secondFactorCredential?: SecondFactorAttestation
81
- recoveryCredential?: RecoveryFactorAttestation
82
- }
83
-
84
- export type UserRegistrationResponse = {
85
- credential: {
86
- uuid: string
87
- kind: CredentialKind
88
- name: string
89
- }
90
- user: {
91
- id: string
92
- username: string
93
- orgId: string
94
- }
95
- }
96
-
97
- export type CreateUserRecoveryRequest = {
98
- recovery: RecoveryKeyAssertion
99
- newCredentials: {
100
- firstFactorCredential: FirstFactorAttestation
101
- secondFactorCredential?: SecondFactorAttestation
102
- recoveryCredential?: RecoveryFactorAttestation
103
- }
104
- }
105
-
106
- export type UserRecoveryResponse = UserRegistrationResponse
107
-
108
- export class BaseAuthApi {
109
- /**
110
- * Creates a user action challenge
111
- */
112
- static async createUserActionChallenge(
113
- request: CreateUserActionChallengeRequest,
114
- options: DfnsBaseApiOptions
115
- ): Promise<UserActionChallengeResponse> {
116
- const response = await simpleFetch('/auth/action/init', {
117
- method: 'POST',
118
- body: request,
119
- apiOptions: options,
120
- })
121
-
122
- return response.json()
123
- }
124
-
125
- /**
126
- * Sign a user action challenge
127
- */
128
- static async signUserActionChallenge(
129
- request: SignUserActionChallengeRequest,
130
- options: DfnsBaseApiOptions
131
- ): Promise<UserActionResponse> {
132
- const response = await simpleFetch('/auth/action', {
133
- method: 'POST',
134
- body: request,
135
- apiOptions: options,
136
- })
137
-
138
- return response.json()
139
- }
140
-
141
- /**
142
- * Initiates user login, by creating a challenge that will need to be signed by the user Credentials.
143
- */
144
- static async createUserLoginChallenge(
145
- request: CreateUserLoginChallengeRequest,
146
- options: DfnsBaseApiOptions
147
- ): Promise<UserLoginChallengeResponse> {
148
- const response = await simpleFetch('/auth/login/init', {
149
- method: 'POST',
150
- body: request,
151
- apiOptions: options,
152
- })
153
-
154
- return response.json()
155
- }
156
-
157
- /**
158
- * Completes user login by sending the signed login challenge.
159
- */
160
- static async createUserLogin(
161
- request: CreateUserLoginRequest,
162
- options: DfnsBaseApiOptions
163
- ): Promise<UserLoginResponse> {
164
- const response = await simpleFetch('/auth/login', {
165
- method: 'POST',
166
- body: request,
167
- apiOptions: options,
168
- })
169
-
170
- return response.json()
171
- }
172
- /**
173
- * Completes user logout by sending the user auth token.
174
- */
175
- static async userLogout(
176
- options: DfnsBaseApiOptions
177
- ): Promise<void> {
178
- if (!options.authToken) {
179
- throw new Error('authToken is required')
180
- }
181
- const response = await simpleFetch('/auth/logout', {
182
- method: 'PUT',
183
- apiOptions: options,
184
- })
185
-
186
- return response.json()
187
- }
188
-
189
- /**
190
- * Initiates Registration by creating a challenge that will need to be signed by a new set of Credentials.
191
- */
192
- static async createUserRegistrationChallenge(
193
- request: CreateUserRegistrationChallengeRequest,
194
- options: DfnsBaseApiOptions
195
- ): Promise<UserRegistrationChallengeResponse> {
196
- const response = await simpleFetch('/auth/registration/init', {
197
- method: 'POST',
198
- body: request,
199
- apiOptions: options,
200
- })
201
-
202
- return response.json()
203
- }
204
-
205
- /**
206
- * Completes Registration by sending the signed registration challenge, containing the new Credential identity created.
207
- */
208
- static async createUserRegistration(
209
- request: CreateUserRegistrationRequest,
210
- options: DfnsBaseApiOptions
211
- ): Promise<UserRegistrationResponse> {
212
- const response = await simpleFetch('/auth/registration', {
213
- method: 'POST',
214
- body: request,
215
- apiOptions: options,
216
- })
217
-
218
- return response.json()
219
- }
220
-
221
- /**
222
- * Completes Recovery by sending the signed recovery challenge, containing the new Credential identity created.
223
- */
224
- async createUserRecovery(
225
- request: CreateUserRecoveryRequest,
226
- options: DfnsBaseApiOptions
227
- ): Promise<UserRecoveryResponse> {
228
- const response = await simpleFetch('/auth/recover/user', {
229
- method: 'POST',
230
- body: request,
231
- apiOptions: options,
232
- })
233
-
234
- return response.json()
235
- }
236
- }
@@ -1,137 +0,0 @@
1
- import { DfnsApiClientOptions } from '../../dfnsApiClient'
2
- import { simpleFetch, userActionFetch } from '../../utils/fetch'
3
- import { buildPathAndQuery } from '../../utils/url'
4
- import * as T from './types'
5
-
6
- export class AssetsClient {
7
- constructor(private apiOptions: DfnsApiClientOptions) {}
8
-
9
- async initiatePayment(
10
- request: T.InitiatePaymentRequest
11
- ): Promise<T.InitiatePaymentResponse> {
12
- const path = buildPathAndQuery(
13
- '/assets/asset-accounts/:assetAccountId/payments',
14
- {
15
- path: { assetAccountId: request.assetAccountId },
16
- query: {},
17
- }
18
- )
19
-
20
- const response = await userActionFetch(path, {
21
- method: 'POST',
22
- body: request.body,
23
- apiOptions: this.apiOptions,
24
- })
25
-
26
- return response.json()
27
- }
28
-
29
- async getPaymentById(
30
- request: T.GetPaymentByIdRequest
31
- ): Promise<T.GetPaymentByIdResponse> {
32
- const path = buildPathAndQuery(
33
- '/assets/asset-accounts/:assetAccountId/payments/:paymentId',
34
- {
35
- path: {
36
- assetAccountId: request.assetAccountId,
37
- paymentId: request.paymentId,
38
- },
39
- query: {},
40
- }
41
- )
42
-
43
- const response = await simpleFetch(path, {
44
- method: 'GET',
45
- apiOptions: this.apiOptions,
46
- })
47
-
48
- return response.json()
49
- }
50
-
51
- async listPayments(
52
- request: T.ListPaymentsRequest
53
- ): Promise<T.ListPaymentsResponse> {
54
- const path = buildPathAndQuery(
55
- '/assets/asset-accounts/:assetAccountId/payments',
56
- {
57
- path: { assetAccountId: request.assetAccountId },
58
- query: {},
59
- }
60
- )
61
-
62
- const response = await simpleFetch(path, {
63
- method: 'GET',
64
- apiOptions: this.apiOptions,
65
- })
66
-
67
- return response.json()
68
- }
69
-
70
- async createAssetAccount(
71
- request: T.CreateAssetAccountRequest
72
- ): Promise<T.CreateAssetAccountResponse> {
73
- const path = buildPathAndQuery('/assets/asset-accounts', {
74
- path: {},
75
- query: {},
76
- })
77
-
78
- const response = await userActionFetch(path, {
79
- method: 'POST',
80
- body: request.body,
81
- apiOptions: this.apiOptions,
82
- })
83
-
84
- return response.json()
85
- }
86
-
87
- async getAssetAccountById(
88
- request: T.GetAssetAccountByIdRequest
89
- ): Promise<T.GetAssetAccountByIdResponse> {
90
- const path = buildPathAndQuery('/assets/asset-accounts/:assetAccountId', {
91
- path: { assetAccountId: request.assetAccountId },
92
- query: {},
93
- })
94
-
95
- const response = await simpleFetch(path, {
96
- method: 'GET',
97
- apiOptions: this.apiOptions,
98
- })
99
-
100
- return response.json()
101
- }
102
-
103
- async listAssetAccounts(
104
- request: T.ListAssetAccountsRequest
105
- ): Promise<T.ListAssetAccountsResponse> {
106
- const path = buildPathAndQuery('/assets/asset-accounts', {
107
- path: {},
108
- query: request.query ?? {},
109
- })
110
-
111
- const response = await simpleFetch(path, {
112
- method: 'GET',
113
- apiOptions: this.apiOptions,
114
- })
115
-
116
- return response.json()
117
- }
118
-
119
- async getAssetAccountBalanceById(
120
- request: T.GetAssetAccountBalanceByIdRequest
121
- ): Promise<T.GetAssetAccountBalanceByIdResponse> {
122
- const path = buildPathAndQuery(
123
- '/assets/asset-accounts/:assetAccountId/balance',
124
- {
125
- path: { assetAccountId: request.assetAccountId },
126
- query: {},
127
- }
128
- )
129
-
130
- const response = await simpleFetch(path, {
131
- method: 'GET',
132
- apiOptions: this.apiOptions,
133
- })
134
-
135
- return response.json()
136
- }
137
- }