@affinidi/cli 2.0.0-beta.1 → 2.0.0-beta.11

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 (355) hide show
  1. package/README.md +806 -661
  2. package/dist/commands/generate/app.d.ts +17 -0
  3. package/dist/commands/generate/app.js +147 -0
  4. package/dist/commands/generate/app.js.map +1 -0
  5. package/dist/commands/iam/add-principal.d.ts +11 -0
  6. package/dist/commands/iam/add-principal.js +63 -0
  7. package/dist/commands/iam/add-principal.js.map +1 -0
  8. package/dist/commands/iam/get-policies.d.ts +12 -0
  9. package/dist/commands/iam/get-policies.js +64 -0
  10. package/dist/commands/iam/get-policies.js.map +1 -0
  11. package/dist/commands/iam/list-principals.d.ts +8 -0
  12. package/dist/commands/iam/list-principals.js +23 -0
  13. package/dist/commands/iam/list-principals.js.map +1 -0
  14. package/dist/commands/iam/remove-principal.d.ts +14 -0
  15. package/dist/commands/iam/remove-principal.js +63 -0
  16. package/dist/commands/iam/remove-principal.js.map +1 -0
  17. package/dist/commands/iam/update-policies.d.ts +13 -0
  18. package/dist/commands/iam/update-policies.js +127 -0
  19. package/dist/commands/iam/update-policies.js.map +1 -0
  20. package/dist/commands/login/add-user-to-group.d.ts +11 -0
  21. package/dist/commands/login/add-user-to-group.js +39 -0
  22. package/dist/commands/login/add-user-to-group.js.map +1 -0
  23. package/dist/commands/login/create-config.d.ts +17 -0
  24. package/dist/commands/login/create-config.js +142 -0
  25. package/dist/commands/login/create-config.js.map +1 -0
  26. package/dist/commands/login/create-group.d.ts +10 -0
  27. package/dist/commands/login/create-group.js +40 -0
  28. package/dist/commands/login/create-group.js.map +1 -0
  29. package/dist/commands/login/delete-config.d.ts +11 -0
  30. package/dist/commands/login/delete-config.js +39 -0
  31. package/dist/commands/login/delete-config.js.map +1 -0
  32. package/dist/commands/login/delete-group.d.ts +11 -0
  33. package/dist/commands/login/delete-group.js +39 -0
  34. package/dist/commands/login/delete-group.js.map +1 -0
  35. package/dist/commands/login/get-config.d.ts +10 -0
  36. package/dist/commands/login/get-config.js +39 -0
  37. package/dist/commands/login/get-config.js.map +1 -0
  38. package/dist/commands/login/get-group.d.ts +10 -0
  39. package/dist/commands/login/get-group.js +39 -0
  40. package/dist/commands/login/get-group.js.map +1 -0
  41. package/dist/commands/login/list-configs.d.ts +7 -0
  42. package/dist/commands/login/list-configs.js +20 -0
  43. package/dist/commands/login/list-configs.js.map +1 -0
  44. package/dist/commands/login/list-groups.d.ts +7 -0
  45. package/dist/commands/login/list-groups.js +20 -0
  46. package/dist/commands/login/list-groups.js.map +1 -0
  47. package/dist/commands/login/list-users-in-group.d.ts +10 -0
  48. package/dist/commands/login/list-users-in-group.js +35 -0
  49. package/dist/commands/login/list-users-in-group.js.map +1 -0
  50. package/dist/commands/login/remove-user-from-group.d.ts +13 -0
  51. package/dist/commands/login/remove-user-from-group.js +40 -0
  52. package/dist/commands/login/remove-user-from-group.js.map +1 -0
  53. package/dist/commands/login/update-config.d.ts +17 -0
  54. package/dist/commands/login/update-config.js +123 -0
  55. package/dist/commands/login/update-config.js.map +1 -0
  56. package/dist/commands/project/create-project.d.ts +11 -0
  57. package/dist/commands/project/create-project.js +47 -0
  58. package/dist/commands/project/create-project.js.map +1 -0
  59. package/dist/commands/project/get-active-project.d.ts +7 -0
  60. package/dist/commands/project/get-active-project.js +20 -0
  61. package/dist/commands/project/get-active-project.js.map +1 -0
  62. package/dist/commands/project/list-projects.d.ts +7 -0
  63. package/dist/commands/project/list-projects.js +20 -0
  64. package/dist/commands/project/list-projects.js.map +1 -0
  65. package/dist/commands/project/select-project.d.ts +10 -0
  66. package/dist/commands/project/select-project.js +69 -0
  67. package/dist/commands/project/select-project.js.map +1 -0
  68. package/dist/commands/start.d.ts +3 -36
  69. package/dist/commands/start.js +19 -412
  70. package/dist/commands/start.js.map +1 -1
  71. package/dist/commands/stop.d.ts +6 -0
  72. package/dist/commands/stop.js +34 -0
  73. package/dist/commands/stop.js.map +1 -0
  74. package/dist/commands/token/create-token.d.ts +13 -0
  75. package/dist/commands/token/create-token.js +78 -0
  76. package/dist/commands/token/create-token.js.map +1 -0
  77. package/dist/commands/token/delete-token.d.ts +11 -0
  78. package/dist/commands/token/delete-token.js +36 -0
  79. package/dist/commands/token/delete-token.js.map +1 -0
  80. package/dist/commands/token/get-token.d.ts +10 -0
  81. package/dist/commands/token/get-token.js +36 -0
  82. package/dist/commands/token/get-token.js.map +1 -0
  83. package/dist/commands/token/list-tokens.d.ts +7 -0
  84. package/dist/commands/token/list-tokens.js +20 -0
  85. package/dist/commands/token/list-tokens.js.map +1 -0
  86. package/dist/commands/token/update-token.d.ts +14 -0
  87. package/dist/commands/token/update-token.js +83 -0
  88. package/dist/commands/token/update-token.js.map +1 -0
  89. package/dist/commands/whoami.d.ts +6 -0
  90. package/dist/commands/whoami.js +20 -0
  91. package/dist/commands/whoami.js.map +1 -0
  92. package/dist/common/base-command.d.ts +29 -0
  93. package/dist/common/base-command.js +65 -0
  94. package/dist/common/base-command.js.map +1 -0
  95. package/dist/common/constants.d.ts +27 -0
  96. package/dist/common/constants.js +31 -0
  97. package/dist/common/constants.js.map +1 -0
  98. package/dist/common/error-messages.d.ts +1 -0
  99. package/dist/common/error-messages.js +8 -0
  100. package/dist/common/error-messages.js.map +1 -0
  101. package/dist/common/index.d.ts +2 -0
  102. package/dist/common/index.js +8 -0
  103. package/dist/common/index.js.map +1 -0
  104. package/dist/common/prompts.d.ts +1 -0
  105. package/dist/common/prompts.js +21 -0
  106. package/dist/common/prompts.js.map +1 -0
  107. package/dist/common/validators.d.ts +4 -0
  108. package/dist/common/validators.js +15 -0
  109. package/dist/common/validators.js.map +1 -0
  110. package/dist/helpers/app.d.ts +11 -0
  111. package/dist/helpers/app.js +92 -0
  112. package/dist/helpers/app.js.map +1 -0
  113. package/dist/helpers/degit.d.ts +1 -0
  114. package/dist/helpers/degit.js +26 -0
  115. package/dist/helpers/degit.js.map +1 -0
  116. package/dist/helpers/jwk.d.ts +4 -0
  117. package/dist/helpers/jwk.js +29 -0
  118. package/dist/helpers/jwk.js.map +1 -0
  119. package/dist/index.d.ts +0 -1
  120. package/dist/index.js +1 -3
  121. package/dist/index.js.map +1 -1
  122. package/dist/services/affinidi/auth/auth-result-page.d.ts +1 -0
  123. package/dist/services/affinidi/auth/auth-result-page.js +110 -0
  124. package/dist/services/affinidi/auth/auth-result-page.js.map +1 -0
  125. package/dist/services/affinidi/auth/bff-auth-provider.d.ts +26 -0
  126. package/dist/services/affinidi/auth/bff-auth-provider.js +124 -0
  127. package/dist/services/affinidi/auth/bff-auth-provider.js.map +1 -0
  128. package/dist/services/affinidi/auth/types.d.ts +7 -0
  129. package/dist/services/affinidi/auth/types.js +3 -0
  130. package/dist/services/affinidi/auth/types.js.map +1 -0
  131. package/dist/services/affinidi/bff-service.d.ts +20 -0
  132. package/dist/services/affinidi/bff-service.js +88 -0
  133. package/dist/services/affinidi/bff-service.js.map +1 -0
  134. package/dist/services/affinidi/errors.d.ts +3 -0
  135. package/dist/services/affinidi/errors.js +75 -0
  136. package/dist/services/affinidi/errors.js.map +1 -0
  137. package/dist/services/affinidi/iam/iam.api.d.ts +470 -0
  138. package/dist/services/affinidi/iam/iam.api.js +342 -0
  139. package/dist/services/affinidi/iam/iam.api.js.map +1 -0
  140. package/dist/services/affinidi/iam/index.d.ts +21 -0
  141. package/dist/services/affinidi/iam/index.js +148 -0
  142. package/dist/services/affinidi/iam/index.js.map +1 -0
  143. package/dist/services/affinidi/logger/console-logger-adapter.d.ts +12 -0
  144. package/dist/services/affinidi/logger/console-logger-adapter.js +56 -0
  145. package/dist/services/affinidi/logger/console-logger-adapter.js.map +1 -0
  146. package/dist/services/affinidi/logger/index.d.ts +2 -0
  147. package/dist/services/affinidi/logger/index.js +6 -0
  148. package/dist/services/affinidi/logger/index.js.map +1 -0
  149. package/dist/services/affinidi/logger/logger-adapter.d.ts +10 -0
  150. package/dist/services/affinidi/logger/logger-adapter.js +3 -0
  151. package/dist/services/affinidi/logger/logger-adapter.js.map +1 -0
  152. package/dist/services/affinidi/vp-adapter/index.d.ts +20 -0
  153. package/dist/services/affinidi/vp-adapter/index.js +145 -0
  154. package/dist/services/affinidi/vp-adapter/index.js.map +1 -0
  155. package/dist/services/affinidi/vp-adapter/vp-adapter.api.d.ts +862 -0
  156. package/dist/services/affinidi/vp-adapter/vp-adapter.api.js +550 -0
  157. package/dist/services/affinidi/vp-adapter/vp-adapter.api.js.map +1 -0
  158. package/dist/services/credentials-vault.d.ts +19 -0
  159. package/dist/services/credentials-vault.js +33 -0
  160. package/dist/services/credentials-vault.js.map +1 -0
  161. package/dist/services/env-config.d.ts +35 -0
  162. package/dist/services/env-config.js +39 -0
  163. package/dist/services/env-config.js.map +1 -0
  164. package/dist/services/generator/auth0.d.ts +6 -0
  165. package/dist/services/generator/auth0.js +79 -0
  166. package/dist/services/generator/auth0.js.map +1 -0
  167. package/dist/services/generator/env-configurer.d.ts +1 -0
  168. package/dist/services/generator/env-configurer.js +22 -0
  169. package/dist/services/generator/env-configurer.js.map +1 -0
  170. package/package.json +64 -77
  171. package/bin/inject-secrets.js +0 -16
  172. package/bin/postinstall.js +0 -31
  173. package/dist/commands/analytics.d.ts +0 -21
  174. package/dist/commands/analytics.js +0 -74
  175. package/dist/commands/analytics.js.map +0 -1
  176. package/dist/commands/config/index.d.ts +0 -15
  177. package/dist/commands/config/index.js +0 -71
  178. package/dist/commands/config/index.js.map +0 -1
  179. package/dist/commands/config/username.d.ts +0 -17
  180. package/dist/commands/config/username.js +0 -87
  181. package/dist/commands/config/username.js.map +0 -1
  182. package/dist/commands/config/view.d.ts +0 -16
  183. package/dist/commands/config/view.js +0 -59
  184. package/dist/commands/config/view.js.map +0 -1
  185. package/dist/commands/create/project.d.ts +0 -16
  186. package/dist/commands/create/project.js +0 -82
  187. package/dist/commands/create/project.js.map +0 -1
  188. package/dist/commands/create/schema.d.ts +0 -18
  189. package/dist/commands/create/schema.js +0 -149
  190. package/dist/commands/create/schema.js.map +0 -1
  191. package/dist/commands/generate-application/index.d.ts +0 -28
  192. package/dist/commands/generate-application/index.js +0 -94
  193. package/dist/commands/generate-application/index.js.map +0 -1
  194. package/dist/commands/issue-vc.d.ts +0 -21
  195. package/dist/commands/issue-vc.js +0 -159
  196. package/dist/commands/issue-vc.js.map +0 -1
  197. package/dist/commands/list/projects.d.ts +0 -17
  198. package/dist/commands/list/projects.js +0 -110
  199. package/dist/commands/list/projects.js.map +0 -1
  200. package/dist/commands/list/schemas.d.ts +0 -26
  201. package/dist/commands/list/schemas.js +0 -164
  202. package/dist/commands/list/schemas.js.map +0 -1
  203. package/dist/commands/login/index.d.ts +0 -17
  204. package/dist/commands/login/index.js +0 -142
  205. package/dist/commands/login/index.js.map +0 -1
  206. package/dist/commands/logout/index.d.ts +0 -13
  207. package/dist/commands/logout/index.js +0 -72
  208. package/dist/commands/logout/index.js.map +0 -1
  209. package/dist/commands/rename/project.d.ts +0 -17
  210. package/dist/commands/rename/project.js +0 -100
  211. package/dist/commands/rename/project.js.map +0 -1
  212. package/dist/commands/show/project.d.ts +0 -16
  213. package/dist/commands/show/project.js +0 -121
  214. package/dist/commands/show/project.js.map +0 -1
  215. package/dist/commands/show/schema.d.ts +0 -17
  216. package/dist/commands/show/schema.js +0 -111
  217. package/dist/commands/show/schema.js.map +0 -1
  218. package/dist/commands/show/user.d.ts +0 -14
  219. package/dist/commands/show/user.js +0 -61
  220. package/dist/commands/show/user.js.map +0 -1
  221. package/dist/commands/sign-up/index.d.ts +0 -13
  222. package/dist/commands/sign-up/index.js +0 -83
  223. package/dist/commands/sign-up/index.js.map +0 -1
  224. package/dist/commands/use/project.d.ts +0 -15
  225. package/dist/commands/use/project.js +0 -103
  226. package/dist/commands/use/project.js.map +0 -1
  227. package/dist/commands/verify-vc.d.ts +0 -15
  228. package/dist/commands/verify-vc.js +0 -88
  229. package/dist/commands/verify-vc.js.map +0 -1
  230. package/dist/constants.d.ts +0 -44
  231. package/dist/constants.js +0 -78
  232. package/dist/constants.js.map +0 -1
  233. package/dist/customFlags/outputFlag.d.ts +0 -2
  234. package/dist/customFlags/outputFlag.js +0 -10
  235. package/dist/customFlags/outputFlag.js.map +0 -1
  236. package/dist/errors/index.d.ts +0 -37
  237. package/dist/errors/index.js +0 -118
  238. package/dist/errors/index.js.map +0 -1
  239. package/dist/exposedFunctions/genApp.d.ts +0 -27
  240. package/dist/exposedFunctions/genApp.js +0 -186
  241. package/dist/exposedFunctions/genApp.js.map +0 -1
  242. package/dist/fixtures/mock-projects.d.ts +0 -8
  243. package/dist/fixtures/mock-projects.js +0 -65
  244. package/dist/fixtures/mock-projects.js.map +0 -1
  245. package/dist/fixtures/mock-schemas.d.ts +0 -5
  246. package/dist/fixtures/mock-schemas.js +0 -47
  247. package/dist/fixtures/mock-schemas.js.map +0 -1
  248. package/dist/fixtures/mock-status.d.ts +0 -7
  249. package/dist/fixtures/mock-status.js +0 -88
  250. package/dist/fixtures/mock-status.js.map +0 -1
  251. package/dist/hooks/check/checkVersion.d.ts +0 -16
  252. package/dist/hooks/check/checkVersion.js +0 -23
  253. package/dist/hooks/check/checkVersion.js.map +0 -1
  254. package/dist/middleware/authentication.d.ts +0 -2
  255. package/dist/middleware/authentication.js +0 -24
  256. package/dist/middleware/authentication.js.map +0 -1
  257. package/dist/middleware/display.d.ts +0 -7
  258. package/dist/middleware/display.js +0 -72
  259. package/dist/middleware/display.js.map +0 -1
  260. package/dist/render/functions.d.ts +0 -30
  261. package/dist/render/functions.js +0 -138
  262. package/dist/render/functions.js.map +0 -1
  263. package/dist/render/texts.d.ts +0 -19
  264. package/dist/render/texts.js +0 -102
  265. package/dist/render/texts.js.map +0 -1
  266. package/dist/services/analytics/analytics.api.d.ts +0 -79
  267. package/dist/services/analytics/analytics.api.js +0 -134
  268. package/dist/services/analytics/analytics.api.js.map +0 -1
  269. package/dist/services/analytics/index.d.ts +0 -21
  270. package/dist/services/analytics/index.js +0 -80
  271. package/dist/services/analytics/index.js.map +0 -1
  272. package/dist/services/config/index.d.ts +0 -56
  273. package/dist/services/config/index.js +0 -294
  274. package/dist/services/config/index.js.map +0 -1
  275. package/dist/services/git/index.d.ts +0 -5
  276. package/dist/services/git/index.js +0 -32
  277. package/dist/services/git/index.js.map +0 -1
  278. package/dist/services/iam/iam.api.d.ts +0 -158
  279. package/dist/services/iam/iam.api.js +0 -219
  280. package/dist/services/iam/iam.api.js.map +0 -1
  281. package/dist/services/iam/index.d.ts +0 -12
  282. package/dist/services/iam/index.js +0 -77
  283. package/dist/services/iam/index.js.map +0 -1
  284. package/dist/services/index.d.ts +0 -7
  285. package/dist/services/index.js +0 -19
  286. package/dist/services/index.js.map +0 -1
  287. package/dist/services/issuance/bulkIssuance.api.d.ts +0 -23
  288. package/dist/services/issuance/bulkIssuance.api.js +0 -43
  289. package/dist/services/issuance/bulkIssuance.api.js.map +0 -1
  290. package/dist/services/issuance/index.d.ts +0 -14
  291. package/dist/services/issuance/index.js +0 -63
  292. package/dist/services/issuance/index.js.map +0 -1
  293. package/dist/services/issuance/issuance.api.d.ts +0 -226
  294. package/dist/services/issuance/issuance.api.js +0 -247
  295. package/dist/services/issuance/issuance.api.js.map +0 -1
  296. package/dist/services/issuance/parse.schema.url.d.ts +0 -5
  297. package/dist/services/issuance/parse.schema.url.js +0 -73
  298. package/dist/services/issuance/parse.schema.url.js.map +0 -1
  299. package/dist/services/schema-manager/generator/context-generator.d.ts +0 -2
  300. package/dist/services/schema-manager/generator/context-generator.js +0 -42
  301. package/dist/services/schema-manager/generator/context-generator.js.map +0 -1
  302. package/dist/services/schema-manager/generator/helpers.d.ts +0 -22
  303. package/dist/services/schema-manager/generator/helpers.js +0 -29
  304. package/dist/services/schema-manager/generator/helpers.js.map +0 -1
  305. package/dist/services/schema-manager/generator/mapping.d.ts +0 -6
  306. package/dist/services/schema-manager/generator/mapping.js +0 -22
  307. package/dist/services/schema-manager/generator/mapping.js.map +0 -1
  308. package/dist/services/schema-manager/generator/schema-generator.d.ts +0 -2
  309. package/dist/services/schema-manager/generator/schema-generator.js +0 -103
  310. package/dist/services/schema-manager/generator/schema-generator.js.map +0 -1
  311. package/dist/services/schema-manager/generator/types.d.ts +0 -87
  312. package/dist/services/schema-manager/generator/types.js +0 -15
  313. package/dist/services/schema-manager/generator/types.js.map +0 -1
  314. package/dist/services/schema-manager/index.d.ts +0 -29
  315. package/dist/services/schema-manager/index.js +0 -68
  316. package/dist/services/schema-manager/index.js.map +0 -1
  317. package/dist/services/schema-manager/schema-manager.api.d.ts +0 -279
  318. package/dist/services/schema-manager/schema-manager.api.js +0 -171
  319. package/dist/services/schema-manager/schema-manager.api.js.map +0 -1
  320. package/dist/services/schema-manager/schemaParser/schema-parser.d.ts +0 -5
  321. package/dist/services/schema-manager/schemaParser/schema-parser.js +0 -35
  322. package/dist/services/schema-manager/schemaParser/schema-parser.js.map +0 -1
  323. package/dist/services/user-management/index.d.ts +0 -38
  324. package/dist/services/user-management/index.js +0 -126
  325. package/dist/services/user-management/index.js.map +0 -1
  326. package/dist/services/user-management/user-management.api.d.ts +0 -110
  327. package/dist/services/user-management/user-management.api.js +0 -185
  328. package/dist/services/user-management/user-management.api.js.map +0 -1
  329. package/dist/services/vault/index.d.ts +0 -23
  330. package/dist/services/vault/index.js +0 -69
  331. package/dist/services/vault/index.js.map +0 -1
  332. package/dist/services/vault/typedVaultService.d.ts +0 -54
  333. package/dist/services/vault/typedVaultService.js +0 -136
  334. package/dist/services/vault/typedVaultService.js.map +0 -1
  335. package/dist/services/verification/index.d.ts +0 -9
  336. package/dist/services/verification/index.js +0 -32
  337. package/dist/services/verification/index.js.map +0 -1
  338. package/dist/services/verification/verifier.api.d.ts +0 -202
  339. package/dist/services/verification/verifier.api.js +0 -187
  340. package/dist/services/verification/verifier.api.js.map +0 -1
  341. package/dist/services/writer/index.d.ts +0 -3
  342. package/dist/services/writer/index.js +0 -17
  343. package/dist/services/writer/index.js.map +0 -1
  344. package/dist/user-actions/index.d.ts +0 -2
  345. package/dist/user-actions/index.js +0 -27
  346. package/dist/user-actions/index.js.map +0 -1
  347. package/dist/user-actions/inquirer.d.ts +0 -9
  348. package/dist/user-actions/inquirer.js +0 -131
  349. package/dist/user-actions/inquirer.js.map +0 -1
  350. package/dist/user-actions/prompts.d.ts +0 -20
  351. package/dist/user-actions/prompts.js +0 -94
  352. package/dist/user-actions/prompts.js.map +0 -1
  353. package/dist/wizard/helpers.d.ts +0 -8
  354. package/dist/wizard/helpers.js +0 -59
  355. package/dist/wizard/helpers.js.map +0 -1
@@ -0,0 +1,862 @@
1
+ /** Service Error Response */
2
+ export interface ServiceErrorResponse {
3
+ /**
4
+ * unique id for correlating this specific error to logs
5
+ * @format uuid
6
+ */
7
+ debugId: string;
8
+ /** name of the error */
9
+ name: string;
10
+ /** backwards compatible Affinidi error code */
11
+ code: string;
12
+ /** error details */
13
+ details?: {
14
+ /** issue */
15
+ issue: string;
16
+ /** fields */
17
+ field?: string;
18
+ /** value */
19
+ value?: string;
20
+ /** location */
21
+ location?: string;
22
+ }[];
23
+ }
24
+ /** Redirect Response */
25
+ export interface RedirectResponse {
26
+ /** type */
27
+ type: 'REDIRECT_RESPONSE';
28
+ /**
29
+ * URL to redirect to
30
+ * @format url
31
+ */
32
+ to: string;
33
+ }
34
+ export interface ListLoginConfigurationOutput {
35
+ configurations: LoginConfigurationObject[];
36
+ }
37
+ export interface CreateLoginConfigurationInput {
38
+ /** User defined login configuration name */
39
+ name: string;
40
+ /** OAuth 2.0 Redirect URIs */
41
+ redirectUris: string[];
42
+ /** VP definition in JSON stringify format */
43
+ vpDefinition?: string;
44
+ /** Presentation Definition */
45
+ presentationDefinition?: object;
46
+ /** Fields name/path mapping between the vp_token and the id_token */
47
+ idTokenMapping?: IdTokenMapping;
48
+ /** login configuration client metadata */
49
+ clientMetadata?: LoginConfigurationClientMetadata;
50
+ /** ID token claims output format. Default is array. */
51
+ claimFormat?: 'array' | 'map';
52
+ /** List of groups separated by space */
53
+ scope?: string;
54
+ /** Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send client_id and client_secret as application/x-www-form-urlencoded in the HTTP body. `client_secret_basic`: Send client_id and client_secret as application/x-www-form-urlencoded encoded in the HTTP Authorization header. `none`: For public clients (native/mobile apps) which can not have secret. */
55
+ tokenEndpointAuthMethod?: TokenEndpointAuthMethod;
56
+ }
57
+ export interface CreateLoginConfigurationOutput {
58
+ /** Configuration ari */
59
+ ari: string;
60
+ /** Project id */
61
+ projectId: string;
62
+ /** Configuration id */
63
+ configurationId?: string;
64
+ /** User defined login configuration name */
65
+ name: string;
66
+ /** OIDC Auth Credentials */
67
+ auth: {
68
+ /** OAuth 2.0 Client ID */
69
+ clientId: string;
70
+ /** OAuth 2.0 Client Secret */
71
+ clientSecret?: string;
72
+ /** OAuth 2.0 Client Scope */
73
+ scope?: string;
74
+ /** Issuer URL */
75
+ issuer?: string;
76
+ };
77
+ /** OAuth 2.0 Redirect URIs */
78
+ redirectUris: string[];
79
+ /** login configuration client metadata */
80
+ clientMetadata: LoginConfigurationClientMetadata;
81
+ /** OAuth 2.0 Client Creation Date */
82
+ creationDate: string;
83
+ }
84
+ export type GetLoginConfigurationOutput = LoginConfigurationObject;
85
+ export interface UpdateLoginConfigurationInput {
86
+ /** User defined login configuration name */
87
+ name?: string;
88
+ /** OAuth 2.0 Redirect URIs */
89
+ redirectUris?: string[];
90
+ /** OAuth2 client secret */
91
+ clientSecret?: string;
92
+ /** VP definition in JSON stringify format */
93
+ vpDefinition?: string;
94
+ /** Presentation Definition */
95
+ presentationDefinition?: object;
96
+ /** Fields name/path mapping between the vp_token and the id_token */
97
+ idTokenMapping?: IdTokenMapping;
98
+ /** login configuration client metadata */
99
+ clientMetadata?: LoginConfigurationClientMetadata;
100
+ /** Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send client_id and client_secret as application/x-www-form-urlencoded in the HTTP body. `client_secret_basic`: Send client_id and client_secret as application/x-www-form-urlencoded encoded in the HTTP Authorization header. `none`: For public clients (native/mobile apps) which can not have secret. */
101
+ tokenEndpointAuthMethod?: TokenEndpointAuthMethod;
102
+ }
103
+ export type UpdateLoginConfigurationOutput = LoginConfigurationObject;
104
+ export interface LoginSessionDto {
105
+ /** Session primary identifier */
106
+ id: string;
107
+ authorizationRequest: {
108
+ /** State parameter */
109
+ state: string;
110
+ /** Presentation Definition to ask from the user. In JSON Stringify format. */
111
+ presentationDefinition: string;
112
+ /** ARI is used for analytics proposals. */
113
+ ari?: string;
114
+ /** clientId used for detect origin. */
115
+ clientId?: string;
116
+ };
117
+ }
118
+ /** Input for Creating a Login Session */
119
+ export interface LoginSessionForIDPInput {
120
+ /** IDP Login Challenge to Associate the Session with */
121
+ loginChallenge: string;
122
+ /** IDP client id to Associate the Session with */
123
+ clientId: string;
124
+ }
125
+ export type LoginSessionForIDPOutput = LoginSessionDto;
126
+ /** Authorization Response per OpenID for Verifiable Presentations Specification */
127
+ export type LoginSessionAcceptResponseInput = Record<string, any>;
128
+ /** Direct Post Response URI endpoint result */
129
+ export type LoginSessionAcceptResponseOutput = Record<string, any>;
130
+ /** Authorization Response per OpenID for Verifiable Presentations Specification */
131
+ export interface LoginSessionRejectResponseInput {
132
+ /** The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to request_denied */
133
+ error?: string;
134
+ /** Description of the error in a human readable format */
135
+ errorDescription?: string;
136
+ /** Random state associated to the Session */
137
+ state: string;
138
+ [key: string]: any;
139
+ }
140
+ /** Direct Post Response URI endpoint result */
141
+ export type LoginSessionRejectResponseOutput = Record<string, any>;
142
+ export interface LoginConfigurationObject {
143
+ /** Configuration ari */
144
+ ari: string;
145
+ /** Configuration id */
146
+ configurationId?: string;
147
+ /** Project id */
148
+ projectId: string;
149
+ /** User defined login configuration name */
150
+ name: string;
151
+ /** OAuth 2.0 Redirect URIs */
152
+ redirectUris?: string[];
153
+ /** OAuth 2.0 Client Scope */
154
+ scope?: string;
155
+ /** OAuth 2.0 Client ID */
156
+ clientId: string;
157
+ /** OAuth 2.0 Client Creation Date */
158
+ creationDate: string;
159
+ /** VP definition in JSON stringify format */
160
+ vpDefinition: string;
161
+ /** Presentation Definition */
162
+ presentationDefinition?: object;
163
+ /** Fields name/path mapping between the vp_token and the id_token */
164
+ idTokenMapping: IdTokenMapping;
165
+ /** login configuration client metadata */
166
+ clientMetadata: LoginConfigurationClientMetadata;
167
+ /** Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send client_id and client_secret as application/x-www-form-urlencoded in the HTTP body. `client_secret_basic`: Send client_id and client_secret as application/x-www-form-urlencoded encoded in the HTTP Authorization header. `none`: For public clients (native/mobile apps) which can not have secret. */
168
+ tokenEndpointAuthMethod: TokenEndpointAuthMethod;
169
+ [key: string]: any;
170
+ }
171
+ /**
172
+ * Fields name/path mapping between the vp_token and the id_token
173
+ * @minItems 1
174
+ */
175
+ export type IdTokenMapping = {
176
+ /** Name(path) of the corresponding field in the vp_token */
177
+ sourceField: string;
178
+ /** Name of the corresponding field in the id_token */
179
+ idTokenClaim: string;
180
+ }[];
181
+ export interface CreateGroupInput {
182
+ /**
183
+ * name of the group for users, used as an id
184
+ * @maxLength 24
185
+ * @pattern ^[a-z_]+$
186
+ */
187
+ groupName: string;
188
+ }
189
+ export interface GroupDto {
190
+ /** Group ari */
191
+ ari: string;
192
+ /** Project id */
193
+ projectId: string;
194
+ /** name of the group, identifier within a project */
195
+ groupName: string;
196
+ /** Group creation date */
197
+ creationDate: string;
198
+ }
199
+ export interface GroupUserMappingDto {
200
+ /** Unique identifier of the user */
201
+ userId: string;
202
+ /** Group to user mapping creation date */
203
+ addedAt: string;
204
+ }
205
+ /** input used to add a user to a group */
206
+ export interface AddUserToGroupInput {
207
+ /** Unique identifier of the user */
208
+ userId: string;
209
+ }
210
+ /** input used to remove a user from a group */
211
+ export interface RemoveUserFromGroupInput {
212
+ /** Unique identifier of the user */
213
+ userId: string;
214
+ }
215
+ export interface GroupsList {
216
+ groups?: GroupDto[];
217
+ }
218
+ export interface GroupUserMappingsList {
219
+ users?: GroupUserMappingDto[];
220
+ }
221
+ /** login configuration client metadata */
222
+ export interface LoginConfigurationClientMetadata {
223
+ /** application name that will be displayed in consent page */
224
+ name: string;
225
+ /** origin url that will be displayed in consent page */
226
+ origin: string;
227
+ /** logo url that will be displayed in consent page */
228
+ logo: string;
229
+ [key: string]: any;
230
+ }
231
+ /** Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send client_id and client_secret as application/x-www-form-urlencoded in the HTTP body. `client_secret_basic`: Send client_id and client_secret as application/x-www-form-urlencoded encoded in the HTTP Authorization header. `none`: For public clients (native/mobile apps) which can not have secret. */
232
+ export declare enum TokenEndpointAuthMethod {
233
+ ClientSecretBasic = "client_secret_basic",
234
+ ClientSecretPost = "client_secret_post",
235
+ None = "none"
236
+ }
237
+ export interface InvalidParameterError {
238
+ name: 'InvalidParameterError';
239
+ message: 'Invalid parameter: ${param}.';
240
+ httpStatusCode: 400;
241
+ traceId: string;
242
+ details?: {
243
+ issue: string;
244
+ field?: string;
245
+ value?: string;
246
+ location?: string;
247
+ }[];
248
+ }
249
+ export interface NotFoundError {
250
+ name: 'NotFoundError';
251
+ message: 'Not found: ${param}.';
252
+ httpStatusCode: 404;
253
+ traceId: string;
254
+ details?: {
255
+ issue: string;
256
+ field?: string;
257
+ value?: string;
258
+ location?: string;
259
+ }[];
260
+ }
261
+ export interface JsonWebKey {
262
+ /** The value of the "keys" parameter is an array of JSON Web Key (JWK) values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. */
263
+ keys?: {
264
+ /** The "alg" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA "JSON Web Signature and Encryption Algorithms" registry established by [JWA] or be a value that contains a Collision- Resistant Name. */
265
+ alg: string;
266
+ crv?: string;
267
+ d?: string;
268
+ dp?: string;
269
+ dq?: string;
270
+ e?: string;
271
+ k?: string;
272
+ /** The "kid" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the "kid" value is unspecified. When "kid" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct "kid" values. (One example in which different keys might use the same "kid" value is if they have different "kty" (key type) values but are considered to be equivalent alternatives by the application using them.) The "kid" value is a case-sensitive string. */
273
+ kid: string;
274
+ /** The "kty" (key type) parameter identifies the cryptographic algorithm family used with the key, such as "RSA" or "EC". "kty" values should either be registered in the IANA "JSON Web Key Types" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The "kty" value is a case-sensitive string. */
275
+ kty: string;
276
+ n?: string;
277
+ p?: string;
278
+ q?: string;
279
+ qi?: string;
280
+ /** Use ("public key use") identifies the intended use of the public key. The "use" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly "sig" (signature) or "enc" (encryption). */
281
+ use: string;
282
+ x?: string;
283
+ /** The "x5c" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. */
284
+ x5c: string[];
285
+ y?: string;
286
+ }[];
287
+ }
288
+ export interface OIDCConfig {
289
+ /** OAuth 2.0 Authorization Endpoint URL */
290
+ authorization_endpoint: string;
291
+ /** OpenID Connect Back-Channel Logout Session Required. Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to identify the RP session with the OP. If supported, the sid Claim is also included in ID Tokens issued by the OP */
292
+ backchannel_logout_session_supported?: boolean;
293
+ /** OpenID Connect Back-Channel Logout Supported. Boolean value specifying whether the OP supports back-channel logout, with true indicating support. */
294
+ backchannel_logout_supported?: boolean;
295
+ /** OpenID Connect Claims Parameter Parameter Supported Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. */
296
+ claims_parameter_supported?: boolean;
297
+ /** OpenID Connect Supported Claims JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. */
298
+ claims_supported?: string[];
299
+ /** OAuth 2.0 PKCE Supported Code Challenge Methods JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by this authorization server. */
300
+ code_challenge_methods_supported?: string[];
301
+ /** OpenID Connect Verifiable Credentials Endpoint Contains the URL of the Verifiable Credentials Endpoint. */
302
+ credentials_endpoint_draft_00?: string;
303
+ /** OpenID Connect Verifiable Credentials Supported JSON array containing a list of the Verifiable Credentials supported by this authorization server. */
304
+ credentials_supported_draft_00?: {
305
+ cryptographic_binding_methods_supported?: string[];
306
+ cryptographic_suites_supported?: string[];
307
+ format?: string;
308
+ types?: string[];
309
+ }[];
310
+ /** OpenID Connect End-Session Endpoint URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP. */
311
+ end_session_endpoint?: string;
312
+ /** OpenID Connect Front-Channel Logout Session Required Boolean value specifying whether the OP can pass iss (issuer) and sid (session ID) query parameters to identify the RP session with the OP when the frontchannel_logout_uri is used. If supported, the sid Claim is also included in ID Tokens issued by the OP. */
313
+ frontchannel_logout_session_supported?: boolean;
314
+ /** OpenID Connect Front-Channel Logout Supported Boolean value specifying whether the OP supports HTTP-based logout, with true indicating support. */
315
+ frontchannel_logout_supported?: boolean;
316
+ /** OAuth 2.0 Supported Grant Types JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports. */
317
+ grant_types_supported?: string[];
318
+ /**
319
+ * OpenID Connect Default ID Token Signing Algorithms
320
+ * Algorithm used to sign OpenID Connect ID Tokens.
321
+ */
322
+ id_token_signed_response_alg: string[];
323
+ /**
324
+ * OpenID Connect Supported ID Token Signing Algorithms
325
+ * JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT.
326
+ */
327
+ id_token_signing_alg_values_supported: string[];
328
+ /**
329
+ * OpenID Connect Issuer URL
330
+ * An URL using the https scheme with no query or fragment component that the OP asserts as its IssuerURL Identifier. If IssuerURL discovery is supported , this value MUST be identical to the issuer value returned by WebFinger. This also MUST be identical to the iss Claim value in ID Tokens issued from this IssuerURL.
331
+ */
332
+ issuer: string;
333
+ /**
334
+ * OpenID Connect Well-Known JSON Web Keys URL
335
+ * URL of the OP's JSON Web Key Set [JWK] document. This contains the signing key(s) the RP uses to validate signatures from the OP. The JWK Set MAY also contain the Server's encryption key(s), which are used by RPs to encrypt requests to the Server. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate.
336
+ */
337
+ jwks_uri: string;
338
+ /** OpenID Connect Dynamic Client Registration Endpoint URL */
339
+ registration_endpoint?: string;
340
+ /**
341
+ * OpenID Connect Supported Request Object Signing Algorithms
342
+ * JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter).
343
+ */
344
+ request_object_signing_alg_values_supported?: string[];
345
+ /**
346
+ * OpenID Connect Request Parameter Supported
347
+ * Boolean value specifying whether the OP supports use of the request parameter, with true indicating support.
348
+ */
349
+ request_parameter_supported?: boolean;
350
+ /**
351
+ * OpenID Connect Request URI Parameter Supported
352
+ * Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support.
353
+ */
354
+ request_uri_parameter_supported?: boolean;
355
+ /**
356
+ * OpenID Connect Requires Request URI Registration
357
+ * Boolean value specifying whether the OP requires any request_uri values used to be pre-registered using the request_uris registration parameter.
358
+ */
359
+ require_request_uri_registration?: boolean;
360
+ /**
361
+ * OAuth 2.0 Supported Response Modes
362
+ * JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports.
363
+ */
364
+ response_modes_supported?: string[];
365
+ /**
366
+ * OAuth 2.0 Supported Response Types
367
+ * JSON array containing a list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values.
368
+ */
369
+ response_types_supported: string[];
370
+ /**
371
+ * OAuth 2.0 Token Revocation URL
372
+ * URL of the authorization server's OAuth 2.0 revocation endpoint.
373
+ */
374
+ revocation_endpoint?: string;
375
+ /**
376
+ * OAuth 2.0 Supported Scope Values
377
+ * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used
378
+ */
379
+ scopes_supported?: string[];
380
+ /**
381
+ * OpenID Connect Supported Subject Types
382
+ * JSON array containing a list of the Subject Identifier types that this OP supports. Valid types include pairwise and public.
383
+ */
384
+ subject_types_supported: string[];
385
+ /** OAuth 2.0 Token Endpoint URL */
386
+ token_endpoint: string;
387
+ /**
388
+ * OAuth 2.0 Supported Client Authentication Methods
389
+ * JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0
390
+ */
391
+ token_endpoint_auth_methods_supported?: string[];
392
+ /**
393
+ * OpenID Connect Userinfo URL
394
+ * URL of the OP's UserInfo Endpoint.
395
+ */
396
+ userinfo_endpoint?: string;
397
+ /**
398
+ * OpenID Connect User Userinfo Signing Algorithm
399
+ * Algorithm used to sign OpenID Connect Userinfo Responses.
400
+ */
401
+ userinfo_signed_response_alg: string[];
402
+ /**
403
+ * OpenID Connect Supported Userinfo Signing Algorithm
404
+ * JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
405
+ */
406
+ userinfo_signing_alg_values_supported?: string[];
407
+ }
408
+ export interface OAuth2Token {
409
+ /** The access token issued by the authorization server. */
410
+ access_token?: string;
411
+ /** The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated. */
412
+ expires_in?: number;
413
+ /** To retrieve a refresh token request the id_token scope. */
414
+ id_token?: number;
415
+ /** The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope "offline" to your access token request. */
416
+ refresh_token?: string;
417
+ /** The scope of the access token */
418
+ scope?: string;
419
+ /** The type of the token issued */
420
+ token_type?: string;
421
+ }
422
+ export interface GetUserInfo {
423
+ /** End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates. */
424
+ birthdate?: string;
425
+ /** End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7. */
426
+ email?: string;
427
+ /** True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. */
428
+ email_verified?: boolean;
429
+ /** Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters. */
430
+ family_name?: string;
431
+ /** End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable. */
432
+ gender?: string;
433
+ /** Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters. */
434
+ given_name?: string;
435
+ /** End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well. */
436
+ locale?: string;
437
+ /** Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used. */
438
+ middle_name?: string;
439
+ /** End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences. */
440
+ name?: string;
441
+ /** Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. */
442
+ nickname?: string;
443
+ /** End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678. */
444
+ phone_number?: string;
445
+ /** True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format. */
446
+ phone_number_verified?: boolean;
447
+ /** URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. */
448
+ picture?: string;
449
+ /** Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace. */
450
+ preferred_username?: string;
451
+ /** URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User. */
452
+ profile?: string;
453
+ /** Subject - Identifier for the End-User at the IssuerURL. */
454
+ sub?: string;
455
+ /** Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. */
456
+ updated_at?: number;
457
+ /** URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with. */
458
+ website?: string;
459
+ /** String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles. */
460
+ zoneinfo?: string;
461
+ }
462
+ export interface ErrorOAuth2 {
463
+ /** Error */
464
+ error: string;
465
+ /** Error Debug Information. Only available in dev mode. */
466
+ error_debug?: string;
467
+ /** Error Description */
468
+ error_description: string;
469
+ /** Error Hint. Helps the user identify the error cause. */
470
+ error_hint?: string;
471
+ /** HTTP Status Code */
472
+ status_code: string;
473
+ }
474
+ export interface ResourceCreationError {
475
+ name: 'ResourceCreationError';
476
+ message: 'Failed to create resources.';
477
+ httpStatusCode: 424;
478
+ traceId: string;
479
+ details?: {
480
+ issue: string;
481
+ field?: string;
482
+ value?: string;
483
+ location?: string;
484
+ }[];
485
+ }
486
+ export interface GroupsPerUserLimitExceededError {
487
+ name: 'GroupsPerUserLimitExceededError';
488
+ message: 'Amount of groups per user is limited.';
489
+ httpStatusCode: 409;
490
+ traceId: string;
491
+ details?: {
492
+ issue: string;
493
+ field?: string;
494
+ value?: string;
495
+ location?: string;
496
+ }[];
497
+ }
498
+ export interface ActionForbiddenError {
499
+ name: 'ActionForbiddenError';
500
+ message: 'Principal can not execute action on given resource';
501
+ httpStatusCode: 403;
502
+ traceId: string;
503
+ details?: {
504
+ issue: string;
505
+ field?: string;
506
+ value?: string;
507
+ location?: string;
508
+ }[];
509
+ }
510
+ export interface VPTokenValidationError {
511
+ name: 'VPTokenValidationError';
512
+ message: 'VP token validation ended with an error';
513
+ httpStatusCode: 400;
514
+ traceId: string;
515
+ details?: {
516
+ issue: string;
517
+ field?: string;
518
+ value?: string;
519
+ location?: string;
520
+ }[];
521
+ }
522
+ import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
523
+ export type QueryParamsType = Record<string | number, any>;
524
+ export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
525
+ /** set parameter to `true` for call `securityWorker` for this request */
526
+ secure?: boolean;
527
+ /** request path */
528
+ path: string;
529
+ /** content type of request body */
530
+ type?: ContentType;
531
+ /** query params */
532
+ query?: QueryParamsType;
533
+ /** format of response (i.e. response.json() -> format: "json") */
534
+ format?: ResponseType;
535
+ /** request body */
536
+ body?: unknown;
537
+ }
538
+ export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
539
+ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, 'data' | 'cancelToken'> {
540
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
541
+ secure?: boolean;
542
+ format?: ResponseType;
543
+ }
544
+ export declare enum ContentType {
545
+ Json = "application/json",
546
+ FormData = "multipart/form-data",
547
+ UrlEncoded = "application/x-www-form-urlencoded",
548
+ Text = "text/plain"
549
+ }
550
+ export declare class HttpClient<SecurityDataType = unknown> {
551
+ instance: AxiosInstance;
552
+ private securityData;
553
+ private securityWorker?;
554
+ private secure?;
555
+ private format?;
556
+ constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
557
+ setSecurityData: (data: SecurityDataType | null) => void;
558
+ protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
559
+ protected stringifyFormItem(formItem: unknown): string;
560
+ protected createFormData(input: Record<string, unknown>): FormData;
561
+ request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<axios.AxiosResponse<T, any>>;
562
+ }
563
+ /**
564
+ * @title OidcVpAdapterBackend
565
+ * @version 1.0.0
566
+ * @baseUrl /
567
+ * @contact nucleus <nucleus.team@affinidi.com>
568
+ *
569
+ * Affinidi OIDC VP Adapter Backend
570
+ *
571
+ * An authorization token is necessary to create or obtain a project Access Token and access Admin APIs. Follow these step-by-step [instructions](https://lemmatree.atlassian.net/wiki/spaces/NETCORE/pages/2735317648020/ASA+Developer+Flow#Instructions-on-how-to-create-the-Project.) to set up an authorization token
572
+ */
573
+ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
574
+ v1: {
575
+ /**
576
+ * @description IDP consent request automated by adapter frontend
577
+ *
578
+ * @tags consent
579
+ * @name ConsentRequest
580
+ * @summary IDP consent request automated by adapter frontend
581
+ * @request GET:/v1/consent/request
582
+ */
583
+ consentRequest: (query?: {
584
+ /** Consent challenge provided by IDP */
585
+ consent_challenge?: string;
586
+ }, params?: RequestParams) => Promise<axios.AxiosResponse<void, any>>;
587
+ /**
588
+ * @description Creates Login Session for IDP Login by using the Login Challenge
589
+ *
590
+ * @tags session
591
+ * @name LoginSessionForIdp
592
+ * @summary Create Login Session for IDP Login
593
+ * @request POST:/v1/login/sessions/for-idp
594
+ */
595
+ loginSessionForIdp: (data: LoginSessionForIDPInput, params?: RequestParams) => Promise<axios.AxiosResponse<LoginSessionDto, any>>;
596
+ /**
597
+ * @description Enable CORS by returning correct headers
598
+ *
599
+ * @tags cors
600
+ * @name CorsLoginSessionForIdp
601
+ * @summary CORS Support
602
+ * @request OPTIONS:/v1/login/sessions/for-idp
603
+ */
604
+ corsLoginSessionForIdp: (params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
605
+ /**
606
+ * @description Accepts and Validates the OIDC VP Response sent by the Wallet
607
+ *
608
+ * @tags session
609
+ * @name LoginSessionAcceptResponse
610
+ * @summary Accept OIDC VP Response for Login Session
611
+ * @request POST:/v1/login/sessions/{sessionId}/accept-response
612
+ */
613
+ loginSessionAcceptResponse: (sessionId: string, data: LoginSessionAcceptResponseInput, params?: RequestParams) => Promise<axios.AxiosResponse<LoginSessionAcceptResponseOutput, any>>;
614
+ /**
615
+ * @description Enable CORS by returning correct headers
616
+ *
617
+ * @tags cors
618
+ * @name CorsLoginSessionAcceptResponse
619
+ * @summary CORS Support
620
+ * @request OPTIONS:/v1/login/sessions/{sessionId}/accept-response
621
+ */
622
+ corsLoginSessionAcceptResponse: (sessionId: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
623
+ /**
624
+ * @description The user declines the request for access to their data
625
+ *
626
+ * @tags session
627
+ * @name LoginSessionRejectResponse
628
+ * @summary Reject Response for Login Session
629
+ * @request POST:/v1/login/sessions/{sessionId}/reject-response
630
+ */
631
+ loginSessionRejectResponse: (sessionId: string, data: LoginSessionRejectResponseInput, params?: RequestParams) => Promise<axios.AxiosResponse<LoginSessionRejectResponseOutput, any>>;
632
+ /**
633
+ * @description Enable CORS by returning correct headers
634
+ *
635
+ * @tags cors
636
+ * @name CorsLoginSessionRejectResponse
637
+ * @summary CORS Support
638
+ * @request OPTIONS:/v1/login/sessions/{sessionId}/reject-response
639
+ */
640
+ corsLoginSessionRejectResponse: (sessionId: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
641
+ /**
642
+ * @description Endpoint to retrieve list of login configurations
643
+ *
644
+ * @tags configuration
645
+ * @name ListLoginConfigurations
646
+ * @summary List login configurations
647
+ * @request GET:/v1/login/configurations
648
+ * @secure
649
+ */
650
+ listLoginConfigurations: (params?: RequestParams) => Promise<axios.AxiosResponse<ListLoginConfigurationOutput, any>>;
651
+ /**
652
+ * @description Create a new login configuration `vpDefinition` and `idTokenMapping` have default settings that provide user email VP presentation definitions. An essential default definition is in place when it comes to the login process for end users using the Chrome extension. This definition requires users to input their email address as OIDCVP compliant, which is then verified by the Affinidi verification service.
653
+ *
654
+ * @tags configuration
655
+ * @name CreateLoginConfigurations
656
+ * @summary Create a new login configuration
657
+ * @request POST:/v1/login/configurations
658
+ * @secure
659
+ */
660
+ createLoginConfigurations: (data: CreateLoginConfigurationInput, params?: RequestParams) => Promise<axios.AxiosResponse<CreateLoginConfigurationOutput, any>>;
661
+ /**
662
+ * @description Get login configuration by ID
663
+ *
664
+ * @tags configuration
665
+ * @name GetLoginConfigurationsById
666
+ * @summary Get login configuration by ID
667
+ * @request GET:/v1/login/configurations/{configurationId}
668
+ * @secure
669
+ */
670
+ getLoginConfigurationsById: (configurationId: string, params?: RequestParams) => Promise<axios.AxiosResponse<LoginConfigurationObject, any>>;
671
+ /**
672
+ * @description Update login configurations by ID
673
+ *
674
+ * @tags configuration
675
+ * @name UpdateLoginConfigurationsById
676
+ * @summary Update login configurations by ID
677
+ * @request PATCH:/v1/login/configurations/{configurationId}
678
+ * @secure
679
+ */
680
+ updateLoginConfigurationsById: (configurationId: string, data: UpdateLoginConfigurationInput, params?: RequestParams) => Promise<axios.AxiosResponse<LoginConfigurationObject, any>>;
681
+ /**
682
+ * @description Delete login configurations by ID
683
+ *
684
+ * @tags configuration
685
+ * @name DeleteLoginConfigurationsById
686
+ * @summary Delete login configurations by ID
687
+ * @request DELETE:/v1/login/configurations/{configurationId}
688
+ * @secure
689
+ */
690
+ deleteLoginConfigurationsById: (configurationId: string, params?: RequestParams) => Promise<axios.AxiosResponse<void, any>>;
691
+ /**
692
+ * @description Get Client Metadata By OAuth 2.0 Client ID
693
+ *
694
+ * @tags configuration
695
+ * @name GetClientMetadataByClientId
696
+ * @summary Get Client Metadata By OAuth 2.0 Client ID
697
+ * @request GET:/v1/login/configurations/metadata/{clientId}
698
+ */
699
+ getClientMetadataByClientId: (clientId: string, params?: RequestParams) => Promise<axios.AxiosResponse<LoginConfigurationClientMetadata, any>>;
700
+ /**
701
+ * No description
702
+ *
703
+ * @tags group
704
+ * @name ListGroups
705
+ * @request GET:/v1/groups
706
+ * @secure
707
+ */
708
+ listGroups: (params?: RequestParams) => Promise<axios.AxiosResponse<GroupsList, any>>;
709
+ /**
710
+ * No description
711
+ *
712
+ * @tags group
713
+ * @name CreateGroup
714
+ * @request POST:/v1/groups
715
+ * @secure
716
+ */
717
+ createGroup: (data: CreateGroupInput, params?: RequestParams) => Promise<axios.AxiosResponse<GroupDto, any>>;
718
+ /**
719
+ * No description
720
+ *
721
+ * @tags group
722
+ * @name GetGroupById
723
+ * @request GET:/v1/groups/{groupName}
724
+ * @secure
725
+ */
726
+ getGroupById: (groupName: string, params?: RequestParams) => Promise<axios.AxiosResponse<GroupDto, any>>;
727
+ /**
728
+ * No description
729
+ *
730
+ * @tags group
731
+ * @name DeleteGroup
732
+ * @request DELETE:/v1/groups/{groupName}
733
+ * @secure
734
+ */
735
+ deleteGroup: (groupName: string, params?: RequestParams) => Promise<axios.AxiosResponse<void, any>>;
736
+ /**
737
+ * No description
738
+ *
739
+ * @tags group
740
+ * @name ListGroupUserMappings
741
+ * @request GET:/v1/groups/{groupName}/users
742
+ * @secure
743
+ */
744
+ listGroupUserMappings: (groupName: string, params?: RequestParams) => Promise<axios.AxiosResponse<GroupUserMappingsList, any>>;
745
+ /**
746
+ * No description
747
+ *
748
+ * @tags group
749
+ * @name AddUserToGroup
750
+ * @request POST:/v1/groups/{groupName}/users
751
+ * @secure
752
+ */
753
+ addUserToGroup: (groupName: string, data: AddUserToGroupInput, params?: RequestParams) => Promise<axios.AxiosResponse<GroupUserMappingDto, any>>;
754
+ /**
755
+ * No description
756
+ *
757
+ * @tags group
758
+ * @name RemoveUserFromGroup
759
+ * @request DELETE:/v1/groups/{groupName}/users
760
+ * @secure
761
+ */
762
+ removeUserFromGroup: (groupName: string, data: RemoveUserFromGroupInput, params?: RequestParams) => Promise<axios.AxiosResponse<void, any>>;
763
+ /**
764
+ * No description
765
+ *
766
+ * @name LoginAdminProxyList
767
+ * @request GET:/v1/login/admin/{proxy+}
768
+ */
769
+ loginAdminProxyList: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
770
+ /**
771
+ * No description
772
+ *
773
+ * @name LoginAdminProxyCreate
774
+ * @request POST:/v1/login/admin/{proxy+}
775
+ */
776
+ loginAdminProxyCreate: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
777
+ /**
778
+ * No description
779
+ *
780
+ * @name LoginAdminProxyDelete
781
+ * @request DELETE:/v1/login/admin/{proxy+}
782
+ */
783
+ loginAdminProxyDelete: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
784
+ /**
785
+ * No description
786
+ *
787
+ * @name LoginAdminProxyUpdate
788
+ * @request PUT:/v1/login/admin/{proxy+}
789
+ */
790
+ loginAdminProxyUpdate: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
791
+ /**
792
+ * No description
793
+ *
794
+ * @name LoginAdminProxyPartialUpdate
795
+ * @request PATCH:/v1/login/admin/{proxy+}
796
+ */
797
+ loginAdminProxyPartialUpdate: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
798
+ /**
799
+ * @description This endpoint returns JSON Web Keys required to verifying OpenID Connect ID Tokens and, if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client libraries like node-jwks-rsa among others.
800
+ *
801
+ * @tags idp
802
+ * @name LoginProjectWellKnownJwksJsonDetail
803
+ * @summary Discover Well-Known JSON Web Keys
804
+ * @request GET:/v1/login/project/{projectId}/.well-known/jwks.json
805
+ */
806
+ loginProjectWellKnownJwksJsonDetail: (projectId: string, params?: RequestParams) => Promise<axios.AxiosResponse<JsonWebKey, any>>;
807
+ /**
808
+ * @description A mechanism for an OpenID Connect Relying Party to discover the End-User's OpenID Provider and obtain information needed to interact with it, including its OAuth 2.0 endpoint locations.
809
+ *
810
+ * @tags idp
811
+ * @name LoginProjectWellKnownOpenidConfigurationDetail
812
+ * @summary OpenID Connect Discovery
813
+ * @request GET:/v1/login/project/{projectId}/.well-known/openid-configuration
814
+ */
815
+ loginProjectWellKnownOpenidConfigurationDetail: (projectId: string, params?: RequestParams) => Promise<axios.AxiosResponse<OIDCConfig, any>>;
816
+ /**
817
+ * @description The authorization endpoint is one of the components in the OAuth 2.0 flow. It's the URL where a user is redirected to grant or deny access to their resources. When a user tries to access a service that requires OAuth 2.0 authorization, the application will redirect the user to this authorization endpoint. Here, the user can log in (if necessary) and then decide whether to grant the application access.
818
+ *
819
+ * @tags idp
820
+ * @name LoginProjectOauth2AuthDetail
821
+ * @summary OAuth 2.0 Authorize Endpoint
822
+ * @request GET:/v1/login/project/{projectId}/oauth2/auth
823
+ */
824
+ loginProjectOauth2AuthDetail: (projectId: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
825
+ /**
826
+ * @description Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by the client the token was generated for.
827
+ *
828
+ * @tags idp
829
+ * @name LoginProjectOauth2RevokeCreate
830
+ * @summary Revoke OAuth 2.0 Access or Refresh Token
831
+ * @request POST:/v1/login/project/{projectId}/oauth2/revoke
832
+ */
833
+ loginProjectOauth2RevokeCreate: (projectId: string, params?: RequestParams) => Promise<axios.AxiosResponse<void, any>>;
834
+ /**
835
+ * @description This endpoint initiates and completes user logout at the IdP OAuth2 & OpenID provider and initiates OpenID Connect Front- / Back-channel logout: https://openid.net/specs/openid-connect-frontchannel-1_0.html https://openid.net/specs/openid-connect-backchannel-1_0.html Back-channel logout is performed asynchronously and does not affect logout flow.
836
+ *
837
+ * @tags idp
838
+ * @name LoginProjectOauth2SessionsLogoutDetail
839
+ * @summary OpenID Connect Front- and Back-channel Enabled Logout
840
+ * @request GET:/v1/login/project/{projectId}/oauth2/sessions/logout
841
+ */
842
+ loginProjectOauth2SessionsLogoutDetail: (projectId: string, params?: RequestParams) => Promise<axios.AxiosResponse<void, any>>;
843
+ /**
844
+ * @description The token endpoint is a critical component in the OAuth 2.0 protocol. It's the URL where a client application makes a request to exchange an authorization grant (such as an authorization code) for an access token. After a user grants authorization at the authorization endpoint, the client application receives an authorization grant, which is then exchanged for an access token at the token endpoint. This access token is then used to access the user's resources on the protected server.
845
+ *
846
+ * @tags idp
847
+ * @name LoginProjectOauth2TokenCreate
848
+ * @summary The OAuth 2.0 Token Endpoint
849
+ * @request POST:/v1/login/project/{projectId}/oauth2/token
850
+ */
851
+ loginProjectOauth2TokenCreate: (projectId: string, params?: RequestParams) => Promise<axios.AxiosResponse<OAuth2Token, any>>;
852
+ /**
853
+ * @description This endpoint returns the payload of the ID Token, including session.id_token values, of the provided OAuth 2.0 Access Token's consent request. In the case of authentication error, a WWW-Authenticate header might be set in the response with more information about the error. See the spec for more details about header format.
854
+ *
855
+ * @tags idp
856
+ * @name LoginProjectUserinfoDetail
857
+ * @summary OpenID Connect Userinfo
858
+ * @request GET:/v1/login/project/{projectId}/userinfo
859
+ */
860
+ loginProjectUserinfoDetail: (projectId: string, params?: RequestParams) => Promise<axios.AxiosResponse<GetUserInfo, any>>;
861
+ };
862
+ }