@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
|
@@ -0,0 +1,2327 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
var _exportNames = {
|
|
9
|
+
generateLoginResponse: true,
|
|
10
|
+
generateLoginResponseV2: true,
|
|
11
|
+
generateLoginResponseFromOAuthResponse: true,
|
|
12
|
+
preLogin: true,
|
|
13
|
+
preLoginWithIdpType: true,
|
|
14
|
+
postLogin: true,
|
|
15
|
+
oidcPostLogin: true,
|
|
16
|
+
login: true,
|
|
17
|
+
loginWithMfa: true,
|
|
18
|
+
activateAccount: true,
|
|
19
|
+
getActivateAccountStrategy: true,
|
|
20
|
+
resendActivationEmail: true,
|
|
21
|
+
acceptInvitation: true,
|
|
22
|
+
refreshToken: true,
|
|
23
|
+
refreshTokenV2: true,
|
|
24
|
+
logout: true,
|
|
25
|
+
forgotPassword: true,
|
|
26
|
+
resetPassword: true,
|
|
27
|
+
loadPasswordConfig: true,
|
|
28
|
+
recoverMfaToken: true,
|
|
29
|
+
enrollMfa: true,
|
|
30
|
+
verifyMfa: true,
|
|
31
|
+
disableMfa: true,
|
|
32
|
+
getSamlConfiguration: true,
|
|
33
|
+
updateSamlConfiguration: true,
|
|
34
|
+
getSamlVendorConfiguration: true,
|
|
35
|
+
updateSamlVendorMetadata: true,
|
|
36
|
+
validateSamlDomain: true,
|
|
37
|
+
getSamlRoles: true,
|
|
38
|
+
getSamlRolesGroups: true,
|
|
39
|
+
updateSamlRoles: true,
|
|
40
|
+
createSamlGroup: true,
|
|
41
|
+
updateSamlGroup: true,
|
|
42
|
+
deleteSamlGroup: true,
|
|
43
|
+
getOidcConfiguration: true,
|
|
44
|
+
getSSOPublicConfiguration: true,
|
|
45
|
+
getSocialLoginProviders: true,
|
|
46
|
+
getSocialLoginProvidersV2: true,
|
|
47
|
+
loginViaSocialLogin: true,
|
|
48
|
+
getVendorConfig: true,
|
|
49
|
+
signUpUser: true,
|
|
50
|
+
getCurrentUserSessions: true,
|
|
51
|
+
getSessionConfigurations: true,
|
|
52
|
+
createOrUpdateSessionConfigrations: true,
|
|
53
|
+
deleteSessionForUser: true,
|
|
54
|
+
deleteAllSessionsForUser: true,
|
|
55
|
+
getUserApiTokensData: true,
|
|
56
|
+
getTenantApiTokensData: true,
|
|
57
|
+
updateUserApiTokensData: true,
|
|
58
|
+
updateTenantApiTokensData: true,
|
|
59
|
+
deleteTenantApiToken: true,
|
|
60
|
+
deleteUserApiToken: true,
|
|
61
|
+
getUserById: true,
|
|
62
|
+
checkIfAllowToRememberMfaDevice: true,
|
|
63
|
+
passwordlessPreLogin: true,
|
|
64
|
+
passwordlessPostLogin: true,
|
|
65
|
+
verifyInviteToken: true,
|
|
66
|
+
getSSOConfigurations: true,
|
|
67
|
+
createSSOConfiguration: true,
|
|
68
|
+
updateSSOConfiguration: true,
|
|
69
|
+
deleteSSOConfiguration: true,
|
|
70
|
+
createSSOConfigurationByMetadata: true,
|
|
71
|
+
updateSSOConfigurationByMetadata: true,
|
|
72
|
+
createSSODomain: true,
|
|
73
|
+
deleteSSODomain: true,
|
|
74
|
+
validateSSODomain: true,
|
|
75
|
+
getSSODefaultRoles: true,
|
|
76
|
+
setSSODefaultRoles: true,
|
|
77
|
+
createSSOGroup: true,
|
|
78
|
+
updateSSOGroup: true,
|
|
79
|
+
deleteSSOGroup: true,
|
|
80
|
+
getSSOGroups: true,
|
|
81
|
+
preLoginV2: true,
|
|
82
|
+
oidcPostLoginV2: true,
|
|
83
|
+
exchangeOAuthTokens: true,
|
|
84
|
+
resetPhoneNumber: true,
|
|
85
|
+
verifyResetPhoneNumber: true,
|
|
86
|
+
changePhoneNumberWithVerification: true,
|
|
87
|
+
verifyChangePhoneNumber: true,
|
|
88
|
+
changePhoneNumber: true,
|
|
89
|
+
webAuthnPreLogin: true,
|
|
90
|
+
webAuthnPostLogin: true,
|
|
91
|
+
webAuthnCreateNewDeviceSession: true,
|
|
92
|
+
verifyNewDeviceSession: true,
|
|
93
|
+
getVendorPublicAuthStrategiesConfig: true
|
|
94
|
+
};
|
|
95
|
+
exports.acceptInvitation = acceptInvitation;
|
|
96
|
+
exports.activateAccount = activateAccount;
|
|
97
|
+
exports.changePhoneNumber = changePhoneNumber;
|
|
98
|
+
exports.changePhoneNumberWithVerification = changePhoneNumberWithVerification;
|
|
99
|
+
exports.checkIfAllowToRememberMfaDevice = checkIfAllowToRememberMfaDevice;
|
|
100
|
+
exports.createOrUpdateSessionConfigrations = createOrUpdateSessionConfigrations;
|
|
101
|
+
exports.createSSOConfiguration = createSSOConfiguration;
|
|
102
|
+
exports.createSSOConfigurationByMetadata = createSSOConfigurationByMetadata;
|
|
103
|
+
exports.createSSODomain = createSSODomain;
|
|
104
|
+
exports.createSSOGroup = createSSOGroup;
|
|
105
|
+
exports.createSamlGroup = createSamlGroup;
|
|
106
|
+
exports.deleteAllSessionsForUser = deleteAllSessionsForUser;
|
|
107
|
+
exports.deleteSSOConfiguration = deleteSSOConfiguration;
|
|
108
|
+
exports.deleteSSODomain = deleteSSODomain;
|
|
109
|
+
exports.deleteSSOGroup = deleteSSOGroup;
|
|
110
|
+
exports.deleteSamlGroup = deleteSamlGroup;
|
|
111
|
+
exports.deleteSessionForUser = deleteSessionForUser;
|
|
112
|
+
exports.deleteTenantApiToken = deleteTenantApiToken;
|
|
113
|
+
exports.deleteUserApiToken = deleteUserApiToken;
|
|
114
|
+
exports.disableMfa = disableMfa;
|
|
115
|
+
exports.enrollMfa = enrollMfa;
|
|
116
|
+
exports.exchangeOAuthTokens = exchangeOAuthTokens;
|
|
117
|
+
exports.forgotPassword = forgotPassword;
|
|
118
|
+
exports.generateLoginResponse = generateLoginResponse;
|
|
119
|
+
exports.generateLoginResponseFromOAuthResponse = generateLoginResponseFromOAuthResponse;
|
|
120
|
+
exports.generateLoginResponseV2 = generateLoginResponseV2;
|
|
121
|
+
exports.getActivateAccountStrategy = getActivateAccountStrategy;
|
|
122
|
+
exports.getCurrentUserSessions = getCurrentUserSessions;
|
|
123
|
+
exports.getOidcConfiguration = getOidcConfiguration;
|
|
124
|
+
exports.getSSOConfigurations = getSSOConfigurations;
|
|
125
|
+
exports.getSSODefaultRoles = getSSODefaultRoles;
|
|
126
|
+
exports.getSSOGroups = getSSOGroups;
|
|
127
|
+
exports.getSSOPublicConfiguration = getSSOPublicConfiguration;
|
|
128
|
+
exports.getSamlConfiguration = getSamlConfiguration;
|
|
129
|
+
exports.getSamlRoles = getSamlRoles;
|
|
130
|
+
exports.getSamlRolesGroups = getSamlRolesGroups;
|
|
131
|
+
exports.getSamlVendorConfiguration = getSamlVendorConfiguration;
|
|
132
|
+
exports.getSessionConfigurations = getSessionConfigurations;
|
|
133
|
+
exports.getSocialLoginProviders = getSocialLoginProviders;
|
|
134
|
+
exports.getSocialLoginProvidersV2 = getSocialLoginProvidersV2;
|
|
135
|
+
exports.getTenantApiTokensData = getTenantApiTokensData;
|
|
136
|
+
exports.getUserApiTokensData = getUserApiTokensData;
|
|
137
|
+
exports.getUserById = getUserById;
|
|
138
|
+
exports.getVendorConfig = getVendorConfig;
|
|
139
|
+
exports.getVendorPublicAuthStrategiesConfig = getVendorPublicAuthStrategiesConfig;
|
|
140
|
+
exports.loadPasswordConfig = loadPasswordConfig;
|
|
141
|
+
exports.login = login;
|
|
142
|
+
exports.loginViaSocialLogin = loginViaSocialLogin;
|
|
143
|
+
exports.loginWithMfa = loginWithMfa;
|
|
144
|
+
exports.logout = logout;
|
|
145
|
+
exports.oidcPostLogin = oidcPostLogin;
|
|
146
|
+
exports.oidcPostLoginV2 = oidcPostLoginV2;
|
|
147
|
+
exports.passwordlessPostLogin = passwordlessPostLogin;
|
|
148
|
+
exports.passwordlessPreLogin = passwordlessPreLogin;
|
|
149
|
+
exports.postLogin = postLogin;
|
|
150
|
+
exports.preLogin = preLogin;
|
|
151
|
+
exports.preLoginV2 = preLoginV2;
|
|
152
|
+
exports.preLoginWithIdpType = preLoginWithIdpType;
|
|
153
|
+
exports.recoverMfaToken = recoverMfaToken;
|
|
154
|
+
exports.refreshToken = refreshToken;
|
|
155
|
+
exports.refreshTokenV2 = refreshTokenV2;
|
|
156
|
+
exports.resendActivationEmail = resendActivationEmail;
|
|
157
|
+
exports.resetPassword = resetPassword;
|
|
158
|
+
exports.resetPhoneNumber = resetPhoneNumber;
|
|
159
|
+
exports.setSSODefaultRoles = setSSODefaultRoles;
|
|
160
|
+
exports.signUpUser = signUpUser;
|
|
161
|
+
exports.updateSSOConfiguration = updateSSOConfiguration;
|
|
162
|
+
exports.updateSSOConfigurationByMetadata = updateSSOConfigurationByMetadata;
|
|
163
|
+
exports.updateSSOGroup = updateSSOGroup;
|
|
164
|
+
exports.updateSamlConfiguration = updateSamlConfiguration;
|
|
165
|
+
exports.updateSamlGroup = updateSamlGroup;
|
|
166
|
+
exports.updateSamlRoles = updateSamlRoles;
|
|
167
|
+
exports.updateSamlVendorMetadata = updateSamlVendorMetadata;
|
|
168
|
+
exports.updateTenantApiTokensData = updateTenantApiTokensData;
|
|
169
|
+
exports.updateUserApiTokensData = updateUserApiTokensData;
|
|
170
|
+
exports.validateSSODomain = validateSSODomain;
|
|
171
|
+
exports.validateSamlDomain = validateSamlDomain;
|
|
172
|
+
exports.verifyChangePhoneNumber = verifyChangePhoneNumber;
|
|
173
|
+
exports.verifyInviteToken = verifyInviteToken;
|
|
174
|
+
exports.verifyMfa = verifyMfa;
|
|
175
|
+
exports.verifyNewDeviceSession = verifyNewDeviceSession;
|
|
176
|
+
exports.verifyResetPhoneNumber = verifyResetPhoneNumber;
|
|
177
|
+
exports.webAuthnCreateNewDeviceSession = webAuthnCreateNewDeviceSession;
|
|
178
|
+
exports.webAuthnPostLogin = webAuthnPostLogin;
|
|
179
|
+
exports.webAuthnPreLogin = webAuthnPreLogin;
|
|
180
|
+
|
|
181
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
182
|
+
|
|
183
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
184
|
+
|
|
185
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
186
|
+
|
|
187
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
188
|
+
|
|
189
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
190
|
+
|
|
191
|
+
var _tenants = require("../tenants");
|
|
192
|
+
|
|
193
|
+
var _secutiryPoilicy = require("./secutiry-poilicy");
|
|
194
|
+
|
|
195
|
+
Object.keys(_secutiryPoilicy).forEach(function (key) {
|
|
196
|
+
if (key === "default" || key === "__esModule") return;
|
|
197
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
198
|
+
if (key in exports && exports[key] === _secutiryPoilicy[key]) return;
|
|
199
|
+
Object.defineProperty(exports, key, {
|
|
200
|
+
enumerable: true,
|
|
201
|
+
get: function get() {
|
|
202
|
+
return _secutiryPoilicy[key];
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
var _enums = require("./enums");
|
|
208
|
+
|
|
209
|
+
Object.keys(_enums).forEach(function (key) {
|
|
210
|
+
if (key === "default" || key === "__esModule") return;
|
|
211
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
212
|
+
if (key in exports && exports[key] === _enums[key]) return;
|
|
213
|
+
Object.defineProperty(exports, key, {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function get() {
|
|
216
|
+
return _enums[key];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
var _constants = require("../constants");
|
|
222
|
+
|
|
223
|
+
var _ContextHolder = require("../ContextHolder");
|
|
224
|
+
|
|
225
|
+
var _fetch = require("../fetch");
|
|
226
|
+
|
|
227
|
+
var _jwt = require("../jwt");
|
|
228
|
+
|
|
229
|
+
function generateLoginResponse(_x) {
|
|
230
|
+
return _generateLoginResponse.apply(this, arguments);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function _generateLoginResponse() {
|
|
234
|
+
_generateLoginResponse = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee(loginResponse) {
|
|
235
|
+
var me, decodedContent, user;
|
|
236
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
237
|
+
while (1) {
|
|
238
|
+
switch (_context.prev = _context.next) {
|
|
239
|
+
case 0:
|
|
240
|
+
if (loginResponse.accessToken) {
|
|
241
|
+
_context.next = 2;
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
return _context.abrupt("return", loginResponse);
|
|
246
|
+
|
|
247
|
+
case 2:
|
|
248
|
+
_ContextHolder.ContextHolder.setAccessToken(loginResponse.accessToken);
|
|
249
|
+
|
|
250
|
+
_context.next = 5;
|
|
251
|
+
return (0, _fetch.Get)("".concat(_constants.urls.identity.users.v2, "/me"));
|
|
252
|
+
|
|
253
|
+
case 5:
|
|
254
|
+
me = _context.sent;
|
|
255
|
+
decodedContent = loginResponse.accessToken ? (0, _jwt.jwtDecode)(loginResponse.accessToken) : {};
|
|
256
|
+
user = (0, _extends2["default"])({}, loginResponse, decodedContent, me);
|
|
257
|
+
|
|
258
|
+
_ContextHolder.ContextHolder.setUser(user);
|
|
259
|
+
|
|
260
|
+
return _context.abrupt("return", user);
|
|
261
|
+
|
|
262
|
+
case 10:
|
|
263
|
+
case "end":
|
|
264
|
+
return _context.stop();
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}, _callee);
|
|
268
|
+
}));
|
|
269
|
+
return _generateLoginResponse.apply(this, arguments);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
function generateLoginResponseV2(_x2) {
|
|
273
|
+
return _generateLoginResponseV.apply(this, arguments);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function _generateLoginResponseV() {
|
|
277
|
+
_generateLoginResponseV = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee2(loginResponse) {
|
|
278
|
+
var _yield$Promise$all, _yield$Promise$all2, me, tenants, decodedContent, user;
|
|
279
|
+
|
|
280
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
281
|
+
while (1) {
|
|
282
|
+
switch (_context2.prev = _context2.next) {
|
|
283
|
+
case 0:
|
|
284
|
+
if (loginResponse.accessToken) {
|
|
285
|
+
_context2.next = 2;
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
return _context2.abrupt("return", {
|
|
290
|
+
user: loginResponse
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
case 2:
|
|
294
|
+
_ContextHolder.ContextHolder.setAccessToken(loginResponse.accessToken);
|
|
295
|
+
|
|
296
|
+
_context2.next = 5;
|
|
297
|
+
return Promise.all([(0, _fetch.Get)("".concat(_constants.urls.identity.users.v2, "/me")), (0, _tenants.getTenants)()]);
|
|
298
|
+
|
|
299
|
+
case 5:
|
|
300
|
+
_yield$Promise$all = _context2.sent;
|
|
301
|
+
_yield$Promise$all2 = (0, _slicedToArray2["default"])(_yield$Promise$all, 2);
|
|
302
|
+
me = _yield$Promise$all2[0];
|
|
303
|
+
tenants = _yield$Promise$all2[1];
|
|
304
|
+
decodedContent = loginResponse.accessToken ? (0, _jwt.jwtDecode)(loginResponse.accessToken) : {};
|
|
305
|
+
user = (0, _extends2["default"])({}, loginResponse, decodedContent, me);
|
|
306
|
+
|
|
307
|
+
_ContextHolder.ContextHolder.setUser(user);
|
|
308
|
+
|
|
309
|
+
return _context2.abrupt("return", {
|
|
310
|
+
user: user,
|
|
311
|
+
tenants: tenants
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
case 13:
|
|
315
|
+
case "end":
|
|
316
|
+
return _context2.stop();
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}, _callee2);
|
|
320
|
+
}));
|
|
321
|
+
return _generateLoginResponseV.apply(this, arguments);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
function generateLoginResponseFromOAuthResponse(_x3) {
|
|
325
|
+
return _generateLoginResponseFromOAuthResponse.apply(this, arguments);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
function _generateLoginResponseFromOAuthResponse() {
|
|
329
|
+
_generateLoginResponseFromOAuthResponse = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3(oauthResponse) {
|
|
330
|
+
var me, decodedContent, user;
|
|
331
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
332
|
+
while (1) {
|
|
333
|
+
switch (_context3.prev = _context3.next) {
|
|
334
|
+
case 0:
|
|
335
|
+
_ContextHolder.ContextHolder.setAccessToken(oauthResponse.id_token);
|
|
336
|
+
|
|
337
|
+
_context3.next = 3;
|
|
338
|
+
return (0, _fetch.Get)("".concat(_constants.urls.identity.users.v2, "/me"));
|
|
339
|
+
|
|
340
|
+
case 3:
|
|
341
|
+
me = _context3.sent;
|
|
342
|
+
decodedContent = oauthResponse.id_token ? (0, _jwt.jwtDecode)(oauthResponse.id_token) : {};
|
|
343
|
+
user = (0, _extends2["default"])({
|
|
344
|
+
mfaRequired: false,
|
|
345
|
+
accessToken: oauthResponse.id_token,
|
|
346
|
+
refreshToken: oauthResponse.refresh_token
|
|
347
|
+
}, decodedContent, me);
|
|
348
|
+
|
|
349
|
+
_ContextHolder.ContextHolder.setUser(user);
|
|
350
|
+
|
|
351
|
+
return _context3.abrupt("return", user);
|
|
352
|
+
|
|
353
|
+
case 8:
|
|
354
|
+
case "end":
|
|
355
|
+
return _context3.stop();
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}, _callee3);
|
|
359
|
+
}));
|
|
360
|
+
return _generateLoginResponseFromOAuthResponse.apply(this, arguments);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
function preLogin(_x4) {
|
|
364
|
+
return _preLogin.apply(this, arguments);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
function _preLogin() {
|
|
368
|
+
_preLogin = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee4(body) {
|
|
369
|
+
var _yield$Post, address;
|
|
370
|
+
|
|
371
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
372
|
+
while (1) {
|
|
373
|
+
switch (_context4.prev = _context4.next) {
|
|
374
|
+
case 0:
|
|
375
|
+
_context4.prev = 0;
|
|
376
|
+
_context4.next = 3;
|
|
377
|
+
return (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/user/saml/prelogin"), body);
|
|
378
|
+
|
|
379
|
+
case 3:
|
|
380
|
+
_yield$Post = _context4.sent;
|
|
381
|
+
address = _yield$Post.address;
|
|
382
|
+
return _context4.abrupt("return", address);
|
|
383
|
+
|
|
384
|
+
case 8:
|
|
385
|
+
_context4.prev = 8;
|
|
386
|
+
_context4.t0 = _context4["catch"](0);
|
|
387
|
+
return _context4.abrupt("return", null);
|
|
388
|
+
|
|
389
|
+
case 11:
|
|
390
|
+
case "end":
|
|
391
|
+
return _context4.stop();
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}, _callee4, null, [[0, 8]]);
|
|
395
|
+
}));
|
|
396
|
+
return _preLogin.apply(this, arguments);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function preLoginWithIdpType(_x5) {
|
|
400
|
+
return _preLoginWithIdpType.apply(this, arguments);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
function _preLoginWithIdpType() {
|
|
404
|
+
_preLoginWithIdpType = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee5(body) {
|
|
405
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
406
|
+
while (1) {
|
|
407
|
+
switch (_context5.prev = _context5.next) {
|
|
408
|
+
case 0:
|
|
409
|
+
return _context5.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/user/saml/prelogin"), body));
|
|
410
|
+
|
|
411
|
+
case 1:
|
|
412
|
+
case "end":
|
|
413
|
+
return _context5.stop();
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}, _callee5);
|
|
417
|
+
}));
|
|
418
|
+
return _preLoginWithIdpType.apply(this, arguments);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
function postLogin(_x6) {
|
|
422
|
+
return _postLogin.apply(this, arguments);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
function _postLogin() {
|
|
426
|
+
_postLogin = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee6(body) {
|
|
427
|
+
var data;
|
|
428
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
429
|
+
while (1) {
|
|
430
|
+
switch (_context6.prev = _context6.next) {
|
|
431
|
+
case 0:
|
|
432
|
+
_context6.next = 2;
|
|
433
|
+
return (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/user/saml/postlogin"), body);
|
|
434
|
+
|
|
435
|
+
case 2:
|
|
436
|
+
data = _context6.sent;
|
|
437
|
+
return _context6.abrupt("return", generateLoginResponse(data));
|
|
438
|
+
|
|
439
|
+
case 4:
|
|
440
|
+
case "end":
|
|
441
|
+
return _context6.stop();
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}, _callee6);
|
|
445
|
+
}));
|
|
446
|
+
return _postLogin.apply(this, arguments);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
function oidcPostLogin(_x7) {
|
|
450
|
+
return _oidcPostLogin.apply(this, arguments);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
function _oidcPostLogin() {
|
|
454
|
+
_oidcPostLogin = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee7(body) {
|
|
455
|
+
var data;
|
|
456
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
457
|
+
while (1) {
|
|
458
|
+
switch (_context7.prev = _context7.next) {
|
|
459
|
+
case 0:
|
|
460
|
+
_context7.next = 2;
|
|
461
|
+
return (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/user/oidc/postlogin"), body);
|
|
462
|
+
|
|
463
|
+
case 2:
|
|
464
|
+
data = _context7.sent;
|
|
465
|
+
return _context7.abrupt("return", generateLoginResponse(data));
|
|
466
|
+
|
|
467
|
+
case 4:
|
|
468
|
+
case "end":
|
|
469
|
+
return _context7.stop();
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}, _callee7);
|
|
473
|
+
}));
|
|
474
|
+
return _oidcPostLogin.apply(this, arguments);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
function login(_x8) {
|
|
478
|
+
return _login.apply(this, arguments);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
function _login() {
|
|
482
|
+
_login = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee8(body) {
|
|
483
|
+
var data;
|
|
484
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
485
|
+
while (1) {
|
|
486
|
+
switch (_context8.prev = _context8.next) {
|
|
487
|
+
case 0:
|
|
488
|
+
_context8.next = 2;
|
|
489
|
+
return (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/user"), body);
|
|
490
|
+
|
|
491
|
+
case 2:
|
|
492
|
+
data = _context8.sent;
|
|
493
|
+
return _context8.abrupt("return", generateLoginResponse(data));
|
|
494
|
+
|
|
495
|
+
case 4:
|
|
496
|
+
case "end":
|
|
497
|
+
return _context8.stop();
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}, _callee8);
|
|
501
|
+
}));
|
|
502
|
+
return _login.apply(this, arguments);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
function loginWithMfa(_x9) {
|
|
506
|
+
return _loginWithMfa.apply(this, arguments);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
function _loginWithMfa() {
|
|
510
|
+
_loginWithMfa = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee9(body) {
|
|
511
|
+
var data;
|
|
512
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
513
|
+
while (1) {
|
|
514
|
+
switch (_context9.prev = _context9.next) {
|
|
515
|
+
case 0:
|
|
516
|
+
_context9.next = 2;
|
|
517
|
+
return (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/user/mfa/verify"), body);
|
|
518
|
+
|
|
519
|
+
case 2:
|
|
520
|
+
data = _context9.sent;
|
|
521
|
+
return _context9.abrupt("return", generateLoginResponse(data));
|
|
522
|
+
|
|
523
|
+
case 4:
|
|
524
|
+
case "end":
|
|
525
|
+
return _context9.stop();
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}, _callee9);
|
|
529
|
+
}));
|
|
530
|
+
return _loginWithMfa.apply(this, arguments);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
function activateAccount(_x10) {
|
|
534
|
+
return _activateAccount.apply(this, arguments);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
function _activateAccount() {
|
|
538
|
+
_activateAccount = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee10(body) {
|
|
539
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
540
|
+
while (1) {
|
|
541
|
+
switch (_context10.prev = _context10.next) {
|
|
542
|
+
case 0:
|
|
543
|
+
return _context10.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/activate"), body));
|
|
544
|
+
|
|
545
|
+
case 1:
|
|
546
|
+
case "end":
|
|
547
|
+
return _context10.stop();
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}, _callee10);
|
|
551
|
+
}));
|
|
552
|
+
return _activateAccount.apply(this, arguments);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
function getActivateAccountStrategy(_x11) {
|
|
556
|
+
return _getActivateAccountStrategy.apply(this, arguments);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
function _getActivateAccountStrategy() {
|
|
560
|
+
_getActivateAccountStrategy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee11(params) {
|
|
561
|
+
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
|
562
|
+
while (1) {
|
|
563
|
+
switch (_context11.prev = _context11.next) {
|
|
564
|
+
case 0:
|
|
565
|
+
return _context11.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.users.v1, "/activate/strategy"), params));
|
|
566
|
+
|
|
567
|
+
case 1:
|
|
568
|
+
case "end":
|
|
569
|
+
return _context11.stop();
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}, _callee11);
|
|
573
|
+
}));
|
|
574
|
+
return _getActivateAccountStrategy.apply(this, arguments);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
function resendActivationEmail(_x12) {
|
|
578
|
+
return _resendActivationEmail.apply(this, arguments);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
function _resendActivationEmail() {
|
|
582
|
+
_resendActivationEmail = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee12(body) {
|
|
583
|
+
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
|
584
|
+
while (1) {
|
|
585
|
+
switch (_context12.prev = _context12.next) {
|
|
586
|
+
case 0:
|
|
587
|
+
return _context12.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/activate/reset"), body));
|
|
588
|
+
|
|
589
|
+
case 1:
|
|
590
|
+
case "end":
|
|
591
|
+
return _context12.stop();
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}, _callee12);
|
|
595
|
+
}));
|
|
596
|
+
return _resendActivationEmail.apply(this, arguments);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
function acceptInvitation(_x13) {
|
|
600
|
+
return _acceptInvitation.apply(this, arguments);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
function _acceptInvitation() {
|
|
604
|
+
_acceptInvitation = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee13(body) {
|
|
605
|
+
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
|
606
|
+
while (1) {
|
|
607
|
+
switch (_context13.prev = _context13.next) {
|
|
608
|
+
case 0:
|
|
609
|
+
return _context13.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/invitation/accept"), body));
|
|
610
|
+
|
|
611
|
+
case 1:
|
|
612
|
+
case "end":
|
|
613
|
+
return _context13.stop();
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}, _callee13);
|
|
617
|
+
}));
|
|
618
|
+
return _acceptInvitation.apply(this, arguments);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
function refreshToken() {
|
|
622
|
+
return _refreshToken.apply(this, arguments);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
function _refreshToken() {
|
|
626
|
+
_refreshToken = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee14() {
|
|
627
|
+
var data;
|
|
628
|
+
return _regenerator["default"].wrap(function _callee14$(_context14) {
|
|
629
|
+
while (1) {
|
|
630
|
+
switch (_context14.prev = _context14.next) {
|
|
631
|
+
case 0:
|
|
632
|
+
_context14.next = 2;
|
|
633
|
+
return (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/user/token/refresh"));
|
|
634
|
+
|
|
635
|
+
case 2:
|
|
636
|
+
data = _context14.sent;
|
|
637
|
+
return _context14.abrupt("return", generateLoginResponse(data));
|
|
638
|
+
|
|
639
|
+
case 4:
|
|
640
|
+
case "end":
|
|
641
|
+
return _context14.stop();
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}, _callee14);
|
|
645
|
+
}));
|
|
646
|
+
return _refreshToken.apply(this, arguments);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
function refreshTokenV2() {
|
|
650
|
+
return _refreshTokenV.apply(this, arguments);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
function _refreshTokenV() {
|
|
654
|
+
_refreshTokenV = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee15() {
|
|
655
|
+
var data;
|
|
656
|
+
return _regenerator["default"].wrap(function _callee15$(_context15) {
|
|
657
|
+
while (1) {
|
|
658
|
+
switch (_context15.prev = _context15.next) {
|
|
659
|
+
case 0:
|
|
660
|
+
_context15.next = 2;
|
|
661
|
+
return (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/user/token/refresh"));
|
|
662
|
+
|
|
663
|
+
case 2:
|
|
664
|
+
data = _context15.sent;
|
|
665
|
+
return _context15.abrupt("return", generateLoginResponseV2(data));
|
|
666
|
+
|
|
667
|
+
case 4:
|
|
668
|
+
case "end":
|
|
669
|
+
return _context15.stop();
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}, _callee15);
|
|
673
|
+
}));
|
|
674
|
+
return _refreshTokenV.apply(this, arguments);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
function logout() {
|
|
678
|
+
return _logout.apply(this, arguments);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
function _logout() {
|
|
682
|
+
_logout = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee16() {
|
|
683
|
+
return _regenerator["default"].wrap(function _callee16$(_context16) {
|
|
684
|
+
while (1) {
|
|
685
|
+
switch (_context16.prev = _context16.next) {
|
|
686
|
+
case 0:
|
|
687
|
+
return _context16.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/logout")));
|
|
688
|
+
|
|
689
|
+
case 1:
|
|
690
|
+
case "end":
|
|
691
|
+
return _context16.stop();
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}, _callee16);
|
|
695
|
+
}));
|
|
696
|
+
return _logout.apply(this, arguments);
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
function forgotPassword(_x14) {
|
|
700
|
+
return _forgotPassword.apply(this, arguments);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
function _forgotPassword() {
|
|
704
|
+
_forgotPassword = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee17(body) {
|
|
705
|
+
return _regenerator["default"].wrap(function _callee17$(_context17) {
|
|
706
|
+
while (1) {
|
|
707
|
+
switch (_context17.prev = _context17.next) {
|
|
708
|
+
case 0:
|
|
709
|
+
return _context17.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/passwords/reset"), body));
|
|
710
|
+
|
|
711
|
+
case 1:
|
|
712
|
+
case "end":
|
|
713
|
+
return _context17.stop();
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}, _callee17);
|
|
717
|
+
}));
|
|
718
|
+
return _forgotPassword.apply(this, arguments);
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
function resetPassword(_x15) {
|
|
722
|
+
return _resetPassword.apply(this, arguments);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
function _resetPassword() {
|
|
726
|
+
_resetPassword = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee18(body) {
|
|
727
|
+
return _regenerator["default"].wrap(function _callee18$(_context18) {
|
|
728
|
+
while (1) {
|
|
729
|
+
switch (_context18.prev = _context18.next) {
|
|
730
|
+
case 0:
|
|
731
|
+
return _context18.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/passwords/reset/verify"), body));
|
|
732
|
+
|
|
733
|
+
case 1:
|
|
734
|
+
case "end":
|
|
735
|
+
return _context18.stop();
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}, _callee18);
|
|
739
|
+
}));
|
|
740
|
+
return _resetPassword.apply(this, arguments);
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
function loadPasswordConfig(_x16) {
|
|
744
|
+
return _loadPasswordConfig.apply(this, arguments);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
function _loadPasswordConfig() {
|
|
748
|
+
_loadPasswordConfig = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee19(params) {
|
|
749
|
+
return _regenerator["default"].wrap(function _callee19$(_context19) {
|
|
750
|
+
while (1) {
|
|
751
|
+
switch (_context19.prev = _context19.next) {
|
|
752
|
+
case 0:
|
|
753
|
+
return _context19.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.users.v1, "/passwords/config"), params));
|
|
754
|
+
|
|
755
|
+
case 1:
|
|
756
|
+
case "end":
|
|
757
|
+
return _context19.stop();
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}, _callee19);
|
|
761
|
+
}));
|
|
762
|
+
return _loadPasswordConfig.apply(this, arguments);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
function recoverMfaToken(_x17) {
|
|
766
|
+
return _recoverMfaToken.apply(this, arguments);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
function _recoverMfaToken() {
|
|
770
|
+
_recoverMfaToken = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee20(body) {
|
|
771
|
+
return _regenerator["default"].wrap(function _callee20$(_context20) {
|
|
772
|
+
while (1) {
|
|
773
|
+
switch (_context20.prev = _context20.next) {
|
|
774
|
+
case 0:
|
|
775
|
+
return _context20.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/user/mfa/recover"), body));
|
|
776
|
+
|
|
777
|
+
case 1:
|
|
778
|
+
case "end":
|
|
779
|
+
return _context20.stop();
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}, _callee20);
|
|
783
|
+
}));
|
|
784
|
+
return _recoverMfaToken.apply(this, arguments);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
function enrollMfa() {
|
|
788
|
+
return _enrollMfa.apply(this, arguments);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
function _enrollMfa() {
|
|
792
|
+
_enrollMfa = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee21() {
|
|
793
|
+
return _regenerator["default"].wrap(function _callee21$(_context21) {
|
|
794
|
+
while (1) {
|
|
795
|
+
switch (_context21.prev = _context21.next) {
|
|
796
|
+
case 0:
|
|
797
|
+
return _context21.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/mfa/enroll")));
|
|
798
|
+
|
|
799
|
+
case 1:
|
|
800
|
+
case "end":
|
|
801
|
+
return _context21.stop();
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}, _callee21);
|
|
805
|
+
}));
|
|
806
|
+
return _enrollMfa.apply(this, arguments);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
function verifyMfa(_x18) {
|
|
810
|
+
return _verifyMfa.apply(this, arguments);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
function _verifyMfa() {
|
|
814
|
+
_verifyMfa = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee22(body) {
|
|
815
|
+
return _regenerator["default"].wrap(function _callee22$(_context22) {
|
|
816
|
+
while (1) {
|
|
817
|
+
switch (_context22.prev = _context22.next) {
|
|
818
|
+
case 0:
|
|
819
|
+
return _context22.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/mfa/enroll/verify"), body));
|
|
820
|
+
|
|
821
|
+
case 1:
|
|
822
|
+
case "end":
|
|
823
|
+
return _context22.stop();
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}, _callee22);
|
|
827
|
+
}));
|
|
828
|
+
return _verifyMfa.apply(this, arguments);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
function disableMfa(_x19) {
|
|
832
|
+
return _disableMfa.apply(this, arguments);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
function _disableMfa() {
|
|
836
|
+
_disableMfa = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee23(body) {
|
|
837
|
+
return _regenerator["default"].wrap(function _callee23$(_context23) {
|
|
838
|
+
while (1) {
|
|
839
|
+
switch (_context23.prev = _context23.next) {
|
|
840
|
+
case 0:
|
|
841
|
+
return _context23.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/mfa/disable"), body));
|
|
842
|
+
|
|
843
|
+
case 1:
|
|
844
|
+
case "end":
|
|
845
|
+
return _context23.stop();
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}, _callee23);
|
|
849
|
+
}));
|
|
850
|
+
return _disableMfa.apply(this, arguments);
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
function getSamlConfiguration() {
|
|
854
|
+
return _getSamlConfiguration.apply(this, arguments);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
function _getSamlConfiguration() {
|
|
858
|
+
_getSamlConfiguration = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee24() {
|
|
859
|
+
return _regenerator["default"].wrap(function _callee24$(_context24) {
|
|
860
|
+
while (1) {
|
|
861
|
+
switch (_context24.prev = _context24.next) {
|
|
862
|
+
case 0:
|
|
863
|
+
return _context24.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.team.sso.v1, "/saml/configurations")));
|
|
864
|
+
|
|
865
|
+
case 1:
|
|
866
|
+
case "end":
|
|
867
|
+
return _context24.stop();
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}, _callee24);
|
|
871
|
+
}));
|
|
872
|
+
return _getSamlConfiguration.apply(this, arguments);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
function updateSamlConfiguration(_x20) {
|
|
876
|
+
return _updateSamlConfiguration.apply(this, arguments);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
function _updateSamlConfiguration() {
|
|
880
|
+
_updateSamlConfiguration = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee25(body) {
|
|
881
|
+
return _regenerator["default"].wrap(function _callee25$(_context25) {
|
|
882
|
+
while (1) {
|
|
883
|
+
switch (_context25.prev = _context25.next) {
|
|
884
|
+
case 0:
|
|
885
|
+
return _context25.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.team.sso.v1, "/saml/configurations"), body));
|
|
886
|
+
|
|
887
|
+
case 1:
|
|
888
|
+
case "end":
|
|
889
|
+
return _context25.stop();
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
}, _callee25);
|
|
893
|
+
}));
|
|
894
|
+
return _updateSamlConfiguration.apply(this, arguments);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
function getSamlVendorConfiguration() {
|
|
898
|
+
return _getSamlVendorConfiguration.apply(this, arguments);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
function _getSamlVendorConfiguration() {
|
|
902
|
+
_getSamlVendorConfiguration = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee26() {
|
|
903
|
+
return _regenerator["default"].wrap(function _callee26$(_context26) {
|
|
904
|
+
while (1) {
|
|
905
|
+
switch (_context26.prev = _context26.next) {
|
|
906
|
+
case 0:
|
|
907
|
+
return _context26.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.team.sso.v1, "/saml/configurations/vendor-config")));
|
|
908
|
+
|
|
909
|
+
case 1:
|
|
910
|
+
case "end":
|
|
911
|
+
return _context26.stop();
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
}, _callee26);
|
|
915
|
+
}));
|
|
916
|
+
return _getSamlVendorConfiguration.apply(this, arguments);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
function updateSamlVendorMetadata(_x21) {
|
|
920
|
+
return _updateSamlVendorMetadata.apply(this, arguments);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
function _updateSamlVendorMetadata() {
|
|
924
|
+
_updateSamlVendorMetadata = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee27(body) {
|
|
925
|
+
return _regenerator["default"].wrap(function _callee27$(_context27) {
|
|
926
|
+
while (1) {
|
|
927
|
+
switch (_context27.prev = _context27.next) {
|
|
928
|
+
case 0:
|
|
929
|
+
return _context27.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.team.sso.v1, "/saml/configurations/metadata"), body));
|
|
930
|
+
|
|
931
|
+
case 1:
|
|
932
|
+
case "end":
|
|
933
|
+
return _context27.stop();
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}, _callee27);
|
|
937
|
+
}));
|
|
938
|
+
return _updateSamlVendorMetadata.apply(this, arguments);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
function validateSamlDomain() {
|
|
942
|
+
return _validateSamlDomain.apply(this, arguments);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
function _validateSamlDomain() {
|
|
946
|
+
_validateSamlDomain = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee28() {
|
|
947
|
+
return _regenerator["default"].wrap(function _callee28$(_context28) {
|
|
948
|
+
while (1) {
|
|
949
|
+
switch (_context28.prev = _context28.next) {
|
|
950
|
+
case 0:
|
|
951
|
+
return _context28.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.team.sso.v1, "/saml/validations/domain")));
|
|
952
|
+
|
|
953
|
+
case 1:
|
|
954
|
+
case "end":
|
|
955
|
+
return _context28.stop();
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}, _callee28);
|
|
959
|
+
}));
|
|
960
|
+
return _validateSamlDomain.apply(this, arguments);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
function getSamlRoles() {
|
|
964
|
+
return _getSamlRoles.apply(this, arguments);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
function _getSamlRoles() {
|
|
968
|
+
_getSamlRoles = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee29() {
|
|
969
|
+
return _regenerator["default"].wrap(function _callee29$(_context29) {
|
|
970
|
+
while (1) {
|
|
971
|
+
switch (_context29.prev = _context29.next) {
|
|
972
|
+
case 0:
|
|
973
|
+
return _context29.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.team.sso.v1, "/saml/configurations/roles/default")));
|
|
974
|
+
|
|
975
|
+
case 1:
|
|
976
|
+
case "end":
|
|
977
|
+
return _context29.stop();
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}, _callee29);
|
|
981
|
+
}));
|
|
982
|
+
return _getSamlRoles.apply(this, arguments);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
function getSamlRolesGroups() {
|
|
986
|
+
return _getSamlRolesGroups.apply(this, arguments);
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
function _getSamlRolesGroups() {
|
|
990
|
+
_getSamlRolesGroups = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee30() {
|
|
991
|
+
return _regenerator["default"].wrap(function _callee30$(_context30) {
|
|
992
|
+
while (1) {
|
|
993
|
+
switch (_context30.prev = _context30.next) {
|
|
994
|
+
case 0:
|
|
995
|
+
return _context30.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.team.sso.v2, "/saml/configurations/groups")));
|
|
996
|
+
|
|
997
|
+
case 1:
|
|
998
|
+
case "end":
|
|
999
|
+
return _context30.stop();
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}, _callee30);
|
|
1003
|
+
}));
|
|
1004
|
+
return _getSamlRolesGroups.apply(this, arguments);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
function updateSamlRoles(_x22) {
|
|
1008
|
+
return _updateSamlRoles.apply(this, arguments);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
function _updateSamlRoles() {
|
|
1012
|
+
_updateSamlRoles = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee31(_ref) {
|
|
1013
|
+
var roleIds;
|
|
1014
|
+
return _regenerator["default"].wrap(function _callee31$(_context31) {
|
|
1015
|
+
while (1) {
|
|
1016
|
+
switch (_context31.prev = _context31.next) {
|
|
1017
|
+
case 0:
|
|
1018
|
+
roleIds = _ref.roleIds;
|
|
1019
|
+
return _context31.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.team.sso.v1, "/saml/configurations/roles/default"), {
|
|
1020
|
+
roleIds: roleIds
|
|
1021
|
+
}));
|
|
1022
|
+
|
|
1023
|
+
case 2:
|
|
1024
|
+
case "end":
|
|
1025
|
+
return _context31.stop();
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}, _callee31);
|
|
1029
|
+
}));
|
|
1030
|
+
return _updateSamlRoles.apply(this, arguments);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
function createSamlGroup(_x23) {
|
|
1034
|
+
return _createSamlGroup.apply(this, arguments);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
function _createSamlGroup() {
|
|
1038
|
+
_createSamlGroup = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee32(_ref2) {
|
|
1039
|
+
var roleIds, group;
|
|
1040
|
+
return _regenerator["default"].wrap(function _callee32$(_context32) {
|
|
1041
|
+
while (1) {
|
|
1042
|
+
switch (_context32.prev = _context32.next) {
|
|
1043
|
+
case 0:
|
|
1044
|
+
roleIds = _ref2.roleIds, group = _ref2.group;
|
|
1045
|
+
return _context32.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.team.sso.v2, "/saml/configurations/groups"), {
|
|
1046
|
+
group: group,
|
|
1047
|
+
roleIds: roleIds
|
|
1048
|
+
}));
|
|
1049
|
+
|
|
1050
|
+
case 2:
|
|
1051
|
+
case "end":
|
|
1052
|
+
return _context32.stop();
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}, _callee32);
|
|
1056
|
+
}));
|
|
1057
|
+
return _createSamlGroup.apply(this, arguments);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
function updateSamlGroup(_x24) {
|
|
1061
|
+
return _updateSamlGroup.apply(this, arguments);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
function _updateSamlGroup() {
|
|
1065
|
+
_updateSamlGroup = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee33(_ref3) {
|
|
1066
|
+
var roleIds, group, id;
|
|
1067
|
+
return _regenerator["default"].wrap(function _callee33$(_context33) {
|
|
1068
|
+
while (1) {
|
|
1069
|
+
switch (_context33.prev = _context33.next) {
|
|
1070
|
+
case 0:
|
|
1071
|
+
roleIds = _ref3.roleIds, group = _ref3.group, id = _ref3.id;
|
|
1072
|
+
return _context33.abrupt("return", (0, _fetch.Patch)("".concat(_constants.urls.team.sso.v2, "/saml/configurations/groups/").concat(id), {
|
|
1073
|
+
group: group,
|
|
1074
|
+
roleIds: roleIds
|
|
1075
|
+
}));
|
|
1076
|
+
|
|
1077
|
+
case 2:
|
|
1078
|
+
case "end":
|
|
1079
|
+
return _context33.stop();
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}, _callee33);
|
|
1083
|
+
}));
|
|
1084
|
+
return _updateSamlGroup.apply(this, arguments);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
function deleteSamlGroup(_x25) {
|
|
1088
|
+
return _deleteSamlGroup.apply(this, arguments);
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
function _deleteSamlGroup() {
|
|
1092
|
+
_deleteSamlGroup = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee34(_ref4) {
|
|
1093
|
+
var id;
|
|
1094
|
+
return _regenerator["default"].wrap(function _callee34$(_context34) {
|
|
1095
|
+
while (1) {
|
|
1096
|
+
switch (_context34.prev = _context34.next) {
|
|
1097
|
+
case 0:
|
|
1098
|
+
id = _ref4.id;
|
|
1099
|
+
return _context34.abrupt("return", (0, _fetch.Delete)("".concat(_constants.urls.team.sso.v2, "/saml/configurations/groups/").concat(id)));
|
|
1100
|
+
|
|
1101
|
+
case 2:
|
|
1102
|
+
case "end":
|
|
1103
|
+
return _context34.stop();
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}, _callee34);
|
|
1107
|
+
}));
|
|
1108
|
+
return _deleteSamlGroup.apply(this, arguments);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
function getOidcConfiguration() {
|
|
1112
|
+
return _getOidcConfiguration.apply(this, arguments);
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
function _getOidcConfiguration() {
|
|
1116
|
+
_getOidcConfiguration = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee35() {
|
|
1117
|
+
return _regenerator["default"].wrap(function _callee35$(_context35) {
|
|
1118
|
+
while (1) {
|
|
1119
|
+
switch (_context35.prev = _context35.next) {
|
|
1120
|
+
case 0:
|
|
1121
|
+
return _context35.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.team.sso.v1, "/oidc/configurations")));
|
|
1122
|
+
|
|
1123
|
+
case 1:
|
|
1124
|
+
case "end":
|
|
1125
|
+
return _context35.stop();
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}, _callee35);
|
|
1129
|
+
}));
|
|
1130
|
+
return _getOidcConfiguration.apply(this, arguments);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
function getSSOPublicConfiguration() {
|
|
1134
|
+
return _getSSOPublicConfiguration.apply(this, arguments);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
function _getSSOPublicConfiguration() {
|
|
1138
|
+
_getSSOPublicConfiguration = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee36() {
|
|
1139
|
+
return _regenerator["default"].wrap(function _callee36$(_context36) {
|
|
1140
|
+
while (1) {
|
|
1141
|
+
switch (_context36.prev = _context36.next) {
|
|
1142
|
+
case 0:
|
|
1143
|
+
return _context36.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.team.sso.v2, "/configurations/public")));
|
|
1144
|
+
|
|
1145
|
+
case 1:
|
|
1146
|
+
case "end":
|
|
1147
|
+
return _context36.stop();
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
}, _callee36);
|
|
1151
|
+
}));
|
|
1152
|
+
return _getSSOPublicConfiguration.apply(this, arguments);
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
function getSocialLoginProviders() {
|
|
1156
|
+
return _getSocialLoginProviders.apply(this, arguments);
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
function _getSocialLoginProviders() {
|
|
1160
|
+
_getSocialLoginProviders = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee37() {
|
|
1161
|
+
return _regenerator["default"].wrap(function _callee37$(_context37) {
|
|
1162
|
+
while (1) {
|
|
1163
|
+
switch (_context37.prev = _context37.next) {
|
|
1164
|
+
case 0:
|
|
1165
|
+
return _context37.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.sso.v1));
|
|
1166
|
+
|
|
1167
|
+
case 1:
|
|
1168
|
+
case "end":
|
|
1169
|
+
return _context37.stop();
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}, _callee37);
|
|
1173
|
+
}));
|
|
1174
|
+
return _getSocialLoginProviders.apply(this, arguments);
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
function getSocialLoginProvidersV2() {
|
|
1178
|
+
return _getSocialLoginProvidersV.apply(this, arguments);
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
function _getSocialLoginProvidersV() {
|
|
1182
|
+
_getSocialLoginProvidersV = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee38() {
|
|
1183
|
+
return _regenerator["default"].wrap(function _callee38$(_context38) {
|
|
1184
|
+
while (1) {
|
|
1185
|
+
switch (_context38.prev = _context38.next) {
|
|
1186
|
+
case 0:
|
|
1187
|
+
return _context38.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.sso.v2));
|
|
1188
|
+
|
|
1189
|
+
case 1:
|
|
1190
|
+
case "end":
|
|
1191
|
+
return _context38.stop();
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}, _callee38);
|
|
1195
|
+
}));
|
|
1196
|
+
return _getSocialLoginProvidersV.apply(this, arguments);
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
function loginViaSocialLogin(_x26) {
|
|
1200
|
+
return _loginViaSocialLogin.apply(this, arguments);
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
function _loginViaSocialLogin() {
|
|
1204
|
+
_loginViaSocialLogin = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee39(_ref5) {
|
|
1205
|
+
var provider, code, redirectUri, codeVerifier, metadata, invitationToken, state, params;
|
|
1206
|
+
return _regenerator["default"].wrap(function _callee39$(_context39) {
|
|
1207
|
+
while (1) {
|
|
1208
|
+
switch (_context39.prev = _context39.next) {
|
|
1209
|
+
case 0:
|
|
1210
|
+
provider = _ref5.provider, code = _ref5.code, redirectUri = _ref5.redirectUri, codeVerifier = _ref5.codeVerifier, metadata = _ref5.metadata, invitationToken = _ref5.invitationToken, state = _ref5.state;
|
|
1211
|
+
params = {
|
|
1212
|
+
code: code
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
if (redirectUri) {
|
|
1216
|
+
params.redirectUri = redirectUri;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
if (codeVerifier) {
|
|
1220
|
+
params.code_verifier = codeVerifier;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
if (state) {
|
|
1224
|
+
params.state = state;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
return _context39.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/user/sso/").concat(provider, "/postlogin"), {
|
|
1228
|
+
metadata: metadata,
|
|
1229
|
+
invitationToken: invitationToken
|
|
1230
|
+
}, {
|
|
1231
|
+
params: params
|
|
1232
|
+
}));
|
|
1233
|
+
|
|
1234
|
+
case 6:
|
|
1235
|
+
case "end":
|
|
1236
|
+
return _context39.stop();
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
}, _callee39);
|
|
1240
|
+
}));
|
|
1241
|
+
return _loginViaSocialLogin.apply(this, arguments);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
function getVendorConfig() {
|
|
1245
|
+
return _getVendorConfig.apply(this, arguments);
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
function _getVendorConfig() {
|
|
1249
|
+
_getVendorConfig = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee40() {
|
|
1250
|
+
return _regenerator["default"].wrap(function _callee40$(_context40) {
|
|
1251
|
+
while (1) {
|
|
1252
|
+
switch (_context40.prev = _context40.next) {
|
|
1253
|
+
case 0:
|
|
1254
|
+
return _context40.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.configurations.v1, "/public")));
|
|
1255
|
+
|
|
1256
|
+
case 1:
|
|
1257
|
+
case "end":
|
|
1258
|
+
return _context40.stop();
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
}, _callee40);
|
|
1262
|
+
}));
|
|
1263
|
+
return _getVendorConfig.apply(this, arguments);
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
function signUpUser(_x27) {
|
|
1267
|
+
return _signUpUser.apply(this, arguments);
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
function _signUpUser() {
|
|
1271
|
+
_signUpUser = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee41(body) {
|
|
1272
|
+
var _yield$Post2, shouldActivate, authResponse, userId, tenantId, loginResponse;
|
|
1273
|
+
|
|
1274
|
+
return _regenerator["default"].wrap(function _callee41$(_context41) {
|
|
1275
|
+
while (1) {
|
|
1276
|
+
switch (_context41.prev = _context41.next) {
|
|
1277
|
+
case 0:
|
|
1278
|
+
_context41.next = 2;
|
|
1279
|
+
return (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/signUp"), body);
|
|
1280
|
+
|
|
1281
|
+
case 2:
|
|
1282
|
+
_yield$Post2 = _context41.sent;
|
|
1283
|
+
shouldActivate = _yield$Post2.shouldActivate;
|
|
1284
|
+
authResponse = _yield$Post2.authResponse;
|
|
1285
|
+
userId = _yield$Post2.userId;
|
|
1286
|
+
tenantId = _yield$Post2.tenantId;
|
|
1287
|
+
|
|
1288
|
+
if (!(!shouldActivate && authResponse)) {
|
|
1289
|
+
_context41.next = 13;
|
|
1290
|
+
break;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
_context41.next = 10;
|
|
1294
|
+
return generateLoginResponse(authResponse);
|
|
1295
|
+
|
|
1296
|
+
case 10:
|
|
1297
|
+
_context41.t0 = _context41.sent;
|
|
1298
|
+
_context41.next = 14;
|
|
1299
|
+
break;
|
|
1300
|
+
|
|
1301
|
+
case 13:
|
|
1302
|
+
_context41.t0 = undefined;
|
|
1303
|
+
|
|
1304
|
+
case 14:
|
|
1305
|
+
loginResponse = _context41.t0;
|
|
1306
|
+
return _context41.abrupt("return", {
|
|
1307
|
+
shouldActivate: shouldActivate,
|
|
1308
|
+
user: loginResponse,
|
|
1309
|
+
userId: userId,
|
|
1310
|
+
tenantId: tenantId
|
|
1311
|
+
});
|
|
1312
|
+
|
|
1313
|
+
case 16:
|
|
1314
|
+
case "end":
|
|
1315
|
+
return _context41.stop();
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
}, _callee41);
|
|
1319
|
+
}));
|
|
1320
|
+
return _signUpUser.apply(this, arguments);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
function getCurrentUserSessions() {
|
|
1324
|
+
return _getCurrentUserSessions.apply(this, arguments);
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
function _getCurrentUserSessions() {
|
|
1328
|
+
_getCurrentUserSessions = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee42() {
|
|
1329
|
+
return _regenerator["default"].wrap(function _callee42$(_context42) {
|
|
1330
|
+
while (1) {
|
|
1331
|
+
switch (_context42.prev = _context42.next) {
|
|
1332
|
+
case 0:
|
|
1333
|
+
return _context42.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.users.sessions.currentUser.v1));
|
|
1334
|
+
|
|
1335
|
+
case 1:
|
|
1336
|
+
case "end":
|
|
1337
|
+
return _context42.stop();
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
}, _callee42);
|
|
1341
|
+
}));
|
|
1342
|
+
return _getCurrentUserSessions.apply(this, arguments);
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
function getSessionConfigurations() {
|
|
1346
|
+
return _getSessionConfigurations.apply(this, arguments);
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
function _getSessionConfigurations() {
|
|
1350
|
+
_getSessionConfigurations = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee43() {
|
|
1351
|
+
return _regenerator["default"].wrap(function _callee43$(_context43) {
|
|
1352
|
+
while (1) {
|
|
1353
|
+
switch (_context43.prev = _context43.next) {
|
|
1354
|
+
case 0:
|
|
1355
|
+
return _context43.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.users.sessions.configurations.v1));
|
|
1356
|
+
|
|
1357
|
+
case 1:
|
|
1358
|
+
case "end":
|
|
1359
|
+
return _context43.stop();
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
}, _callee43);
|
|
1363
|
+
}));
|
|
1364
|
+
return _getSessionConfigurations.apply(this, arguments);
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
function createOrUpdateSessionConfigrations(_x28) {
|
|
1368
|
+
return _createOrUpdateSessionConfigrations.apply(this, arguments);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
function _createOrUpdateSessionConfigrations() {
|
|
1372
|
+
_createOrUpdateSessionConfigrations = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee44(body) {
|
|
1373
|
+
return _regenerator["default"].wrap(function _callee44$(_context44) {
|
|
1374
|
+
while (1) {
|
|
1375
|
+
switch (_context44.prev = _context44.next) {
|
|
1376
|
+
case 0:
|
|
1377
|
+
_context44.next = 2;
|
|
1378
|
+
return (0, _fetch.Post)(_constants.urls.identity.users.sessions.configurations.v1, body);
|
|
1379
|
+
|
|
1380
|
+
case 2:
|
|
1381
|
+
case "end":
|
|
1382
|
+
return _context44.stop();
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
}, _callee44);
|
|
1386
|
+
}));
|
|
1387
|
+
return _createOrUpdateSessionConfigrations.apply(this, arguments);
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
function deleteSessionForUser(_x29) {
|
|
1391
|
+
return _deleteSessionForUser.apply(this, arguments);
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
function _deleteSessionForUser() {
|
|
1395
|
+
_deleteSessionForUser = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee45(id) {
|
|
1396
|
+
return _regenerator["default"].wrap(function _callee45$(_context45) {
|
|
1397
|
+
while (1) {
|
|
1398
|
+
switch (_context45.prev = _context45.next) {
|
|
1399
|
+
case 0:
|
|
1400
|
+
_context45.next = 2;
|
|
1401
|
+
return (0, _fetch.Delete)("".concat(_constants.urls.identity.users.sessions.currentUser.v1, "/").concat(id));
|
|
1402
|
+
|
|
1403
|
+
case 2:
|
|
1404
|
+
case "end":
|
|
1405
|
+
return _context45.stop();
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
}, _callee45);
|
|
1409
|
+
}));
|
|
1410
|
+
return _deleteSessionForUser.apply(this, arguments);
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
function deleteAllSessionsForUser() {
|
|
1414
|
+
return _deleteAllSessionsForUser.apply(this, arguments);
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
function _deleteAllSessionsForUser() {
|
|
1418
|
+
_deleteAllSessionsForUser = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee46() {
|
|
1419
|
+
return _regenerator["default"].wrap(function _callee46$(_context46) {
|
|
1420
|
+
while (1) {
|
|
1421
|
+
switch (_context46.prev = _context46.next) {
|
|
1422
|
+
case 0:
|
|
1423
|
+
_context46.next = 2;
|
|
1424
|
+
return (0, _fetch.Delete)("".concat(_constants.urls.identity.users.sessions.currentUser.v1, "/all"));
|
|
1425
|
+
|
|
1426
|
+
case 2:
|
|
1427
|
+
case "end":
|
|
1428
|
+
return _context46.stop();
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
}, _callee46);
|
|
1432
|
+
}));
|
|
1433
|
+
return _deleteAllSessionsForUser.apply(this, arguments);
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
function getUserApiTokensData() {
|
|
1437
|
+
return _getUserApiTokensData.apply(this, arguments);
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
function _getUserApiTokensData() {
|
|
1441
|
+
_getUserApiTokensData = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee47() {
|
|
1442
|
+
return _regenerator["default"].wrap(function _callee47$(_context47) {
|
|
1443
|
+
while (1) {
|
|
1444
|
+
switch (_context47.prev = _context47.next) {
|
|
1445
|
+
case 0:
|
|
1446
|
+
return _context47.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.users.apiTokens.v1));
|
|
1447
|
+
|
|
1448
|
+
case 1:
|
|
1449
|
+
case "end":
|
|
1450
|
+
return _context47.stop();
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
}, _callee47);
|
|
1454
|
+
}));
|
|
1455
|
+
return _getUserApiTokensData.apply(this, arguments);
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
function getTenantApiTokensData() {
|
|
1459
|
+
return _getTenantApiTokensData.apply(this, arguments);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
function _getTenantApiTokensData() {
|
|
1463
|
+
_getTenantApiTokensData = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee48() {
|
|
1464
|
+
return _regenerator["default"].wrap(function _callee48$(_context48) {
|
|
1465
|
+
while (1) {
|
|
1466
|
+
switch (_context48.prev = _context48.next) {
|
|
1467
|
+
case 0:
|
|
1468
|
+
return _context48.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.tenants.apiTokens.v1));
|
|
1469
|
+
|
|
1470
|
+
case 1:
|
|
1471
|
+
case "end":
|
|
1472
|
+
return _context48.stop();
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
}, _callee48);
|
|
1476
|
+
}));
|
|
1477
|
+
return _getTenantApiTokensData.apply(this, arguments);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
function updateUserApiTokensData(_x30) {
|
|
1481
|
+
return _updateUserApiTokensData.apply(this, arguments);
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
function _updateUserApiTokensData() {
|
|
1485
|
+
_updateUserApiTokensData = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee49(body) {
|
|
1486
|
+
return _regenerator["default"].wrap(function _callee49$(_context49) {
|
|
1487
|
+
while (1) {
|
|
1488
|
+
switch (_context49.prev = _context49.next) {
|
|
1489
|
+
case 0:
|
|
1490
|
+
return _context49.abrupt("return", (0, _fetch.Post)(_constants.urls.identity.users.apiTokens.v1, body));
|
|
1491
|
+
|
|
1492
|
+
case 1:
|
|
1493
|
+
case "end":
|
|
1494
|
+
return _context49.stop();
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
}, _callee49);
|
|
1498
|
+
}));
|
|
1499
|
+
return _updateUserApiTokensData.apply(this, arguments);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
function updateTenantApiTokensData(_x31) {
|
|
1503
|
+
return _updateTenantApiTokensData.apply(this, arguments);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
function _updateTenantApiTokensData() {
|
|
1507
|
+
_updateTenantApiTokensData = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee50(body) {
|
|
1508
|
+
return _regenerator["default"].wrap(function _callee50$(_context50) {
|
|
1509
|
+
while (1) {
|
|
1510
|
+
switch (_context50.prev = _context50.next) {
|
|
1511
|
+
case 0:
|
|
1512
|
+
return _context50.abrupt("return", (0, _fetch.Post)(_constants.urls.identity.tenants.apiTokens.v2, body));
|
|
1513
|
+
|
|
1514
|
+
case 1:
|
|
1515
|
+
case "end":
|
|
1516
|
+
return _context50.stop();
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
}, _callee50);
|
|
1520
|
+
}));
|
|
1521
|
+
return _updateTenantApiTokensData.apply(this, arguments);
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
function deleteTenantApiToken(_x32) {
|
|
1525
|
+
return _deleteTenantApiToken.apply(this, arguments);
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
function _deleteTenantApiToken() {
|
|
1529
|
+
_deleteTenantApiToken = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee51(_ref6) {
|
|
1530
|
+
var tokenId;
|
|
1531
|
+
return _regenerator["default"].wrap(function _callee51$(_context51) {
|
|
1532
|
+
while (1) {
|
|
1533
|
+
switch (_context51.prev = _context51.next) {
|
|
1534
|
+
case 0:
|
|
1535
|
+
tokenId = _ref6.tokenId;
|
|
1536
|
+
return _context51.abrupt("return", (0, _fetch.Delete)("".concat(_constants.urls.identity.tenants.apiTokens.v1, "/").concat(tokenId)));
|
|
1537
|
+
|
|
1538
|
+
case 2:
|
|
1539
|
+
case "end":
|
|
1540
|
+
return _context51.stop();
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
}, _callee51);
|
|
1544
|
+
}));
|
|
1545
|
+
return _deleteTenantApiToken.apply(this, arguments);
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
function deleteUserApiToken(_x33) {
|
|
1549
|
+
return _deleteUserApiToken.apply(this, arguments);
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
function _deleteUserApiToken() {
|
|
1553
|
+
_deleteUserApiToken = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee52(_ref7) {
|
|
1554
|
+
var tokenId;
|
|
1555
|
+
return _regenerator["default"].wrap(function _callee52$(_context52) {
|
|
1556
|
+
while (1) {
|
|
1557
|
+
switch (_context52.prev = _context52.next) {
|
|
1558
|
+
case 0:
|
|
1559
|
+
tokenId = _ref7.tokenId;
|
|
1560
|
+
return _context52.abrupt("return", (0, _fetch.Delete)("".concat(_constants.urls.identity.users.apiTokens.v1, "/").concat(tokenId)));
|
|
1561
|
+
|
|
1562
|
+
case 2:
|
|
1563
|
+
case "end":
|
|
1564
|
+
return _context52.stop();
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
}, _callee52);
|
|
1568
|
+
}));
|
|
1569
|
+
return _deleteUserApiToken.apply(this, arguments);
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
function getUserById(_x34) {
|
|
1573
|
+
return _getUserById.apply(this, arguments);
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
function _getUserById() {
|
|
1577
|
+
_getUserById = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee53(_ref8) {
|
|
1578
|
+
var userId;
|
|
1579
|
+
return _regenerator["default"].wrap(function _callee53$(_context53) {
|
|
1580
|
+
while (1) {
|
|
1581
|
+
switch (_context53.prev = _context53.next) {
|
|
1582
|
+
case 0:
|
|
1583
|
+
userId = _ref8.userId;
|
|
1584
|
+
return _context53.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.users.v1, "/").concat(userId)));
|
|
1585
|
+
|
|
1586
|
+
case 2:
|
|
1587
|
+
case "end":
|
|
1588
|
+
return _context53.stop();
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
}, _callee53);
|
|
1592
|
+
}));
|
|
1593
|
+
return _getUserById.apply(this, arguments);
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
function checkIfAllowToRememberMfaDevice(_x35) {
|
|
1597
|
+
return _checkIfAllowToRememberMfaDevice.apply(this, arguments);
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
function _checkIfAllowToRememberMfaDevice() {
|
|
1601
|
+
_checkIfAllowToRememberMfaDevice = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee54(mfaToken) {
|
|
1602
|
+
return _regenerator["default"].wrap(function _callee54$(_context54) {
|
|
1603
|
+
while (1) {
|
|
1604
|
+
switch (_context54.prev = _context54.next) {
|
|
1605
|
+
case 0:
|
|
1606
|
+
return _context54.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.configurations.v1, "/mfa-policy/allow-remember-device"), {
|
|
1607
|
+
mfaToken: mfaToken
|
|
1608
|
+
}));
|
|
1609
|
+
|
|
1610
|
+
case 1:
|
|
1611
|
+
case "end":
|
|
1612
|
+
return _context54.stop();
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
}, _callee54);
|
|
1616
|
+
}));
|
|
1617
|
+
return _checkIfAllowToRememberMfaDevice.apply(this, arguments);
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
function passwordlessPreLogin(_x36) {
|
|
1621
|
+
return _passwordlessPreLogin.apply(this, arguments);
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
function _passwordlessPreLogin() {
|
|
1625
|
+
_passwordlessPreLogin = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee55(_ref9) {
|
|
1626
|
+
var type, body;
|
|
1627
|
+
return _regenerator["default"].wrap(function _callee55$(_context55) {
|
|
1628
|
+
while (1) {
|
|
1629
|
+
switch (_context55.prev = _context55.next) {
|
|
1630
|
+
case 0:
|
|
1631
|
+
type = _ref9.type, body = (0, _objectWithoutProperties2["default"])(_ref9, ["type"]);
|
|
1632
|
+
return _context55.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/passwordless/").concat(type.toLocaleLowerCase(), "/prelogin"), body));
|
|
1633
|
+
|
|
1634
|
+
case 2:
|
|
1635
|
+
case "end":
|
|
1636
|
+
return _context55.stop();
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
}, _callee55);
|
|
1640
|
+
}));
|
|
1641
|
+
return _passwordlessPreLogin.apply(this, arguments);
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
function passwordlessPostLogin(_x37) {
|
|
1645
|
+
return _passwordlessPostLogin.apply(this, arguments);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
function _passwordlessPostLogin() {
|
|
1649
|
+
_passwordlessPostLogin = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee56(_ref10) {
|
|
1650
|
+
var type, body;
|
|
1651
|
+
return _regenerator["default"].wrap(function _callee56$(_context56) {
|
|
1652
|
+
while (1) {
|
|
1653
|
+
switch (_context56.prev = _context56.next) {
|
|
1654
|
+
case 0:
|
|
1655
|
+
type = _ref10.type, body = (0, _objectWithoutProperties2["default"])(_ref10, ["type"]);
|
|
1656
|
+
return _context56.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/passwordless/").concat(type.toLocaleLowerCase(), "/postlogin"), body));
|
|
1657
|
+
|
|
1658
|
+
case 2:
|
|
1659
|
+
case "end":
|
|
1660
|
+
return _context56.stop();
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
}, _callee56);
|
|
1664
|
+
}));
|
|
1665
|
+
return _passwordlessPostLogin.apply(this, arguments);
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
function verifyInviteToken(_x38) {
|
|
1669
|
+
return _verifyInviteToken.apply(this, arguments);
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
function _verifyInviteToken() {
|
|
1673
|
+
_verifyInviteToken = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee57(_ref11) {
|
|
1674
|
+
var token;
|
|
1675
|
+
return _regenerator["default"].wrap(function _callee57$(_context57) {
|
|
1676
|
+
while (1) {
|
|
1677
|
+
switch (_context57.prev = _context57.next) {
|
|
1678
|
+
case 0:
|
|
1679
|
+
token = _ref11.token;
|
|
1680
|
+
return _context57.abrupt("return", (0, _fetch.Post)(_constants.urls.identity.tenants.invites.verify.v1, {
|
|
1681
|
+
token: token
|
|
1682
|
+
}));
|
|
1683
|
+
|
|
1684
|
+
case 2:
|
|
1685
|
+
case "end":
|
|
1686
|
+
return _context57.stop();
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
}, _callee57);
|
|
1690
|
+
}));
|
|
1691
|
+
return _verifyInviteToken.apply(this, arguments);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
function getSSOConfigurations() {
|
|
1695
|
+
return _getSSOConfigurations.apply(this, arguments);
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
function _getSSOConfigurations() {
|
|
1699
|
+
_getSSOConfigurations = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee58() {
|
|
1700
|
+
return _regenerator["default"].wrap(function _callee58$(_context58) {
|
|
1701
|
+
while (1) {
|
|
1702
|
+
switch (_context58.prev = _context58.next) {
|
|
1703
|
+
case 0:
|
|
1704
|
+
return _context58.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.team.sso.v1, "/configurations")));
|
|
1705
|
+
|
|
1706
|
+
case 1:
|
|
1707
|
+
case "end":
|
|
1708
|
+
return _context58.stop();
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
}, _callee58);
|
|
1712
|
+
}));
|
|
1713
|
+
return _getSSOConfigurations.apply(this, arguments);
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
function createSSOConfiguration(_x39) {
|
|
1717
|
+
return _createSSOConfiguration.apply(this, arguments);
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
function _createSSOConfiguration() {
|
|
1721
|
+
_createSSOConfiguration = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee59(body) {
|
|
1722
|
+
return _regenerator["default"].wrap(function _callee59$(_context59) {
|
|
1723
|
+
while (1) {
|
|
1724
|
+
switch (_context59.prev = _context59.next) {
|
|
1725
|
+
case 0:
|
|
1726
|
+
return _context59.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.team.sso.v1, "/configurations"), body));
|
|
1727
|
+
|
|
1728
|
+
case 1:
|
|
1729
|
+
case "end":
|
|
1730
|
+
return _context59.stop();
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
}, _callee59);
|
|
1734
|
+
}));
|
|
1735
|
+
return _createSSOConfiguration.apply(this, arguments);
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
function updateSSOConfiguration(_x40, _x41) {
|
|
1739
|
+
return _updateSSOConfiguration.apply(this, arguments);
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
function _updateSSOConfiguration() {
|
|
1743
|
+
_updateSSOConfiguration = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee60(ssoConfigId, body) {
|
|
1744
|
+
return _regenerator["default"].wrap(function _callee60$(_context60) {
|
|
1745
|
+
while (1) {
|
|
1746
|
+
switch (_context60.prev = _context60.next) {
|
|
1747
|
+
case 0:
|
|
1748
|
+
return _context60.abrupt("return", (0, _fetch.Patch)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId), body));
|
|
1749
|
+
|
|
1750
|
+
case 1:
|
|
1751
|
+
case "end":
|
|
1752
|
+
return _context60.stop();
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
}, _callee60);
|
|
1756
|
+
}));
|
|
1757
|
+
return _updateSSOConfiguration.apply(this, arguments);
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
function deleteSSOConfiguration(_x42) {
|
|
1761
|
+
return _deleteSSOConfiguration.apply(this, arguments);
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
function _deleteSSOConfiguration() {
|
|
1765
|
+
_deleteSSOConfiguration = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee61(ssoConfigId) {
|
|
1766
|
+
return _regenerator["default"].wrap(function _callee61$(_context61) {
|
|
1767
|
+
while (1) {
|
|
1768
|
+
switch (_context61.prev = _context61.next) {
|
|
1769
|
+
case 0:
|
|
1770
|
+
return _context61.abrupt("return", (0, _fetch.Delete)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId)));
|
|
1771
|
+
|
|
1772
|
+
case 1:
|
|
1773
|
+
case "end":
|
|
1774
|
+
return _context61.stop();
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
}, _callee61);
|
|
1778
|
+
}));
|
|
1779
|
+
return _deleteSSOConfiguration.apply(this, arguments);
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
function createSSOConfigurationByMetadata(_x43) {
|
|
1783
|
+
return _createSSOConfigurationByMetadata.apply(this, arguments);
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
function _createSSOConfigurationByMetadata() {
|
|
1787
|
+
_createSSOConfigurationByMetadata = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee62(body) {
|
|
1788
|
+
return _regenerator["default"].wrap(function _callee62$(_context62) {
|
|
1789
|
+
while (1) {
|
|
1790
|
+
switch (_context62.prev = _context62.next) {
|
|
1791
|
+
case 0:
|
|
1792
|
+
return _context62.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.team.sso.v1, "/configurations/metadata"), body));
|
|
1793
|
+
|
|
1794
|
+
case 1:
|
|
1795
|
+
case "end":
|
|
1796
|
+
return _context62.stop();
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
}, _callee62);
|
|
1800
|
+
}));
|
|
1801
|
+
return _createSSOConfigurationByMetadata.apply(this, arguments);
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
function updateSSOConfigurationByMetadata(_x44, _x45) {
|
|
1805
|
+
return _updateSSOConfigurationByMetadata.apply(this, arguments);
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
function _updateSSOConfigurationByMetadata() {
|
|
1809
|
+
_updateSSOConfigurationByMetadata = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee63(ssoConfigId, body) {
|
|
1810
|
+
return _regenerator["default"].wrap(function _callee63$(_context63) {
|
|
1811
|
+
while (1) {
|
|
1812
|
+
switch (_context63.prev = _context63.next) {
|
|
1813
|
+
case 0:
|
|
1814
|
+
return _context63.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId, "/metadata"), body));
|
|
1815
|
+
|
|
1816
|
+
case 1:
|
|
1817
|
+
case "end":
|
|
1818
|
+
return _context63.stop();
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
}, _callee63);
|
|
1822
|
+
}));
|
|
1823
|
+
return _updateSSOConfigurationByMetadata.apply(this, arguments);
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
function createSSODomain(_x46, _x47) {
|
|
1827
|
+
return _createSSODomain.apply(this, arguments);
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
function _createSSODomain() {
|
|
1831
|
+
_createSSODomain = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee64(ssoConfigId, body) {
|
|
1832
|
+
return _regenerator["default"].wrap(function _callee64$(_context64) {
|
|
1833
|
+
while (1) {
|
|
1834
|
+
switch (_context64.prev = _context64.next) {
|
|
1835
|
+
case 0:
|
|
1836
|
+
return _context64.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId, "/domains"), body));
|
|
1837
|
+
|
|
1838
|
+
case 1:
|
|
1839
|
+
case "end":
|
|
1840
|
+
return _context64.stop();
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
}, _callee64);
|
|
1844
|
+
}));
|
|
1845
|
+
return _createSSODomain.apply(this, arguments);
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
function deleteSSODomain(_x48, _x49) {
|
|
1849
|
+
return _deleteSSODomain.apply(this, arguments);
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
function _deleteSSODomain() {
|
|
1853
|
+
_deleteSSODomain = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee65(ssoConfigId, domainId) {
|
|
1854
|
+
return _regenerator["default"].wrap(function _callee65$(_context65) {
|
|
1855
|
+
while (1) {
|
|
1856
|
+
switch (_context65.prev = _context65.next) {
|
|
1857
|
+
case 0:
|
|
1858
|
+
return _context65.abrupt("return", (0, _fetch.Delete)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId, "/domains/").concat(domainId)));
|
|
1859
|
+
|
|
1860
|
+
case 1:
|
|
1861
|
+
case "end":
|
|
1862
|
+
return _context65.stop();
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}, _callee65);
|
|
1866
|
+
}));
|
|
1867
|
+
return _deleteSSODomain.apply(this, arguments);
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
function validateSSODomain(_x50, _x51) {
|
|
1871
|
+
return _validateSSODomain.apply(this, arguments);
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
function _validateSSODomain() {
|
|
1875
|
+
_validateSSODomain = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee66(ssoConfigId, domainId) {
|
|
1876
|
+
return _regenerator["default"].wrap(function _callee66$(_context66) {
|
|
1877
|
+
while (1) {
|
|
1878
|
+
switch (_context66.prev = _context66.next) {
|
|
1879
|
+
case 0:
|
|
1880
|
+
return _context66.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId, "/domains/").concat(domainId, "/validate")));
|
|
1881
|
+
|
|
1882
|
+
case 1:
|
|
1883
|
+
case "end":
|
|
1884
|
+
return _context66.stop();
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
}, _callee66);
|
|
1888
|
+
}));
|
|
1889
|
+
return _validateSSODomain.apply(this, arguments);
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
function getSSODefaultRoles(_x52) {
|
|
1893
|
+
return _getSSODefaultRoles.apply(this, arguments);
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
function _getSSODefaultRoles() {
|
|
1897
|
+
_getSSODefaultRoles = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee67(ssoConfigId) {
|
|
1898
|
+
return _regenerator["default"].wrap(function _callee67$(_context67) {
|
|
1899
|
+
while (1) {
|
|
1900
|
+
switch (_context67.prev = _context67.next) {
|
|
1901
|
+
case 0:
|
|
1902
|
+
return _context67.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId, "/roles")));
|
|
1903
|
+
|
|
1904
|
+
case 1:
|
|
1905
|
+
case "end":
|
|
1906
|
+
return _context67.stop();
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
}, _callee67);
|
|
1910
|
+
}));
|
|
1911
|
+
return _getSSODefaultRoles.apply(this, arguments);
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
function setSSODefaultRoles(_x53, _x54) {
|
|
1915
|
+
return _setSSODefaultRoles.apply(this, arguments);
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
function _setSSODefaultRoles() {
|
|
1919
|
+
_setSSODefaultRoles = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee68(ssoConfigId, body) {
|
|
1920
|
+
return _regenerator["default"].wrap(function _callee68$(_context68) {
|
|
1921
|
+
while (1) {
|
|
1922
|
+
switch (_context68.prev = _context68.next) {
|
|
1923
|
+
case 0:
|
|
1924
|
+
return _context68.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId, "/roles"), body));
|
|
1925
|
+
|
|
1926
|
+
case 1:
|
|
1927
|
+
case "end":
|
|
1928
|
+
return _context68.stop();
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
}, _callee68);
|
|
1932
|
+
}));
|
|
1933
|
+
return _setSSODefaultRoles.apply(this, arguments);
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
function createSSOGroup(_x55, _x56) {
|
|
1937
|
+
return _createSSOGroup.apply(this, arguments);
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
function _createSSOGroup() {
|
|
1941
|
+
_createSSOGroup = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee69(ssoConfigId, body) {
|
|
1942
|
+
return _regenerator["default"].wrap(function _callee69$(_context69) {
|
|
1943
|
+
while (1) {
|
|
1944
|
+
switch (_context69.prev = _context69.next) {
|
|
1945
|
+
case 0:
|
|
1946
|
+
return _context69.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId, "/groups"), body));
|
|
1947
|
+
|
|
1948
|
+
case 1:
|
|
1949
|
+
case "end":
|
|
1950
|
+
return _context69.stop();
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
}, _callee69);
|
|
1954
|
+
}));
|
|
1955
|
+
return _createSSOGroup.apply(this, arguments);
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
function updateSSOGroup(_x57, _x58) {
|
|
1959
|
+
return _updateSSOGroup.apply(this, arguments);
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
function _updateSSOGroup() {
|
|
1963
|
+
_updateSSOGroup = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee70(ssoConfigId, _ref12) {
|
|
1964
|
+
var roleIds, group, id;
|
|
1965
|
+
return _regenerator["default"].wrap(function _callee70$(_context70) {
|
|
1966
|
+
while (1) {
|
|
1967
|
+
switch (_context70.prev = _context70.next) {
|
|
1968
|
+
case 0:
|
|
1969
|
+
roleIds = _ref12.roleIds, group = _ref12.group, id = _ref12.id;
|
|
1970
|
+
return _context70.abrupt("return", (0, _fetch.Patch)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId, "/groups/").concat(id), {
|
|
1971
|
+
group: group,
|
|
1972
|
+
roleIds: roleIds
|
|
1973
|
+
}));
|
|
1974
|
+
|
|
1975
|
+
case 2:
|
|
1976
|
+
case "end":
|
|
1977
|
+
return _context70.stop();
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
}, _callee70);
|
|
1981
|
+
}));
|
|
1982
|
+
return _updateSSOGroup.apply(this, arguments);
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
function deleteSSOGroup(_x59, _x60) {
|
|
1986
|
+
return _deleteSSOGroup.apply(this, arguments);
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
function _deleteSSOGroup() {
|
|
1990
|
+
_deleteSSOGroup = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee71(ssoConfigId, groupId) {
|
|
1991
|
+
return _regenerator["default"].wrap(function _callee71$(_context71) {
|
|
1992
|
+
while (1) {
|
|
1993
|
+
switch (_context71.prev = _context71.next) {
|
|
1994
|
+
case 0:
|
|
1995
|
+
return _context71.abrupt("return", (0, _fetch.Delete)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId, "/groups/").concat(groupId)));
|
|
1996
|
+
|
|
1997
|
+
case 1:
|
|
1998
|
+
case "end":
|
|
1999
|
+
return _context71.stop();
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
}, _callee71);
|
|
2003
|
+
}));
|
|
2004
|
+
return _deleteSSOGroup.apply(this, arguments);
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
function getSSOGroups(_x61) {
|
|
2008
|
+
return _getSSOGroups.apply(this, arguments);
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
function _getSSOGroups() {
|
|
2012
|
+
_getSSOGroups = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee72(ssoConfigId) {
|
|
2013
|
+
return _regenerator["default"].wrap(function _callee72$(_context72) {
|
|
2014
|
+
while (1) {
|
|
2015
|
+
switch (_context72.prev = _context72.next) {
|
|
2016
|
+
case 0:
|
|
2017
|
+
return _context72.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.team.sso.v1, "/configurations/").concat(ssoConfigId, "/groups")));
|
|
2018
|
+
|
|
2019
|
+
case 1:
|
|
2020
|
+
case "end":
|
|
2021
|
+
return _context72.stop();
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
}, _callee72);
|
|
2025
|
+
}));
|
|
2026
|
+
return _getSSOGroups.apply(this, arguments);
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
function preLoginV2(_x62) {
|
|
2030
|
+
return _preLoginV.apply(this, arguments);
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
function _preLoginV() {
|
|
2034
|
+
_preLoginV = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee73(body) {
|
|
2035
|
+
return _regenerator["default"].wrap(function _callee73$(_context73) {
|
|
2036
|
+
while (1) {
|
|
2037
|
+
switch (_context73.prev = _context73.next) {
|
|
2038
|
+
case 0:
|
|
2039
|
+
return _context73.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v2, "/user/sso/prelogin"), body));
|
|
2040
|
+
|
|
2041
|
+
case 1:
|
|
2042
|
+
case "end":
|
|
2043
|
+
return _context73.stop();
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
}, _callee73);
|
|
2047
|
+
}));
|
|
2048
|
+
return _preLoginV.apply(this, arguments);
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
function oidcPostLoginV2(_x63) {
|
|
2052
|
+
return _oidcPostLoginV.apply(this, arguments);
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
function _oidcPostLoginV() {
|
|
2056
|
+
_oidcPostLoginV = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee74(body) {
|
|
2057
|
+
var data;
|
|
2058
|
+
return _regenerator["default"].wrap(function _callee74$(_context74) {
|
|
2059
|
+
while (1) {
|
|
2060
|
+
switch (_context74.prev = _context74.next) {
|
|
2061
|
+
case 0:
|
|
2062
|
+
_context74.next = 2;
|
|
2063
|
+
return (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v2, "/user/oidc/postlogin"), body);
|
|
2064
|
+
|
|
2065
|
+
case 2:
|
|
2066
|
+
data = _context74.sent;
|
|
2067
|
+
return _context74.abrupt("return", generateLoginResponse(data));
|
|
2068
|
+
|
|
2069
|
+
case 4:
|
|
2070
|
+
case "end":
|
|
2071
|
+
return _context74.stop();
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
}, _callee74);
|
|
2075
|
+
}));
|
|
2076
|
+
return _oidcPostLoginV.apply(this, arguments);
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
function exchangeOAuthTokens(_x64) {
|
|
2080
|
+
return _exchangeOAuthTokens.apply(this, arguments);
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
function _exchangeOAuthTokens() {
|
|
2084
|
+
_exchangeOAuthTokens = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee75(body) {
|
|
2085
|
+
var data;
|
|
2086
|
+
return _regenerator["default"].wrap(function _callee75$(_context75) {
|
|
2087
|
+
while (1) {
|
|
2088
|
+
switch (_context75.prev = _context75.next) {
|
|
2089
|
+
case 0:
|
|
2090
|
+
_context75.next = 2;
|
|
2091
|
+
return (0, _fetch.Post)("".concat(_constants.urls.oauth.v1, "/token"), body);
|
|
2092
|
+
|
|
2093
|
+
case 2:
|
|
2094
|
+
data = _context75.sent;
|
|
2095
|
+
return _context75.abrupt("return", generateLoginResponseFromOAuthResponse(data));
|
|
2096
|
+
|
|
2097
|
+
case 4:
|
|
2098
|
+
case "end":
|
|
2099
|
+
return _context75.stop();
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
}, _callee75);
|
|
2103
|
+
}));
|
|
2104
|
+
return _exchangeOAuthTokens.apply(this, arguments);
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
function resetPhoneNumber(_x65) {
|
|
2108
|
+
return _resetPhoneNumber.apply(this, arguments);
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
function _resetPhoneNumber() {
|
|
2112
|
+
_resetPhoneNumber = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee76(body) {
|
|
2113
|
+
return _regenerator["default"].wrap(function _callee76$(_context76) {
|
|
2114
|
+
while (1) {
|
|
2115
|
+
switch (_context76.prev = _context76.next) {
|
|
2116
|
+
case 0:
|
|
2117
|
+
return _context76.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/phone/reset"), body));
|
|
2118
|
+
|
|
2119
|
+
case 1:
|
|
2120
|
+
case "end":
|
|
2121
|
+
return _context76.stop();
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
}, _callee76);
|
|
2125
|
+
}));
|
|
2126
|
+
return _resetPhoneNumber.apply(this, arguments);
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
function verifyResetPhoneNumber(_x66) {
|
|
2130
|
+
return _verifyResetPhoneNumber.apply(this, arguments);
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
function _verifyResetPhoneNumber() {
|
|
2134
|
+
_verifyResetPhoneNumber = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee77(body) {
|
|
2135
|
+
return _regenerator["default"].wrap(function _callee77$(_context77) {
|
|
2136
|
+
while (1) {
|
|
2137
|
+
switch (_context77.prev = _context77.next) {
|
|
2138
|
+
case 0:
|
|
2139
|
+
return _context77.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/phone/reset/verify"), body));
|
|
2140
|
+
|
|
2141
|
+
case 1:
|
|
2142
|
+
case "end":
|
|
2143
|
+
return _context77.stop();
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
}, _callee77);
|
|
2147
|
+
}));
|
|
2148
|
+
return _verifyResetPhoneNumber.apply(this, arguments);
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
function changePhoneNumberWithVerification(_x67) {
|
|
2152
|
+
return _changePhoneNumberWithVerification.apply(this, arguments);
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
function _changePhoneNumberWithVerification() {
|
|
2156
|
+
_changePhoneNumberWithVerification = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee78(body) {
|
|
2157
|
+
return _regenerator["default"].wrap(function _callee78$(_context78) {
|
|
2158
|
+
while (1) {
|
|
2159
|
+
switch (_context78.prev = _context78.next) {
|
|
2160
|
+
case 0:
|
|
2161
|
+
return _context78.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/phone"), body));
|
|
2162
|
+
|
|
2163
|
+
case 1:
|
|
2164
|
+
case "end":
|
|
2165
|
+
return _context78.stop();
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
}, _callee78);
|
|
2169
|
+
}));
|
|
2170
|
+
return _changePhoneNumberWithVerification.apply(this, arguments);
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
function verifyChangePhoneNumber(_x68) {
|
|
2174
|
+
return _verifyChangePhoneNumber.apply(this, arguments);
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
function _verifyChangePhoneNumber() {
|
|
2178
|
+
_verifyChangePhoneNumber = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee79(body) {
|
|
2179
|
+
return _regenerator["default"].wrap(function _callee79$(_context79) {
|
|
2180
|
+
while (1) {
|
|
2181
|
+
switch (_context79.prev = _context79.next) {
|
|
2182
|
+
case 0:
|
|
2183
|
+
return _context79.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/phone/verify"), body));
|
|
2184
|
+
|
|
2185
|
+
case 1:
|
|
2186
|
+
case "end":
|
|
2187
|
+
return _context79.stop();
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
}, _callee79);
|
|
2191
|
+
}));
|
|
2192
|
+
return _verifyChangePhoneNumber.apply(this, arguments);
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
function changePhoneNumber(_x69) {
|
|
2196
|
+
return _changePhoneNumber.apply(this, arguments);
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
function _changePhoneNumber() {
|
|
2200
|
+
_changePhoneNumber = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee80(body) {
|
|
2201
|
+
return _regenerator["default"].wrap(function _callee80$(_context80) {
|
|
2202
|
+
while (1) {
|
|
2203
|
+
switch (_context80.prev = _context80.next) {
|
|
2204
|
+
case 0:
|
|
2205
|
+
return _context80.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.identity.users.v1, "/phone/change"), body));
|
|
2206
|
+
|
|
2207
|
+
case 1:
|
|
2208
|
+
case "end":
|
|
2209
|
+
return _context80.stop();
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
}, _callee80);
|
|
2213
|
+
}));
|
|
2214
|
+
return _changePhoneNumber.apply(this, arguments);
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
function webAuthnPreLogin(_x70) {
|
|
2218
|
+
return _webAuthnPreLogin.apply(this, arguments);
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
function _webAuthnPreLogin() {
|
|
2222
|
+
_webAuthnPreLogin = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee81(body) {
|
|
2223
|
+
return _regenerator["default"].wrap(function _callee81$(_context81) {
|
|
2224
|
+
while (1) {
|
|
2225
|
+
switch (_context81.prev = _context81.next) {
|
|
2226
|
+
case 0:
|
|
2227
|
+
return _context81.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/webauthn/prelogin"), body));
|
|
2228
|
+
|
|
2229
|
+
case 1:
|
|
2230
|
+
case "end":
|
|
2231
|
+
return _context81.stop();
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
}, _callee81);
|
|
2235
|
+
}));
|
|
2236
|
+
return _webAuthnPreLogin.apply(this, arguments);
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
function webAuthnPostLogin(_x71) {
|
|
2240
|
+
return _webAuthnPostLogin.apply(this, arguments);
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
function _webAuthnPostLogin() {
|
|
2244
|
+
_webAuthnPostLogin = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee82(body) {
|
|
2245
|
+
return _regenerator["default"].wrap(function _callee82$(_context82) {
|
|
2246
|
+
while (1) {
|
|
2247
|
+
switch (_context82.prev = _context82.next) {
|
|
2248
|
+
case 0:
|
|
2249
|
+
return _context82.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.auth.v1, "/webauthn/postlogin"), body));
|
|
2250
|
+
|
|
2251
|
+
case 1:
|
|
2252
|
+
case "end":
|
|
2253
|
+
return _context82.stop();
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}, _callee82);
|
|
2257
|
+
}));
|
|
2258
|
+
return _webAuthnPostLogin.apply(this, arguments);
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
function webAuthnCreateNewDeviceSession() {
|
|
2262
|
+
return _webAuthnCreateNewDeviceSession.apply(this, arguments);
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
function _webAuthnCreateNewDeviceSession() {
|
|
2266
|
+
_webAuthnCreateNewDeviceSession = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee83() {
|
|
2267
|
+
return _regenerator["default"].wrap(function _callee83$(_context83) {
|
|
2268
|
+
while (1) {
|
|
2269
|
+
switch (_context83.prev = _context83.next) {
|
|
2270
|
+
case 0:
|
|
2271
|
+
return _context83.abrupt("return", (0, _fetch.Post)(_constants.urls.identity.webAuthnDevices.v1));
|
|
2272
|
+
|
|
2273
|
+
case 1:
|
|
2274
|
+
case "end":
|
|
2275
|
+
return _context83.stop();
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
}, _callee83);
|
|
2279
|
+
}));
|
|
2280
|
+
return _webAuthnCreateNewDeviceSession.apply(this, arguments);
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
function verifyNewDeviceSession(_x72) {
|
|
2284
|
+
return _verifyNewDeviceSession.apply(this, arguments);
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
function _verifyNewDeviceSession() {
|
|
2288
|
+
_verifyNewDeviceSession = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee84(body) {
|
|
2289
|
+
return _regenerator["default"].wrap(function _callee84$(_context84) {
|
|
2290
|
+
while (1) {
|
|
2291
|
+
switch (_context84.prev = _context84.next) {
|
|
2292
|
+
case 0:
|
|
2293
|
+
return _context84.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.webAuthnDevices.v1, "/verify"), body));
|
|
2294
|
+
|
|
2295
|
+
case 1:
|
|
2296
|
+
case "end":
|
|
2297
|
+
return _context84.stop();
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
}, _callee84);
|
|
2301
|
+
}));
|
|
2302
|
+
return _verifyNewDeviceSession.apply(this, arguments);
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
function getVendorPublicAuthStrategiesConfig() {
|
|
2306
|
+
return _getVendorPublicAuthStrategiesConfig.apply(this, arguments);
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
function _getVendorPublicAuthStrategiesConfig() {
|
|
2310
|
+
_getVendorPublicAuthStrategiesConfig = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee85() {
|
|
2311
|
+
return _regenerator["default"].wrap(function _callee85$(_context85) {
|
|
2312
|
+
while (1) {
|
|
2313
|
+
switch (_context85.prev = _context85.next) {
|
|
2314
|
+
case 0:
|
|
2315
|
+
return _context85.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.configurations.v1, "/auth/strategies/public")));
|
|
2316
|
+
|
|
2317
|
+
case 1:
|
|
2318
|
+
case "end":
|
|
2319
|
+
return _context85.stop();
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
}, _callee85);
|
|
2323
|
+
}));
|
|
2324
|
+
return _getVendorPublicAuthStrategiesConfig.apply(this, arguments);
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
;
|