@affinidi/cli 2.0.0-beta.4 → 2.0.0-beta.6
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.
- package/README.md +881 -637
- package/dist/commands/generate/app.d.ts +10 -0
- package/dist/commands/generate/app.js +47 -0
- package/dist/commands/generate/app.js.map +1 -0
- package/dist/commands/iam/add-principal.d.ts +11 -0
- package/dist/commands/iam/add-principal.js +56 -0
- package/dist/commands/iam/add-principal.js.map +1 -0
- package/dist/commands/iam/get-policies.d.ts +12 -0
- package/dist/commands/iam/get-policies.js +57 -0
- package/dist/commands/iam/get-policies.js.map +1 -0
- package/dist/commands/iam/list-principals.d.ts +8 -0
- package/dist/commands/iam/list-principals.js +24 -0
- package/dist/commands/iam/list-principals.js.map +1 -0
- package/dist/commands/iam/remove-principal.d.ts +14 -0
- package/dist/commands/iam/remove-principal.js +56 -0
- package/dist/commands/iam/remove-principal.js.map +1 -0
- package/dist/commands/iam/update-policies.d.ts +13 -0
- package/dist/commands/iam/update-policies.js +114 -0
- package/dist/commands/iam/update-policies.js.map +1 -0
- package/dist/commands/login/add-user-to-group.d.ts +11 -0
- package/dist/commands/login/add-user-to-group.js +32 -0
- package/dist/commands/login/add-user-to-group.js.map +1 -0
- package/dist/commands/login/create-config.d.ts +17 -0
- package/dist/commands/login/create-config.js +131 -0
- package/dist/commands/login/create-config.js.map +1 -0
- package/dist/commands/login/create-group.d.ts +10 -0
- package/dist/commands/login/create-group.js +35 -0
- package/dist/commands/login/create-group.js.map +1 -0
- package/dist/commands/login/delete-config.d.ts +11 -0
- package/dist/commands/login/delete-config.js +33 -0
- package/dist/commands/login/delete-config.js.map +1 -0
- package/dist/commands/login/delete-group.d.ts +11 -0
- package/dist/commands/login/delete-group.js +33 -0
- package/dist/commands/login/delete-group.js.map +1 -0
- package/dist/commands/login/get-config.d.ts +10 -0
- package/dist/commands/login/get-config.js +33 -0
- package/dist/commands/login/get-config.js.map +1 -0
- package/dist/commands/login/get-group.d.ts +10 -0
- package/dist/commands/login/get-group.js +33 -0
- package/dist/commands/login/get-group.js.map +1 -0
- package/dist/commands/login/list-configs.d.ts +7 -0
- package/dist/commands/login/list-configs.js +21 -0
- package/dist/commands/login/list-configs.js.map +1 -0
- package/dist/commands/login/list-groups.d.ts +7 -0
- package/dist/commands/login/list-groups.js +21 -0
- package/dist/commands/login/list-groups.js.map +1 -0
- package/dist/commands/login/list-users-in-group.d.ts +10 -0
- package/dist/commands/login/list-users-in-group.js +29 -0
- package/dist/commands/login/list-users-in-group.js.map +1 -0
- package/dist/commands/login/remove-user-from-group.d.ts +13 -0
- package/dist/commands/login/remove-user-from-group.js +33 -0
- package/dist/commands/login/remove-user-from-group.js.map +1 -0
- package/dist/commands/login/update-config.d.ts +17 -0
- package/dist/commands/login/update-config.js +120 -0
- package/dist/commands/login/update-config.js.map +1 -0
- package/dist/commands/project/create-project.d.ts +10 -0
- package/dist/commands/project/create-project.js +35 -0
- package/dist/commands/project/create-project.js.map +1 -0
- package/dist/commands/project/get-active-project.d.ts +7 -0
- package/dist/commands/project/get-active-project.js +21 -0
- package/dist/commands/project/get-active-project.js.map +1 -0
- package/dist/commands/project/list-projects.d.ts +7 -0
- package/dist/commands/project/list-projects.js +21 -0
- package/dist/commands/project/list-projects.js.map +1 -0
- package/dist/commands/project/select-project.d.ts +10 -0
- package/dist/commands/project/select-project.js +70 -0
- package/dist/commands/project/select-project.js.map +1 -0
- package/dist/commands/start.d.ts +4 -34
- package/dist/commands/start.js +20 -409
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/stop.d.ts +6 -0
- package/dist/commands/stop.js +30 -0
- package/dist/commands/stop.js.map +1 -0
- package/dist/commands/token/create-token.d.ts +13 -0
- package/dist/commands/token/create-token.js +78 -0
- package/dist/commands/token/create-token.js.map +1 -0
- package/dist/commands/token/delete-token.d.ts +11 -0
- package/dist/commands/token/delete-token.js +36 -0
- package/dist/commands/token/delete-token.js.map +1 -0
- package/dist/commands/token/get-token.d.ts +10 -0
- package/dist/commands/token/get-token.js +36 -0
- package/dist/commands/token/get-token.js.map +1 -0
- package/dist/commands/token/list-tokens.d.ts +7 -0
- package/dist/commands/token/list-tokens.js +21 -0
- package/dist/commands/token/list-tokens.js.map +1 -0
- package/dist/commands/token/update-token.d.ts +14 -0
- package/dist/commands/token/update-token.js +83 -0
- package/dist/commands/token/update-token.js.map +1 -0
- package/dist/common/base-command.d.ts +28 -0
- package/dist/common/base-command.js +61 -0
- package/dist/common/base-command.js.map +1 -0
- package/dist/common/constants.d.ts +18 -0
- package/dist/common/constants.js +26 -0
- package/dist/common/constants.js.map +1 -0
- package/dist/common/index.d.ts +2 -0
- package/dist/common/index.js +8 -0
- package/dist/common/index.js.map +1 -0
- package/dist/helpers/degit.d.ts +1 -0
- package/dist/helpers/degit.js +26 -0
- package/dist/helpers/degit.js.map +1 -0
- package/dist/helpers/index.d.ts +3 -0
- package/dist/helpers/index.js +11 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/jwk.d.ts +4 -0
- package/dist/helpers/jwk.js +29 -0
- package/dist/helpers/jwk.js.map +1 -0
- package/dist/helpers/prompt-required-flags.d.ts +1 -0
- package/dist/helpers/prompt-required-flags.js +14 -0
- package/dist/helpers/prompt-required-flags.js.map +1 -0
- package/dist/hooks/check/{checkVersion.d.ts → check-version.d.ts} +3 -2
- package/dist/hooks/check/{checkVersion.js → check-version.js} +7 -6
- package/dist/hooks/check/check-version.js.map +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/services/affinidi/adapters/index.d.ts +1 -0
- package/dist/services/affinidi/adapters/index.js +5 -0
- package/dist/services/affinidi/adapters/index.js.map +1 -0
- package/dist/services/affinidi/adapters/logger/console-logger-adapter.d.ts +12 -0
- package/dist/services/affinidi/adapters/logger/console-logger-adapter.js +56 -0
- package/dist/services/affinidi/adapters/logger/console-logger-adapter.js.map +1 -0
- package/dist/services/affinidi/adapters/logger/index.d.ts +2 -0
- package/dist/services/affinidi/adapters/logger/index.js +6 -0
- package/dist/services/affinidi/adapters/logger/index.js.map +1 -0
- package/dist/services/affinidi/adapters/logger/logger-adapter.d.ts +10 -0
- package/dist/services/affinidi/adapters/logger/logger-adapter.js +3 -0
- package/dist/services/affinidi/adapters/logger/logger-adapter.js.map +1 -0
- package/dist/services/affinidi/auth/index.d.ts +62 -0
- package/dist/services/affinidi/auth/index.js +136 -0
- package/dist/services/affinidi/auth/index.js.map +1 -0
- package/dist/services/affinidi/auth/providers/config.d.ts +15 -0
- package/dist/services/affinidi/auth/providers/config.js +33 -0
- package/dist/services/affinidi/auth/providers/config.js.map +1 -0
- package/dist/services/affinidi/auth/providers/error-login-page.d.ts +1 -0
- package/dist/services/affinidi/auth/providers/error-login-page.js +111 -0
- package/dist/services/affinidi/auth/providers/error-login-page.js.map +1 -0
- package/dist/services/affinidi/auth/providers/index.d.ts +3 -0
- package/dist/services/affinidi/auth/providers/index.js +8 -0
- package/dist/services/affinidi/auth/providers/index.js.map +1 -0
- package/dist/services/affinidi/auth/providers/ory-pkce.d.ts +47 -0
- package/dist/services/affinidi/auth/providers/ory-pkce.js +216 -0
- package/dist/services/affinidi/auth/providers/ory-pkce.js.map +1 -0
- package/dist/services/affinidi/auth/providers/ory.d.ts +22 -0
- package/dist/services/affinidi/auth/providers/ory.js +154 -0
- package/dist/services/affinidi/auth/providers/ory.js.map +1 -0
- package/dist/services/affinidi/auth/providers/successful-login-page.d.ts +1 -0
- package/dist/services/affinidi/auth/providers/successful-login-page.js +110 -0
- package/dist/services/affinidi/auth/providers/successful-login-page.js.map +1 -0
- package/dist/services/affinidi/auth/providers/types.d.ts +10 -0
- package/dist/services/affinidi/auth/providers/types.js +3 -0
- package/dist/services/affinidi/auth/providers/types.js.map +1 -0
- package/dist/services/affinidi/auth/token.d.ts +50 -0
- package/dist/services/affinidi/auth/token.js +117 -0
- package/dist/services/affinidi/auth/token.js.map +1 -0
- package/dist/services/affinidi/config.d.ts +12 -0
- package/dist/services/affinidi/config.js +3 -0
- package/dist/services/affinidi/config.js.map +1 -0
- package/dist/services/affinidi/errors/index.d.ts +1 -0
- package/dist/services/affinidi/errors/index.js +74 -0
- package/dist/services/affinidi/errors/index.js.map +1 -0
- package/dist/services/affinidi/iam/iam.api.d.ts +454 -0
- package/dist/services/affinidi/iam/iam.api.js +421 -0
- package/dist/services/affinidi/iam/iam.api.js.map +1 -0
- package/dist/services/affinidi/iam/index.d.ts +21 -0
- package/dist/services/affinidi/iam/index.js +226 -0
- package/dist/services/affinidi/iam/index.js.map +1 -0
- package/dist/services/affinidi/index.d.ts +24 -0
- package/dist/services/affinidi/index.js +52 -0
- package/dist/services/affinidi/index.js.map +1 -0
- package/dist/services/affinidi/vp-adapter/index.d.ts +20 -0
- package/dist/services/affinidi/vp-adapter/index.js +188 -0
- package/dist/services/affinidi/vp-adapter/index.js.map +1 -0
- package/dist/services/affinidi/vp-adapter/vp-adapter.api.d.ts +602 -0
- package/dist/services/affinidi/vp-adapter/vp-adapter.api.js +484 -0
- package/dist/services/affinidi/vp-adapter/vp-adapter.api.js.map +1 -0
- package/dist/services/auth0/index.d.ts +7 -0
- package/dist/services/auth0/index.js +104 -0
- package/dist/services/auth0/index.js.map +1 -0
- package/dist/services/config/index.d.ts +10 -30
- package/dist/services/config/index.js +29 -163
- package/dist/services/config/index.js.map +1 -1
- package/dist/services/index.d.ts +0 -6
- package/dist/services/index.js +1 -14
- package/dist/services/index.js.map +1 -1
- package/dist/services/urls.d.ts +3 -0
- package/dist/services/urls.js +15 -0
- package/dist/services/urls.js.map +1 -0
- package/package.json +73 -73
- package/bin/inject-secrets.js +0 -16
- package/bin/postinstall.js +0 -31
- package/dist/commands/analytics.d.ts +0 -21
- package/dist/commands/analytics.js +0 -74
- package/dist/commands/analytics.js.map +0 -1
- package/dist/commands/config/index.d.ts +0 -15
- package/dist/commands/config/index.js +0 -71
- package/dist/commands/config/index.js.map +0 -1
- package/dist/commands/config/username.d.ts +0 -17
- package/dist/commands/config/username.js +0 -87
- package/dist/commands/config/username.js.map +0 -1
- package/dist/commands/config/view.d.ts +0 -16
- package/dist/commands/config/view.js +0 -59
- package/dist/commands/config/view.js.map +0 -1
- package/dist/commands/create/project.d.ts +0 -16
- package/dist/commands/create/project.js +0 -82
- package/dist/commands/create/project.js.map +0 -1
- package/dist/commands/create/schema.d.ts +0 -18
- package/dist/commands/create/schema.js +0 -149
- package/dist/commands/create/schema.js.map +0 -1
- package/dist/commands/generate-application/index.d.ts +0 -28
- package/dist/commands/generate-application/index.js +0 -94
- package/dist/commands/generate-application/index.js.map +0 -1
- package/dist/commands/issue-vc.d.ts +0 -21
- package/dist/commands/issue-vc.js +0 -159
- package/dist/commands/issue-vc.js.map +0 -1
- package/dist/commands/list/projects.d.ts +0 -17
- package/dist/commands/list/projects.js +0 -110
- package/dist/commands/list/projects.js.map +0 -1
- package/dist/commands/list/schemas.d.ts +0 -26
- package/dist/commands/list/schemas.js +0 -164
- package/dist/commands/list/schemas.js.map +0 -1
- package/dist/commands/login/index.d.ts +0 -17
- package/dist/commands/login/index.js +0 -142
- package/dist/commands/login/index.js.map +0 -1
- package/dist/commands/logout/index.d.ts +0 -13
- package/dist/commands/logout/index.js +0 -72
- package/dist/commands/logout/index.js.map +0 -1
- package/dist/commands/rename/project.d.ts +0 -17
- package/dist/commands/rename/project.js +0 -100
- package/dist/commands/rename/project.js.map +0 -1
- package/dist/commands/show/project.d.ts +0 -16
- package/dist/commands/show/project.js +0 -121
- package/dist/commands/show/project.js.map +0 -1
- package/dist/commands/show/schema.d.ts +0 -17
- package/dist/commands/show/schema.js +0 -111
- package/dist/commands/show/schema.js.map +0 -1
- package/dist/commands/show/user.d.ts +0 -14
- package/dist/commands/show/user.js +0 -61
- package/dist/commands/show/user.js.map +0 -1
- package/dist/commands/sign-up/index.d.ts +0 -13
- package/dist/commands/sign-up/index.js +0 -83
- package/dist/commands/sign-up/index.js.map +0 -1
- package/dist/commands/use/project.d.ts +0 -15
- package/dist/commands/use/project.js +0 -103
- package/dist/commands/use/project.js.map +0 -1
- package/dist/commands/verify-vc.d.ts +0 -15
- package/dist/commands/verify-vc.js +0 -88
- package/dist/commands/verify-vc.js.map +0 -1
- package/dist/constants.d.ts +0 -44
- package/dist/constants.js +0 -78
- package/dist/constants.js.map +0 -1
- package/dist/customFlags/outputFlag.d.ts +0 -2
- package/dist/customFlags/outputFlag.js +0 -10
- package/dist/customFlags/outputFlag.js.map +0 -1
- package/dist/errors/index.d.ts +0 -37
- package/dist/errors/index.js +0 -118
- package/dist/errors/index.js.map +0 -1
- package/dist/exposedFunctions/genApp.d.ts +0 -27
- package/dist/exposedFunctions/genApp.js +0 -186
- package/dist/exposedFunctions/genApp.js.map +0 -1
- package/dist/fixtures/mock-projects.d.ts +0 -8
- package/dist/fixtures/mock-projects.js +0 -65
- package/dist/fixtures/mock-projects.js.map +0 -1
- package/dist/fixtures/mock-schemas.d.ts +0 -5
- package/dist/fixtures/mock-schemas.js +0 -47
- package/dist/fixtures/mock-schemas.js.map +0 -1
- package/dist/fixtures/mock-status.d.ts +0 -7
- package/dist/fixtures/mock-status.js +0 -88
- package/dist/fixtures/mock-status.js.map +0 -1
- package/dist/hooks/check/checkVersion.js.map +0 -1
- package/dist/middleware/authentication.d.ts +0 -2
- package/dist/middleware/authentication.js +0 -24
- package/dist/middleware/authentication.js.map +0 -1
- package/dist/middleware/display.d.ts +0 -7
- package/dist/middleware/display.js +0 -72
- package/dist/middleware/display.js.map +0 -1
- package/dist/render/functions.d.ts +0 -30
- package/dist/render/functions.js +0 -138
- package/dist/render/functions.js.map +0 -1
- package/dist/render/texts.d.ts +0 -19
- package/dist/render/texts.js +0 -102
- package/dist/render/texts.js.map +0 -1
- package/dist/services/analytics/analytics.api.d.ts +0 -79
- package/dist/services/analytics/analytics.api.js +0 -134
- package/dist/services/analytics/analytics.api.js.map +0 -1
- package/dist/services/analytics/index.d.ts +0 -21
- package/dist/services/analytics/index.js +0 -80
- package/dist/services/analytics/index.js.map +0 -1
- package/dist/services/git/index.d.ts +0 -5
- package/dist/services/git/index.js +0 -32
- package/dist/services/git/index.js.map +0 -1
- package/dist/services/iam/iam.api.d.ts +0 -158
- package/dist/services/iam/iam.api.js +0 -219
- package/dist/services/iam/iam.api.js.map +0 -1
- package/dist/services/iam/index.d.ts +0 -12
- package/dist/services/iam/index.js +0 -77
- package/dist/services/iam/index.js.map +0 -1
- package/dist/services/issuance/bulkIssuance.api.d.ts +0 -23
- package/dist/services/issuance/bulkIssuance.api.js +0 -43
- package/dist/services/issuance/bulkIssuance.api.js.map +0 -1
- package/dist/services/issuance/index.d.ts +0 -14
- package/dist/services/issuance/index.js +0 -63
- package/dist/services/issuance/index.js.map +0 -1
- package/dist/services/issuance/issuance.api.d.ts +0 -226
- package/dist/services/issuance/issuance.api.js +0 -247
- package/dist/services/issuance/issuance.api.js.map +0 -1
- package/dist/services/issuance/parse.schema.url.d.ts +0 -5
- package/dist/services/issuance/parse.schema.url.js +0 -73
- package/dist/services/issuance/parse.schema.url.js.map +0 -1
- package/dist/services/schema-manager/generator/context-generator.d.ts +0 -2
- package/dist/services/schema-manager/generator/context-generator.js +0 -42
- package/dist/services/schema-manager/generator/context-generator.js.map +0 -1
- package/dist/services/schema-manager/generator/helpers.d.ts +0 -22
- package/dist/services/schema-manager/generator/helpers.js +0 -29
- package/dist/services/schema-manager/generator/helpers.js.map +0 -1
- package/dist/services/schema-manager/generator/mapping.d.ts +0 -6
- package/dist/services/schema-manager/generator/mapping.js +0 -22
- package/dist/services/schema-manager/generator/mapping.js.map +0 -1
- package/dist/services/schema-manager/generator/schema-generator.d.ts +0 -2
- package/dist/services/schema-manager/generator/schema-generator.js +0 -103
- package/dist/services/schema-manager/generator/schema-generator.js.map +0 -1
- package/dist/services/schema-manager/generator/types.d.ts +0 -87
- package/dist/services/schema-manager/generator/types.js +0 -15
- package/dist/services/schema-manager/generator/types.js.map +0 -1
- package/dist/services/schema-manager/index.d.ts +0 -29
- package/dist/services/schema-manager/index.js +0 -68
- package/dist/services/schema-manager/index.js.map +0 -1
- package/dist/services/schema-manager/schema-manager.api.d.ts +0 -279
- package/dist/services/schema-manager/schema-manager.api.js +0 -171
- package/dist/services/schema-manager/schema-manager.api.js.map +0 -1
- package/dist/services/schema-manager/schemaParser/schema-parser.d.ts +0 -5
- package/dist/services/schema-manager/schemaParser/schema-parser.js +0 -35
- package/dist/services/schema-manager/schemaParser/schema-parser.js.map +0 -1
- package/dist/services/user-management/index.d.ts +0 -38
- package/dist/services/user-management/index.js +0 -126
- package/dist/services/user-management/index.js.map +0 -1
- package/dist/services/user-management/user-management.api.d.ts +0 -110
- package/dist/services/user-management/user-management.api.js +0 -185
- package/dist/services/user-management/user-management.api.js.map +0 -1
- package/dist/services/vault/index.d.ts +0 -23
- package/dist/services/vault/index.js +0 -69
- package/dist/services/vault/index.js.map +0 -1
- package/dist/services/vault/typedVaultService.d.ts +0 -54
- package/dist/services/vault/typedVaultService.js +0 -136
- package/dist/services/vault/typedVaultService.js.map +0 -1
- package/dist/services/verification/index.d.ts +0 -9
- package/dist/services/verification/index.js +0 -32
- package/dist/services/verification/index.js.map +0 -1
- package/dist/services/verification/verifier.api.d.ts +0 -202
- package/dist/services/verification/verifier.api.js +0 -187
- package/dist/services/verification/verifier.api.js.map +0 -1
- package/dist/services/writer/index.d.ts +0 -3
- package/dist/services/writer/index.js +0 -17
- package/dist/services/writer/index.js.map +0 -1
- package/dist/user-actions/index.d.ts +0 -2
- package/dist/user-actions/index.js +0 -27
- package/dist/user-actions/index.js.map +0 -1
- package/dist/user-actions/inquirer.d.ts +0 -9
- package/dist/user-actions/inquirer.js +0 -131
- package/dist/user-actions/inquirer.js.map +0 -1
- package/dist/user-actions/prompts.d.ts +0 -20
- package/dist/user-actions/prompts.js +0 -94
- package/dist/user-actions/prompts.js.map +0 -1
- package/dist/wizard/helpers.d.ts +0 -8
- package/dist/wizard/helpers.js +0 -59
- package/dist/wizard/helpers.js.map +0 -1
|
@@ -0,0 +1,602 @@
|
|
|
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
|
+
id: 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
|
+
}
|
|
123
|
+
export type LoginSessionForIDPOutput = LoginSessionDto;
|
|
124
|
+
/** Authorization Response per OpenID for Verifiable Presentations Specification */
|
|
125
|
+
export type LoginSessionAcceptResponseInput = Record<string, any>;
|
|
126
|
+
/** Direct Post Response URI endpoint result */
|
|
127
|
+
export type LoginSessionAcceptResponseOutput = Record<string, any>;
|
|
128
|
+
/** Authorization Response per OpenID for Verifiable Presentations Specification */
|
|
129
|
+
export interface LoginSessionRejectResponseInput {
|
|
130
|
+
/** The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to request_denied */
|
|
131
|
+
error?: string;
|
|
132
|
+
/** Description of the error in a human readable format */
|
|
133
|
+
errorDescription?: string;
|
|
134
|
+
/** Random state associated to the Session */
|
|
135
|
+
state: string;
|
|
136
|
+
[key: string]: any;
|
|
137
|
+
}
|
|
138
|
+
/** Direct Post Response URI endpoint result */
|
|
139
|
+
export type LoginSessionRejectResponseOutput = Record<string, any>;
|
|
140
|
+
export interface LoginConfigurationObject {
|
|
141
|
+
/** Configuration ari */
|
|
142
|
+
ari: string;
|
|
143
|
+
/** Configuration id */
|
|
144
|
+
id: string;
|
|
145
|
+
/** Project id */
|
|
146
|
+
projectId: string;
|
|
147
|
+
/** User defined login configuration name */
|
|
148
|
+
name: string;
|
|
149
|
+
/** OAuth 2.0 Redirect URIs */
|
|
150
|
+
redirectUris?: string[];
|
|
151
|
+
/** OAuth 2.0 Client Scope */
|
|
152
|
+
scope?: string;
|
|
153
|
+
/** OAuth 2.0 Client ID */
|
|
154
|
+
clientId: string;
|
|
155
|
+
/** OAuth 2.0 Client Creation Date */
|
|
156
|
+
creationDate: string;
|
|
157
|
+
/** VP definition in JSON stringify format */
|
|
158
|
+
vpDefinition: string;
|
|
159
|
+
/** Presentation Definition */
|
|
160
|
+
presentationDefinition?: object;
|
|
161
|
+
/** Fields name/path mapping between the vp_token and the id_token */
|
|
162
|
+
idTokenMapping: IdTokenMapping;
|
|
163
|
+
/** login configuration client metadata */
|
|
164
|
+
clientMetadata: LoginConfigurationClientMetadata;
|
|
165
|
+
[key: string]: any;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Fields name/path mapping between the vp_token and the id_token
|
|
169
|
+
* @minItems 1
|
|
170
|
+
*/
|
|
171
|
+
export type IdTokenMapping = {
|
|
172
|
+
/** Name(path) of the corresponding field in the vp_token */
|
|
173
|
+
sourceField: string;
|
|
174
|
+
/** Name of the corresponding field in the id_token */
|
|
175
|
+
idTokenClaim: string;
|
|
176
|
+
}[];
|
|
177
|
+
export interface CreateGroupInput {
|
|
178
|
+
/**
|
|
179
|
+
* name of the group for users, used as an id
|
|
180
|
+
* @maxLength 24
|
|
181
|
+
* @pattern ^[a-z_]+$
|
|
182
|
+
*/
|
|
183
|
+
groupName: string;
|
|
184
|
+
}
|
|
185
|
+
export interface GroupDto {
|
|
186
|
+
/** Group ari */
|
|
187
|
+
ari: string;
|
|
188
|
+
/** Project id */
|
|
189
|
+
projectId: string;
|
|
190
|
+
/** name of the group, identifier within a project */
|
|
191
|
+
groupName: string;
|
|
192
|
+
/** Group creation date */
|
|
193
|
+
creationDate: string;
|
|
194
|
+
}
|
|
195
|
+
export interface GroupUserMappingDto {
|
|
196
|
+
/** Group user mapping ari */
|
|
197
|
+
ari: string;
|
|
198
|
+
/** Group user mapping id */
|
|
199
|
+
id: string;
|
|
200
|
+
/** Project id */
|
|
201
|
+
projectId: string;
|
|
202
|
+
/** Group name */
|
|
203
|
+
groupName: string;
|
|
204
|
+
/** Unique identifier of the user, subject of the token */
|
|
205
|
+
sub: string;
|
|
206
|
+
/** Group to user mapping creation date */
|
|
207
|
+
creationDate: string;
|
|
208
|
+
}
|
|
209
|
+
/** input used to create a user group mapping or in other words add user to group */
|
|
210
|
+
export interface AddUserToGroupInput {
|
|
211
|
+
/** Unique identifier of the user, subject of the token */
|
|
212
|
+
sub: string;
|
|
213
|
+
}
|
|
214
|
+
export interface GroupsList {
|
|
215
|
+
groups?: GroupDto[];
|
|
216
|
+
}
|
|
217
|
+
export interface GroupUserMappingsList {
|
|
218
|
+
mappings?: GroupUserMappingDto[];
|
|
219
|
+
}
|
|
220
|
+
/** login configuration client metadata */
|
|
221
|
+
export interface LoginConfigurationClientMetadata {
|
|
222
|
+
/** application name that will be displayed in consent page */
|
|
223
|
+
name: string;
|
|
224
|
+
/** origin url that will be displayed in consent page */
|
|
225
|
+
origin: string;
|
|
226
|
+
/** logo url that will be displayed in consent page */
|
|
227
|
+
logo: string;
|
|
228
|
+
[key: string]: any;
|
|
229
|
+
}
|
|
230
|
+
/** 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. */
|
|
231
|
+
export declare enum TokenEndpointAuthMethod {
|
|
232
|
+
ClientSecretBasic = "client_secret_basic",
|
|
233
|
+
ClientSecretPost = "client_secret_post",
|
|
234
|
+
None = "none"
|
|
235
|
+
}
|
|
236
|
+
export interface InvalidParameterError {
|
|
237
|
+
name: 'InvalidParameterError';
|
|
238
|
+
message: 'Invalid parameter: ${param}.';
|
|
239
|
+
httpStatusCode: 400;
|
|
240
|
+
traceId: string;
|
|
241
|
+
details?: {
|
|
242
|
+
issue: string;
|
|
243
|
+
field?: string;
|
|
244
|
+
value?: string;
|
|
245
|
+
location?: string;
|
|
246
|
+
}[];
|
|
247
|
+
}
|
|
248
|
+
export interface NotFoundError {
|
|
249
|
+
name: 'NotFoundError';
|
|
250
|
+
message: 'Not found: ${param}.';
|
|
251
|
+
httpStatusCode: 404;
|
|
252
|
+
traceId: string;
|
|
253
|
+
details?: {
|
|
254
|
+
issue: string;
|
|
255
|
+
field?: string;
|
|
256
|
+
value?: string;
|
|
257
|
+
location?: string;
|
|
258
|
+
}[];
|
|
259
|
+
}
|
|
260
|
+
export interface ResourceCreationError {
|
|
261
|
+
name: 'ResourceCreationError';
|
|
262
|
+
message: 'Failed to create resources.';
|
|
263
|
+
httpStatusCode: 424;
|
|
264
|
+
traceId: string;
|
|
265
|
+
details?: {
|
|
266
|
+
issue: string;
|
|
267
|
+
field?: string;
|
|
268
|
+
value?: string;
|
|
269
|
+
location?: string;
|
|
270
|
+
}[];
|
|
271
|
+
}
|
|
272
|
+
export interface GroupsPerUserLimitExceededError {
|
|
273
|
+
name: 'GroupsPerUserLimitExceededError';
|
|
274
|
+
message: 'Amount of groups per user is limited.';
|
|
275
|
+
httpStatusCode: 409;
|
|
276
|
+
traceId: string;
|
|
277
|
+
details?: {
|
|
278
|
+
issue: string;
|
|
279
|
+
field?: string;
|
|
280
|
+
value?: string;
|
|
281
|
+
location?: string;
|
|
282
|
+
}[];
|
|
283
|
+
}
|
|
284
|
+
export interface ActionForbiddenError {
|
|
285
|
+
name: 'ActionForbiddenError';
|
|
286
|
+
message: 'Principal can not execute action on given resource';
|
|
287
|
+
httpStatusCode: 403;
|
|
288
|
+
traceId: string;
|
|
289
|
+
details?: {
|
|
290
|
+
issue: string;
|
|
291
|
+
field?: string;
|
|
292
|
+
value?: string;
|
|
293
|
+
location?: string;
|
|
294
|
+
}[];
|
|
295
|
+
}
|
|
296
|
+
export interface VPTokenValidationError {
|
|
297
|
+
name: 'VPTokenValidationError';
|
|
298
|
+
message: 'VP token validation ended with an error';
|
|
299
|
+
httpStatusCode: 400;
|
|
300
|
+
traceId: string;
|
|
301
|
+
details?: {
|
|
302
|
+
issue: string;
|
|
303
|
+
field?: string;
|
|
304
|
+
value?: string;
|
|
305
|
+
location?: string;
|
|
306
|
+
}[];
|
|
307
|
+
}
|
|
308
|
+
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
|
|
309
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
310
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
|
|
311
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
312
|
+
secure?: boolean;
|
|
313
|
+
/** request path */
|
|
314
|
+
path: string;
|
|
315
|
+
/** content type of request body */
|
|
316
|
+
type?: ContentType;
|
|
317
|
+
/** query params */
|
|
318
|
+
query?: QueryParamsType;
|
|
319
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
320
|
+
format?: ResponseType;
|
|
321
|
+
/** request body */
|
|
322
|
+
body?: unknown;
|
|
323
|
+
}
|
|
324
|
+
export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
|
|
325
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, 'data' | 'cancelToken'> {
|
|
326
|
+
securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
327
|
+
secure?: boolean;
|
|
328
|
+
format?: ResponseType;
|
|
329
|
+
}
|
|
330
|
+
export declare enum ContentType {
|
|
331
|
+
Json = "application/json",
|
|
332
|
+
FormData = "multipart/form-data",
|
|
333
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
334
|
+
Text = "text/plain"
|
|
335
|
+
}
|
|
336
|
+
export declare class HttpClient<SecurityDataType = unknown> {
|
|
337
|
+
instance: AxiosInstance;
|
|
338
|
+
private securityData;
|
|
339
|
+
private securityWorker?;
|
|
340
|
+
private secure?;
|
|
341
|
+
private format?;
|
|
342
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
|
|
343
|
+
setSecurityData: (data: SecurityDataType | null) => void;
|
|
344
|
+
protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
|
|
345
|
+
protected stringifyFormItem(formItem: unknown): string;
|
|
346
|
+
protected createFormData(input: Record<string, unknown>): FormData;
|
|
347
|
+
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<axios.AxiosResponse<T, any>>;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* @title OidcVpAdapterBackend
|
|
351
|
+
* @version 1.0.0
|
|
352
|
+
* @baseUrl /
|
|
353
|
+
* @contact nucleus <nucleus.team@affinidi.com>
|
|
354
|
+
*
|
|
355
|
+
* Affinidi OIDC VP Adapter Backend
|
|
356
|
+
*
|
|
357
|
+
* 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
|
|
358
|
+
*/
|
|
359
|
+
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
360
|
+
v1: {
|
|
361
|
+
/**
|
|
362
|
+
* @description IDP consent request automated by adapter frontend
|
|
363
|
+
*
|
|
364
|
+
* @tags consent
|
|
365
|
+
* @name ConsentRequest
|
|
366
|
+
* @summary IDP consent request automated by adapter frontend
|
|
367
|
+
* @request GET:/v1/consent/request
|
|
368
|
+
*/
|
|
369
|
+
consentRequest: (query?: {
|
|
370
|
+
/** Consent challenge provided by IDP */
|
|
371
|
+
consent_challenge?: string;
|
|
372
|
+
}, params?: RequestParams) => Promise<axios.AxiosResponse<void, any>>;
|
|
373
|
+
/**
|
|
374
|
+
* @description Creates Login Session for IDP Login by using the Login Challenge
|
|
375
|
+
*
|
|
376
|
+
* @tags session
|
|
377
|
+
* @name LoginSessionForIdp
|
|
378
|
+
* @summary Create Login Session for IDP Login
|
|
379
|
+
* @request POST:/v1/login/sessions/for-idp
|
|
380
|
+
*/
|
|
381
|
+
loginSessionForIdp: (data: LoginSessionForIDPInput, params?: RequestParams) => Promise<axios.AxiosResponse<LoginSessionDto, any>>;
|
|
382
|
+
/**
|
|
383
|
+
* @description Enable CORS by returning correct headers
|
|
384
|
+
*
|
|
385
|
+
* @tags cors
|
|
386
|
+
* @name CorsLoginSessionForIdp
|
|
387
|
+
* @summary CORS Support
|
|
388
|
+
* @request OPTIONS:/v1/login/sessions/for-idp
|
|
389
|
+
*/
|
|
390
|
+
corsLoginSessionForIdp: (params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
|
|
391
|
+
/**
|
|
392
|
+
* @description Accepts and Validates the OIDC VP Response sent by the Wallet
|
|
393
|
+
*
|
|
394
|
+
* @tags session
|
|
395
|
+
* @name LoginSessionAcceptResponse
|
|
396
|
+
* @summary Accept OIDC VP Response for Login Session
|
|
397
|
+
* @request POST:/v1/login/sessions/{sessionId}/accept-response
|
|
398
|
+
*/
|
|
399
|
+
loginSessionAcceptResponse: (sessionId: string, data: LoginSessionAcceptResponseInput, params?: RequestParams) => Promise<axios.AxiosResponse<LoginSessionAcceptResponseOutput, any>>;
|
|
400
|
+
/**
|
|
401
|
+
* @description Enable CORS by returning correct headers
|
|
402
|
+
*
|
|
403
|
+
* @tags cors
|
|
404
|
+
* @name CorsLoginSessionAcceptResponse
|
|
405
|
+
* @summary CORS Support
|
|
406
|
+
* @request OPTIONS:/v1/login/sessions/{sessionId}/accept-response
|
|
407
|
+
*/
|
|
408
|
+
corsLoginSessionAcceptResponse: (sessionId: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
|
|
409
|
+
/**
|
|
410
|
+
* @description The user declines the request for access to their data
|
|
411
|
+
*
|
|
412
|
+
* @tags session
|
|
413
|
+
* @name LoginSessionRejectResponse
|
|
414
|
+
* @summary Reject Response for Login Session
|
|
415
|
+
* @request POST:/v1/login/sessions/{sessionId}/reject-response
|
|
416
|
+
*/
|
|
417
|
+
loginSessionRejectResponse: (sessionId: string, data: LoginSessionRejectResponseInput, params?: RequestParams) => Promise<axios.AxiosResponse<LoginSessionRejectResponseOutput, any>>;
|
|
418
|
+
/**
|
|
419
|
+
* @description Enable CORS by returning correct headers
|
|
420
|
+
*
|
|
421
|
+
* @tags cors
|
|
422
|
+
* @name CorsLoginSessionRejectResponse
|
|
423
|
+
* @summary CORS Support
|
|
424
|
+
* @request OPTIONS:/v1/login/sessions/{sessionId}/reject-response
|
|
425
|
+
*/
|
|
426
|
+
corsLoginSessionRejectResponse: (sessionId: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
|
|
427
|
+
/**
|
|
428
|
+
* @description Endpoint to retrieve list of login configurations
|
|
429
|
+
*
|
|
430
|
+
* @tags configuration
|
|
431
|
+
* @name ListLoginConfigurations
|
|
432
|
+
* @summary List login configurations
|
|
433
|
+
* @request GET:/v1/login/configurations
|
|
434
|
+
* @secure
|
|
435
|
+
*/
|
|
436
|
+
listLoginConfigurations: (params?: RequestParams) => Promise<axios.AxiosResponse<ListLoginConfigurationOutput, any>>;
|
|
437
|
+
/**
|
|
438
|
+
* @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.
|
|
439
|
+
*
|
|
440
|
+
* @tags configuration
|
|
441
|
+
* @name CreateLoginConfigurations
|
|
442
|
+
* @summary Create a new login configuration
|
|
443
|
+
* @request POST:/v1/login/configurations
|
|
444
|
+
* @secure
|
|
445
|
+
*/
|
|
446
|
+
createLoginConfigurations: (data: CreateLoginConfigurationInput, params?: RequestParams) => Promise<axios.AxiosResponse<CreateLoginConfigurationOutput, any>>;
|
|
447
|
+
/**
|
|
448
|
+
* @description Get login configuration by ID
|
|
449
|
+
*
|
|
450
|
+
* @tags configuration
|
|
451
|
+
* @name GetLoginConfigurationsById
|
|
452
|
+
* @summary Get login configuration by ID
|
|
453
|
+
* @request GET:/v1/login/configurations/{configurationId}
|
|
454
|
+
* @secure
|
|
455
|
+
*/
|
|
456
|
+
getLoginConfigurationsById: (configurationId: string, params?: RequestParams) => Promise<axios.AxiosResponse<LoginConfigurationObject, any>>;
|
|
457
|
+
/**
|
|
458
|
+
* @description Update login configurations by ID
|
|
459
|
+
*
|
|
460
|
+
* @tags configuration
|
|
461
|
+
* @name UpdateLoginConfigurationsById
|
|
462
|
+
* @summary Update login configurations by ID
|
|
463
|
+
* @request PATCH:/v1/login/configurations/{configurationId}
|
|
464
|
+
* @secure
|
|
465
|
+
*/
|
|
466
|
+
updateLoginConfigurationsById: (configurationId: string, data: UpdateLoginConfigurationInput, params?: RequestParams) => Promise<axios.AxiosResponse<LoginConfigurationObject, any>>;
|
|
467
|
+
/**
|
|
468
|
+
* @description Delete login configurations by ID
|
|
469
|
+
*
|
|
470
|
+
* @tags configuration
|
|
471
|
+
* @name DeleteLoginConfigurationsById
|
|
472
|
+
* @summary Delete login configurations by ID
|
|
473
|
+
* @request DELETE:/v1/login/configurations/{configurationId}
|
|
474
|
+
* @secure
|
|
475
|
+
*/
|
|
476
|
+
deleteLoginConfigurationsById: (configurationId: string, params?: RequestParams) => Promise<axios.AxiosResponse<void, any>>;
|
|
477
|
+
/**
|
|
478
|
+
* @description Get Client Metadata By OAuth 2.0 Client ID
|
|
479
|
+
*
|
|
480
|
+
* @tags configuration
|
|
481
|
+
* @name GetClientMetadataByClientId
|
|
482
|
+
* @summary Get Client Metadata By OAuth 2.0 Client ID
|
|
483
|
+
* @request GET:/v1/login/configurations/metadata/{clientId}
|
|
484
|
+
* @secure
|
|
485
|
+
*/
|
|
486
|
+
getClientMetadataByClientId: (clientId: string, params?: RequestParams) => Promise<axios.AxiosResponse<LoginConfigurationClientMetadata, any>>;
|
|
487
|
+
/**
|
|
488
|
+
* No description
|
|
489
|
+
*
|
|
490
|
+
* @tags group
|
|
491
|
+
* @name ListGroups
|
|
492
|
+
* @request GET:/v1/groups
|
|
493
|
+
* @secure
|
|
494
|
+
*/
|
|
495
|
+
listGroups: (params?: RequestParams) => Promise<axios.AxiosResponse<GroupsList, any>>;
|
|
496
|
+
/**
|
|
497
|
+
* No description
|
|
498
|
+
*
|
|
499
|
+
* @tags group
|
|
500
|
+
* @name CreateGroup
|
|
501
|
+
* @request POST:/v1/groups
|
|
502
|
+
* @secure
|
|
503
|
+
*/
|
|
504
|
+
createGroup: (data: CreateGroupInput, params?: RequestParams) => Promise<axios.AxiosResponse<GroupDto, any>>;
|
|
505
|
+
/**
|
|
506
|
+
* No description
|
|
507
|
+
*
|
|
508
|
+
* @tags group
|
|
509
|
+
* @name GetGroupById
|
|
510
|
+
* @request GET:/v1/groups/{groupName}
|
|
511
|
+
* @secure
|
|
512
|
+
*/
|
|
513
|
+
getGroupById: (groupName: string, params?: RequestParams) => Promise<axios.AxiosResponse<GroupDto, any>>;
|
|
514
|
+
/**
|
|
515
|
+
* No description
|
|
516
|
+
*
|
|
517
|
+
* @tags group
|
|
518
|
+
* @name DeleteGroup
|
|
519
|
+
* @request DELETE:/v1/groups/{groupName}
|
|
520
|
+
* @secure
|
|
521
|
+
*/
|
|
522
|
+
deleteGroup: (groupName: string, params?: RequestParams) => Promise<axios.AxiosResponse<void, any>>;
|
|
523
|
+
/**
|
|
524
|
+
* No description
|
|
525
|
+
*
|
|
526
|
+
* @tags group
|
|
527
|
+
* @name ListGroupUserMappings
|
|
528
|
+
* @request GET:/v1/groups/{groupName}/users
|
|
529
|
+
* @secure
|
|
530
|
+
*/
|
|
531
|
+
listGroupUserMappings: (groupName: string, params?: RequestParams) => Promise<axios.AxiosResponse<GroupUserMappingsList, any>>;
|
|
532
|
+
/**
|
|
533
|
+
* No description
|
|
534
|
+
*
|
|
535
|
+
* @tags group
|
|
536
|
+
* @name AddUserToGroup
|
|
537
|
+
* @request POST:/v1/groups/{groupName}/users
|
|
538
|
+
* @secure
|
|
539
|
+
*/
|
|
540
|
+
addUserToGroup: (groupName: string, data: AddUserToGroupInput, params?: RequestParams) => Promise<axios.AxiosResponse<GroupUserMappingDto, any>>;
|
|
541
|
+
/**
|
|
542
|
+
* No description
|
|
543
|
+
*
|
|
544
|
+
* @tags group
|
|
545
|
+
* @name RemoveUserFromGroup
|
|
546
|
+
* @request DELETE:/v1/groups/{groupName}/users/{groupUserMappingId}
|
|
547
|
+
* @secure
|
|
548
|
+
*/
|
|
549
|
+
removeUserFromGroup: (groupName: string, groupUserMappingId: string, params?: RequestParams) => Promise<axios.AxiosResponse<void, any>>;
|
|
550
|
+
/**
|
|
551
|
+
* No description
|
|
552
|
+
*
|
|
553
|
+
* @name LoginAdminProxyList
|
|
554
|
+
* @request GET:/v1/login/admin/{proxy+}
|
|
555
|
+
*/
|
|
556
|
+
loginAdminProxyList: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
|
|
557
|
+
/**
|
|
558
|
+
* No description
|
|
559
|
+
*
|
|
560
|
+
* @name LoginAdminProxyCreate
|
|
561
|
+
* @request POST:/v1/login/admin/{proxy+}
|
|
562
|
+
*/
|
|
563
|
+
loginAdminProxyCreate: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
|
|
564
|
+
/**
|
|
565
|
+
* No description
|
|
566
|
+
*
|
|
567
|
+
* @name LoginAdminProxyDelete
|
|
568
|
+
* @request DELETE:/v1/login/admin/{proxy+}
|
|
569
|
+
*/
|
|
570
|
+
loginAdminProxyDelete: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
|
|
571
|
+
/**
|
|
572
|
+
* No description
|
|
573
|
+
*
|
|
574
|
+
* @name LoginAdminProxyUpdate
|
|
575
|
+
* @request PUT:/v1/login/admin/{proxy+}
|
|
576
|
+
*/
|
|
577
|
+
loginAdminProxyUpdate: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
|
|
578
|
+
/**
|
|
579
|
+
* No description
|
|
580
|
+
*
|
|
581
|
+
* @name LoginAdminProxyPartialUpdate
|
|
582
|
+
* @request PATCH:/v1/login/admin/{proxy+}
|
|
583
|
+
*/
|
|
584
|
+
loginAdminProxyPartialUpdate: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
|
|
585
|
+
/**
|
|
586
|
+
* No description
|
|
587
|
+
*
|
|
588
|
+
* @tags idp
|
|
589
|
+
* @name LoginProxyList
|
|
590
|
+
* @request GET:/v1/login/{proxy+}
|
|
591
|
+
*/
|
|
592
|
+
loginProxyList: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
|
|
593
|
+
/**
|
|
594
|
+
* No description
|
|
595
|
+
*
|
|
596
|
+
* @tags idp
|
|
597
|
+
* @name LoginProxyCreate
|
|
598
|
+
* @request POST:/v1/login/{proxy+}
|
|
599
|
+
*/
|
|
600
|
+
loginProxyCreate: (proxy: string, params?: RequestParams) => Promise<axios.AxiosResponse<any, any>>;
|
|
601
|
+
};
|
|
602
|
+
}
|