@frontegg/rest-api 2.10.90 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/ContextHolder.d.ts → ContextHolder.d.ts} +0 -0
- package/ContextHolder.js +114 -0
- package/{dist/account-settings → account-settings}/index.d.ts +0 -0
- package/account-settings/index.js +47 -0
- package/{dist/account-settings → account-settings}/interfaces.d.ts +0 -0
- package/account-settings/interfaces.js +1 -0
- package/account-settings/package.json +6 -0
- package/{dist/audits → audits}/index.d.ts +0 -0
- package/audits/index.js +74 -0
- package/{dist/audits → audits}/interfaces.d.ts +0 -0
- package/audits/interfaces.js +1 -0
- package/audits/package.json +6 -0
- package/{dist/auth → auth}/enums.d.ts +0 -0
- package/auth/enums.js +18 -0
- package/{dist/auth → auth}/index.d.ts +0 -0
- package/auth/index.js +2102 -0
- package/{dist/auth → auth}/interfaces.d.ts +0 -0
- package/auth/interfaces.js +16 -0
- package/auth/package.json +6 -0
- package/{dist/auth → auth}/secutiry-poilicy/index.d.ts +0 -0
- package/auth/secutiry-poilicy/index.js +257 -0
- package/{dist/auth → auth}/secutiry-poilicy/interfaces.d.ts +0 -0
- package/auth/secutiry-poilicy/interfaces.js +1 -0
- package/{dist/connectivity → connectivity}/index.d.ts +0 -0
- package/connectivity/index.js +114 -0
- package/{dist/connectivity → connectivity}/interfaces.d.ts +0 -0
- package/connectivity/interfaces.js +1 -0
- package/connectivity/package.json +6 -0
- package/{dist/constants.d.ts → constants.d.ts} +0 -0
- package/{src/constants.ts → constants.js} +13 -13
- package/{dist/error.d.ts → error.d.ts} +0 -0
- package/error.js +36 -0
- package/fetch.d.ts +19 -0
- package/fetch.js +557 -0
- package/{dist/es2015/index.d.ts → index.d.ts} +0 -0
- package/{dist/es2015/index.js → index.js} +32 -28
- package/{dist/es2015/interfaces.d.ts → interfaces.d.ts} +0 -0
- package/interfaces.js +1 -0
- package/{dist/es2015/jwt.d.ts → jwt.d.ts} +0 -0
- package/jwt.js +105 -0
- package/{dist/es2015/metadata → metadata}/index.d.ts +0 -0
- package/metadata/index.js +166 -0
- package/{dist/es2015/metadata → metadata}/interfaces.d.ts +0 -0
- package/metadata/interfaces.js +1 -0
- package/metadata/package.json +6 -0
- package/node/ContextHolder.js +126 -0
- package/node/account-settings/index.js +61 -0
- package/node/account-settings/interfaces.js +5 -0
- package/node/audits/index.js +90 -0
- package/node/audits/interfaces.js +5 -0
- package/node/auth/enums.js +26 -0
- package/node/auth/index.js +2327 -0
- package/node/auth/interfaces.js +39 -0
- package/node/auth/secutiry-poilicy/index.js +279 -0
- package/node/auth/secutiry-poilicy/interfaces.js +5 -0
- package/node/connectivity/index.js +201 -0
- package/node/connectivity/interfaces.js +5 -0
- package/node/constants.js +177 -0
- package/node/error.js +50 -0
- package/node/fetch.js +589 -0
- package/node/index.js +359 -0
- package/node/interfaces.js +5 -0
- package/node/jwt.js +125 -0
- package/node/metadata/index.js +188 -0
- package/node/metadata/interfaces.js +5 -0
- package/node/notifications/index.js +115 -0
- package/node/notifications/interfaces.js +5 -0
- package/node/reports/index.js +205 -0
- package/node/reports/interfaces.js +5 -0
- package/node/roles/index.js +209 -0
- package/node/roles/interfaces.js +5 -0
- package/node/routers.js +13 -0
- package/node/sub-tenants/index.js +153 -0
- package/node/sub-tenants/interfaces.js +5 -0
- package/node/subscriptions/enums.js +39 -0
- package/node/subscriptions/index.js +135 -0
- package/node/subscriptions/interfaces.js +18 -0
- package/node/subscriptions/invoices.js +88 -0
- package/node/subscriptions/managedSubscriptions.js +135 -0
- package/node/subscriptions/paymentMethods.js +91 -0
- package/node/subscriptions/paymentProviders.js +38 -0
- package/node/subscriptions/plans.js +61 -0
- package/node/subscriptions/providers/index.js +18 -0
- package/node/subscriptions/providers/stripe/index.js +130 -0
- package/node/subscriptions/providers/stripe/interfaces.js +5 -0
- package/node/subscriptions/subscriptions.js +135 -0
- package/node/subscriptions/summaries.js +38 -0
- package/node/subscriptions/tenantConfiguration.js +61 -0
- package/node/teams/index.js +478 -0
- package/node/teams/interfaces.js +5 -0
- package/node/tenants/index.js +107 -0
- package/node/tenants/interfaces.js +5 -0
- package/node/vendor/index.js +40 -0
- package/node/vendor/interfaces.js +5 -0
- package/{dist/es2015/notifications → notifications}/index.d.ts +0 -0
- package/notifications/index.js +99 -0
- package/{dist/es2015/notifications → notifications}/interfaces.d.ts +0 -0
- package/notifications/interfaces.js +1 -0
- package/notifications/package.json +6 -0
- package/package.json +9 -32
- package/{dist/es2015/reports → reports}/index.d.ts +0 -0
- package/reports/index.js +185 -0
- package/{dist/es2015/reports → reports}/interfaces.d.ts +0 -0
- package/reports/interfaces.js +1 -0
- package/reports/package.json +6 -0
- package/{dist/es2015/roles → roles}/index.d.ts +0 -0
- package/roles/index.js +188 -0
- package/{dist/es2015/roles → roles}/interfaces.d.ts +0 -0
- package/roles/interfaces.js +1 -0
- package/roles/package.json +6 -0
- package/{dist/es2015/routers.d.ts → routers.d.ts} +0 -0
- package/routers.js +3 -0
- package/{dist/es2015/sub-tenants → sub-tenants}/index.d.ts +0 -0
- package/sub-tenants/index.js +135 -0
- package/{dist/es2015/sub-tenants → sub-tenants}/interfaces.d.ts +0 -0
- package/sub-tenants/interfaces.js +1 -0
- package/sub-tenants/package.json +6 -0
- package/{dist/es2015/subscriptions → subscriptions}/enums.d.ts +0 -0
- package/subscriptions/enums.js +29 -0
- package/{dist/es2015/subscriptions → subscriptions}/index.d.ts +0 -0
- package/{dist/subscriptions/index.d.ts → subscriptions/index.js} +1 -1
- package/{dist/es2015/subscriptions → subscriptions}/interfaces.d.ts +0 -0
- package/{dist/es2015/subscriptions → subscriptions}/interfaces.js +1 -1
- package/{dist/es2015/subscriptions → subscriptions}/invoices.d.ts +0 -0
- package/subscriptions/invoices.js +73 -0
- package/{dist/es2015/subscriptions → subscriptions}/managedSubscriptions.d.ts +0 -0
- package/subscriptions/managedSubscriptions.js +118 -0
- package/subscriptions/package.json +6 -0
- package/{dist/es2015/subscriptions → subscriptions}/paymentMethods.d.ts +0 -0
- package/subscriptions/paymentMethods.js +75 -0
- package/{dist/es2015/subscriptions → subscriptions}/paymentProviders.d.ts +0 -0
- package/subscriptions/paymentProviders.js +25 -0
- package/{dist/es2015/subscriptions → subscriptions}/plans.d.ts +0 -0
- package/subscriptions/plans.js +47 -0
- package/{dist/es2015/subscriptions → subscriptions}/providers/index.d.ts +0 -0
- package/subscriptions/providers/index.js +1 -0
- package/{dist/es2015/subscriptions → subscriptions}/providers/stripe/index.d.ts +0 -0
- package/subscriptions/providers/stripe/index.js +113 -0
- package/{dist/es2015/subscriptions → subscriptions}/providers/stripe/interfaces.d.ts +0 -0
- package/subscriptions/providers/stripe/interfaces.js +1 -0
- package/{dist/es2015/subscriptions → subscriptions}/subscriptions.d.ts +0 -0
- package/subscriptions/subscriptions.js +118 -0
- package/{dist/es2015/subscriptions → subscriptions}/summaries.d.ts +0 -0
- package/subscriptions/summaries.js +25 -0
- package/{dist/es2015/subscriptions → subscriptions}/tenantConfiguration.d.ts +0 -0
- package/subscriptions/tenantConfiguration.js +47 -0
- package/{dist/es2015/teams → teams}/index.d.ts +0 -0
- package/teams/index.js +445 -0
- package/{dist/es2015/teams → teams}/interfaces.d.ts +0 -0
- package/teams/interfaces.js +1 -0
- package/teams/package.json +6 -0
- package/{dist/es2015/tenants → tenants}/index.d.ts +0 -0
- package/tenants/index.js +91 -0
- package/{dist/es2015/tenants → tenants}/interfaces.d.ts +0 -0
- package/tenants/interfaces.js +1 -0
- package/tenants/package.json +6 -0
- package/{dist/es2015/vendor → vendor}/index.d.ts +0 -0
- package/vendor/index.js +27 -0
- package/{dist/es2015/vendor → vendor}/interfaces.d.ts +0 -0
- package/vendor/interfaces.js +1 -0
- package/vendor/package.json +6 -0
- package/CHANGELOG.md +0 -211
- package/README.md +0 -139
- package/SECURITY.md +0 -13
- package/dist/ContextHolder.js +0 -69
- package/dist/ContextHolder.js.map +0 -1
- package/dist/account-settings/index.js +0 -33
- package/dist/account-settings/index.js.map +0 -1
- package/dist/account-settings/interfaces.js +0 -3
- package/dist/account-settings/interfaces.js.map +0 -1
- package/dist/audits/index.js +0 -59
- package/dist/audits/index.js.map +0 -1
- package/dist/audits/interfaces.js +0 -3
- package/dist/audits/interfaces.js.map +0 -1
- package/dist/auth/enums.js +0 -19
- package/dist/auth/enums.js.map +0 -1
- package/dist/auth/index.js +0 -1042
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/interfaces.js +0 -29
- package/dist/auth/interfaces.js.map +0 -1
- package/dist/auth/secutiry-poilicy/index.js +0 -134
- package/dist/auth/secutiry-poilicy/index.js.map +0 -1
- package/dist/auth/secutiry-poilicy/interfaces.js +0 -3
- package/dist/auth/secutiry-poilicy/interfaces.js.map +0 -1
- package/dist/connectivity/index.js +0 -158
- package/dist/connectivity/index.js.map +0 -1
- package/dist/connectivity/interfaces.js +0 -3
- package/dist/connectivity/interfaces.js.map +0 -1
- package/dist/constants.js +0 -174
- package/dist/constants.js.map +0 -1
- package/dist/error.js +0 -14
- package/dist/error.js.map +0 -1
- package/dist/es2015/ContextHolder.d.ts +0 -29
- package/dist/es2015/ContextHolder.js +0 -65
- package/dist/es2015/ContextHolder.js.map +0 -1
- package/dist/es2015/account-settings/index.d.ts +0 -7
- package/dist/es2015/account-settings/index.js +0 -28
- package/dist/es2015/account-settings/index.js.map +0 -1
- package/dist/es2015/account-settings/interfaces.d.ts +0 -9
- package/dist/es2015/account-settings/interfaces.js +0 -2
- package/dist/es2015/account-settings/interfaces.js.map +0 -1
- package/dist/es2015/audits/index.d.ts +0 -16
- package/dist/es2015/audits/index.js +0 -53
- package/dist/es2015/audits/index.js.map +0 -1
- package/dist/es2015/audits/interfaces.d.ts +0 -61
- package/dist/es2015/audits/interfaces.js +0 -2
- package/dist/es2015/audits/interfaces.js.map +0 -1
- package/dist/es2015/auth/enums.d.ts +0 -13
- package/dist/es2015/auth/enums.js +0 -16
- package/dist/es2015/auth/enums.js.map +0 -1
- package/dist/es2015/auth/index.d.ts +0 -447
- package/dist/es2015/auth/index.js +0 -943
- package/dist/es2015/auth/index.js.map +0 -1
- package/dist/es2015/auth/interfaces.d.ts +0 -430
- package/dist/es2015/auth/interfaces.js +0 -16
- package/dist/es2015/auth/interfaces.js.map +0 -1
- package/dist/es2015/auth/secutiry-poilicy/index.d.ts +0 -41
- package/dist/es2015/auth/secutiry-poilicy/index.js +0 -121
- package/dist/es2015/auth/secutiry-poilicy/index.js.map +0 -1
- package/dist/es2015/auth/secutiry-poilicy/interfaces.d.ts +0 -70
- package/dist/es2015/auth/secutiry-poilicy/interfaces.js +0 -2
- package/dist/es2015/auth/secutiry-poilicy/interfaces.js.map +0 -1
- package/dist/es2015/connectivity/index.d.ts +0 -27
- package/dist/es2015/connectivity/index.js +0 -129
- package/dist/es2015/connectivity/index.js.map +0 -1
- package/dist/es2015/connectivity/interfaces.d.ts +0 -95
- package/dist/es2015/connectivity/interfaces.js +0 -2
- package/dist/es2015/connectivity/interfaces.js.map +0 -1
- package/dist/es2015/constants.d.ts +0 -170
- package/dist/es2015/constants.js +0 -171
- package/dist/es2015/constants.js.map +0 -1
- package/dist/es2015/error.d.ts +0 -5
- package/dist/es2015/error.js +0 -10
- package/dist/es2015/error.js.map +0 -1
- package/dist/es2015/fetch.d.ts +0 -19
- package/dist/es2015/fetch.js +0 -177
- package/dist/es2015/fetch.js.map +0 -1
- package/dist/es2015/index.js.map +0 -1
- package/dist/es2015/interfaces.js +0 -2
- package/dist/es2015/interfaces.js.map +0 -1
- package/dist/es2015/jwt.js +0 -83
- package/dist/es2015/jwt.js.map +0 -1
- package/dist/es2015/metadata/index.js +0 -32
- package/dist/es2015/metadata/index.js.map +0 -1
- package/dist/es2015/metadata/interfaces.js +0 -2
- package/dist/es2015/metadata/interfaces.js.map +0 -1
- package/dist/es2015/notifications/index.js +0 -49
- package/dist/es2015/notifications/index.js.map +0 -1
- package/dist/es2015/notifications/interfaces.js +0 -2
- package/dist/es2015/notifications/interfaces.js.map +0 -1
- package/dist/es2015/reports/index.js +0 -118
- package/dist/es2015/reports/index.js.map +0 -1
- package/dist/es2015/reports/interfaces.js +0 -2
- package/dist/es2015/reports/interfaces.js.map +0 -1
- package/dist/es2015/roles/index.js +0 -99
- package/dist/es2015/roles/index.js.map +0 -1
- package/dist/es2015/roles/interfaces.js +0 -2
- package/dist/es2015/roles/interfaces.js.map +0 -1
- package/dist/es2015/routers.js +0 -17
- package/dist/es2015/routers.js.map +0 -1
- package/dist/es2015/sub-tenants/index.js +0 -42
- package/dist/es2015/sub-tenants/index.js.map +0 -1
- package/dist/es2015/sub-tenants/interfaces.js +0 -2
- package/dist/es2015/sub-tenants/interfaces.js.map +0 -1
- package/dist/es2015/subscriptions/enums.js +0 -23
- package/dist/es2015/subscriptions/enums.js.map +0 -1
- package/dist/es2015/subscriptions/index.js +0 -11
- package/dist/es2015/subscriptions/index.js.map +0 -1
- package/dist/es2015/subscriptions/interfaces.js.map +0 -1
- package/dist/es2015/subscriptions/invoices.js +0 -43
- package/dist/es2015/subscriptions/invoices.js.map +0 -1
- package/dist/es2015/subscriptions/managedSubscriptions.js +0 -51
- package/dist/es2015/subscriptions/managedSubscriptions.js.map +0 -1
- package/dist/es2015/subscriptions/paymentMethods.js +0 -55
- package/dist/es2015/subscriptions/paymentMethods.js.map +0 -1
- package/dist/es2015/subscriptions/paymentProviders.js +0 -21
- package/dist/es2015/subscriptions/paymentProviders.js.map +0 -1
- package/dist/es2015/subscriptions/plans.js +0 -30
- package/dist/es2015/subscriptions/plans.js.map +0 -1
- package/dist/es2015/subscriptions/providers/index.js +0 -2
- package/dist/es2015/subscriptions/providers/index.js.map +0 -1
- package/dist/es2015/subscriptions/providers/stripe/index.js +0 -57
- package/dist/es2015/subscriptions/providers/stripe/index.js.map +0 -1
- package/dist/es2015/subscriptions/providers/stripe/interfaces.js +0 -2
- package/dist/es2015/subscriptions/providers/stripe/interfaces.js.map +0 -1
- package/dist/es2015/subscriptions/subscriptions.js +0 -57
- package/dist/es2015/subscriptions/subscriptions.js.map +0 -1
- package/dist/es2015/subscriptions/summaries.js +0 -21
- package/dist/es2015/subscriptions/summaries.js.map +0 -1
- package/dist/es2015/subscriptions/tenantConfiguration.js +0 -24
- package/dist/es2015/subscriptions/tenantConfiguration.js.map +0 -1
- package/dist/es2015/teams/index.js +0 -228
- package/dist/es2015/teams/index.js.map +0 -1
- package/dist/es2015/teams/interfaces.js +0 -2
- package/dist/es2015/teams/interfaces.js.map +0 -1
- package/dist/es2015/tenants/index.js +0 -57
- package/dist/es2015/tenants/index.js.map +0 -1
- package/dist/es2015/tenants/interfaces.js +0 -2
- package/dist/es2015/tenants/interfaces.js.map +0 -1
- package/dist/es2015/vendor/index.js +0 -23
- package/dist/es2015/vendor/index.js.map +0 -1
- package/dist/es2015/vendor/interfaces.js +0 -2
- package/dist/es2015/vendor/interfaces.js.map +0 -1
- package/dist/fetch.d.ts +0 -19
- package/dist/fetch.js +0 -187
- package/dist/fetch.js.map +0 -1
- package/dist/index.d.ts +0 -83
- package/dist/index.js +0 -98
- package/dist/index.js.map +0 -1
- package/dist/interfaces.d.ts +0 -40
- package/dist/interfaces.js +0 -3
- package/dist/interfaces.js.map +0 -1
- package/dist/jwt.d.ts +0 -13
- package/dist/jwt.js +0 -89
- package/dist/jwt.js.map +0 -1
- package/dist/metadata/index.d.ts +0 -5
- package/dist/metadata/index.js +0 -39
- package/dist/metadata/index.js.map +0 -1
- package/dist/metadata/interfaces.d.ts +0 -46
- package/dist/metadata/interfaces.js +0 -3
- package/dist/metadata/interfaces.js.map +0 -1
- package/dist/notifications/index.d.ts +0 -17
- package/dist/notifications/index.js +0 -56
- package/dist/notifications/index.js.map +0 -1
- package/dist/notifications/interfaces.d.ts +0 -40
- package/dist/notifications/interfaces.js +0 -3
- package/dist/notifications/interfaces.js.map +0 -1
- package/dist/reports/index.d.ts +0 -45
- package/dist/reports/index.js +0 -127
- package/dist/reports/index.js.map +0 -1
- package/dist/reports/interfaces.d.ts +0 -146
- package/dist/reports/interfaces.js +0 -3
- package/dist/reports/interfaces.js.map +0 -1
- package/dist/roles/index.d.ts +0 -34
- package/dist/roles/index.js +0 -110
- package/dist/roles/index.js.map +0 -1
- package/dist/roles/interfaces.d.ts +0 -58
- package/dist/roles/interfaces.js +0 -3
- package/dist/roles/interfaces.js.map +0 -1
- package/dist/routers.d.ts +0 -2
- package/dist/routers.js +0 -20
- package/dist/routers.js.map +0 -1
- package/dist/sub-tenants/index.d.ts +0 -8
- package/dist/sub-tenants/index.js +0 -51
- package/dist/sub-tenants/index.js.map +0 -1
- package/dist/sub-tenants/interfaces.d.ts +0 -87
- package/dist/sub-tenants/interfaces.js +0 -3
- package/dist/sub-tenants/interfaces.js.map +0 -1
- package/dist/subscriptions/enums.d.ts +0 -18
- package/dist/subscriptions/enums.js +0 -26
- package/dist/subscriptions/enums.js.map +0 -1
- package/dist/subscriptions/index.js +0 -23
- package/dist/subscriptions/index.js.map +0 -1
- package/dist/subscriptions/interfaces.d.ts +0 -117
- package/dist/subscriptions/interfaces.js +0 -14
- package/dist/subscriptions/interfaces.js.map +0 -1
- package/dist/subscriptions/invoices.d.ts +0 -13
- package/dist/subscriptions/invoices.js +0 -49
- package/dist/subscriptions/invoices.js.map +0 -1
- package/dist/subscriptions/managedSubscriptions.d.ts +0 -15
- package/dist/subscriptions/managedSubscriptions.js +0 -59
- package/dist/subscriptions/managedSubscriptions.js.map +0 -1
- package/dist/subscriptions/paymentMethods.d.ts +0 -13
- package/dist/subscriptions/paymentMethods.js +0 -61
- package/dist/subscriptions/paymentMethods.js.map +0 -1
- package/dist/subscriptions/paymentProviders.d.ts +0 -5
- package/dist/subscriptions/paymentProviders.js +0 -25
- package/dist/subscriptions/paymentProviders.js.map +0 -1
- package/dist/subscriptions/plans.d.ts +0 -9
- package/dist/subscriptions/plans.js +0 -35
- package/dist/subscriptions/plans.js.map +0 -1
- package/dist/subscriptions/providers/index.d.ts +0 -1
- package/dist/subscriptions/providers/index.js +0 -14
- package/dist/subscriptions/providers/index.js.map +0 -1
- package/dist/subscriptions/providers/stripe/index.d.ts +0 -21
- package/dist/subscriptions/providers/stripe/index.js +0 -65
- package/dist/subscriptions/providers/stripe/index.js.map +0 -1
- package/dist/subscriptions/providers/stripe/interfaces.d.ts +0 -32
- package/dist/subscriptions/providers/stripe/interfaces.js +0 -3
- package/dist/subscriptions/providers/stripe/interfaces.js.map +0 -1
- package/dist/subscriptions/subscriptions.d.ts +0 -21
- package/dist/subscriptions/subscriptions.js +0 -65
- package/dist/subscriptions/subscriptions.js.map +0 -1
- package/dist/subscriptions/summaries.d.ts +0 -5
- package/dist/subscriptions/summaries.js +0 -25
- package/dist/subscriptions/summaries.js.map +0 -1
- package/dist/subscriptions/tenantConfiguration.d.ts +0 -3
- package/dist/subscriptions/tenantConfiguration.js +0 -29
- package/dist/subscriptions/tenantConfiguration.js.map +0 -1
- package/dist/teams/index.d.ts +0 -116
- package/dist/teams/index.js +0 -250
- package/dist/teams/index.js.map +0 -1
- package/dist/teams/interfaces.d.ts +0 -136
- package/dist/teams/interfaces.js +0 -3
- package/dist/teams/interfaces.js.map +0 -1
- package/dist/tenants/index.d.ts +0 -26
- package/dist/tenants/index.js +0 -64
- package/dist/tenants/index.js.map +0 -1
- package/dist/tenants/interfaces.d.ts +0 -30
- package/dist/tenants/interfaces.js +0 -3
- package/dist/tenants/interfaces.js.map +0 -1
- package/dist/umd/index.js +0 -2891
- package/dist/vendor/index.d.ts +0 -6
- package/dist/vendor/index.js +0 -27
- package/dist/vendor/index.js.map +0 -1
- package/dist/vendor/interfaces.d.ts +0 -6
- package/dist/vendor/interfaces.js +0 -3
- package/dist/vendor/interfaces.js.map +0 -1
- package/src/ContextHolder.ts +0 -81
- package/src/account-settings/index.ts +0 -18
- package/src/account-settings/interfaces.ts +0 -10
- package/src/audits/index.ts +0 -35
- package/src/audits/interfaces.ts +0 -70
- package/src/auth/enums.ts +0 -17
- package/src/auth/index.ts +0 -935
- package/src/auth/interfaces.ts +0 -488
- package/src/auth/secutiry-poilicy/index.ts +0 -109
- package/src/auth/secutiry-poilicy/interfaces.ts +0 -81
- package/src/connectivity/index.ts +0 -160
- package/src/connectivity/interfaces.ts +0 -106
- package/src/error.ts +0 -13
- package/src/fetch.ts +0 -220
- package/src/index.ts +0 -86
- package/src/interfaces.ts +0 -47
- package/src/jwt.ts +0 -92
- package/src/metadata/index.ts +0 -24
- package/src/metadata/interfaces.ts +0 -51
- package/src/notifications/index.ts +0 -40
- package/src/notifications/interfaces.ts +0 -45
- package/src/reports/index.ts +0 -116
- package/src/reports/interfaces.ts +0 -167
- package/src/roles/index.ts +0 -80
- package/src/roles/interfaces.ts +0 -64
- package/src/routers.ts +0 -18
- package/src/sub-tenants/index.ts +0 -49
- package/src/sub-tenants/interfaces.ts +0 -100
- package/src/subscriptions/enums.ts +0 -22
- package/src/subscriptions/index.ts +0 -10
- package/src/subscriptions/interfaces.ts +0 -144
- package/src/subscriptions/invoices.ts +0 -42
- package/src/subscriptions/managedSubscriptions.ts +0 -53
- package/src/subscriptions/paymentMethods.ts +0 -47
- package/src/subscriptions/paymentProviders.ts +0 -13
- package/src/subscriptions/plans.ts +0 -19
- package/src/subscriptions/providers/index.ts +0 -1
- package/src/subscriptions/providers/stripe/index.ts +0 -56
- package/src/subscriptions/providers/stripe/interfaces.ts +0 -39
- package/src/subscriptions/subscriptions.ts +0 -63
- package/src/subscriptions/summaries.ts +0 -11
- package/src/subscriptions/tenantConfiguration.ts +0 -23
- package/src/teams/index.ts +0 -224
- package/src/teams/interfaces.ts +0 -163
- package/src/tenants/index.ts +0 -46
- package/src/tenants/interfaces.ts +0 -33
- package/src/vendor/index.ts +0 -12
- package/src/vendor/interfaces.ts +0 -6
- package/yarn-error.log +0 -518
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
export * from './secutiry-poilicy';
|
|
2
|
-
export * from './enums';
|
|
3
|
-
import { ISamlRolesGroup } from '../teams/interfaces';
|
|
4
|
-
import { IAcceptInvitation, IActivateAccount, IAllowedToRememberMfaDevice, ICreateSamlGroup, IDeleteApiToken, IDisableMfa, IEnrollMfaResponse, IForgotPassword, IGetActivateAccountStrategy, IGetActivateAccountStrategyResponse, IGetUserById, IGetUserPasswordConfig, ILogin, ILoginResponse, ILoginViaSocialLogin, ILoginViaSocialLoginResponse, ILoginWithMfa, IOidcPostLogin, IOidcConfiguration, IPostLogin, IPreLogin, IRecoverMFAToken, IResendActivationEmail, IResetPassword, ISamlConfiguration, ISamlVendorConfigResponse, ISignUpResponse, ISignUpUser, ISocialLoginProviderConfiguration, ITenantApiTokensData, IUpdateSamlConfiguration, IUpdateSamlGroup, IUpdateSamlRoles, IUpdateSamlVendorMetadata, IUpdateTenantApiTokensData, IUpdateUserApiTokensData, IUserApiTokensData, IUserIdResponse, IVendorConfig, IVerifyMfa, IVerifyMfaResponse, TestConfig, ISSOPublicConfiguration, IPreLoginWithIdpTypeResponse, IPasswordlessPreLogin, IPasswordlessPostLogin, ICreateSSODomain, IVerifyInviteToken, ISSODomain, ISSOConfigurationDefaultRoles, ISSOConfiguration, IUpdateSSOConfiguration, IOidcPostLoginV2, IExchangeOAuthTokens, IOAuthTokenResponse, ISocialLoginProviderConfigurationV2, ILoginResponseV2, IResetPhoneNumber, IVerifyResetPhoneNumber, IChangePhoneNumber, IVerifyResetPhoneNumberResponse, IResetPhoneNumberResponse, IWebAuthnPreLogin, IWebAuthnPostLogin, IVerifyNewWebAuthnDevice, IWebAuthnPreLoginResponse, ICreateNewDeviceSessionResponse, IAuthStrategiesConfig, ISessionResponse, IChangePhoneNumberWithVerification, IChangePhoneNumberWithVerificationResponse, IVerifyChangePhoneNumber, ISessionConfigurations } from './interfaces';
|
|
5
|
-
/*****************************************
|
|
6
|
-
* Authentication
|
|
7
|
-
*****************************************/
|
|
8
|
-
export declare function generateLoginResponse(loginResponse: ILoginResponse): Promise<ILoginResponse>;
|
|
9
|
-
export declare function generateLoginResponseV2(loginResponse: ILoginResponse): Promise<ILoginResponseV2>;
|
|
10
|
-
export declare function generateLoginResponseFromOAuthResponse(oauthResponse: IOAuthTokenResponse): Promise<ILoginResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Check if requested email address has sso configuration
|
|
13
|
-
* If true, this function will return the sso address to navigate to
|
|
14
|
-
* else, return null
|
|
15
|
-
*/
|
|
16
|
-
export declare function preLogin(body: IPreLogin): Promise<string | null>;
|
|
17
|
-
/**
|
|
18
|
-
* Check if requested email address has sso configuration
|
|
19
|
-
* If true, this function will return the sso address and IdpType to navigate to
|
|
20
|
-
*/
|
|
21
|
-
export declare function preLoginWithIdpType(body: IPreLogin): Promise<IPreLoginWithIdpTypeResponse | null>;
|
|
22
|
-
/**
|
|
23
|
-
* After calling preLogin and navigated to SSO url, the IDP will redirect you to the ACS Url
|
|
24
|
-
* Which configured in the SSO configuraation
|
|
25
|
-
* else, return null
|
|
26
|
-
*/
|
|
27
|
-
export declare function postLogin(body: IPostLogin): Promise<ILoginResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* After calling preLogin and navigated to SSO url, the IDP will redirect you to the redirect url
|
|
30
|
-
* with code and state
|
|
31
|
-
*/
|
|
32
|
-
export declare function oidcPostLogin(body: IOidcPostLogin): Promise<ILoginResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* login with username and password.
|
|
35
|
-
* if the user has two factor authentication
|
|
36
|
-
* the server will return mfaToken with mfaRequired: true,
|
|
37
|
-
* and then ``loginWithMfa`` should be called with the mfaToken and and generated code
|
|
38
|
-
* else, the server will accessToken and refreshToken.
|
|
39
|
-
* the refresh should be used to renew your access token by calling ``refreshToken``
|
|
40
|
-
*
|
|
41
|
-
* @throw exception if login failed
|
|
42
|
-
*/
|
|
43
|
-
export declare function login(body: ILogin): Promise<ILoginResponse>;
|
|
44
|
-
/**
|
|
45
|
-
* after login succeeded with mfaRequired token response, this function should be called
|
|
46
|
-
* with the mfaToken and the generated code from your authenticator app.
|
|
47
|
-
*
|
|
48
|
-
* @throw exception if generated code or mfaToken are incorrect
|
|
49
|
-
*/
|
|
50
|
-
export declare function loginWithMfa(body: ILoginWithMfa): Promise<ILoginResponse>;
|
|
51
|
-
/**
|
|
52
|
-
* activating account should be called after registering new user of deactivate account
|
|
53
|
-
* ``activateAccount`` should contains userId and the token that has been sent to the user after activation requested.
|
|
54
|
-
*
|
|
55
|
-
* @throws exception if activation failed
|
|
56
|
-
*/
|
|
57
|
-
export declare function activateAccount(body: IActivateAccount): Promise<void>;
|
|
58
|
-
/**
|
|
59
|
-
* get account activation configuration.
|
|
60
|
-
*/
|
|
61
|
-
export declare function getActivateAccountStrategy(params: IGetActivateAccountStrategy): Promise<IGetActivateAccountStrategyResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* resend activation email should be called after a failed user activation.
|
|
64
|
-
* ``resend activation email`` should contain the user email.
|
|
65
|
-
*
|
|
66
|
-
* @throws exception if resend failed
|
|
67
|
-
*/
|
|
68
|
-
export declare function resendActivationEmail(body: IResendActivationEmail): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* activating account should be called after registering new user of deactivate account
|
|
71
|
-
* ``activateAccount`` should contains userId and the token that has been sent to the user after activation requested.
|
|
72
|
-
*
|
|
73
|
-
* @throws exception if activation failed
|
|
74
|
-
*/
|
|
75
|
-
export declare function acceptInvitation(body: IAcceptInvitation): Promise<void>;
|
|
76
|
-
/**
|
|
77
|
-
* refresh token called as authenticated use, access and refresh tokens resolved by the cookies.
|
|
78
|
-
* the server will return ILoginResponse with new access Token and refresh token and store it in the browser cookies.
|
|
79
|
-
*/
|
|
80
|
-
export declare function refreshToken(): Promise<ILoginResponse>;
|
|
81
|
-
/**
|
|
82
|
-
* refresh token called as authenticated use, access and refresh tokens resolved by the cookies.
|
|
83
|
-
* the server will return ILoginResponseV2 with new access Token and refresh token and store it in the browser cookies, as well as the tenants.
|
|
84
|
-
*/
|
|
85
|
-
export declare function refreshTokenV2(): Promise<ILoginResponseV2>;
|
|
86
|
-
/**
|
|
87
|
-
* logout from server, invalidate access and refresh token, remove it from cookies.
|
|
88
|
-
*/
|
|
89
|
-
export declare function logout(): Promise<void>;
|
|
90
|
-
/**
|
|
91
|
-
* calling forgot password request will send email with link to reset user's password.
|
|
92
|
-
*
|
|
93
|
-
* @throws exception if the user not found
|
|
94
|
-
*/
|
|
95
|
-
export declare function forgotPassword(body: IForgotPassword): Promise<void>;
|
|
96
|
-
/**
|
|
97
|
-
* reset password should be called after forget password request.
|
|
98
|
-
* userId, new password and the token has been sent to the user email.
|
|
99
|
-
*
|
|
100
|
-
* @throws exception if the user not found, password validation failed or invalid token.
|
|
101
|
-
*/
|
|
102
|
-
export declare function resetPassword(body: IResetPassword): Promise<void>;
|
|
103
|
-
/**
|
|
104
|
-
* load password configuration for user.
|
|
105
|
-
*/
|
|
106
|
-
export declare function loadPasswordConfig(params?: IGetUserPasswordConfig): Promise<Partial<TestConfig> | null>;
|
|
107
|
-
/**
|
|
108
|
-
* recover Multi-Factor authentication by providing the recoveryCode
|
|
109
|
-
* that has been received when activated it
|
|
110
|
-
*
|
|
111
|
-
* @throws exception if recovery code is not valid
|
|
112
|
-
*/
|
|
113
|
-
export declare function recoverMfaToken(body: IRecoverMFAToken): Promise<void>;
|
|
114
|
-
/**
|
|
115
|
-
* Multi-Factor Settings
|
|
116
|
-
*/
|
|
117
|
-
/**
|
|
118
|
-
* enroll Multi-Factor Auth Code to use in 3rd party apps like Google Authenticator.
|
|
119
|
-
* the server returns qrCode as png image in base64 format
|
|
120
|
-
*
|
|
121
|
-
* @throws exception if the user already have mfa-enabled
|
|
122
|
-
* ``authorized user``
|
|
123
|
-
*/
|
|
124
|
-
export declare function enrollMfa(): Promise<IEnrollMfaResponse>;
|
|
125
|
-
/**
|
|
126
|
-
* after enrolling MFA QR code, verify function should be called
|
|
127
|
-
* with the generated code in the Authenticator App
|
|
128
|
-
*
|
|
129
|
-
* @return recoveryCode to use to disable mfa if your device is lost, this code won't show it again.
|
|
130
|
-
* @throws exception if the generated token is invalid
|
|
131
|
-
* ``authorized user``
|
|
132
|
-
*/
|
|
133
|
-
export declare function verifyMfa(body: IVerifyMfa): Promise<IVerifyMfaResponse>;
|
|
134
|
-
/**
|
|
135
|
-
* disable MFA by either passing the recoveryCode or the generated code from the Authenticator App.
|
|
136
|
-
*
|
|
137
|
-
* @throws exception if the generated token or the recoveryCode are incorrect.
|
|
138
|
-
* * ``authorized user``
|
|
139
|
-
*/
|
|
140
|
-
export declare function disableMfa(body: IDisableMfa): Promise<void>;
|
|
141
|
-
/**
|
|
142
|
-
* SSO Configurations
|
|
143
|
-
*/
|
|
144
|
-
/**
|
|
145
|
-
* Retrieve SAML configurations from server by logged in user (tenantId, vendorId)
|
|
146
|
-
*
|
|
147
|
-
* @return {enabled: false} if no saml configuration found. else ISamlConfiguration
|
|
148
|
-
* * ``authorized user``
|
|
149
|
-
*/
|
|
150
|
-
export declare function getSamlConfiguration(): Promise<ISamlConfiguration>;
|
|
151
|
-
/**
|
|
152
|
-
* Update SAML configuration by logged in user (tenantId, vendorId)
|
|
153
|
-
* * ``authorized user``
|
|
154
|
-
*/
|
|
155
|
-
export declare function updateSamlConfiguration(body: IUpdateSamlConfiguration): Promise<ISamlConfiguration>;
|
|
156
|
-
/**
|
|
157
|
-
* Retrieve 'Vendor' Saml config from server by logged in user (tenantId, vendorId)
|
|
158
|
-
*
|
|
159
|
-
* @throws exception 'ACS url information not found' if no saml vendor configuration found.
|
|
160
|
-
* * ``authorized user``
|
|
161
|
-
*/
|
|
162
|
-
export declare function getSamlVendorConfiguration(): Promise<ISamlVendorConfigResponse>;
|
|
163
|
-
/**
|
|
164
|
-
* Update Vendor Saml metadata by logged in user (tenantId, vendorId)
|
|
165
|
-
*
|
|
166
|
-
* @return {enabled: false} if no saml configuration found. else ISamlConfiguration
|
|
167
|
-
* * ``authorized user``
|
|
168
|
-
*/
|
|
169
|
-
export declare function updateSamlVendorMetadata(body: IUpdateSamlVendorMetadata): Promise<ISamlConfiguration>;
|
|
170
|
-
/**
|
|
171
|
-
* Validate Saml configuration's domain by logged in user (tenantId, vendorId)
|
|
172
|
-
*
|
|
173
|
-
* @return {enabled: false} if no saml configuration found. else ISamlConfiguration
|
|
174
|
-
* * ``authorized user``
|
|
175
|
-
*/
|
|
176
|
-
export declare function validateSamlDomain(): Promise<ISamlConfiguration>;
|
|
177
|
-
/**
|
|
178
|
-
* Get Saml roles for authorization
|
|
179
|
-
* @return array of role IDs
|
|
180
|
-
*/
|
|
181
|
-
export declare function getSamlRoles(): Promise<string[]>;
|
|
182
|
-
/**
|
|
183
|
-
* Get Saml roles groups
|
|
184
|
-
* @return array of groups and assigend role IDs
|
|
185
|
-
*/
|
|
186
|
-
export declare function getSamlRolesGroups(): Promise<ISamlRolesGroup[]>;
|
|
187
|
-
/**
|
|
188
|
-
* Update Saml roles for authorization
|
|
189
|
-
*/
|
|
190
|
-
export declare function updateSamlRoles({ roleIds }: IUpdateSamlRoles): Promise<void>;
|
|
191
|
-
/**
|
|
192
|
-
* Create Saml group roles for authorization
|
|
193
|
-
*/
|
|
194
|
-
export declare function createSamlGroup({ roleIds, group }: ICreateSamlGroup): Promise<void>;
|
|
195
|
-
/**
|
|
196
|
-
* Update Saml group roles for authorization
|
|
197
|
-
*/
|
|
198
|
-
export declare function updateSamlGroup({ roleIds, group, id }: IUpdateSamlGroup): Promise<void>;
|
|
199
|
-
/**
|
|
200
|
-
* Delete Saml group
|
|
201
|
-
*/
|
|
202
|
-
export declare function deleteSamlGroup({ id }: {
|
|
203
|
-
id: string;
|
|
204
|
-
}): Promise<void>;
|
|
205
|
-
/**
|
|
206
|
-
* Retrieve OIDC configurations from server by logged in user (vendorId)
|
|
207
|
-
*
|
|
208
|
-
* @return {active: true} if no oidc configuration found. else IOidcConfiguration
|
|
209
|
-
* * ``authorized user``
|
|
210
|
-
*/
|
|
211
|
-
export declare function getOidcConfiguration(): Promise<IOidcConfiguration>;
|
|
212
|
-
/**
|
|
213
|
-
* Check if one or more saml/oidc configuration are active
|
|
214
|
-
*
|
|
215
|
-
** @return {isActive: true/false}
|
|
216
|
-
*/
|
|
217
|
-
export declare function getSSOPublicConfiguration(): Promise<ISSOPublicConfiguration>;
|
|
218
|
-
/**
|
|
219
|
-
* Get social logins providers configurations for vendor
|
|
220
|
-
* @return array of providers configurations
|
|
221
|
-
*/
|
|
222
|
-
export declare function getSocialLoginProviders(): Promise<ISocialLoginProviderConfiguration[]>;
|
|
223
|
-
/**
|
|
224
|
-
* Get social logins providers configurations V2 supports dev credentials as well
|
|
225
|
-
* @return array of providers configurations
|
|
226
|
-
*/
|
|
227
|
-
export declare function getSocialLoginProvidersV2(): Promise<ISocialLoginProviderConfigurationV2[]>;
|
|
228
|
-
/**
|
|
229
|
-
* Login using social login
|
|
230
|
-
* @return cookie with refresh token
|
|
231
|
-
*/
|
|
232
|
-
export declare function loginViaSocialLogin({ provider, code, redirectUri, codeVerifier, metadata, invitationToken, state, }: ILoginViaSocialLogin): Promise<ILoginViaSocialLoginResponse>;
|
|
233
|
-
/**
|
|
234
|
-
* Get vendor secure access configuration
|
|
235
|
-
*/
|
|
236
|
-
export declare function getVendorConfig(): Promise<IVendorConfig>;
|
|
237
|
-
/**
|
|
238
|
-
* Sign up new user
|
|
239
|
-
* create new user with a new tenant
|
|
240
|
-
*/
|
|
241
|
-
export declare function signUpUser(body: ISignUpUser): Promise<ISignUpResponse>;
|
|
242
|
-
/**
|
|
243
|
-
* Get all current user active sessions
|
|
244
|
-
*/
|
|
245
|
-
export declare function getCurrentUserSessions(): Promise<ISessionResponse[]>;
|
|
246
|
-
/**
|
|
247
|
-
* Get session configurations
|
|
248
|
-
*/
|
|
249
|
-
export declare function getSessionConfigurations(): Promise<ISessionConfigurations>;
|
|
250
|
-
/**
|
|
251
|
-
* Create or update session configurations
|
|
252
|
-
*/
|
|
253
|
-
export declare function createOrUpdateSessionConfigrations(body: ISessionConfigurations): Promise<void>;
|
|
254
|
-
/**
|
|
255
|
-
* Delete user session
|
|
256
|
-
*/
|
|
257
|
-
export declare function deleteSessionForUser(id: string): Promise<void>;
|
|
258
|
-
/**
|
|
259
|
-
* Delete all user sessions
|
|
260
|
-
*/
|
|
261
|
-
export declare function deleteAllSessionsForUser(): Promise<void>;
|
|
262
|
-
/**
|
|
263
|
-
* Api tokens Configurations
|
|
264
|
-
*/
|
|
265
|
-
/**
|
|
266
|
-
* Get user api tokens data
|
|
267
|
-
*/
|
|
268
|
-
export declare function getUserApiTokensData(): Promise<IUserApiTokensData[]>;
|
|
269
|
-
/**
|
|
270
|
-
* Get tenant api tokens data
|
|
271
|
-
*/
|
|
272
|
-
export declare function getTenantApiTokensData(): Promise<ITenantApiTokensData[]>;
|
|
273
|
-
/**
|
|
274
|
-
* Update User Api Tokens
|
|
275
|
-
*/
|
|
276
|
-
export declare function updateUserApiTokensData(body: IUpdateUserApiTokensData): Promise<IUserApiTokensData>;
|
|
277
|
-
/**
|
|
278
|
-
* Update Tenant Api Tokens
|
|
279
|
-
*/
|
|
280
|
-
export declare function updateTenantApiTokensData(body: IUpdateTenantApiTokensData): Promise<ITenantApiTokensData>;
|
|
281
|
-
/**
|
|
282
|
-
* Delete Tenant Api Token
|
|
283
|
-
*/
|
|
284
|
-
export declare function deleteTenantApiToken({ tokenId }: IDeleteApiToken): Promise<void>;
|
|
285
|
-
/**
|
|
286
|
-
* Delete Tenant Api Token
|
|
287
|
-
*/
|
|
288
|
-
export declare function deleteUserApiToken({ tokenId }: IDeleteApiToken): Promise<void>;
|
|
289
|
-
/**
|
|
290
|
-
* Get Tenant Api Token Creator User
|
|
291
|
-
*/
|
|
292
|
-
export declare function getUserById({ userId }: IGetUserById): Promise<IUserIdResponse>;
|
|
293
|
-
/**
|
|
294
|
-
* Checks if remember MFA device is enabled for user.
|
|
295
|
-
*/
|
|
296
|
-
export declare function checkIfAllowToRememberMfaDevice(mfaToken: string): Promise<IAllowedToRememberMfaDevice>;
|
|
297
|
-
/**
|
|
298
|
-
* Passwordless prelogin authentication
|
|
299
|
-
*/
|
|
300
|
-
export declare function passwordlessPreLogin({ type, ...body }: IPasswordlessPreLogin): Promise<void>;
|
|
301
|
-
export declare function passwordlessPostLogin({ type, ...body }: IPasswordlessPostLogin): Promise<ILoginResponse>;
|
|
302
|
-
/**
|
|
303
|
-
* Check if tenant invitation token is valid
|
|
304
|
-
* @param token - invitation token
|
|
305
|
-
* @returns tenant name
|
|
306
|
-
*/
|
|
307
|
-
export declare function verifyInviteToken({ token }: IVerifyInviteToken): Promise<string>;
|
|
308
|
-
/**
|
|
309
|
-
* SSO Configurations V1
|
|
310
|
-
*/
|
|
311
|
-
/**
|
|
312
|
-
* Retrieve SSO configurations from server by logged in user (tenantId, vendorId)
|
|
313
|
-
*
|
|
314
|
-
* @return ISSOConfiguration[]
|
|
315
|
-
* * ``authorized user``
|
|
316
|
-
*/
|
|
317
|
-
export declare function getSSOConfigurations(): Promise<ISSOConfiguration[]>;
|
|
318
|
-
/**
|
|
319
|
-
* Create SSO configuration by logged in user (tenantId, vendorId)
|
|
320
|
-
*
|
|
321
|
-
* @returns ISSOConfiguration
|
|
322
|
-
* * ``authorized user``
|
|
323
|
-
*/
|
|
324
|
-
export declare function createSSOConfiguration(body: IUpdateSSOConfiguration): Promise<ISSOConfiguration>;
|
|
325
|
-
/**
|
|
326
|
-
* Update SSO configuration by logged in user (tenantId, vendorId)
|
|
327
|
-
*
|
|
328
|
-
* @returns ISSOConfiguration
|
|
329
|
-
* * ``authorized user``
|
|
330
|
-
*/
|
|
331
|
-
export declare function updateSSOConfiguration(ssoConfigId: string, body: IUpdateSSOConfiguration): Promise<ISSOConfiguration>;
|
|
332
|
-
/**
|
|
333
|
-
* Delete SSO configuration by logged in user (tenantId, vendorId)
|
|
334
|
-
* * ``authorized user``
|
|
335
|
-
*/
|
|
336
|
-
export declare function deleteSSOConfiguration(ssoConfigId: string): Promise<void>;
|
|
337
|
-
/**
|
|
338
|
-
* Create SSO configuration by metadata by logged in user (tenantId, vendorId)
|
|
339
|
-
*
|
|
340
|
-
* @returns ISSOConfiguration
|
|
341
|
-
* * ``authorized user``
|
|
342
|
-
*/
|
|
343
|
-
export declare function createSSOConfigurationByMetadata(body: IUpdateSamlVendorMetadata): Promise<ISSOConfiguration>;
|
|
344
|
-
/**
|
|
345
|
-
* Update SSO configuration by metadata by logged in user (tenantId, vendorId)
|
|
346
|
-
*
|
|
347
|
-
* @returns ISSOConfiguration
|
|
348
|
-
* * ``authorized user``
|
|
349
|
-
*/
|
|
350
|
-
export declare function updateSSOConfigurationByMetadata(ssoConfigId: string, body: IUpdateSamlVendorMetadata): Promise<ISSOConfiguration>;
|
|
351
|
-
/**
|
|
352
|
-
* Create SSO configuration domain by logged in user (tenantId, vendorId)
|
|
353
|
-
*
|
|
354
|
-
* @returns ISSODomain
|
|
355
|
-
* * ``authorized user``
|
|
356
|
-
*/
|
|
357
|
-
export declare function createSSODomain(ssoConfigId: string, body: ICreateSSODomain): Promise<ISSODomain>;
|
|
358
|
-
/**
|
|
359
|
-
* Create SSO configuration domain by logged in user (tenantId, vendorId)
|
|
360
|
-
* * ``authorized user``
|
|
361
|
-
*/
|
|
362
|
-
export declare function deleteSSODomain(ssoConfigId: string, domainId: string): Promise<void>;
|
|
363
|
-
/**
|
|
364
|
-
* Validate SSO configuration domain by logged in user (tenantId, vendorId)
|
|
365
|
-
* * ``authorized user``
|
|
366
|
-
*/
|
|
367
|
-
export declare function validateSSODomain(ssoConfigId: string, domainId: string): Promise<void>;
|
|
368
|
-
/**
|
|
369
|
-
* Get SSO configuration default roles by logged in user (tenantId, vendorId)
|
|
370
|
-
* * ``authorized user``
|
|
371
|
-
*/
|
|
372
|
-
export declare function getSSODefaultRoles(ssoConfigId: string): Promise<ISSOConfigurationDefaultRoles>;
|
|
373
|
-
/**
|
|
374
|
-
* Create SSO configuration default roles by logged in user (tenantId, vendorId)
|
|
375
|
-
* * ``authorized user``
|
|
376
|
-
*/
|
|
377
|
-
export declare function setSSODefaultRoles(ssoConfigId: string, body: IUpdateSamlRoles): Promise<void>;
|
|
378
|
-
/**
|
|
379
|
-
* Create SSO configuration group roles for authorization
|
|
380
|
-
*/
|
|
381
|
-
export declare function createSSOGroup(ssoConfigId: string, body: ICreateSamlGroup): Promise<void>;
|
|
382
|
-
/**
|
|
383
|
-
* Update SSO configuration group roles for authorization
|
|
384
|
-
*/
|
|
385
|
-
export declare function updateSSOGroup(ssoConfigId: string, { roleIds, group, id }: IUpdateSamlGroup): Promise<void>;
|
|
386
|
-
/**
|
|
387
|
-
* Delete SSO configuration group
|
|
388
|
-
*/
|
|
389
|
-
export declare function deleteSSOGroup(ssoConfigId: string, groupId: string): Promise<void>;
|
|
390
|
-
/**
|
|
391
|
-
* Get SSO configuration groups
|
|
392
|
-
*/
|
|
393
|
-
export declare function getSSOGroups(ssoConfigId: string): Promise<ISamlRolesGroup[]>;
|
|
394
|
-
/**
|
|
395
|
-
* Check if requested email address has sso configuration
|
|
396
|
-
* If true, this function will return the sso address to navigate to
|
|
397
|
-
* else, return null
|
|
398
|
-
*/
|
|
399
|
-
export declare function preLoginV2(body: IPreLogin): Promise<IPreLoginWithIdpTypeResponse | null>;
|
|
400
|
-
/**
|
|
401
|
-
* After calling preLogin and navigated to SSO url, the IDP will redirect you to the redirect url
|
|
402
|
-
* with code and state
|
|
403
|
-
*/
|
|
404
|
-
export declare function oidcPostLoginV2(body: IOidcPostLoginV2): Promise<ILoginResponse>;
|
|
405
|
-
export declare function exchangeOAuthTokens(body: IExchangeOAuthTokens): Promise<ILoginResponse>;
|
|
406
|
-
/**
|
|
407
|
-
* reset phone should be called in case user want to reset his phone number
|
|
408
|
-
* when using sms authentication strategy. a 6-digits code will be send to the user email.
|
|
409
|
-
*/
|
|
410
|
-
export declare function resetPhoneNumber(body: IResetPhoneNumber): Promise<IResetPhoneNumberResponse>;
|
|
411
|
-
/**
|
|
412
|
-
* verify reset phone should be called after reset phone number request
|
|
413
|
-
* with the token received from the reset phone number request and a code that was sent to the user email
|
|
414
|
-
*/
|
|
415
|
-
export declare function verifyResetPhoneNumber(body: IVerifyResetPhoneNumber): Promise<IVerifyResetPhoneNumberResponse>;
|
|
416
|
-
/**
|
|
417
|
-
* change phone number with verification.
|
|
418
|
-
*/
|
|
419
|
-
export declare function changePhoneNumberWithVerification(body: IChangePhoneNumberWithVerification): Promise<IChangePhoneNumberWithVerificationResponse>;
|
|
420
|
-
/**
|
|
421
|
-
* verify new phone number.
|
|
422
|
-
*/
|
|
423
|
-
export declare function verifyChangePhoneNumber(body: IVerifyChangePhoneNumber): Promise<void>;
|
|
424
|
-
/**
|
|
425
|
-
* change phone number should be called after verify reset phone number with the new phone number
|
|
426
|
-
*/
|
|
427
|
-
export declare function changePhoneNumber(body: IChangePhoneNumber): Promise<void>;
|
|
428
|
-
/**
|
|
429
|
-
* webauthn prelogin should be called when the user wants to be authenticated using his device/android/usb key
|
|
430
|
-
*/
|
|
431
|
-
export declare function webAuthnPreLogin(body: IWebAuthnPreLogin): Promise<IWebAuthnPreLoginResponse>;
|
|
432
|
-
/**
|
|
433
|
-
* webauthn postlogin should be called after the user used his authenticator (device/android/usb key) in order to login
|
|
434
|
-
*/
|
|
435
|
-
export declare function webAuthnPostLogin(body: IWebAuthnPostLogin): Promise<ILoginResponse>;
|
|
436
|
-
/**
|
|
437
|
-
* webauthn create new device should be called once the user wants to add new device as authenticator
|
|
438
|
-
*/
|
|
439
|
-
export declare function webAuthnCreateNewDeviceSession(): Promise<ICreateNewDeviceSessionResponse>;
|
|
440
|
-
/**
|
|
441
|
-
* webauthn verify new device should be called after the user used his authenticator in order to register the new device
|
|
442
|
-
*/
|
|
443
|
-
export declare function verifyNewDeviceSession(body: IVerifyNewWebAuthnDevice): Promise<void>;
|
|
444
|
-
/**
|
|
445
|
-
* Get public vendor auth strategies public configuration
|
|
446
|
-
*/
|
|
447
|
-
export declare function getVendorPublicAuthStrategiesConfig(): Promise<IAuthStrategiesConfig>;
|