@cheqd/studio 3.0.0-develop.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 (654) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +246 -0
  3. package/dist/app.d.ts +4 -0
  4. package/dist/app.d.ts.map +1 -0
  5. package/dist/app.js +180 -0
  6. package/dist/app.js.map +1 -0
  7. package/dist/controllers/admin/api-key.d.ts +153 -0
  8. package/dist/controllers/admin/api-key.d.ts.map +1 -0
  9. package/dist/controllers/admin/api-key.js +389 -0
  10. package/dist/controllers/admin/api-key.js.map +1 -0
  11. package/dist/controllers/admin/organisation.d.ts +72 -0
  12. package/dist/controllers/admin/organisation.d.ts.map +1 -0
  13. package/dist/controllers/admin/organisation.js +139 -0
  14. package/dist/controllers/admin/organisation.js.map +1 -0
  15. package/dist/controllers/admin/prices.d.ts +37 -0
  16. package/dist/controllers/admin/prices.d.ts.map +1 -0
  17. package/dist/controllers/admin/prices.js +75 -0
  18. package/dist/controllers/admin/prices.js.map +1 -0
  19. package/dist/controllers/admin/product.d.ts +90 -0
  20. package/dist/controllers/admin/product.d.ts.map +1 -0
  21. package/dist/controllers/admin/product.js +187 -0
  22. package/dist/controllers/admin/product.js.map +1 -0
  23. package/dist/controllers/admin/subscriptions.d.ts +183 -0
  24. package/dist/controllers/admin/subscriptions.d.ts.map +1 -0
  25. package/dist/controllers/admin/subscriptions.js +512 -0
  26. package/dist/controllers/admin/subscriptions.js.map +1 -0
  27. package/dist/controllers/admin/webhook.d.ts +5 -0
  28. package/dist/controllers/admin/webhook.d.ts.map +1 -0
  29. package/dist/controllers/admin/webhook.js +90 -0
  30. package/dist/controllers/admin/webhook.js.map +1 -0
  31. package/dist/controllers/api/account.d.ts +84 -0
  32. package/dist/controllers/api/account.d.ts.map +1 -0
  33. package/dist/controllers/api/account.js +442 -0
  34. package/dist/controllers/api/account.js.map +1 -0
  35. package/dist/controllers/api/credential-status.d.ts +257 -0
  36. package/dist/controllers/api/credential-status.d.ts.map +1 -0
  37. package/dist/controllers/api/credential-status.js +1080 -0
  38. package/dist/controllers/api/credential-status.js.map +1 -0
  39. package/dist/controllers/api/credential.d.ts +207 -0
  40. package/dist/controllers/api/credential.d.ts.map +1 -0
  41. package/dist/controllers/api/credential.js +527 -0
  42. package/dist/controllers/api/credential.js.map +1 -0
  43. package/dist/controllers/api/did.d.ts +259 -0
  44. package/dist/controllers/api/did.d.ts.map +1 -0
  45. package/dist/controllers/api/did.js +673 -0
  46. package/dist/controllers/api/did.js.map +1 -0
  47. package/dist/controllers/api/key.d.ts +136 -0
  48. package/dist/controllers/api/key.d.ts.map +1 -0
  49. package/dist/controllers/api/key.js +268 -0
  50. package/dist/controllers/api/key.js.map +1 -0
  51. package/dist/controllers/api/presentation.d.ts +87 -0
  52. package/dist/controllers/api/presentation.d.ts.map +1 -0
  53. package/dist/controllers/api/presentation.js +264 -0
  54. package/dist/controllers/api/presentation.js.map +1 -0
  55. package/dist/controllers/api/resource.d.ts +118 -0
  56. package/dist/controllers/api/resource.d.ts.map +1 -0
  57. package/dist/controllers/api/resource.js +312 -0
  58. package/dist/controllers/api/resource.js.map +1 -0
  59. package/dist/controllers/validator/controller.d.ts +7 -0
  60. package/dist/controllers/validator/controller.d.ts.map +1 -0
  61. package/dist/controllers/validator/controller.js +31 -0
  62. package/dist/controllers/validator/controller.js.map +1 -0
  63. package/dist/controllers/validator/credential-status.d.ts +6 -0
  64. package/dist/controllers/validator/credential-status.d.ts.map +1 -0
  65. package/dist/controllers/validator/credential-status.js +36 -0
  66. package/dist/controllers/validator/credential-status.js.map +1 -0
  67. package/dist/controllers/validator/credential.d.ts +9 -0
  68. package/dist/controllers/validator/credential.d.ts.map +1 -0
  69. package/dist/controllers/validator/credential.js +103 -0
  70. package/dist/controllers/validator/credential.js.map +1 -0
  71. package/dist/controllers/validator/decorator.d.ts +2 -0
  72. package/dist/controllers/validator/decorator.d.ts.map +1 -0
  73. package/dist/controllers/validator/decorator.js +25 -0
  74. package/dist/controllers/validator/decorator.js.map +1 -0
  75. package/dist/controllers/validator/did-also-known-as.d.ts +8 -0
  76. package/dist/controllers/validator/did-also-known-as.d.ts.map +1 -0
  77. package/dist/controllers/validator/did-also-known-as.js +31 -0
  78. package/dist/controllers/validator/did-also-known-as.js.map +1 -0
  79. package/dist/controllers/validator/did-array.d.ts +7 -0
  80. package/dist/controllers/validator/did-array.d.ts.map +1 -0
  81. package/dist/controllers/validator/did-array.js +27 -0
  82. package/dist/controllers/validator/did-array.js.map +1 -0
  83. package/dist/controllers/validator/did-document-section-id.d.ts +7 -0
  84. package/dist/controllers/validator/did-document-section-id.d.ts.map +1 -0
  85. package/dist/controllers/validator/did-document-section-id.js +43 -0
  86. package/dist/controllers/validator/did-document-section-id.js.map +1 -0
  87. package/dist/controllers/validator/did-document.d.ts +11 -0
  88. package/dist/controllers/validator/did-document.d.ts.map +1 -0
  89. package/dist/controllers/validator/did-document.js +96 -0
  90. package/dist/controllers/validator/did-document.js.map +1 -0
  91. package/dist/controllers/validator/did-uri.d.ts +5 -0
  92. package/dist/controllers/validator/did-uri.d.ts.map +1 -0
  93. package/dist/controllers/validator/did-uri.js +14 -0
  94. package/dist/controllers/validator/did-uri.js.map +1 -0
  95. package/dist/controllers/validator/did.d.ts +35 -0
  96. package/dist/controllers/validator/did.d.ts.map +1 -0
  97. package/dist/controllers/validator/did.js +233 -0
  98. package/dist/controllers/validator/did.js.map +1 -0
  99. package/dist/controllers/validator/helpers.d.ts +7 -0
  100. package/dist/controllers/validator/helpers.d.ts.map +1 -0
  101. package/dist/controllers/validator/helpers.js +6 -0
  102. package/dist/controllers/validator/helpers.js.map +1 -0
  103. package/dist/controllers/validator/identifier.d.ts +20 -0
  104. package/dist/controllers/validator/identifier.d.ts.map +1 -0
  105. package/dist/controllers/validator/identifier.js +100 -0
  106. package/dist/controllers/validator/identifier.js.map +1 -0
  107. package/dist/controllers/validator/index.d.ts +42 -0
  108. package/dist/controllers/validator/index.d.ts.map +1 -0
  109. package/dist/controllers/validator/index.js +90 -0
  110. package/dist/controllers/validator/index.js.map +1 -0
  111. package/dist/controllers/validator/jsonld-proof.d.ts +5 -0
  112. package/dist/controllers/validator/jsonld-proof.d.ts.map +1 -0
  113. package/dist/controllers/validator/jsonld-proof.js +50 -0
  114. package/dist/controllers/validator/jsonld-proof.js.map +1 -0
  115. package/dist/controllers/validator/jwt-proof.d.ts +5 -0
  116. package/dist/controllers/validator/jwt-proof.d.ts.map +1 -0
  117. package/dist/controllers/validator/jwt-proof.js +45 -0
  118. package/dist/controllers/validator/jwt-proof.js.map +1 -0
  119. package/dist/controllers/validator/presentation.d.ts +9 -0
  120. package/dist/controllers/validator/presentation.d.ts.map +1 -0
  121. package/dist/controllers/validator/presentation.js +96 -0
  122. package/dist/controllers/validator/presentation.js.map +1 -0
  123. package/dist/controllers/validator/resource-also-known-as.d.ts +7 -0
  124. package/dist/controllers/validator/resource-also-known-as.d.ts.map +1 -0
  125. package/dist/controllers/validator/resource-also-known-as.js +47 -0
  126. package/dist/controllers/validator/resource-also-known-as.js.map +1 -0
  127. package/dist/controllers/validator/service-create-request.d.ts +10 -0
  128. package/dist/controllers/validator/service-create-request.d.ts.map +1 -0
  129. package/dist/controllers/validator/service-create-request.js +63 -0
  130. package/dist/controllers/validator/service-create-request.js.map +1 -0
  131. package/dist/controllers/validator/service.d.ts +11 -0
  132. package/dist/controllers/validator/service.d.ts.map +1 -0
  133. package/dist/controllers/validator/service.js +76 -0
  134. package/dist/controllers/validator/service.js.map +1 -0
  135. package/dist/controllers/validator/utils.d.ts +3 -0
  136. package/dist/controllers/validator/utils.d.ts.map +1 -0
  137. package/dist/controllers/validator/utils.js +21 -0
  138. package/dist/controllers/validator/utils.js.map +1 -0
  139. package/dist/controllers/validator/validator.d.ts +20 -0
  140. package/dist/controllers/validator/validator.d.ts.map +1 -0
  141. package/dist/controllers/validator/validator.js +2 -0
  142. package/dist/controllers/validator/validator.js.map +1 -0
  143. package/dist/controllers/validator/verification-method.d.ts +30 -0
  144. package/dist/controllers/validator/verification-method.d.ts.map +1 -0
  145. package/dist/controllers/validator/verification-method.js +211 -0
  146. package/dist/controllers/validator/verification-method.js.map +1 -0
  147. package/dist/database/connection/connection.d.ts +9 -0
  148. package/dist/database/connection/connection.d.ts.map +1 -0
  149. package/dist/database/connection/connection.js +27 -0
  150. package/dist/database/connection/connection.js.map +1 -0
  151. package/dist/database/entities/api.key.entity.d.ts +18 -0
  152. package/dist/database/entities/api.key.entity.d.ts.map +1 -0
  153. package/dist/database/entities/api.key.entity.js +102 -0
  154. package/dist/database/entities/api.key.entity.js.map +1 -0
  155. package/dist/database/entities/coin.entity.d.ts +11 -0
  156. package/dist/database/entities/coin.entity.d.ts.map +1 -0
  157. package/dist/database/entities/coin.entity.js +66 -0
  158. package/dist/database/entities/coin.entity.js.map +1 -0
  159. package/dist/database/entities/customer.entity.d.ts +14 -0
  160. package/dist/database/entities/customer.entity.d.ts.map +1 -0
  161. package/dist/database/entities/customer.entity.js +87 -0
  162. package/dist/database/entities/customer.entity.js.map +1 -0
  163. package/dist/database/entities/identifier.entity.d.ts +7 -0
  164. package/dist/database/entities/identifier.entity.d.ts.map +1 -0
  165. package/dist/database/entities/identifier.entity.js +26 -0
  166. package/dist/database/entities/identifier.entity.js.map +1 -0
  167. package/dist/database/entities/key.entity.d.ts +13 -0
  168. package/dist/database/entities/key.entity.d.ts.map +1 -0
  169. package/dist/database/entities/key.entity.js +63 -0
  170. package/dist/database/entities/key.entity.js.map +1 -0
  171. package/dist/database/entities/operation.entity.d.ts +17 -0
  172. package/dist/database/entities/operation.entity.d.ts.map +1 -0
  173. package/dist/database/entities/operation.entity.js +98 -0
  174. package/dist/database/entities/operation.entity.js.map +1 -0
  175. package/dist/database/entities/payment.account.entity.d.ts +16 -0
  176. package/dist/database/entities/payment.account.entity.d.ts.map +1 -0
  177. package/dist/database/entities/payment.account.entity.js +86 -0
  178. package/dist/database/entities/payment.account.entity.js.map +1 -0
  179. package/dist/database/entities/payment.entity.d.ts +20 -0
  180. package/dist/database/entities/payment.entity.d.ts.map +1 -0
  181. package/dist/database/entities/payment.entity.js +103 -0
  182. package/dist/database/entities/payment.entity.js.map +1 -0
  183. package/dist/database/entities/resource.entity.d.ts +21 -0
  184. package/dist/database/entities/resource.entity.d.ts.map +1 -0
  185. package/dist/database/entities/resource.entity.js +117 -0
  186. package/dist/database/entities/resource.entity.js.map +1 -0
  187. package/dist/database/entities/role.entity.d.ts +7 -0
  188. package/dist/database/entities/role.entity.d.ts.map +1 -0
  189. package/dist/database/entities/role.entity.js +60 -0
  190. package/dist/database/entities/role.entity.js.map +1 -0
  191. package/dist/database/entities/subscription.entity.d.ts +16 -0
  192. package/dist/database/entities/subscription.entity.d.ts.map +1 -0
  193. package/dist/database/entities/subscription.entity.js +102 -0
  194. package/dist/database/entities/subscription.entity.js.map +1 -0
  195. package/dist/database/entities/user.entity.d.ts +13 -0
  196. package/dist/database/entities/user.entity.d.ts.map +1 -0
  197. package/dist/database/entities/user.entity.js +67 -0
  198. package/dist/database/entities/user.entity.js.map +1 -0
  199. package/dist/database/migrations/AlterAPIKeyTable.d.ts +6 -0
  200. package/dist/database/migrations/AlterAPIKeyTable.d.ts.map +1 -0
  201. package/dist/database/migrations/AlterAPIKeyTable.js +51 -0
  202. package/dist/database/migrations/AlterAPIKeyTable.js.map +1 -0
  203. package/dist/database/migrations/AlterCustomerTable.d.ts +6 -0
  204. package/dist/database/migrations/AlterCustomerTable.d.ts.map +1 -0
  205. package/dist/database/migrations/AlterCustomerTable.js +15 -0
  206. package/dist/database/migrations/AlterCustomerTable.js.map +1 -0
  207. package/dist/database/migrations/AlterCustomerTableAddEmail.d.ts +6 -0
  208. package/dist/database/migrations/AlterCustomerTableAddEmail.d.ts.map +1 -0
  209. package/dist/database/migrations/AlterCustomerTableAddEmail.js +20 -0
  210. package/dist/database/migrations/AlterCustomerTableAddEmail.js.map +1 -0
  211. package/dist/database/migrations/AlterOperationTable.d.ts +6 -0
  212. package/dist/database/migrations/AlterOperationTable.d.ts.map +1 -0
  213. package/dist/database/migrations/AlterOperationTable.js +38 -0
  214. package/dist/database/migrations/AlterOperationTable.js.map +1 -0
  215. package/dist/database/migrations/AlterOperationTableAddCustomer.d.ts +6 -0
  216. package/dist/database/migrations/AlterOperationTableAddCustomer.d.ts.map +1 -0
  217. package/dist/database/migrations/AlterOperationTableAddCustomer.js +22 -0
  218. package/dist/database/migrations/AlterOperationTableAddCustomer.js.map +1 -0
  219. package/dist/database/migrations/AlterOperationTableNewCategory.d.ts +6 -0
  220. package/dist/database/migrations/AlterOperationTableNewCategory.d.ts.map +1 -0
  221. package/dist/database/migrations/AlterOperationTableNewCategory.js +17 -0
  222. package/dist/database/migrations/AlterOperationTableNewCategory.js.map +1 -0
  223. package/dist/database/migrations/AlterPaymentTable.d.ts +6 -0
  224. package/dist/database/migrations/AlterPaymentTable.d.ts.map +1 -0
  225. package/dist/database/migrations/AlterPaymentTable.js +61 -0
  226. package/dist/database/migrations/AlterPaymentTable.js.map +1 -0
  227. package/dist/database/migrations/AlterTableClaim.d.ts +6 -0
  228. package/dist/database/migrations/AlterTableClaim.d.ts.map +1 -0
  229. package/dist/database/migrations/AlterTableClaim.js +21 -0
  230. package/dist/database/migrations/AlterTableClaim.js.map +1 -0
  231. package/dist/database/migrations/AlterTableIdentifier.d.ts +6 -0
  232. package/dist/database/migrations/AlterTableIdentifier.d.ts.map +1 -0
  233. package/dist/database/migrations/AlterTableIdentifier.js +21 -0
  234. package/dist/database/migrations/AlterTableIdentifier.js.map +1 -0
  235. package/dist/database/migrations/AlterTableKey.d.ts +6 -0
  236. package/dist/database/migrations/AlterTableKey.d.ts.map +1 -0
  237. package/dist/database/migrations/AlterTableKey.js +36 -0
  238. package/dist/database/migrations/AlterTableKey.js.map +1 -0
  239. package/dist/database/migrations/CreateApiKeyMigration.d.ts +6 -0
  240. package/dist/database/migrations/CreateApiKeyMigration.d.ts.map +1 -0
  241. package/dist/database/migrations/CreateApiKeyMigration.js +40 -0
  242. package/dist/database/migrations/CreateApiKeyMigration.js.map +1 -0
  243. package/dist/database/migrations/CreateCoinTable.d.ts +6 -0
  244. package/dist/database/migrations/CreateCoinTable.d.ts.map +1 -0
  245. package/dist/database/migrations/CreateCoinTable.js +20 -0
  246. package/dist/database/migrations/CreateCoinTable.js.map +1 -0
  247. package/dist/database/migrations/CreateCustomerTable.d.ts +6 -0
  248. package/dist/database/migrations/CreateCustomerTable.d.ts.map +1 -0
  249. package/dist/database/migrations/CreateCustomerTable.js +24 -0
  250. package/dist/database/migrations/CreateCustomerTable.js.map +1 -0
  251. package/dist/database/migrations/CreateCustomersTable.d.ts +6 -0
  252. package/dist/database/migrations/CreateCustomersTable.d.ts.map +1 -0
  253. package/dist/database/migrations/CreateCustomersTable.js +21 -0
  254. package/dist/database/migrations/CreateCustomersTable.js.map +1 -0
  255. package/dist/database/migrations/CreateOperationTable.d.ts +6 -0
  256. package/dist/database/migrations/CreateOperationTable.d.ts.map +1 -0
  257. package/dist/database/migrations/CreateOperationTable.js +28 -0
  258. package/dist/database/migrations/CreateOperationTable.js.map +1 -0
  259. package/dist/database/migrations/CreatePaymentAccountTable.d.ts +6 -0
  260. package/dist/database/migrations/CreatePaymentAccountTable.d.ts.map +1 -0
  261. package/dist/database/migrations/CreatePaymentAccountTable.js +35 -0
  262. package/dist/database/migrations/CreatePaymentAccountTable.js.map +1 -0
  263. package/dist/database/migrations/CreatePaymentTable.d.ts +6 -0
  264. package/dist/database/migrations/CreatePaymentTable.d.ts.map +1 -0
  265. package/dist/database/migrations/CreatePaymentTable.js +55 -0
  266. package/dist/database/migrations/CreatePaymentTable.js.map +1 -0
  267. package/dist/database/migrations/CreateResourceTable.d.ts +6 -0
  268. package/dist/database/migrations/CreateResourceTable.d.ts.map +1 -0
  269. package/dist/database/migrations/CreateResourceTable.js +46 -0
  270. package/dist/database/migrations/CreateResourceTable.js.map +1 -0
  271. package/dist/database/migrations/CreateRoleTable.d.ts +6 -0
  272. package/dist/database/migrations/CreateRoleTable.d.ts.map +1 -0
  273. package/dist/database/migrations/CreateRoleTable.js +25 -0
  274. package/dist/database/migrations/CreateRoleTable.js.map +1 -0
  275. package/dist/database/migrations/CreateSubscriptionTable.d.ts +6 -0
  276. package/dist/database/migrations/CreateSubscriptionTable.d.ts.map +1 -0
  277. package/dist/database/migrations/CreateSubscriptionTable.js +30 -0
  278. package/dist/database/migrations/CreateSubscriptionTable.js.map +1 -0
  279. package/dist/database/migrations/CreateUserTable.d.ts +6 -0
  280. package/dist/database/migrations/CreateUserTable.d.ts.map +1 -0
  281. package/dist/database/migrations/CreateUserTable.js +32 -0
  282. package/dist/database/migrations/CreateUserTable.js.map +1 -0
  283. package/dist/database/migrations/MigrateData.d.ts +7 -0
  284. package/dist/database/migrations/MigrateData.d.ts.map +1 -0
  285. package/dist/database/migrations/MigrateData.js +138 -0
  286. package/dist/database/migrations/MigrateData.js.map +1 -0
  287. package/dist/database/ormconfig.d.ts +2 -0
  288. package/dist/database/ormconfig.d.ts.map +1 -0
  289. package/dist/database/ormconfig.js +3 -0
  290. package/dist/database/ormconfig.js.map +1 -0
  291. package/dist/database/types/enum.d.ts +21 -0
  292. package/dist/database/types/enum.d.ts.map +1 -0
  293. package/dist/database/types/enum.js +35 -0
  294. package/dist/database/types/enum.js.map +1 -0
  295. package/dist/database/types/types.d.ts +11 -0
  296. package/dist/database/types/types.d.ts.map +1 -0
  297. package/dist/database/types/types.js +127 -0
  298. package/dist/database/types/types.js.map +1 -0
  299. package/dist/helpers/faucet.d.ts +5 -0
  300. package/dist/helpers/faucet.d.ts.map +1 -0
  301. package/dist/helpers/faucet.js +24 -0
  302. package/dist/helpers/faucet.js.map +1 -0
  303. package/dist/helpers/fee-analyzer.d.ts +8 -0
  304. package/dist/helpers/fee-analyzer.d.ts.map +1 -0
  305. package/dist/helpers/fee-analyzer.js +73 -0
  306. package/dist/helpers/fee-analyzer.js.map +1 -0
  307. package/dist/helpers/helpers.d.ts +28 -0
  308. package/dist/helpers/helpers.d.ts.map +1 -0
  309. package/dist/helpers/helpers.js +167 -0
  310. package/dist/helpers/helpers.js.map +1 -0
  311. package/dist/index.d.ts +2 -0
  312. package/dist/index.d.ts.map +1 -0
  313. package/dist/index.js +28 -0
  314. package/dist/index.js.map +1 -0
  315. package/dist/middleware/auth/auth-gaurd.d.ts +51 -0
  316. package/dist/middleware/auth/auth-gaurd.d.ts.map +1 -0
  317. package/dist/middleware/auth/auth-gaurd.js +117 -0
  318. package/dist/middleware/auth/auth-gaurd.js.map +1 -0
  319. package/dist/middleware/auth/logto-helper.d.ts +44 -0
  320. package/dist/middleware/auth/logto-helper.d.ts.map +1 -0
  321. package/dist/middleware/auth/logto-helper.js +438 -0
  322. package/dist/middleware/auth/logto-helper.js.map +1 -0
  323. package/dist/middleware/auth/oauth/abstract.d.ts +22 -0
  324. package/dist/middleware/auth/oauth/abstract.d.ts.map +1 -0
  325. package/dist/middleware/auth/oauth/abstract.js +24 -0
  326. package/dist/middleware/auth/oauth/abstract.js.map +1 -0
  327. package/dist/middleware/auth/oauth/logto-provider.d.ts +15 -0
  328. package/dist/middleware/auth/oauth/logto-provider.d.ts.map +1 -0
  329. package/dist/middleware/auth/oauth/logto-provider.js +42 -0
  330. package/dist/middleware/auth/oauth/logto-provider.js.map +1 -0
  331. package/dist/middleware/auth/routes/admin/admin-auth.d.ts +8 -0
  332. package/dist/middleware/auth/routes/admin/admin-auth.d.ts.map +1 -0
  333. package/dist/middleware/auth/routes/admin/admin-auth.js +44 -0
  334. package/dist/middleware/auth/routes/admin/admin-auth.js.map +1 -0
  335. package/dist/middleware/auth/routes/api/account-auth.d.ts +5 -0
  336. package/dist/middleware/auth/routes/api/account-auth.d.ts.map +1 -0
  337. package/dist/middleware/auth/routes/api/account-auth.js +9 -0
  338. package/dist/middleware/auth/routes/api/account-auth.js.map +1 -0
  339. package/dist/middleware/auth/routes/api/auth-user-info.d.ts +5 -0
  340. package/dist/middleware/auth/routes/api/auth-user-info.d.ts.map +1 -0
  341. package/dist/middleware/auth/routes/api/auth-user-info.js +8 -0
  342. package/dist/middleware/auth/routes/api/auth-user-info.js.map +1 -0
  343. package/dist/middleware/auth/routes/api/credential-auth.d.ts +5 -0
  344. package/dist/middleware/auth/routes/api/credential-auth.d.ts.map +1 -0
  345. package/dist/middleware/auth/routes/api/credential-auth.js +17 -0
  346. package/dist/middleware/auth/routes/api/credential-auth.js.map +1 -0
  347. package/dist/middleware/auth/routes/api/credential-status-auth.d.ts +5 -0
  348. package/dist/middleware/auth/routes/api/credential-status-auth.d.ts.map +1 -0
  349. package/dist/middleware/auth/routes/api/credential-status-auth.js +20 -0
  350. package/dist/middleware/auth/routes/api/credential-status-auth.js.map +1 -0
  351. package/dist/middleware/auth/routes/api/did-auth.d.ts +5 -0
  352. package/dist/middleware/auth/routes/api/did-auth.d.ts.map +1 -0
  353. package/dist/middleware/auth/routes/api/did-auth.js +19 -0
  354. package/dist/middleware/auth/routes/api/did-auth.js.map +1 -0
  355. package/dist/middleware/auth/routes/api/key-auth.d.ts +5 -0
  356. package/dist/middleware/auth/routes/api/key-auth.d.ts.map +1 -0
  357. package/dist/middleware/auth/routes/api/key-auth.js +11 -0
  358. package/dist/middleware/auth/routes/api/key-auth.js.map +1 -0
  359. package/dist/middleware/auth/routes/api/presentation-auth.d.ts +5 -0
  360. package/dist/middleware/auth/routes/api/presentation-auth.d.ts.map +1 -0
  361. package/dist/middleware/auth/routes/api/presentation-auth.js +10 -0
  362. package/dist/middleware/auth/routes/api/presentation-auth.js.map +1 -0
  363. package/dist/middleware/auth/routes/api/resource-auth.d.ts +5 -0
  364. package/dist/middleware/auth/routes/api/resource-auth.d.ts.map +1 -0
  365. package/dist/middleware/auth/routes/api/resource-auth.js +11 -0
  366. package/dist/middleware/auth/routes/api/resource-auth.js.map +1 -0
  367. package/dist/middleware/auth/routes/auth-rule-provider.d.ts +33 -0
  368. package/dist/middleware/auth/routes/auth-rule-provider.d.ts.map +1 -0
  369. package/dist/middleware/auth/routes/auth-rule-provider.js +39 -0
  370. package/dist/middleware/auth/routes/auth-rule-provider.js.map +1 -0
  371. package/dist/middleware/auth/routes/auth-rule-repository.d.ts +21 -0
  372. package/dist/middleware/auth/routes/auth-rule-repository.d.ts.map +1 -0
  373. package/dist/middleware/auth/routes/auth-rule-repository.js +28 -0
  374. package/dist/middleware/auth/routes/auth-rule-repository.js.map +1 -0
  375. package/dist/middleware/auth/user-info-fetcher/api-token.d.ts +17 -0
  376. package/dist/middleware/auth/user-info-fetcher/api-token.d.ts.map +1 -0
  377. package/dist/middleware/auth/user-info-fetcher/api-token.js +60 -0
  378. package/dist/middleware/auth/user-info-fetcher/api-token.js.map +1 -0
  379. package/dist/middleware/auth/user-info-fetcher/base.d.ts +14 -0
  380. package/dist/middleware/auth/user-info-fetcher/base.d.ts.map +1 -0
  381. package/dist/middleware/auth/user-info-fetcher/base.js +38 -0
  382. package/dist/middleware/auth/user-info-fetcher/base.js.map +1 -0
  383. package/dist/middleware/auth/user-info-fetcher/idtoken.d.ts +18 -0
  384. package/dist/middleware/auth/user-info-fetcher/idtoken.d.ts.map +1 -0
  385. package/dist/middleware/auth/user-info-fetcher/idtoken.js +56 -0
  386. package/dist/middleware/auth/user-info-fetcher/idtoken.js.map +1 -0
  387. package/dist/middleware/auth/user-info-fetcher/m2m-creds-token.d.ts +18 -0
  388. package/dist/middleware/auth/user-info-fetcher/m2m-creds-token.d.ts.map +1 -0
  389. package/dist/middleware/auth/user-info-fetcher/m2m-creds-token.js +52 -0
  390. package/dist/middleware/auth/user-info-fetcher/m2m-creds-token.js.map +1 -0
  391. package/dist/middleware/auth/user-info-fetcher/portal-token.d.ts +20 -0
  392. package/dist/middleware/auth/user-info-fetcher/portal-token.d.ts.map +1 -0
  393. package/dist/middleware/auth/user-info-fetcher/portal-token.js +79 -0
  394. package/dist/middleware/auth/user-info-fetcher/portal-token.js.map +1 -0
  395. package/dist/middleware/auth/user-info-fetcher/swagger-ui.d.ts +16 -0
  396. package/dist/middleware/auth/user-info-fetcher/swagger-ui.d.ts.map +1 -0
  397. package/dist/middleware/auth/user-info-fetcher/swagger-ui.js +48 -0
  398. package/dist/middleware/auth/user-info-fetcher/swagger-ui.js.map +1 -0
  399. package/dist/middleware/authentication.d.ts +15 -0
  400. package/dist/middleware/authentication.d.ts.map +1 -0
  401. package/dist/middleware/authentication.js +110 -0
  402. package/dist/middleware/authentication.js.map +1 -0
  403. package/dist/middleware/event-tracker.d.ts +5 -0
  404. package/dist/middleware/event-tracker.d.ts.map +1 -0
  405. package/dist/middleware/event-tracker.js +34 -0
  406. package/dist/middleware/event-tracker.js.map +1 -0
  407. package/dist/middleware/hook.d.ts +9 -0
  408. package/dist/middleware/hook.d.ts.map +1 -0
  409. package/dist/middleware/hook.js +24 -0
  410. package/dist/middleware/hook.js.map +1 -0
  411. package/dist/middleware/middleware.d.ts +6 -0
  412. package/dist/middleware/middleware.d.ts.map +1 -0
  413. package/dist/middleware/middleware.js +36 -0
  414. package/dist/middleware/middleware.js.map +1 -0
  415. package/dist/services/admin/api-key.d.ts +30 -0
  416. package/dist/services/admin/api-key.d.ts.map +1 -0
  417. package/dist/services/admin/api-key.js +135 -0
  418. package/dist/services/admin/api-key.js.map +1 -0
  419. package/dist/services/admin/stripe.d.ts +18 -0
  420. package/dist/services/admin/stripe.d.ts.map +1 -0
  421. package/dist/services/admin/stripe.js +125 -0
  422. package/dist/services/admin/stripe.js.map +1 -0
  423. package/dist/services/admin/subscription.d.ts +16 -0
  424. package/dist/services/admin/subscription.d.ts.map +1 -0
  425. package/dist/services/admin/subscription.js +75 -0
  426. package/dist/services/admin/subscription.js.map +1 -0
  427. package/dist/services/api/coin.d.ts +13 -0
  428. package/dist/services/api/coin.d.ts.map +1 -0
  429. package/dist/services/api/coin.js +49 -0
  430. package/dist/services/api/coin.js.map +1 -0
  431. package/dist/services/api/credentials.d.ts +8 -0
  432. package/dist/services/api/credentials.d.ts.map +1 -0
  433. package/dist/services/api/credentials.js +38 -0
  434. package/dist/services/api/credentials.js.map +1 -0
  435. package/dist/services/api/customer.d.ts +19 -0
  436. package/dist/services/api/customer.d.ts.map +1 -0
  437. package/dist/services/api/customer.js +88 -0
  438. package/dist/services/api/customer.js.map +1 -0
  439. package/dist/services/api/identifier.d.ts +12 -0
  440. package/dist/services/api/identifier.d.ts.map +1 -0
  441. package/dist/services/api/identifier.js +38 -0
  442. package/dist/services/api/identifier.js.map +1 -0
  443. package/dist/services/api/key.d.ts +14 -0
  444. package/dist/services/api/key.d.ts.map +1 -0
  445. package/dist/services/api/key.js +49 -0
  446. package/dist/services/api/key.js.map +1 -0
  447. package/dist/services/api/operation.d.ts +14 -0
  448. package/dist/services/api/operation.d.ts.map +1 -0
  449. package/dist/services/api/operation.js +61 -0
  450. package/dist/services/api/operation.js.map +1 -0
  451. package/dist/services/api/payment-account.d.ts +14 -0
  452. package/dist/services/api/payment-account.d.ts.map +1 -0
  453. package/dist/services/api/payment-account.js +68 -0
  454. package/dist/services/api/payment-account.js.map +1 -0
  455. package/dist/services/api/payment.d.ts +17 -0
  456. package/dist/services/api/payment.d.ts.map +1 -0
  457. package/dist/services/api/payment.js +68 -0
  458. package/dist/services/api/payment.js.map +1 -0
  459. package/dist/services/api/resource.d.ts +17 -0
  460. package/dist/services/api/resource.d.ts.map +1 -0
  461. package/dist/services/api/resource.js +65 -0
  462. package/dist/services/api/resource.js.map +1 -0
  463. package/dist/services/api/role.d.ts +14 -0
  464. package/dist/services/api/role.d.ts.map +1 -0
  465. package/dist/services/api/role.js +53 -0
  466. package/dist/services/api/role.js.map +1 -0
  467. package/dist/services/api/store.d.ts +8 -0
  468. package/dist/services/api/store.d.ts.map +1 -0
  469. package/dist/services/api/store.js +18 -0
  470. package/dist/services/api/store.js.map +1 -0
  471. package/dist/services/api/user.d.ts +15 -0
  472. package/dist/services/api/user.d.ts.map +1 -0
  473. package/dist/services/api/user.js +54 -0
  474. package/dist/services/api/user.js.map +1 -0
  475. package/dist/services/connectors/verida.d.ts +40 -0
  476. package/dist/services/connectors/verida.d.ts.map +1 -0
  477. package/dist/services/connectors/verida.js +110 -0
  478. package/dist/services/connectors/verida.js.map +1 -0
  479. package/dist/services/helpers.d.ts +10 -0
  480. package/dist/services/helpers.d.ts.map +1 -0
  481. package/dist/services/helpers.js +44 -0
  482. package/dist/services/helpers.js.map +1 -0
  483. package/dist/services/identity/abstract.d.ts +51 -0
  484. package/dist/services/identity/abstract.d.ts.map +1 -0
  485. package/dist/services/identity/abstract.js +101 -0
  486. package/dist/services/identity/abstract.js.map +1 -0
  487. package/dist/services/identity/agent.d.ts +43 -0
  488. package/dist/services/identity/agent.d.ts.map +1 -0
  489. package/dist/services/identity/agent.js +625 -0
  490. package/dist/services/identity/agent.js.map +1 -0
  491. package/dist/services/identity/default.d.ts +19 -0
  492. package/dist/services/identity/default.d.ts.map +1 -0
  493. package/dist/services/identity/default.js +26 -0
  494. package/dist/services/identity/default.js.map +1 -0
  495. package/dist/services/identity/index.d.ts +59 -0
  496. package/dist/services/identity/index.d.ts.map +1 -0
  497. package/dist/services/identity/index.js +31 -0
  498. package/dist/services/identity/index.js.map +1 -0
  499. package/dist/services/identity/local.d.ts +33 -0
  500. package/dist/services/identity/local.d.ts.map +1 -0
  501. package/dist/services/identity/local.js +156 -0
  502. package/dist/services/identity/local.js.map +1 -0
  503. package/dist/services/identity/postgres.d.ts +59 -0
  504. package/dist/services/identity/postgres.d.ts.map +1 -0
  505. package/dist/services/identity/postgres.js +388 -0
  506. package/dist/services/identity/postgres.js.map +1 -0
  507. package/dist/services/identity/unauthorized.d.ts +6 -0
  508. package/dist/services/identity/unauthorized.d.ts.map +1 -0
  509. package/dist/services/identity/unauthorized.js +49 -0
  510. package/dist/services/identity/unauthorized.js.map +1 -0
  511. package/dist/services/track/admin/account-submitter.d.ts +11 -0
  512. package/dist/services/track/admin/account-submitter.d.ts.map +1 -0
  513. package/dist/services/track/admin/account-submitter.js +54 -0
  514. package/dist/services/track/admin/account-submitter.js.map +1 -0
  515. package/dist/services/track/admin/subscription-submitter.d.ts +13 -0
  516. package/dist/services/track/admin/subscription-submitter.d.ts.map +1 -0
  517. package/dist/services/track/admin/subscription-submitter.js +106 -0
  518. package/dist/services/track/admin/subscription-submitter.js.map +1 -0
  519. package/dist/services/track/api/credential-status-subscriber.d.ts +10 -0
  520. package/dist/services/track/api/credential-status-subscriber.d.ts.map +1 -0
  521. package/dist/services/track/api/credential-status-subscriber.js +35 -0
  522. package/dist/services/track/api/credential-status-subscriber.js.map +1 -0
  523. package/dist/services/track/api/credential-subscriber.d.ts +10 -0
  524. package/dist/services/track/api/credential-subscriber.d.ts.map +1 -0
  525. package/dist/services/track/api/credential-subscriber.js +35 -0
  526. package/dist/services/track/api/credential-subscriber.js.map +1 -0
  527. package/dist/services/track/api/did-subscriber.d.ts +10 -0
  528. package/dist/services/track/api/did-subscriber.d.ts.map +1 -0
  529. package/dist/services/track/api/did-subscriber.js +33 -0
  530. package/dist/services/track/api/did-subscriber.js.map +1 -0
  531. package/dist/services/track/api/key-subscriber.d.ts +10 -0
  532. package/dist/services/track/api/key-subscriber.d.ts.map +1 -0
  533. package/dist/services/track/api/key-subscriber.js +35 -0
  534. package/dist/services/track/api/key-subscriber.js.map +1 -0
  535. package/dist/services/track/api/presentation-subscriber.d.ts +10 -0
  536. package/dist/services/track/api/presentation-subscriber.d.ts.map +1 -0
  537. package/dist/services/track/api/presentation-subscriber.js +35 -0
  538. package/dist/services/track/api/presentation-subscriber.js.map +1 -0
  539. package/dist/services/track/api/resource-subscriber.d.ts +11 -0
  540. package/dist/services/track/api/resource-subscriber.d.ts.map +1 -0
  541. package/dist/services/track/api/resource-subscriber.js +107 -0
  542. package/dist/services/track/api/resource-subscriber.js.map +1 -0
  543. package/dist/services/track/base.d.ts +10 -0
  544. package/dist/services/track/base.d.ts.map +1 -0
  545. package/dist/services/track/base.js +26 -0
  546. package/dist/services/track/base.js.map +1 -0
  547. package/dist/services/track/helpers.d.ts +23 -0
  548. package/dist/services/track/helpers.d.ts.map +1 -0
  549. package/dist/services/track/helpers.js +35 -0
  550. package/dist/services/track/helpers.js.map +1 -0
  551. package/dist/services/track/notifiers.d.ts +12 -0
  552. package/dist/services/track/notifiers.d.ts.map +1 -0
  553. package/dist/services/track/notifiers.js +39 -0
  554. package/dist/services/track/notifiers.js.map +1 -0
  555. package/dist/services/track/observer.d.ts +14 -0
  556. package/dist/services/track/observer.d.ts.map +1 -0
  557. package/dist/services/track/observer.js +43 -0
  558. package/dist/services/track/observer.js.map +1 -0
  559. package/dist/services/track/operation-subscriber.d.ts +14 -0
  560. package/dist/services/track/operation-subscriber.d.ts.map +1 -0
  561. package/dist/services/track/operation-subscriber.js +112 -0
  562. package/dist/services/track/operation-subscriber.js.map +1 -0
  563. package/dist/services/track/submitter.d.ts +22 -0
  564. package/dist/services/track/submitter.d.ts.map +1 -0
  565. package/dist/services/track/submitter.js +2 -0
  566. package/dist/services/track/submitter.js.map +1 -0
  567. package/dist/services/track/tracker.d.ts +24 -0
  568. package/dist/services/track/tracker.d.ts.map +1 -0
  569. package/dist/services/track/tracker.js +79 -0
  570. package/dist/services/track/tracker.js.map +1 -0
  571. package/dist/services/track/types.d.ts +16 -0
  572. package/dist/services/track/types.d.ts.map +1 -0
  573. package/dist/services/track/types.js +2 -0
  574. package/dist/services/track/types.js.map +1 -0
  575. package/dist/services/w3c-credential.d.ts +32 -0
  576. package/dist/services/w3c-credential.d.ts.map +1 -0
  577. package/dist/services/w3c-credential.js +120 -0
  578. package/dist/services/w3c-credential.js.map +1 -0
  579. package/dist/services/w3c-presentation.d.ts +30 -0
  580. package/dist/services/w3c-presentation.d.ts.map +1 -0
  581. package/dist/services/w3c-presentation.js +95 -0
  582. package/dist/services/w3c-presentation.js.map +1 -0
  583. package/dist/static/custom-button.d.ts +2 -0
  584. package/dist/static/custom-button.d.ts.map +1 -0
  585. package/dist/static/custom-button.js +35 -0
  586. package/dist/static/custom-button.js.map +1 -0
  587. package/dist/static/swagger-admin.json +1191 -0
  588. package/dist/static/swagger-api.json +3564 -0
  589. package/dist/types/admin.d.ts +122 -0
  590. package/dist/types/admin.d.ts.map +1 -0
  591. package/dist/types/admin.js +2 -0
  592. package/dist/types/admin.js.map +1 -0
  593. package/dist/types/authentication.d.ts +30 -0
  594. package/dist/types/authentication.d.ts.map +1 -0
  595. package/dist/types/authentication.js +131 -0
  596. package/dist/types/authentication.js.map +1 -0
  597. package/dist/types/constants.d.ts +98 -0
  598. package/dist/types/constants.d.ts.map +1 -0
  599. package/dist/types/constants.js +138 -0
  600. package/dist/types/constants.js.map +1 -0
  601. package/dist/types/credential-status.d.ts +168 -0
  602. package/dist/types/credential-status.d.ts.map +1 -0
  603. package/dist/types/credential-status.js +12 -0
  604. package/dist/types/credential-status.js.map +1 -0
  605. package/dist/types/credential.d.ts +55 -0
  606. package/dist/types/credential.d.ts.map +1 -0
  607. package/dist/types/credential.js +2 -0
  608. package/dist/types/credential.js.map +1 -0
  609. package/dist/types/customer.d.ts +18 -0
  610. package/dist/types/customer.d.ts.map +1 -0
  611. package/dist/types/customer.js +2 -0
  612. package/dist/types/customer.js.map +1 -0
  613. package/dist/types/did.d.ts +56 -0
  614. package/dist/types/did.d.ts.map +1 -0
  615. package/dist/types/did.js +2 -0
  616. package/dist/types/did.js.map +1 -0
  617. package/dist/types/key.d.ts +23 -0
  618. package/dist/types/key.d.ts.map +1 -0
  619. package/dist/types/key.js +2 -0
  620. package/dist/types/key.js.map +1 -0
  621. package/dist/types/presentation.d.ts +19 -0
  622. package/dist/types/presentation.d.ts.map +1 -0
  623. package/dist/types/presentation.js +2 -0
  624. package/dist/types/presentation.js.map +1 -0
  625. package/dist/types/resource.d.ts +26 -0
  626. package/dist/types/resource.d.ts.map +1 -0
  627. package/dist/types/resource.js +2 -0
  628. package/dist/types/resource.js.map +1 -0
  629. package/dist/types/shared.d.ts +51 -0
  630. package/dist/types/shared.d.ts.map +1 -0
  631. package/dist/types/shared.js +24 -0
  632. package/dist/types/shared.js.map +1 -0
  633. package/dist/types/swagger-admin-types.d.ts +352 -0
  634. package/dist/types/swagger-admin-types.d.ts.map +1 -0
  635. package/dist/types/swagger-admin-types.js +353 -0
  636. package/dist/types/swagger-admin-types.js.map +1 -0
  637. package/dist/types/swagger-api-types.d.ts +1312 -0
  638. package/dist/types/swagger-api-types.d.ts.map +1 -0
  639. package/dist/types/swagger-api-types.js +1313 -0
  640. package/dist/types/swagger-api-types.js.map +1 -0
  641. package/dist/types/track.d.ts +72 -0
  642. package/dist/types/track.d.ts.map +1 -0
  643. package/dist/types/track.js +37 -0
  644. package/dist/types/track.js.map +1 -0
  645. package/dist/types/validation.d.ts +23 -0
  646. package/dist/types/validation.d.ts.map +1 -0
  647. package/dist/types/validation.js +2 -0
  648. package/dist/types/validation.js.map +1 -0
  649. package/dist/types/verida.d.ts +23 -0
  650. package/dist/types/verida.d.ts.map +1 -0
  651. package/dist/types/verida.js +2 -0
  652. package/dist/types/verida.js.map +1 -0
  653. package/example.env +43 -0
  654. package/package.json +156 -0
@@ -0,0 +1,1191 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "cheqd Studio admin API for cheqd network",
5
+ "version": "2.0.0",
6
+ "description": "Admin API which handles users subscriptions and payments",
7
+ "contact": {
8
+ "name": "Cheqd Foundation Limited",
9
+ "url": "https://github.com/cheqd/studio",
10
+ "email": "support-github@cheqd.io"
11
+ },
12
+ "license": {
13
+ "name": "Apache 2.0",
14
+ "url": "https://github.com/cheqd/studio/blob/main/LICENSE"
15
+ }
16
+ },
17
+ "tags": [
18
+ {
19
+ "name": "Product"
20
+ },
21
+ {
22
+ "name": "Price"
23
+ },
24
+ {
25
+ "name": "Subscription"
26
+ },
27
+ {
28
+ "name": "API Key"
29
+ }
30
+ ],
31
+ "paths": {
32
+ "/admin/api-key/create": {
33
+ "post": {
34
+ "summary": "Create a new API key",
35
+ "description": "Create a new API key",
36
+ "tags": [
37
+ "API Key"
38
+ ],
39
+ "requestBody": {
40
+ "content": {
41
+ "application/json": {
42
+ "schema": {
43
+ "$ref": "#/components/schemas/APIKeyCreateRequestBody"
44
+ }
45
+ }
46
+ }
47
+ },
48
+ "responses": {
49
+ "201": {
50
+ "description": "A new API key has been created",
51
+ "content": {
52
+ "application/json": {
53
+ "schema": {
54
+ "$ref": "#/components/schemas/APIKeyCreateResponseBody"
55
+ }
56
+ }
57
+ }
58
+ },
59
+ "400": {
60
+ "$ref": "#/components/schemas/APIKeyCreateUnsuccessfulResponseBody"
61
+ },
62
+ "401": {
63
+ "$ref": "#/components/schemas/UnauthorizedError"
64
+ },
65
+ "500": {
66
+ "$ref": "#/components/schemas/InternalError"
67
+ }
68
+ }
69
+ }
70
+ },
71
+ "/admin/api-key/update": {
72
+ "post": {
73
+ "summary": "Update an existing API key",
74
+ "description": "Update an existing API key",
75
+ "tags": [
76
+ "API Key"
77
+ ],
78
+ "requestBody": {
79
+ "content": {
80
+ "application/json": {
81
+ "schema": {
82
+ "$ref": "#/components/schemas/APIKeyUpdateRequestBody"
83
+ }
84
+ }
85
+ }
86
+ },
87
+ "responses": {
88
+ "200": {
89
+ "description": "The API key has been updated",
90
+ "content": {
91
+ "application/json": {
92
+ "schema": {
93
+ "$ref": "#/components/schemas/APIKeyUpdateResponseBody"
94
+ }
95
+ }
96
+ }
97
+ },
98
+ "400": {
99
+ "$ref": "#/components/schemas/APIKeyUpdateUnsuccessfulResponseBody"
100
+ },
101
+ "401": {
102
+ "$ref": "#/components/schemas/UnauthorizedError"
103
+ },
104
+ "500": {
105
+ "$ref": "#/components/schemas/InternalError"
106
+ }
107
+ }
108
+ }
109
+ },
110
+ "/admin/api-key/revoke": {
111
+ "delete": {
112
+ "summary": "Revoke an existing API key",
113
+ "description": "Revoke an existing API key",
114
+ "tags": [
115
+ "API Key"
116
+ ],
117
+ "requestBody": {
118
+ "content": {
119
+ "application/json": {
120
+ "schema": {
121
+ "$ref": "#/components/schemas/APIKeyRevokeRequestBody"
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "responses": {
127
+ "200": {
128
+ "description": "The API key has been revoked",
129
+ "content": {
130
+ "application/json": {
131
+ "schema": {
132
+ "$ref": "#/components/schemas/APIKeyRevokeResponseBody"
133
+ }
134
+ }
135
+ }
136
+ },
137
+ "400": {
138
+ "$ref": "#/components/schemas/APIKeyRevokeUnsuccessfulResponseBody"
139
+ },
140
+ "401": {
141
+ "$ref": "#/components/schemas/UnauthorizedError"
142
+ },
143
+ "500": {
144
+ "$ref": "#/components/schemas/InternalError"
145
+ }
146
+ }
147
+ }
148
+ },
149
+ "/admin/api-key/list": {
150
+ "get": {
151
+ "summary": "List all API keys",
152
+ "description": "List all API keys",
153
+ "tags": [
154
+ "API Key"
155
+ ],
156
+ "responses": {
157
+ "200": {
158
+ "description": "A list of API keys",
159
+ "content": {
160
+ "application/json": {
161
+ "schema": {
162
+ "$ref": "#/components/schemas/APIKeyListResponseBody"
163
+ }
164
+ }
165
+ }
166
+ },
167
+ "400": {
168
+ "$ref": "#/components/schemas/InvalidRequest"
169
+ },
170
+ "401": {
171
+ "$ref": "#/components/schemas/UnauthorizedError"
172
+ },
173
+ "404": {
174
+ "$ref": "#/components/schemas/NotFoundError"
175
+ },
176
+ "500": {
177
+ "$ref": "#/components/schemas/InternalError"
178
+ }
179
+ }
180
+ }
181
+ },
182
+ "/admin/api-key/get": {
183
+ "get": {
184
+ "summary": "Get an API key",
185
+ "description": "Get an API key. If the API key is not provided, the latest not revoked API key it returns.",
186
+ "tags": [
187
+ "API Key"
188
+ ],
189
+ "parameters": [
190
+ {
191
+ "name": "apiKey",
192
+ "in": "query",
193
+ "required": false,
194
+ "schema": {
195
+ "type": "string"
196
+ }
197
+ }
198
+ ],
199
+ "responses": {
200
+ "200": {
201
+ "description": "The API key",
202
+ "content": {
203
+ "application/json": {
204
+ "schema": {
205
+ "$ref": "#/components/schemas/APIKeyGetResponseBody"
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "400": {
211
+ "$ref": "#/components/schemas/InvalidRequest"
212
+ },
213
+ "401": {
214
+ "$ref": "#/components/schemas/UnauthorizedError"
215
+ },
216
+ "404": {
217
+ "$ref": "#/components/schemas/NotFoundError"
218
+ },
219
+ "500": {
220
+ "$ref": "#/components/schemas/InternalError"
221
+ }
222
+ }
223
+ }
224
+ },
225
+ "/admin/organisation/update": {
226
+ "post": {
227
+ "summary": "Update an organisation",
228
+ "description": "Update an organisation",
229
+ "tags": [
230
+ "Organisation"
231
+ ],
232
+ "requestBody": {
233
+ "required": true,
234
+ "content": {
235
+ "application/json": {
236
+ "schema": {
237
+ "type": "object",
238
+ "properties": {
239
+ "name": {
240
+ "type": "string",
241
+ "example": "Cheqd"
242
+ },
243
+ "email": {
244
+ "type": "string",
245
+ "example": "cheqd@example.com",
246
+ "format": "email"
247
+ },
248
+ "description": {
249
+ "type": "string",
250
+ "example": "Cheqd organisation"
251
+ }
252
+ }
253
+ }
254
+ }
255
+ }
256
+ },
257
+ "responses": {
258
+ "200": {
259
+ "description": "A successful response",
260
+ "content": {
261
+ "application/json": {
262
+ "schema": {
263
+ "$ref": "#/components/schemas/OrganisationResponseBody"
264
+ }
265
+ }
266
+ }
267
+ },
268
+ "400": {
269
+ "$ref": "#/components/schemas/InvalidRequest"
270
+ },
271
+ "401": {
272
+ "$ref": "#/components/schemas/UnauthorizedError"
273
+ },
274
+ "404": {
275
+ "$ref": "#/components/schemas/NotFoundError"
276
+ },
277
+ "500": {
278
+ "$ref": "#/components/schemas/InternalError"
279
+ }
280
+ }
281
+ }
282
+ },
283
+ "/admin/organisation/get": {
284
+ "get": {
285
+ "summary": "Get an organisation",
286
+ "description": "Get an organisation",
287
+ "tags": [
288
+ "Organisation"
289
+ ],
290
+ "responses": {
291
+ "200": {
292
+ "description": "A successful response",
293
+ "content": {
294
+ "application/json": {
295
+ "schema": {
296
+ "$ref": "#/components/schemas/OrganisationResponseBody"
297
+ }
298
+ }
299
+ }
300
+ },
301
+ "400": {
302
+ "$ref": "#/components/schemas/InvalidRequest"
303
+ },
304
+ "401": {
305
+ "$ref": "#/components/schemas/UnauthorizedError"
306
+ },
307
+ "404": {
308
+ "$ref": "#/components/schemas/NotFoundError"
309
+ },
310
+ "500": {
311
+ "$ref": "#/components/schemas/InternalError"
312
+ }
313
+ }
314
+ }
315
+ },
316
+ "/admin/price/list": {
317
+ "get": {
318
+ "summary": "Get a list of prices",
319
+ "description": "Get a list of prices",
320
+ "tags": [
321
+ "Price"
322
+ ],
323
+ "parameters": [
324
+ {
325
+ "in": "query",
326
+ "name": "productId",
327
+ "schema": {
328
+ "type": "string",
329
+ "description": "The product id. If passed - returns filtered by this product list of prices.",
330
+ "required": false
331
+ }
332
+ }
333
+ ],
334
+ "responses": {
335
+ "200": {
336
+ "description": "A list of prices",
337
+ "content": {
338
+ "application/json": {
339
+ "schema": {
340
+ "$ref": "#/components/schemas/PriceListResponseBody"
341
+ }
342
+ }
343
+ }
344
+ },
345
+ "400": {
346
+ "$ref": "#/components/schemas/InvalidRequest"
347
+ },
348
+ "401": {
349
+ "$ref": "#/components/schemas/UnauthorizedError"
350
+ },
351
+ "404": {
352
+ "$ref": "#/components/schemas/NotFoundError"
353
+ },
354
+ "500": {
355
+ "$ref": "#/components/schemas/InternalError"
356
+ }
357
+ }
358
+ }
359
+ },
360
+ "/admin/product/list": {
361
+ "get": {
362
+ "summary": "Get a list of products",
363
+ "description": "Get a list of products which are on a Stripe side",
364
+ "tags": [
365
+ "Product"
366
+ ],
367
+ "parameters": [
368
+ {
369
+ "in": "query",
370
+ "name": "prices",
371
+ "schema": {
372
+ "type": "boolean",
373
+ "description": "If setup to true - returns the list of products with prices inside. Default - true",
374
+ "required": false
375
+ }
376
+ },
377
+ {
378
+ "in": "query",
379
+ "name": "limit",
380
+ "schema": {
381
+ "type": "integer",
382
+ "minimum": 1,
383
+ "maximum": 100,
384
+ "description": "Restrict the response to only include items from 1 to 100. Default - 10",
385
+ "required": false
386
+ }
387
+ },
388
+ {
389
+ "in": "query",
390
+ "name": "cursor",
391
+ "schema": {
392
+ "type": "string",
393
+ "description": "Cursor for pagination, this only goes forward, i.e., Stripe's equivalent of 'starting_after'",
394
+ "required": false
395
+ }
396
+ }
397
+ ],
398
+ "responses": {
399
+ "200": {
400
+ "description": "A list of products",
401
+ "content": {
402
+ "application/json": {
403
+ "schema": {
404
+ "$ref": "#/components/schemas/ProductListResponseBody"
405
+ }
406
+ }
407
+ }
408
+ },
409
+ "400": {
410
+ "$ref": "#/components/schemas/InvalidRequest"
411
+ },
412
+ "401": {
413
+ "$ref": "#/components/schemas/UnauthorizedError"
414
+ },
415
+ "404": {
416
+ "$ref": "#/components/schemas/NotFoundError"
417
+ },
418
+ "500": {
419
+ "$ref": "#/components/schemas/InternalError"
420
+ }
421
+ }
422
+ }
423
+ },
424
+ "/admin/product/get/{productId}": {
425
+ "get": {
426
+ "summary": "Get a product",
427
+ "description": "Get a product by id",
428
+ "tags": [
429
+ "Product"
430
+ ],
431
+ "parameters": [
432
+ {
433
+ "in": "path",
434
+ "name": "productId",
435
+ "schema": {
436
+ "type": "string",
437
+ "description": "The product id which identifies the product in Stripe"
438
+ },
439
+ "required": true
440
+ },
441
+ {
442
+ "in": "query",
443
+ "name": "prices",
444
+ "schema": {
445
+ "type": "boolean",
446
+ "description": "If setup to true - returns the product with prices inside. Default - true",
447
+ "required": false
448
+ }
449
+ }
450
+ ],
451
+ "responses": {
452
+ "200": {
453
+ "description": "A product",
454
+ "content": {
455
+ "application/json": {
456
+ "schema": {
457
+ "$ref": "#/components/schemas/ProductGetResponseBody"
458
+ }
459
+ }
460
+ }
461
+ },
462
+ "400": {
463
+ "$ref": "#/components/schemas/InvalidRequest"
464
+ },
465
+ "401": {
466
+ "$ref": "#/components/schemas/UnauthorizedError"
467
+ },
468
+ "404": {
469
+ "$ref": "#/components/schemas/NotFoundError"
470
+ },
471
+ "500": {
472
+ "$ref": "#/components/schemas/InternalError"
473
+ }
474
+ }
475
+ }
476
+ },
477
+ "/admin/subscription/create": {
478
+ "post": {
479
+ "summary": "Create a subscription",
480
+ "description": "Creates a new subscription for an existing customer",
481
+ "tags": [
482
+ "Subscription"
483
+ ],
484
+ "requestBody": {
485
+ "content": {
486
+ "application/json": {
487
+ "schema": {
488
+ "$ref": "#/components/schemas/SubscriptionCreateRequestBody"
489
+ }
490
+ }
491
+ }
492
+ },
493
+ "responses": {
494
+ "201": {
495
+ "description": "The request was successful.",
496
+ "content": {
497
+ "application/json": {
498
+ "schema": {
499
+ "$ref": "#/components/schemas/SubscriptionCreateResponseBody"
500
+ }
501
+ }
502
+ }
503
+ },
504
+ "400": {
505
+ "$ref": "#/components/schemas/InvalidRequest"
506
+ },
507
+ "401": {
508
+ "$ref": "#/components/schemas/UnauthorizedError"
509
+ },
510
+ "500": {
511
+ "$ref": "#/components/schemas/InternalError"
512
+ }
513
+ }
514
+ }
515
+ },
516
+ "/admin/subscription/update": {
517
+ "post": {
518
+ "summary": "Update a subscription",
519
+ "description": "Updates an existing subscription",
520
+ "tags": [
521
+ "Subscription"
522
+ ],
523
+ "requestBody": {
524
+ "content": {
525
+ "application/json": {
526
+ "schema": {
527
+ "$ref": "#/components/schemas/SubscriptionUpdateRequestBody"
528
+ }
529
+ }
530
+ }
531
+ },
532
+ "responses": {
533
+ "200": {
534
+ "description": "The request was successful.",
535
+ "content": {
536
+ "application/json": {
537
+ "schema": {
538
+ "$ref": "#/components/schemas/SubscriptionUpdateResponseBody"
539
+ }
540
+ }
541
+ }
542
+ },
543
+ "400": {
544
+ "$ref": "#/components/schemas/InvalidRequest"
545
+ },
546
+ "401": {
547
+ "$ref": "#/components/schemas/UnauthorizedError"
548
+ },
549
+ "500": {
550
+ "$ref": "#/components/schemas/InternalError"
551
+ }
552
+ }
553
+ }
554
+ },
555
+ "/admin/subscription/list": {
556
+ "get": {
557
+ "summary": "Get a list of subscriptions",
558
+ "description": "Get a list of subscriptions",
559
+ "tags": [
560
+ "Subscription"
561
+ ],
562
+ "parameters": [
563
+ {
564
+ "in": "query",
565
+ "name": "paymentProviderId",
566
+ "schema": {
567
+ "type": "string",
568
+ "description": "The customer id. If passed - returns filtered by this customer list of subscriptions."
569
+ }
570
+ }
571
+ ],
572
+ "responses": {
573
+ "200": {
574
+ "description": "A list of subscriptions",
575
+ "content": {
576
+ "application/json": {
577
+ "schema": {
578
+ "$ref": "#/components/schemas/SubscriptionListResponseBody"
579
+ }
580
+ }
581
+ }
582
+ },
583
+ "400": {
584
+ "$ref": "#/components/schemas/InvalidRequest"
585
+ },
586
+ "401": {
587
+ "$ref": "#/components/schemas/UnauthorizedError"
588
+ },
589
+ "404": {
590
+ "$ref": "#/components/schemas/NotFoundError"
591
+ },
592
+ "500": {
593
+ "$ref": "#/components/schemas/InternalError"
594
+ }
595
+ }
596
+ }
597
+ },
598
+ "/admin/subscription/get": {
599
+ "get": {
600
+ "summary": "Get a subscription",
601
+ "description": "Get a subscription",
602
+ "tags": [
603
+ "Subscription"
604
+ ],
605
+ "responses": {
606
+ "200": {
607
+ "description": "The request was successful.",
608
+ "content": {
609
+ "application/json": {
610
+ "schema": {
611
+ "$ref": "#/components/schemas/SubscriptionGetResponseBody"
612
+ }
613
+ }
614
+ }
615
+ },
616
+ "400": {
617
+ "$ref": "#/components/schemas/InvalidRequest"
618
+ },
619
+ "401": {
620
+ "$ref": "#/components/schemas/UnauthorizedError"
621
+ },
622
+ "404": {
623
+ "$ref": "#/components/schemas/NotFoundError"
624
+ },
625
+ "500": {
626
+ "$ref": "#/components/schemas/InternalError"
627
+ }
628
+ }
629
+ }
630
+ },
631
+ "/admin/subscription/cancel": {
632
+ "post": {
633
+ "summary": "Cancel a subscription",
634
+ "description": "Cancels an existing subscription",
635
+ "tags": [
636
+ "Subscription"
637
+ ],
638
+ "requestBody": {
639
+ "content": {
640
+ "application/json": {
641
+ "schema": {
642
+ "$ref": "#/components/schemas/SubscriptionCancelRequestBody"
643
+ }
644
+ }
645
+ }
646
+ },
647
+ "responses": {
648
+ "200": {
649
+ "description": "The request was successful.",
650
+ "content": {
651
+ "application/json": {
652
+ "schema": {
653
+ "$ref": "#/components/schemas/SubscriptionCancelResponseBody"
654
+ }
655
+ }
656
+ }
657
+ },
658
+ "400": {
659
+ "$ref": "#/components/schemas/InvalidRequest"
660
+ },
661
+ "401": {
662
+ "$ref": "#/components/schemas/UnauthorizedError"
663
+ },
664
+ "404": {
665
+ "$ref": "#/components/schemas/NotFoundError"
666
+ },
667
+ "500": {
668
+ "$ref": "#/components/schemas/InternalError"
669
+ }
670
+ }
671
+ }
672
+ },
673
+ "/admin/subscription/resume": {},
674
+ "post": {
675
+ "summary": "Resume a subscription",
676
+ "description": "Resumes an existing subscription",
677
+ "tags": [
678
+ "Subscription"
679
+ ],
680
+ "requestBody": {
681
+ "content": {
682
+ "application/json": {
683
+ "schema": {
684
+ "$ref": "#/components/schemas/SubscriptionResumeRequestBody"
685
+ }
686
+ }
687
+ }
688
+ },
689
+ "responses": {
690
+ "200": {
691
+ "description": "The request was successful.",
692
+ "content": {
693
+ "application/json": {
694
+ "schema": {
695
+ "$ref": "#/components/schemas/SubscriptionResumeResponseBody"
696
+ }
697
+ }
698
+ }
699
+ },
700
+ "400": {
701
+ "$ref": "#/components/schemas/InvalidRequest"
702
+ },
703
+ "401": {
704
+ "$ref": "#/components/schemas/UnauthorizedError"
705
+ },
706
+ "404": {
707
+ "$ref": "#/components/schemas/NotFoundError"
708
+ },
709
+ "500": {
710
+ "$ref": "#/components/schemas/InternalError"
711
+ }
712
+ }
713
+ }
714
+ },
715
+ "components": {
716
+ "schemas": {
717
+ "PriceListResponseBody": {
718
+ "description": "A list of active prcies from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/prices/list)",
719
+ "type": "object",
720
+ "properties": {
721
+ "prices": {
722
+ "type": "array",
723
+ "items": {
724
+ "type": "object",
725
+ "description": "A price object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/prices/object)"
726
+ }
727
+ }
728
+ }
729
+ },
730
+ "ProductListResponseBody": {
731
+ "type": "object",
732
+ "properties": {
733
+ "products": {
734
+ "type": "array",
735
+ "items": {
736
+ "type": "object",
737
+ "description": "A product object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/products/object)"
738
+ }
739
+ }
740
+ }
741
+ },
742
+ "ProductGetResponseBody": {
743
+ "description": "A product with or without prices inside. For more information see the [Stripe API documentation](https://docs.stripe.com/api/products/retrieve)",
744
+ "type": "object"
745
+ },
746
+ "InvalidRequest": {
747
+ "description": "A problem with the input fields has occurred. Additional state information plus metadata may be available in the response body.",
748
+ "type": "object",
749
+ "properties": {
750
+ "error": {
751
+ "type": "string",
752
+ "example": "InvalidRequest"
753
+ }
754
+ }
755
+ },
756
+ "InternalError": {
757
+ "description": "An internal error has occurred. Additional state information plus metadata may be available in the response body.",
758
+ "type": "object",
759
+ "properties": {
760
+ "error": {
761
+ "type": "string",
762
+ "example": "Internal Error"
763
+ }
764
+ }
765
+ },
766
+ "UnauthorizedError": {
767
+ "description": "Access token is missing or invalid",
768
+ "type": "object",
769
+ "properties": {
770
+ "error": {
771
+ "type": "string",
772
+ "example": "Unauthorized Error"
773
+ }
774
+ }
775
+ },
776
+ "SubscriptionCreateRequestBody": {
777
+ "description": "The request body for creating a subscription",
778
+ "type": "object",
779
+ "properties": {
780
+ "price": {
781
+ "type": "string",
782
+ "description": "The price id",
783
+ "example": "price_1234567890"
784
+ },
785
+ "successURL": {
786
+ "type": "string",
787
+ "description": "The URL to redirect to after the customer sucessfully completes the checkout",
788
+ "example": "https://example.com/success"
789
+ },
790
+ "cancelURL": {
791
+ "type": "string",
792
+ "description": "The URL to redirect to after the customer cancels the checkout",
793
+ "example": "https://example.com/cancel"
794
+ },
795
+ "quantity": {
796
+ "type": "number",
797
+ "description": "The quantity of the product",
798
+ "example": 1
799
+ },
800
+ "trialPeriodDays": {
801
+ "type": "number",
802
+ "description": "The number of days the customer has to pay for the product",
803
+ "example": 7
804
+ },
805
+ "idempotencyKey": {
806
+ "type": "string",
807
+ "description": "The idempotency key. It helps to prevent duplicate requests. In case if there was a request with the same idempotency key, the response will be the same as for the first request.",
808
+ "example": "abcdefghijklmnopqrstuvwxyz"
809
+ }
810
+ }
811
+ },
812
+ "SubscriptionCreateResponseBody": {
813
+ "description": "The response body for creating a subscription",
814
+ "type": "object",
815
+ "properties": {
816
+ "subscription": {
817
+ "type": "object",
818
+ "description": "An object with link to checkout session. For more information see the [Stripe API documentation](https://docs.stripe.com/api/checkout/sessions/object)",
819
+ "properties": {
820
+ "sessionURL": {
821
+ "type": "string",
822
+ "description": "URL which user should follow to manage subscription"
823
+ }
824
+ }
825
+ }
826
+ }
827
+ },
828
+ "SubscriptionUpdateRequestBody": {
829
+ "description": "The request body for updating a subscription",
830
+ "type": "object",
831
+ "properties": {
832
+ "returnURL": {
833
+ "type": "string",
834
+ "description": "URL which is used to redirect to the page with ability to update the subscription"
835
+ }
836
+ }
837
+ },
838
+ "SubscriptionUpdateResponseBody": {
839
+ "description": "The response body for updating a subscription",
840
+ "type": "object",
841
+ "properties": {
842
+ "subscription": {
843
+ "type": "object",
844
+ "description": "Object with redirect url inside",
845
+ "properties": {
846
+ "sessionURL": {
847
+ "type": "string",
848
+ "description": "URL with session URL rediect to"
849
+ }
850
+ }
851
+ }
852
+ }
853
+ },
854
+ "SubscriptionGetRequestBody": {
855
+ "description": "The request body for getting a subscription",
856
+ "type": "object",
857
+ "properties": {
858
+ "subscriptionId": {
859
+ "type": "string",
860
+ "description": "The subscription id",
861
+ "example": "sub_1234567890"
862
+ }
863
+ }
864
+ },
865
+ "SubscriptionGetResponseBody": {
866
+ "description": "The response body for getting a subscription",
867
+ "type": "object",
868
+ "properties": {
869
+ "subscription": {
870
+ "type": "object",
871
+ "description": "A subscription object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/subscriptions/object)"
872
+ }
873
+ }
874
+ },
875
+ "SubscriptionListRequestBody": {
876
+ "description": "The request body for listing subscriptions",
877
+ "type": "object",
878
+ "properties": {
879
+ "customerId": {
880
+ "type": "string",
881
+ "description": "The Stripe customer id",
882
+ "example": "cus_1234567890"
883
+ }
884
+ }
885
+ },
886
+ "SubscriptionListResponseBody": {
887
+ "description": "The response body for listing subscriptions",
888
+ "type": "object",
889
+ "properties": {
890
+ "subscriptions": {
891
+ "type": "array",
892
+ "items": {
893
+ "type": "object",
894
+ "description": "A subscription object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/subscriptions/object]"
895
+ }
896
+ }
897
+ }
898
+ },
899
+ "SubscriptionCancelRequestBody": {
900
+ "description": "The request body for canceling a subscription",
901
+ "type": "object",
902
+ "properties": {
903
+ "subscriptionId": {
904
+ "type": "string",
905
+ "description": "The subscription id",
906
+ "example": "sub_1234567890"
907
+ }
908
+ }
909
+ },
910
+ "SubscriptionCancelResponseBody": {
911
+ "description": "The response body for canceling a subscription",
912
+ "type": "object",
913
+ "properties": {
914
+ "subscription": {
915
+ "type": "object",
916
+ "description": "A subscription object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/subscriptions/object]"
917
+ },
918
+ "idempotencyKey": {
919
+ "type": "string",
920
+ "description": "The idempotency key. It helps to prevent duplicate requests. In case if there was a request with the same idempotency key, the response will be the same as for the first request.",
921
+ "example": "abcdefghijklmnopqrstuvwxyz"
922
+ }
923
+ }
924
+ },
925
+ "SubscriptionResumeRequestBody": {
926
+ "description": "The request body for resuming a subscription",
927
+ "type": "object",
928
+ "properties": {
929
+ "subscriptionId": {
930
+ "type": "string",
931
+ "description": "The subscription id",
932
+ "example": "sub_1234567890"
933
+ },
934
+ "idempotencyKey": {
935
+ "type": "string",
936
+ "description": "The idempotency key. It helps to prevent duplicate requests. In case if there was a request with the same idempotency key, the response will be the same as for the first request.",
937
+ "example": "abcdefghijklmnopqrstuvwxyz"
938
+ }
939
+ }
940
+ },
941
+ "SubscriptionResumeResponseBody": {
942
+ "description": "The response body for resuming a subscription",
943
+ "type": "object",
944
+ "properties": {
945
+ "subscription": {
946
+ "type": "object",
947
+ "description": "A subscription object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/subscriptions/object]"
948
+ }
949
+ }
950
+ },
951
+ "APIKeyResponse": {
952
+ "description": "The general view for API key in response",
953
+ "type": "object",
954
+ "properties": {
955
+ "apiKey": {
956
+ "type": "string",
957
+ "description": "The API key",
958
+ "example": "abcdefghijklmnopqrstuvwxyz"
959
+ },
960
+ "createdAt": {
961
+ "type": "string",
962
+ "description": "The creation date of the API key",
963
+ "example": "2000-10-31T01:23:45Z",
964
+ "format": "date-time"
965
+ },
966
+ "name": {
967
+ "type": "string",
968
+ "description": "The name of the API key",
969
+ "example": "My API Key"
970
+ },
971
+ "expiresAt": {
972
+ "type": "string",
973
+ "description": "The expiration date of the API key",
974
+ "example": "2000-10-31T01:23:45Z",
975
+ "format": "date-time"
976
+ },
977
+ "revoked": {
978
+ "type": "boolean",
979
+ "description": "The status of the API key",
980
+ "example": false
981
+ }
982
+ }
983
+ },
984
+ "APIKeyCreateRequestBody": {
985
+ "description": "The request body for creating an API key",
986
+ "type": "object",
987
+ "properties": {
988
+ "expiresAt": {
989
+ "type": "string",
990
+ "description": "The expiration date of the API key",
991
+ "example": "2000-10-31T01:23:45Z",
992
+ "format": "date-time"
993
+ },
994
+ "name": {
995
+ "type": "string",
996
+ "description": "The name of the API key",
997
+ "example": "My API Key"
998
+ }
999
+ },
1000
+ "required": [
1001
+ "name"
1002
+ ]
1003
+ },
1004
+ "APIKeyCreateResponseBody": {
1005
+ "description": "The response body for creating an API key",
1006
+ "type": "object",
1007
+ "schema": {
1008
+ "ref": "#/components/schemas/APIKeyResponse"
1009
+ }
1010
+ },
1011
+ "APIKeyCreateUnsuccessfulResponseBody": {
1012
+ "description": "The response body for an unsuccessful API key creation",
1013
+ "type": "object",
1014
+ "properties": {
1015
+ "error": {
1016
+ "type": "string",
1017
+ "example": "API key creation unsuccessful"
1018
+ }
1019
+ }
1020
+ },
1021
+ "APIKeyUpdateRequestBody": {
1022
+ "description": "The request body for updating an API key",
1023
+ "type": "object",
1024
+ "properties": {
1025
+ "apiKey": {
1026
+ "type": "string",
1027
+ "description": "The API key",
1028
+ "example": "abcdefghijklmnopqrstuvwxyz"
1029
+ },
1030
+ "name": {
1031
+ "type": "string",
1032
+ "description": "The name of the API key",
1033
+ "example": "My API Key"
1034
+ },
1035
+ "expiresAt": {
1036
+ "type": "string",
1037
+ "description": "The expiration date of the API key",
1038
+ "example": "2000-10-31T01:23:45Z",
1039
+ "format": "date-time"
1040
+ },
1041
+ "revoked": {
1042
+ "type": "boolean",
1043
+ "description": "The status of the API key",
1044
+ "example": false,
1045
+ "default": false
1046
+ }
1047
+ },
1048
+ "required": [
1049
+ "apiKey"
1050
+ ]
1051
+ },
1052
+ "APIKeyUpdateResponseBody": {
1053
+ "description": "The response body for an unsuccessful API key update",
1054
+ "type": "object",
1055
+ "schema": {
1056
+ "ref": "#/components/schemas/APIKeyResponse"
1057
+ }
1058
+ },
1059
+ "APIKeyUpdateUnsuccessfulResponseBody": {
1060
+ "description": "The response body for an unsuccessful API key update",
1061
+ "type": "object",
1062
+ "properties": {
1063
+ "error": {
1064
+ "type": "string",
1065
+ "example": "API key update unsuccessful"
1066
+ }
1067
+ }
1068
+ },
1069
+ "APIKeyRevokeRequestBody": {
1070
+ "description": "The request body for revoking an API key",
1071
+ "type": "object",
1072
+ "properties": {
1073
+ "apiKey": {
1074
+ "type": "string",
1075
+ "description": "The API key",
1076
+ "example": "abcdefghijklmnopqrstuvwxyz"
1077
+ }
1078
+ },
1079
+ "required": [
1080
+ "apiKey"
1081
+ ]
1082
+ },
1083
+ "APIKeyRevokeResponseBody": {
1084
+ "description": "The response body for revoking an API key",
1085
+ "type": "object",
1086
+ "properties": {
1087
+ "apiKey": {
1088
+ "type": "string",
1089
+ "description": "The API key",
1090
+ "example": "abcdefghijklmnopqrstuvwxyz"
1091
+ },
1092
+ "revoked": {
1093
+ "type": "boolean",
1094
+ "description": "The status of the API key",
1095
+ "example": true
1096
+ }
1097
+ },
1098
+ "required": [
1099
+ "apiKey"
1100
+ ]
1101
+ },
1102
+ "APIKeyRevokeUnsuccessfulResponseBody": {
1103
+ "description": "The response body for an unsuccessful API key revocation",
1104
+ "type": "object",
1105
+ "properties": {
1106
+ "error": {
1107
+ "type": "string",
1108
+ "example": "API key revocation unsuccessful"
1109
+ }
1110
+ }
1111
+ },
1112
+ "APIKeyListResponseBody": {
1113
+ "description": "The response body for listing API keys",
1114
+ "type": "object",
1115
+ "properties": {
1116
+ "apiKeys": {
1117
+ "type": "array",
1118
+ "items": {
1119
+ "type": "object",
1120
+ "schema": {
1121
+ "ref": "#/components/schemas/APIKeyResponse"
1122
+ }
1123
+ }
1124
+ }
1125
+ }
1126
+ },
1127
+ "APIKeyGetRequestBody": {
1128
+ "description": "The request body for getting an API key",
1129
+ "type": "object",
1130
+ "properties": {
1131
+ "apiKey": {
1132
+ "type": "string",
1133
+ "description": "The API key",
1134
+ "example": "abcdefghijklmnopqrstuvwxyz"
1135
+ }
1136
+ },
1137
+ "required": [
1138
+ "apiKey"
1139
+ ]
1140
+ },
1141
+ "APIKeyGetResponseBody": {
1142
+ "description": "The response body for getting an API key",
1143
+ "type": "object",
1144
+ "schema": {
1145
+ "ref": "#/components/schemas/APIKeyResponse"
1146
+ }
1147
+ },
1148
+ "OrganisationResponseBody": {
1149
+ "description": "The response body for an organisation",
1150
+ "type": "object",
1151
+ "properties": {
1152
+ "name": {
1153
+ "type": "string",
1154
+ "description": "The name of the organisation",
1155
+ "example": "Cheqd"
1156
+ },
1157
+ "email": {
1158
+ "type": "string",
1159
+ "description": "The email of the organisation",
1160
+ "example": "cheqd@example.com",
1161
+ "format": "email",
1162
+ "nullable": true,
1163
+ "default": null
1164
+ },
1165
+ "description": {
1166
+ "type": "string",
1167
+ "description": "The description of the organisation",
1168
+ "example": "Cheqd organisation",
1169
+ "nullable": true,
1170
+ "default": null
1171
+ },
1172
+ "cosmosAddress": {
1173
+ "type": "string",
1174
+ "description": "The cosmos address of the organisation",
1175
+ "example": "cheqd1hwzvac94udsk8x4mf6htt544lev4jltkwgxp7u"
1176
+ }
1177
+ }
1178
+ },
1179
+ "NotFoundError": {
1180
+ "description": "The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.",
1181
+ "type": "object",
1182
+ "properties": {
1183
+ "error": {
1184
+ "type": "string",
1185
+ "example": "Not Found Error"
1186
+ }
1187
+ }
1188
+ }
1189
+ }
1190
+ }
1191
+ }