@stackframe/stack 2.7.23 → 2.7.26
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/CHANGELOG.md +29 -0
- package/dist/components/elements/maybe-full-page.js +1 -0
- package/dist/components/elements/maybe-full-page.js.map +1 -1
- package/dist/components/elements/sidebar-layout.js +2 -9
- package/dist/components/elements/sidebar-layout.js.map +1 -1
- package/dist/components-page/account-settings.js +70 -83
- package/dist/components-page/account-settings.js.map +1 -1
- package/dist/esm/components/elements/maybe-full-page.js +1 -0
- package/dist/esm/components/elements/maybe-full-page.js.map +1 -1
- package/dist/esm/components/elements/sidebar-layout.js +2 -9
- package/dist/esm/components/elements/sidebar-layout.js.map +1 -1
- package/dist/esm/components-page/account-settings.js +69 -80
- package/dist/esm/components-page/account-settings.js.map +1 -1
- package/dist/esm/generated/global-css.js +1 -1
- package/dist/esm/generated/global-css.js.map +1 -1
- package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.js +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.js.map +1 -1
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.js +6 -10
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.js.map +1 -1
- package/dist/esm/lib/stack-app/apps/implementations/common.js +1 -1
- package/dist/esm/lib/stack-app/apps/implementations/common.js.map +1 -1
- package/dist/esm/lib/stack-app/projects/index.js +2 -1
- package/dist/esm/lib/stack-app/projects/index.js.map +1 -1
- package/dist/esm/lib/stack-app/users/index.js.map +1 -1
- package/dist/generated/global-css.js +1 -1
- package/dist/generated/global-css.js.map +1 -1
- package/dist/index.d.mts +1056 -53
- package/dist/index.d.ts +1056 -53
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.js +1 -0
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.js.map +1 -1
- package/dist/lib/stack-app/apps/implementations/client-app-impl.js +5 -9
- package/dist/lib/stack-app/apps/implementations/client-app-impl.js.map +1 -1
- package/dist/lib/stack-app/apps/implementations/common.js +1 -1
- package/dist/lib/stack-app/apps/implementations/common.js.map +1 -1
- package/dist/lib/stack-app/project-configs/index.js.map +1 -1
- package/dist/lib/stack-app/projects/index.js +2 -1
- package/dist/lib/stack-app/projects/index.js.map +1 -1
- package/dist/lib/stack-app/users/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/admin-app-impl-CTQhv9tV.d.ts +0 -395
- package/dist/admin-app-impl-DpyRKp1e.d.mts +0 -395
- package/dist/components/credential-sign-in.d.mts +0 -5
- package/dist/components/credential-sign-in.d.ts +0 -5
- package/dist/components/credential-sign-up.d.mts +0 -7
- package/dist/components/credential-sign-up.d.ts +0 -7
- package/dist/components/elements/form-warning.d.mts +0 -7
- package/dist/components/elements/form-warning.d.ts +0 -7
- package/dist/components/elements/maybe-full-page.d.mts +0 -11
- package/dist/components/elements/maybe-full-page.d.ts +0 -11
- package/dist/components/elements/separator-with-text.d.mts +0 -7
- package/dist/components/elements/separator-with-text.d.ts +0 -7
- package/dist/components/elements/sidebar-layout.d.mts +0 -19
- package/dist/components/elements/sidebar-layout.d.ts +0 -19
- package/dist/components/elements/ssr-layout-effect.d.mts +0 -8
- package/dist/components/elements/ssr-layout-effect.d.ts +0 -8
- package/dist/components/elements/user-avatar.d.mts +0 -13
- package/dist/components/elements/user-avatar.d.ts +0 -13
- package/dist/components/iframe-preventer.d.mts +0 -8
- package/dist/components/iframe-preventer.d.ts +0 -8
- package/dist/components/link.d.mts +0 -14
- package/dist/components/link.d.ts +0 -14
- package/dist/components/magic-link-sign-in.d.mts +0 -5
- package/dist/components/magic-link-sign-in.d.ts +0 -5
- package/dist/components/message-cards/known-error-message-card.d.mts +0 -9
- package/dist/components/message-cards/known-error-message-card.d.ts +0 -9
- package/dist/components/message-cards/message-card.d.mts +0 -14
- package/dist/components/message-cards/message-card.d.ts +0 -14
- package/dist/components/message-cards/predefined-message-card.d.mts +0 -8
- package/dist/components/message-cards/predefined-message-card.d.ts +0 -8
- package/dist/components/oauth-button-group.d.mts +0 -14
- package/dist/components/oauth-button-group.d.ts +0 -14
- package/dist/components/oauth-button.d.mts +0 -8
- package/dist/components/oauth-button.d.ts +0 -8
- package/dist/components/passkey-button.d.mts +0 -7
- package/dist/components/passkey-button.d.ts +0 -7
- package/dist/components/profile-image-editor.d.mts +0 -11
- package/dist/components/profile-image-editor.d.ts +0 -11
- package/dist/components/selected-team-switcher.d.mts +0 -33
- package/dist/components/selected-team-switcher.d.ts +0 -33
- package/dist/components/team-icon.d.mts +0 -30
- package/dist/components/team-icon.d.ts +0 -30
- package/dist/components/user-button.d.mts +0 -15
- package/dist/components/user-button.d.ts +0 -15
- package/dist/components-page/account-settings.d.mts +0 -24
- package/dist/components-page/account-settings.d.ts +0 -24
- package/dist/components-page/auth-page.d.mts +0 -24
- package/dist/components-page/auth-page.d.ts +0 -24
- package/dist/components-page/email-verification.d.mts +0 -8
- package/dist/components-page/email-verification.d.ts +0 -8
- package/dist/components-page/error-page.d.mts +0 -8
- package/dist/components-page/error-page.d.ts +0 -8
- package/dist/components-page/forgot-password.d.mts +0 -10
- package/dist/components-page/forgot-password.d.ts +0 -10
- package/dist/components-page/magic-link-callback.d.mts +0 -8
- package/dist/components-page/magic-link-callback.d.ts +0 -8
- package/dist/components-page/oauth-callback.d.mts +0 -7
- package/dist/components-page/oauth-callback.d.ts +0 -7
- package/dist/components-page/password-reset.d.mts +0 -12
- package/dist/components-page/password-reset.d.ts +0 -12
- package/dist/components-page/sign-in.d.mts +0 -10
- package/dist/components-page/sign-in.d.ts +0 -10
- package/dist/components-page/sign-out.d.mts +0 -7
- package/dist/components-page/sign-out.d.ts +0 -7
- package/dist/components-page/sign-up.d.mts +0 -11
- package/dist/components-page/sign-up.d.ts +0 -11
- package/dist/components-page/stack-handler.d.mts +0 -72
- package/dist/components-page/stack-handler.d.ts +0 -72
- package/dist/components-page/team-creation.d.mts +0 -7
- package/dist/components-page/team-creation.d.ts +0 -7
- package/dist/components-page/team-invitation.d.mts +0 -8
- package/dist/components-page/team-invitation.d.ts +0 -8
- package/dist/generated/global-css.d.mts +0 -3
- package/dist/generated/global-css.d.ts +0 -3
- package/dist/generated/quetzal-translations.d.mts +0 -4
- package/dist/generated/quetzal-translations.d.ts +0 -4
- package/dist/global.d.d.mts +0 -2
- package/dist/global.d.d.ts +0 -2
- package/dist/index-C7D6Vt7X.d.mts +0 -560
- package/dist/index-DQk7XJpU.d.ts +0 -560
- package/dist/lib/auth.d.mts +0 -33
- package/dist/lib/auth.d.ts +0 -33
- package/dist/lib/cookie.d.mts +0 -33
- package/dist/lib/cookie.d.ts +0 -33
- package/dist/lib/hooks.d.mts +0 -53
- package/dist/lib/hooks.d.ts +0 -53
- package/dist/lib/stack-app/api-keys/index.d.mts +0 -40
- package/dist/lib/stack-app/api-keys/index.d.ts +0 -40
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.d.mts +0 -30
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.d.ts +0 -30
- package/dist/lib/stack-app/apps/implementations/client-app-impl.d.mts +0 -30
- package/dist/lib/stack-app/apps/implementations/client-app-impl.d.ts +0 -30
- package/dist/lib/stack-app/apps/implementations/common.d.mts +0 -45
- package/dist/lib/stack-app/apps/implementations/common.d.ts +0 -45
- package/dist/lib/stack-app/apps/implementations/index.d.mts +0 -36
- package/dist/lib/stack-app/apps/implementations/index.d.ts +0 -36
- package/dist/lib/stack-app/apps/implementations/server-app-impl.d.mts +0 -30
- package/dist/lib/stack-app/apps/implementations/server-app-impl.d.ts +0 -30
- package/dist/lib/stack-app/apps/index.d.mts +0 -23
- package/dist/lib/stack-app/apps/index.d.ts +0 -23
- package/dist/lib/stack-app/apps/interfaces/admin-app.d.mts +0 -23
- package/dist/lib/stack-app/apps/interfaces/admin-app.d.ts +0 -23
- package/dist/lib/stack-app/apps/interfaces/client-app.d.mts +0 -23
- package/dist/lib/stack-app/apps/interfaces/client-app.d.ts +0 -23
- package/dist/lib/stack-app/apps/interfaces/server-app.d.mts +0 -23
- package/dist/lib/stack-app/apps/interfaces/server-app.d.ts +0 -23
- package/dist/lib/stack-app/common.d.mts +0 -63
- package/dist/lib/stack-app/common.d.ts +0 -63
- package/dist/lib/stack-app/connected-accounts/index.d.mts +0 -13
- package/dist/lib/stack-app/connected-accounts/index.d.ts +0 -13
- package/dist/lib/stack-app/contact-channels/index.d.mts +0 -38
- package/dist/lib/stack-app/contact-channels/index.d.ts +0 -38
- package/dist/lib/stack-app/email-templates/index.d.mts +0 -15
- package/dist/lib/stack-app/email-templates/index.d.ts +0 -15
- package/dist/lib/stack-app/index.d.mts +0 -23
- package/dist/lib/stack-app/index.d.ts +0 -23
- package/dist/lib/stack-app/permissions/index.d.mts +0 -21
- package/dist/lib/stack-app/permissions/index.d.ts +0 -21
- package/dist/lib/stack-app/project-configs/index.d.mts +0 -82
- package/dist/lib/stack-app/project-configs/index.d.ts +0 -82
- package/dist/lib/stack-app/projects/index.d.mts +0 -23
- package/dist/lib/stack-app/projects/index.d.ts +0 -23
- package/dist/lib/stack-app/teams/index.d.mts +0 -23
- package/dist/lib/stack-app/teams/index.d.ts +0 -23
- package/dist/lib/stack-app/users/index.d.mts +0 -23
- package/dist/lib/stack-app/users/index.d.ts +0 -23
- package/dist/lib/translations.d.mts +0 -5
- package/dist/lib/translations.d.ts +0 -5
- package/dist/providers/stack-provider-client.d.mts +0 -39
- package/dist/providers/stack-provider-client.d.ts +0 -39
- package/dist/providers/stack-provider.d.mts +0 -42
- package/dist/providers/stack-provider.d.ts +0 -42
- package/dist/providers/theme-provider.d.mts +0 -40
- package/dist/providers/theme-provider.d.ts +0 -40
- package/dist/providers/translation-provider-client.d.mts +0 -14
- package/dist/providers/translation-provider-client.d.ts +0 -14
- package/dist/providers/translation-provider.d.mts +0 -10
- package/dist/providers/translation-provider.d.ts +0 -10
- package/dist/utils/browser-script.d.mts +0 -7
- package/dist/utils/browser-script.d.ts +0 -7
- package/dist/utils/constants.d.mts +0 -79
- package/dist/utils/constants.d.ts +0 -79
- package/dist/utils/url.d.mts +0 -3
- package/dist/utils/url.d.ts +0 -3
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
2
|
-
import '@stackframe/stack-shared/dist/sessions';
|
|
3
|
-
import '@stackframe/stack-shared/dist/utils/results';
|
|
4
|
-
import '../../api-keys/index.mjs';
|
|
5
|
-
import '../../common.mjs';
|
|
6
|
-
import '../../email-templates/index.mjs';
|
|
7
|
-
import '../../permissions/index.mjs';
|
|
8
|
-
export { S as StackAdminApp, c as StackAdminAppConstructor, d as StackAdminAppConstructorOptions } from '../../../../index-C7D6Vt7X.mjs';
|
|
9
|
-
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
10
|
-
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
11
|
-
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
12
|
-
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
13
|
-
import '@stackframe/stack-shared';
|
|
14
|
-
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
15
|
-
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
16
|
-
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
17
|
-
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
-
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
-
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
-
import '../../connected-accounts/index.mjs';
|
|
21
|
-
import '../../contact-channels/index.mjs';
|
|
22
|
-
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
-
import '../../project-configs/index.mjs';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
2
|
-
import '@stackframe/stack-shared/dist/sessions';
|
|
3
|
-
import '@stackframe/stack-shared/dist/utils/results';
|
|
4
|
-
import '../../api-keys/index.js';
|
|
5
|
-
import '../../common.js';
|
|
6
|
-
import '../../email-templates/index.js';
|
|
7
|
-
import '../../permissions/index.js';
|
|
8
|
-
export { S as StackAdminApp, c as StackAdminAppConstructor, d as StackAdminAppConstructorOptions } from '../../../../index-DQk7XJpU.js';
|
|
9
|
-
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
10
|
-
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
11
|
-
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
12
|
-
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
13
|
-
import '@stackframe/stack-shared';
|
|
14
|
-
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
15
|
-
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
16
|
-
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
17
|
-
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
-
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
-
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
-
import '../../connected-accounts/index.js';
|
|
21
|
-
import '../../contact-channels/index.js';
|
|
22
|
-
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
-
import '../../project-configs/index.js';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import '@stackframe/stack-shared';
|
|
2
|
-
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
3
|
-
import '@stackframe/stack-shared/dist/utils/results';
|
|
4
|
-
import '../../common.mjs';
|
|
5
|
-
export { a as StackClientApp, e as StackClientAppConstructor, f as StackClientAppConstructorOptions, g as StackClientAppJson } from '../../../../index-C7D6Vt7X.mjs';
|
|
6
|
-
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
7
|
-
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
8
|
-
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
9
|
-
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
10
|
-
import '@stackframe/stack-shared/dist/sessions';
|
|
11
|
-
import '../../api-keys/index.mjs';
|
|
12
|
-
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
13
|
-
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
14
|
-
import '../../email-templates/index.mjs';
|
|
15
|
-
import '../../permissions/index.mjs';
|
|
16
|
-
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
17
|
-
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
-
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
-
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
-
import '../../connected-accounts/index.mjs';
|
|
21
|
-
import '../../contact-channels/index.mjs';
|
|
22
|
-
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
-
import '../../project-configs/index.mjs';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import '@stackframe/stack-shared';
|
|
2
|
-
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
3
|
-
import '@stackframe/stack-shared/dist/utils/results';
|
|
4
|
-
import '../../common.js';
|
|
5
|
-
export { a as StackClientApp, e as StackClientAppConstructor, f as StackClientAppConstructorOptions, g as StackClientAppJson } from '../../../../index-DQk7XJpU.js';
|
|
6
|
-
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
7
|
-
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
8
|
-
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
9
|
-
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
10
|
-
import '@stackframe/stack-shared/dist/sessions';
|
|
11
|
-
import '../../api-keys/index.js';
|
|
12
|
-
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
13
|
-
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
14
|
-
import '../../email-templates/index.js';
|
|
15
|
-
import '../../permissions/index.js';
|
|
16
|
-
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
17
|
-
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
-
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
-
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
-
import '../../connected-accounts/index.js';
|
|
21
|
-
import '../../contact-channels/index.js';
|
|
22
|
-
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
-
import '../../project-configs/index.js';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import '../../common.mjs';
|
|
2
|
-
export { b as StackServerApp, h as StackServerAppConstructor, i as StackServerAppConstructorOptions } from '../../../../index-C7D6Vt7X.mjs';
|
|
3
|
-
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
4
|
-
import '@stackframe/stack-shared';
|
|
5
|
-
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
6
|
-
import '@stackframe/stack-shared/dist/utils/results';
|
|
7
|
-
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
8
|
-
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
9
|
-
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
10
|
-
import '@stackframe/stack-shared/dist/sessions';
|
|
11
|
-
import '../../api-keys/index.mjs';
|
|
12
|
-
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
13
|
-
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
14
|
-
import '../../email-templates/index.mjs';
|
|
15
|
-
import '../../permissions/index.mjs';
|
|
16
|
-
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
17
|
-
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
-
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
-
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
-
import '../../connected-accounts/index.mjs';
|
|
21
|
-
import '../../contact-channels/index.mjs';
|
|
22
|
-
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
-
import '../../project-configs/index.mjs';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import '../../common.js';
|
|
2
|
-
export { b as StackServerApp, h as StackServerAppConstructor, i as StackServerAppConstructorOptions } from '../../../../index-DQk7XJpU.js';
|
|
3
|
-
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
4
|
-
import '@stackframe/stack-shared';
|
|
5
|
-
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
6
|
-
import '@stackframe/stack-shared/dist/utils/results';
|
|
7
|
-
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
8
|
-
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
9
|
-
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
10
|
-
import '@stackframe/stack-shared/dist/sessions';
|
|
11
|
-
import '../../api-keys/index.js';
|
|
12
|
-
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
13
|
-
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
14
|
-
import '../../email-templates/index.js';
|
|
15
|
-
import '../../permissions/index.js';
|
|
16
|
-
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
17
|
-
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
18
|
-
import '@stackframe/stack-shared/dist/utils/json';
|
|
19
|
-
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
20
|
-
import '../../connected-accounts/index.js';
|
|
21
|
-
import '../../contact-channels/index.js';
|
|
22
|
-
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
23
|
-
import '../../project-configs/index.js';
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ProviderType } from '@stackframe/stack-shared/dist/utils/oauth';
|
|
2
|
-
|
|
3
|
-
type RedirectToOptions = {
|
|
4
|
-
replace?: boolean;
|
|
5
|
-
noRedirectBack?: boolean;
|
|
6
|
-
};
|
|
7
|
-
type AsyncStoreProperty<Name extends string, Args extends any[], Value, IsMultiple extends boolean> = {
|
|
8
|
-
[key in `${IsMultiple extends true ? "list" : "get"}${Capitalize<Name>}`]: (...args: Args) => Promise<Value>;
|
|
9
|
-
} & {
|
|
10
|
-
[key in `use${Capitalize<Name>}`]: (...args: Args) => Value;
|
|
11
|
-
};
|
|
12
|
-
type EmailConfig = {
|
|
13
|
-
host: string;
|
|
14
|
-
port: number;
|
|
15
|
-
username: string;
|
|
16
|
-
password: string;
|
|
17
|
-
senderEmail: string;
|
|
18
|
-
senderName: string;
|
|
19
|
-
};
|
|
20
|
-
type RedirectMethod = "window" | "nextjs" | "none" | {
|
|
21
|
-
useNavigate: () => (to: string) => void;
|
|
22
|
-
navigate?: (to: string) => void;
|
|
23
|
-
};
|
|
24
|
-
type GetUserOptions<HasTokenStore> = {
|
|
25
|
-
or?: 'redirect' | 'throw' | 'return-null';
|
|
26
|
-
tokenStore?: TokenStoreInit;
|
|
27
|
-
} & (HasTokenStore extends false ? {
|
|
28
|
-
tokenStore: TokenStoreInit;
|
|
29
|
-
} : {});
|
|
30
|
-
type RequestLike = {
|
|
31
|
-
headers: {
|
|
32
|
-
get: (name: string) => string | null;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
type TokenStoreInit<HasTokenStore extends boolean = boolean> = HasTokenStore extends true ? ("cookie" | "nextjs-cookie" | "memory" | RequestLike | {
|
|
36
|
-
accessToken: string;
|
|
37
|
-
refreshToken: string;
|
|
38
|
-
}) : HasTokenStore extends false ? null : TokenStoreInit<true> | TokenStoreInit<false>;
|
|
39
|
-
type HandlerUrls = {
|
|
40
|
-
handler: string;
|
|
41
|
-
signIn: string;
|
|
42
|
-
signUp: string;
|
|
43
|
-
afterSignIn: string;
|
|
44
|
-
afterSignUp: string;
|
|
45
|
-
signOut: string;
|
|
46
|
-
afterSignOut: string;
|
|
47
|
-
emailVerification: string;
|
|
48
|
-
passwordReset: string;
|
|
49
|
-
forgotPassword: string;
|
|
50
|
-
home: string;
|
|
51
|
-
oauthCallback: string;
|
|
52
|
-
magicLinkCallback: string;
|
|
53
|
-
accountSettings: string;
|
|
54
|
-
teamInvitation: string;
|
|
55
|
-
error: string;
|
|
56
|
-
};
|
|
57
|
-
type OAuthScopesOnSignIn = {
|
|
58
|
-
[key in ProviderType]: string[];
|
|
59
|
-
};
|
|
60
|
-
/** @internal */
|
|
61
|
-
declare const stackAppInternalsSymbol: unique symbol;
|
|
62
|
-
|
|
63
|
-
export { type AsyncStoreProperty, type EmailConfig, type GetUserOptions, type HandlerUrls, type OAuthScopesOnSignIn, type RedirectMethod, type RedirectToOptions, type RequestLike, type TokenStoreInit, stackAppInternalsSymbol };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ProviderType } from '@stackframe/stack-shared/dist/utils/oauth';
|
|
2
|
-
|
|
3
|
-
type RedirectToOptions = {
|
|
4
|
-
replace?: boolean;
|
|
5
|
-
noRedirectBack?: boolean;
|
|
6
|
-
};
|
|
7
|
-
type AsyncStoreProperty<Name extends string, Args extends any[], Value, IsMultiple extends boolean> = {
|
|
8
|
-
[key in `${IsMultiple extends true ? "list" : "get"}${Capitalize<Name>}`]: (...args: Args) => Promise<Value>;
|
|
9
|
-
} & {
|
|
10
|
-
[key in `use${Capitalize<Name>}`]: (...args: Args) => Value;
|
|
11
|
-
};
|
|
12
|
-
type EmailConfig = {
|
|
13
|
-
host: string;
|
|
14
|
-
port: number;
|
|
15
|
-
username: string;
|
|
16
|
-
password: string;
|
|
17
|
-
senderEmail: string;
|
|
18
|
-
senderName: string;
|
|
19
|
-
};
|
|
20
|
-
type RedirectMethod = "window" | "nextjs" | "none" | {
|
|
21
|
-
useNavigate: () => (to: string) => void;
|
|
22
|
-
navigate?: (to: string) => void;
|
|
23
|
-
};
|
|
24
|
-
type GetUserOptions<HasTokenStore> = {
|
|
25
|
-
or?: 'redirect' | 'throw' | 'return-null';
|
|
26
|
-
tokenStore?: TokenStoreInit;
|
|
27
|
-
} & (HasTokenStore extends false ? {
|
|
28
|
-
tokenStore: TokenStoreInit;
|
|
29
|
-
} : {});
|
|
30
|
-
type RequestLike = {
|
|
31
|
-
headers: {
|
|
32
|
-
get: (name: string) => string | null;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
type TokenStoreInit<HasTokenStore extends boolean = boolean> = HasTokenStore extends true ? ("cookie" | "nextjs-cookie" | "memory" | RequestLike | {
|
|
36
|
-
accessToken: string;
|
|
37
|
-
refreshToken: string;
|
|
38
|
-
}) : HasTokenStore extends false ? null : TokenStoreInit<true> | TokenStoreInit<false>;
|
|
39
|
-
type HandlerUrls = {
|
|
40
|
-
handler: string;
|
|
41
|
-
signIn: string;
|
|
42
|
-
signUp: string;
|
|
43
|
-
afterSignIn: string;
|
|
44
|
-
afterSignUp: string;
|
|
45
|
-
signOut: string;
|
|
46
|
-
afterSignOut: string;
|
|
47
|
-
emailVerification: string;
|
|
48
|
-
passwordReset: string;
|
|
49
|
-
forgotPassword: string;
|
|
50
|
-
home: string;
|
|
51
|
-
oauthCallback: string;
|
|
52
|
-
magicLinkCallback: string;
|
|
53
|
-
accountSettings: string;
|
|
54
|
-
teamInvitation: string;
|
|
55
|
-
error: string;
|
|
56
|
-
};
|
|
57
|
-
type OAuthScopesOnSignIn = {
|
|
58
|
-
[key in ProviderType]: string[];
|
|
59
|
-
};
|
|
60
|
-
/** @internal */
|
|
61
|
-
declare const stackAppInternalsSymbol: unique symbol;
|
|
62
|
-
|
|
63
|
-
export { type AsyncStoreProperty, type EmailConfig, type GetUserOptions, type HandlerUrls, type OAuthScopesOnSignIn, type RedirectMethod, type RedirectToOptions, type RequestLike, type TokenStoreInit, stackAppInternalsSymbol };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ContactChannelsCrud } from '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
2
|
-
|
|
3
|
-
type ContactChannel = {
|
|
4
|
-
id: string;
|
|
5
|
-
value: string;
|
|
6
|
-
type: 'email';
|
|
7
|
-
isPrimary: boolean;
|
|
8
|
-
isVerified: boolean;
|
|
9
|
-
usedForAuth: boolean;
|
|
10
|
-
sendVerificationEmail(): Promise<void>;
|
|
11
|
-
update(data: ContactChannelUpdateOptions): Promise<void>;
|
|
12
|
-
delete(): Promise<void>;
|
|
13
|
-
};
|
|
14
|
-
type ContactChannelCreateOptions = {
|
|
15
|
-
value: string;
|
|
16
|
-
type: 'email';
|
|
17
|
-
usedForAuth: boolean;
|
|
18
|
-
};
|
|
19
|
-
declare function contactChannelCreateOptionsToCrud(userId: string, options: ContactChannelCreateOptions): ContactChannelsCrud["Client"]["Create"];
|
|
20
|
-
type ContactChannelUpdateOptions = {
|
|
21
|
-
usedForAuth?: boolean;
|
|
22
|
-
value?: string;
|
|
23
|
-
isPrimary?: boolean;
|
|
24
|
-
};
|
|
25
|
-
declare function contactChannelUpdateOptionsToCrud(options: ContactChannelUpdateOptions): ContactChannelsCrud["Client"]["Update"];
|
|
26
|
-
type ServerContactChannel = ContactChannel & {
|
|
27
|
-
update(data: ServerContactChannelUpdateOptions): Promise<void>;
|
|
28
|
-
};
|
|
29
|
-
type ServerContactChannelUpdateOptions = ContactChannelUpdateOptions & {
|
|
30
|
-
isVerified?: boolean;
|
|
31
|
-
};
|
|
32
|
-
declare function serverContactChannelUpdateOptionsToCrud(options: ServerContactChannelUpdateOptions): ContactChannelsCrud["Server"]["Update"];
|
|
33
|
-
type ServerContactChannelCreateOptions = ContactChannelCreateOptions & {
|
|
34
|
-
isVerified?: boolean;
|
|
35
|
-
};
|
|
36
|
-
declare function serverContactChannelCreateOptionsToCrud(userId: string, options: ServerContactChannelCreateOptions): ContactChannelsCrud["Server"]["Create"];
|
|
37
|
-
|
|
38
|
-
export { type ContactChannel, type ContactChannelCreateOptions, type ContactChannelUpdateOptions, type ServerContactChannel, type ServerContactChannelCreateOptions, type ServerContactChannelUpdateOptions, contactChannelCreateOptionsToCrud, contactChannelUpdateOptionsToCrud, serverContactChannelCreateOptionsToCrud, serverContactChannelUpdateOptionsToCrud };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ContactChannelsCrud } from '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
2
|
-
|
|
3
|
-
type ContactChannel = {
|
|
4
|
-
id: string;
|
|
5
|
-
value: string;
|
|
6
|
-
type: 'email';
|
|
7
|
-
isPrimary: boolean;
|
|
8
|
-
isVerified: boolean;
|
|
9
|
-
usedForAuth: boolean;
|
|
10
|
-
sendVerificationEmail(): Promise<void>;
|
|
11
|
-
update(data: ContactChannelUpdateOptions): Promise<void>;
|
|
12
|
-
delete(): Promise<void>;
|
|
13
|
-
};
|
|
14
|
-
type ContactChannelCreateOptions = {
|
|
15
|
-
value: string;
|
|
16
|
-
type: 'email';
|
|
17
|
-
usedForAuth: boolean;
|
|
18
|
-
};
|
|
19
|
-
declare function contactChannelCreateOptionsToCrud(userId: string, options: ContactChannelCreateOptions): ContactChannelsCrud["Client"]["Create"];
|
|
20
|
-
type ContactChannelUpdateOptions = {
|
|
21
|
-
usedForAuth?: boolean;
|
|
22
|
-
value?: string;
|
|
23
|
-
isPrimary?: boolean;
|
|
24
|
-
};
|
|
25
|
-
declare function contactChannelUpdateOptionsToCrud(options: ContactChannelUpdateOptions): ContactChannelsCrud["Client"]["Update"];
|
|
26
|
-
type ServerContactChannel = ContactChannel & {
|
|
27
|
-
update(data: ServerContactChannelUpdateOptions): Promise<void>;
|
|
28
|
-
};
|
|
29
|
-
type ServerContactChannelUpdateOptions = ContactChannelUpdateOptions & {
|
|
30
|
-
isVerified?: boolean;
|
|
31
|
-
};
|
|
32
|
-
declare function serverContactChannelUpdateOptionsToCrud(options: ServerContactChannelUpdateOptions): ContactChannelsCrud["Server"]["Update"];
|
|
33
|
-
type ServerContactChannelCreateOptions = ContactChannelCreateOptions & {
|
|
34
|
-
isVerified?: boolean;
|
|
35
|
-
};
|
|
36
|
-
declare function serverContactChannelCreateOptionsToCrud(userId: string, options: ServerContactChannelCreateOptions): ContactChannelsCrud["Server"]["Create"];
|
|
37
|
-
|
|
38
|
-
export { type ContactChannel, type ContactChannelCreateOptions, type ContactChannelUpdateOptions, type ServerContactChannel, type ServerContactChannelCreateOptions, type ServerContactChannelUpdateOptions, contactChannelCreateOptionsToCrud, contactChannelUpdateOptionsToCrud, serverContactChannelCreateOptionsToCrud, serverContactChannelUpdateOptionsToCrud };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EmailTemplateType, EmailTemplateCrud } from '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
2
|
-
|
|
3
|
-
type AdminEmailTemplate = {
|
|
4
|
-
type: EmailTemplateType;
|
|
5
|
-
subject: string;
|
|
6
|
-
content: any;
|
|
7
|
-
isDefault: boolean;
|
|
8
|
-
};
|
|
9
|
-
type AdminEmailTemplateUpdateOptions = {
|
|
10
|
-
subject?: string;
|
|
11
|
-
content?: any;
|
|
12
|
-
};
|
|
13
|
-
declare function adminEmailTemplateUpdateOptionsToCrud(options: AdminEmailTemplateUpdateOptions): EmailTemplateCrud['Admin']['Update'];
|
|
14
|
-
|
|
15
|
-
export { type AdminEmailTemplate, type AdminEmailTemplateUpdateOptions, adminEmailTemplateUpdateOptionsToCrud };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EmailTemplateType, EmailTemplateCrud } from '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
2
|
-
|
|
3
|
-
type AdminEmailTemplate = {
|
|
4
|
-
type: EmailTemplateType;
|
|
5
|
-
subject: string;
|
|
6
|
-
content: any;
|
|
7
|
-
isDefault: boolean;
|
|
8
|
-
};
|
|
9
|
-
type AdminEmailTemplateUpdateOptions = {
|
|
10
|
-
subject?: string;
|
|
11
|
-
content?: any;
|
|
12
|
-
};
|
|
13
|
-
declare function adminEmailTemplateUpdateOptionsToCrud(options: AdminEmailTemplateUpdateOptions): EmailTemplateCrud['Admin']['Update'];
|
|
14
|
-
|
|
15
|
-
export { type AdminEmailTemplate, type AdminEmailTemplateUpdateOptions, adminEmailTemplateUpdateOptionsToCrud };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export { A as AdminOwnedProject, j as AdminProject, k as AdminProjectCreateOptions, l as AdminProjectUpdateOptions, x as Auth, C as CurrentInternalServerUser, y as CurrentInternalUser, z as CurrentServerUser, B as CurrentUser, E as EditableTeamMemberProfile, P as Project, m as ServerListUsersOptions, n as ServerTeam, o as ServerTeamCreateOptions, p as ServerTeamMemberProfile, q as ServerTeamUpdateOptions, r as ServerTeamUser, D as ServerUser, F as Session, S as StackAdminApp, c as StackAdminAppConstructor, d as StackAdminAppConstructorOptions, a as StackClientApp, e as StackClientAppConstructor, f as StackClientAppConstructorOptions, g as StackClientAppJson, b as StackServerApp, h as StackServerAppConstructor, i as StackServerAppConstructorOptions, T as Team, s as TeamCreateOptions, t as TeamInvitation, u as TeamMemberProfile, v as TeamUpdateOptions, w as TeamUser, U as User } from '../../index-C7D6Vt7X.mjs';
|
|
2
|
-
export { AdminDomainConfig, AdminEmailConfig, AdminOAuthProviderConfig, AdminProjectConfig, AdminProjectConfigUpdateOptions, OAuthProviderConfig, ProjectConfig } from './project-configs/index.mjs';
|
|
3
|
-
export { ApiKey, ApiKeyBase, ApiKeyBaseCrudRead, ApiKeyCreateOptions, ApiKeyFirstView } from './api-keys/index.mjs';
|
|
4
|
-
export { GetUserOptions, HandlerUrls, OAuthScopesOnSignIn, stackAppInternalsSymbol } from './common.mjs';
|
|
5
|
-
export { Connection, OAuthConnection } from './connected-accounts/index.mjs';
|
|
6
|
-
export { ContactChannel } from './contact-channels/index.mjs';
|
|
7
|
-
export { AdminTeamPermission, AdminTeamPermissionDefinition, AdminTeamPermissionDefinitionCreateOptions, AdminTeamPermissionDefinitionUpdateOptions, TeamPermission } from './permissions/index.mjs';
|
|
8
|
-
import '@stackframe/stack-shared';
|
|
9
|
-
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
10
|
-
import '@stackframe/stack-shared/dist/utils/results';
|
|
11
|
-
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
12
|
-
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
13
|
-
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
14
|
-
import '@stackframe/stack-shared/dist/sessions';
|
|
15
|
-
import './email-templates/index.mjs';
|
|
16
|
-
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
17
|
-
import '@stackframe/stack-shared/dist/utils/json';
|
|
18
|
-
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
19
|
-
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
20
|
-
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
21
|
-
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
22
|
-
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
23
|
-
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export { A as AdminOwnedProject, j as AdminProject, k as AdminProjectCreateOptions, l as AdminProjectUpdateOptions, x as Auth, C as CurrentInternalServerUser, y as CurrentInternalUser, z as CurrentServerUser, B as CurrentUser, E as EditableTeamMemberProfile, P as Project, m as ServerListUsersOptions, n as ServerTeam, o as ServerTeamCreateOptions, p as ServerTeamMemberProfile, q as ServerTeamUpdateOptions, r as ServerTeamUser, D as ServerUser, F as Session, S as StackAdminApp, c as StackAdminAppConstructor, d as StackAdminAppConstructorOptions, a as StackClientApp, e as StackClientAppConstructor, f as StackClientAppConstructorOptions, g as StackClientAppJson, b as StackServerApp, h as StackServerAppConstructor, i as StackServerAppConstructorOptions, T as Team, s as TeamCreateOptions, t as TeamInvitation, u as TeamMemberProfile, v as TeamUpdateOptions, w as TeamUser, U as User } from '../../index-DQk7XJpU.js';
|
|
2
|
-
export { AdminDomainConfig, AdminEmailConfig, AdminOAuthProviderConfig, AdminProjectConfig, AdminProjectConfigUpdateOptions, OAuthProviderConfig, ProjectConfig } from './project-configs/index.js';
|
|
3
|
-
export { ApiKey, ApiKeyBase, ApiKeyBaseCrudRead, ApiKeyCreateOptions, ApiKeyFirstView } from './api-keys/index.js';
|
|
4
|
-
export { GetUserOptions, HandlerUrls, OAuthScopesOnSignIn, stackAppInternalsSymbol } from './common.js';
|
|
5
|
-
export { Connection, OAuthConnection } from './connected-accounts/index.js';
|
|
6
|
-
export { ContactChannel } from './contact-channels/index.js';
|
|
7
|
-
export { AdminTeamPermission, AdminTeamPermissionDefinition, AdminTeamPermissionDefinitionCreateOptions, AdminTeamPermissionDefinitionUpdateOptions, TeamPermission } from './permissions/index.js';
|
|
8
|
-
import '@stackframe/stack-shared';
|
|
9
|
-
import '@stackframe/stack-shared/dist/interface/crud/current-user';
|
|
10
|
-
import '@stackframe/stack-shared/dist/utils/results';
|
|
11
|
-
import '@stackframe/stack-shared/dist/helpers/production-mode';
|
|
12
|
-
import '@stackframe/stack-shared/dist/interface/crud/projects';
|
|
13
|
-
import '@stackframe/stack-shared/dist/interface/crud/email-templates';
|
|
14
|
-
import '@stackframe/stack-shared/dist/sessions';
|
|
15
|
-
import './email-templates/index.js';
|
|
16
|
-
import '@stackframe/stack-shared/dist/interface/crud/teams';
|
|
17
|
-
import '@stackframe/stack-shared/dist/utils/json';
|
|
18
|
-
import '@stackframe/stack-shared/dist/interface/crud/users';
|
|
19
|
-
import '@stackframe/stack-shared/dist/utils/oauth';
|
|
20
|
-
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
21
|
-
import '@stackframe/stack-shared/dist/interface/adminInterface';
|
|
22
|
-
import '@stackframe/stack-shared/dist/interface/crud/api-keys';
|
|
23
|
-
import '@stackframe/stack-shared/dist/interface/crud/contact-channels';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TeamPermissionDefinitionsCrud } from '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
2
|
-
|
|
3
|
-
type TeamPermission = {
|
|
4
|
-
id: string;
|
|
5
|
-
};
|
|
6
|
-
type AdminTeamPermission = TeamPermission;
|
|
7
|
-
type AdminTeamPermissionDefinition = {
|
|
8
|
-
id: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
containedPermissionIds: string[];
|
|
11
|
-
};
|
|
12
|
-
type AdminTeamPermissionDefinitionCreateOptions = {
|
|
13
|
-
id: string;
|
|
14
|
-
description?: string;
|
|
15
|
-
containedPermissionIds: string[];
|
|
16
|
-
};
|
|
17
|
-
declare function adminTeamPermissionDefinitionCreateOptionsToCrud(options: AdminTeamPermissionDefinitionCreateOptions): TeamPermissionDefinitionsCrud["Admin"]["Create"];
|
|
18
|
-
type AdminTeamPermissionDefinitionUpdateOptions = Partial<AdminTeamPermissionDefinitionCreateOptions>;
|
|
19
|
-
declare function adminTeamPermissionDefinitionUpdateOptionsToCrud(options: AdminTeamPermissionDefinitionUpdateOptions): TeamPermissionDefinitionsCrud["Admin"]["Update"];
|
|
20
|
-
|
|
21
|
-
export { type AdminTeamPermission, type AdminTeamPermissionDefinition, type AdminTeamPermissionDefinitionCreateOptions, type AdminTeamPermissionDefinitionUpdateOptions, type TeamPermission, adminTeamPermissionDefinitionCreateOptionsToCrud, adminTeamPermissionDefinitionUpdateOptionsToCrud };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TeamPermissionDefinitionsCrud } from '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
2
|
-
|
|
3
|
-
type TeamPermission = {
|
|
4
|
-
id: string;
|
|
5
|
-
};
|
|
6
|
-
type AdminTeamPermission = TeamPermission;
|
|
7
|
-
type AdminTeamPermissionDefinition = {
|
|
8
|
-
id: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
containedPermissionIds: string[];
|
|
11
|
-
};
|
|
12
|
-
type AdminTeamPermissionDefinitionCreateOptions = {
|
|
13
|
-
id: string;
|
|
14
|
-
description?: string;
|
|
15
|
-
containedPermissionIds: string[];
|
|
16
|
-
};
|
|
17
|
-
declare function adminTeamPermissionDefinitionCreateOptionsToCrud(options: AdminTeamPermissionDefinitionCreateOptions): TeamPermissionDefinitionsCrud["Admin"]["Create"];
|
|
18
|
-
type AdminTeamPermissionDefinitionUpdateOptions = Partial<AdminTeamPermissionDefinitionCreateOptions>;
|
|
19
|
-
declare function adminTeamPermissionDefinitionUpdateOptionsToCrud(options: AdminTeamPermissionDefinitionUpdateOptions): TeamPermissionDefinitionsCrud["Admin"]["Update"];
|
|
20
|
-
|
|
21
|
-
export { type AdminTeamPermission, type AdminTeamPermissionDefinition, type AdminTeamPermissionDefinitionCreateOptions, type AdminTeamPermissionDefinitionUpdateOptions, type TeamPermission, adminTeamPermissionDefinitionCreateOptionsToCrud, adminTeamPermissionDefinitionUpdateOptionsToCrud };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { AdminTeamPermission } from '../permissions/index.mjs';
|
|
2
|
-
import '@stackframe/stack-shared/dist/interface/crud/team-permissions';
|
|
3
|
-
|
|
4
|
-
type ProjectConfig = {
|
|
5
|
-
readonly signUpEnabled: boolean;
|
|
6
|
-
readonly credentialEnabled: boolean;
|
|
7
|
-
readonly magicLinkEnabled: boolean;
|
|
8
|
-
readonly passkeyEnabled: boolean;
|
|
9
|
-
readonly clientTeamCreationEnabled: boolean;
|
|
10
|
-
readonly clientUserDeletionEnabled: boolean;
|
|
11
|
-
readonly oauthProviders: OAuthProviderConfig[];
|
|
12
|
-
};
|
|
13
|
-
type OAuthProviderConfig = {
|
|
14
|
-
readonly id: string;
|
|
15
|
-
};
|
|
16
|
-
type AdminProjectConfig = {
|
|
17
|
-
readonly id: string;
|
|
18
|
-
readonly signUpEnabled: boolean;
|
|
19
|
-
readonly credentialEnabled: boolean;
|
|
20
|
-
readonly magicLinkEnabled: boolean;
|
|
21
|
-
readonly passkeyEnabled: boolean;
|
|
22
|
-
readonly clientTeamCreationEnabled: boolean;
|
|
23
|
-
readonly clientUserDeletionEnabled: boolean;
|
|
24
|
-
readonly allowLocalhost: boolean;
|
|
25
|
-
readonly oauthProviders: AdminOAuthProviderConfig[];
|
|
26
|
-
readonly emailConfig?: AdminEmailConfig;
|
|
27
|
-
readonly domains: AdminDomainConfig[];
|
|
28
|
-
readonly createTeamOnSignUp: boolean;
|
|
29
|
-
readonly teamCreatorDefaultPermissions: AdminTeamPermission[];
|
|
30
|
-
readonly teamMemberDefaultPermissions: AdminTeamPermission[];
|
|
31
|
-
};
|
|
32
|
-
type AdminEmailConfig = ({
|
|
33
|
-
type: "standard";
|
|
34
|
-
senderName: string;
|
|
35
|
-
senderEmail: string;
|
|
36
|
-
host: string;
|
|
37
|
-
port: number;
|
|
38
|
-
username: string;
|
|
39
|
-
password: string;
|
|
40
|
-
} | {
|
|
41
|
-
type: "shared";
|
|
42
|
-
});
|
|
43
|
-
type AdminDomainConfig = {
|
|
44
|
-
domain: string;
|
|
45
|
-
handlerPath: string;
|
|
46
|
-
};
|
|
47
|
-
type AdminOAuthProviderConfig = {
|
|
48
|
-
id: string;
|
|
49
|
-
enabled: boolean;
|
|
50
|
-
} & ({
|
|
51
|
-
type: 'shared';
|
|
52
|
-
} | {
|
|
53
|
-
type: 'standard';
|
|
54
|
-
clientId: string;
|
|
55
|
-
clientSecret: string;
|
|
56
|
-
facebookConfigId?: string;
|
|
57
|
-
microsoftTenantId?: string;
|
|
58
|
-
}) & OAuthProviderConfig;
|
|
59
|
-
type AdminProjectConfigUpdateOptions = {
|
|
60
|
-
domains?: {
|
|
61
|
-
domain: string;
|
|
62
|
-
handlerPath: string;
|
|
63
|
-
}[];
|
|
64
|
-
oauthProviders?: AdminOAuthProviderConfig[];
|
|
65
|
-
signUpEnabled?: boolean;
|
|
66
|
-
credentialEnabled?: boolean;
|
|
67
|
-
magicLinkEnabled?: boolean;
|
|
68
|
-
passkeyEnabled?: boolean;
|
|
69
|
-
clientTeamCreationEnabled?: boolean;
|
|
70
|
-
clientUserDeletionEnabled?: boolean;
|
|
71
|
-
allowLocalhost?: boolean;
|
|
72
|
-
createTeamOnSignUp?: boolean;
|
|
73
|
-
emailConfig?: AdminEmailConfig;
|
|
74
|
-
teamCreatorDefaultPermissions?: {
|
|
75
|
-
id: string;
|
|
76
|
-
}[];
|
|
77
|
-
teamMemberDefaultPermissions?: {
|
|
78
|
-
id: string;
|
|
79
|
-
}[];
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export type { AdminDomainConfig, AdminEmailConfig, AdminOAuthProviderConfig, AdminProjectConfig, AdminProjectConfigUpdateOptions, OAuthProviderConfig, ProjectConfig };
|