@hexclave/js 1.0.2 → 1.0.5
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/dev-tool/dev-tool-core.d.ts +1 -1
- package/dist/dev-tool/dev-tool-core.js +11 -11
- package/dist/dev-tool/dev-tool-core.js.map +1 -1
- package/dist/dev-tool/dev-tool-styles.d.ts +1 -1
- package/dist/dev-tool/dev-tool-styles.js +371 -371
- package/dist/dev-tool/dev-tool-styles.js.map +1 -1
- package/dist/dev-tool/dev-tool-trigger-position.js.map +1 -1
- package/dist/dev-tool/dev-tool-trigger-position.test.js.map +1 -1
- package/dist/dev-tool/index.d.ts +4 -4
- package/dist/dev-tool/index.js +4 -4
- package/dist/dev-tool/index.js.map +1 -1
- package/dist/esm/dev-tool/dev-tool-core.d.ts +1 -1
- package/dist/esm/dev-tool/dev-tool-core.js +10 -10
- package/dist/esm/dev-tool/dev-tool-core.js.map +1 -1
- package/dist/esm/dev-tool/dev-tool-styles.d.ts +1 -1
- package/dist/esm/dev-tool/dev-tool-styles.js +371 -371
- package/dist/esm/dev-tool/dev-tool-styles.js.map +1 -1
- package/dist/esm/dev-tool/dev-tool-trigger-position.js.map +1 -1
- package/dist/esm/dev-tool/dev-tool-trigger-position.test.js.map +1 -1
- package/dist/esm/dev-tool/index.d.ts +4 -4
- package/dist/esm/dev-tool/index.js +4 -4
- package/dist/esm/dev-tool/index.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/integrations/convex/component/convex.config.js.map +1 -1
- package/dist/esm/integrations/convex.js +1 -1
- package/dist/esm/integrations/convex.js.map +1 -1
- package/dist/esm/lib/auth.js.map +1 -1
- package/dist/esm/lib/auth.test.js.map +1 -1
- package/dist/esm/lib/cookie.js.map +1 -1
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/lib/{stack-app → hexclave-app}/api-keys/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/api-keys/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/api-keys/index.js +1 -1
- package/dist/esm/lib/hexclave-app/api-keys/index.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/admin-app-impl.d.ts +6 -6
- package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/admin-app-impl.js +7 -7
- package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.cross-domain.test.js +2 -2
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.cross-domain.test.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.d.ts +13 -13
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.js +23 -30
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.oauth-prefetch.test.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.oauth-prefetch.test.js.map +1 -0
- package/dist/{lib/stack-app → esm/lib/hexclave-app}/apps/implementations/common.d.ts +3 -3
- package/dist/esm/lib/hexclave-app/apps/implementations/common.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/common.js +6 -6
- package/dist/esm/lib/hexclave-app/apps/implementations/common.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.test.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.test.js.map +1 -0
- package/dist/esm/lib/hexclave-app/apps/implementations/index.d.ts +9 -0
- package/dist/esm/lib/hexclave-app/apps/implementations/index.d.ts.map +1 -0
- package/dist/esm/lib/hexclave-app/apps/implementations/index.js +27 -0
- package/dist/esm/lib/hexclave-app/apps/implementations/index.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/redirect-page-urls.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/redirect-page-urls.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/redirect-page-urls.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/redirect-page-urls.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/server-app-impl.d.ts +4 -4
- package/dist/esm/lib/hexclave-app/apps/implementations/server-app-impl.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/server-app-impl.js +5 -5
- package/dist/esm/lib/hexclave-app/apps/implementations/server-app-impl.js.map +1 -0
- package/dist/{lib/stack-app → esm/lib/hexclave-app}/apps/implementations/session-refresh-subscription.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-refresh-subscription.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-refresh-subscription.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.test.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-refresh-subscription.test.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.test.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.test.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/admin-app.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/apps/interfaces/admin-app.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/admin-app.js +3 -3
- package/dist/esm/lib/hexclave-app/apps/interfaces/admin-app.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/client-app.d.ts +4 -4
- package/dist/esm/lib/hexclave-app/apps/interfaces/client-app.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/client-app.js +3 -3
- package/dist/esm/lib/hexclave-app/apps/interfaces/client-app.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/server-app.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/apps/interfaces/server-app.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/apps/interfaces/server-app.js +3 -3
- package/dist/esm/lib/hexclave-app/apps/interfaces/server-app.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/common.d.ts +7 -7
- package/dist/esm/lib/hexclave-app/common.d.ts.map +1 -0
- package/dist/esm/lib/hexclave-app/common.js +7 -0
- package/dist/esm/lib/hexclave-app/common.js.map +1 -0
- package/dist/{lib/stack-app → esm/lib/hexclave-app}/connected-accounts/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/connected-accounts/index.d.ts.map +1 -0
- package/dist/{lib/stack-app → esm/lib/hexclave-app}/contact-channels/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/contact-channels/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/contact-channels/index.js +1 -1
- package/dist/esm/lib/hexclave-app/contact-channels/index.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/customers/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/customers/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/data-vault/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/data-vault/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/email/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/email/index.d.ts.map +1 -0
- package/dist/{lib/stack-app → esm/lib/hexclave-app}/email-templates/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/email-templates/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/email-templates/index.js +1 -1
- package/dist/esm/lib/hexclave-app/email-templates/index.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/index.d.ts +2 -2
- package/dist/esm/lib/{stack-app → hexclave-app}/index.js +2 -2
- package/dist/{lib/stack-app → esm/lib/hexclave-app}/internal-api-keys/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/internal-api-keys/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/internal-api-keys/index.js +1 -1
- package/dist/esm/lib/hexclave-app/internal-api-keys/index.js.map +1 -0
- package/dist/{lib/stack-app → esm/lib/hexclave-app}/notification-categories/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/notification-categories/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/permissions/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/permissions/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/permissions/index.js +1 -1
- package/dist/esm/lib/hexclave-app/permissions/index.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/project-configs/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/project-configs/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/projects/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/projects/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/projects/index.js +1 -1
- package/dist/esm/lib/hexclave-app/projects/index.js.map +1 -0
- package/dist/{lib/stack-app → esm/lib/hexclave-app}/session-replays/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/session-replays/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/teams/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/teams/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/teams/index.js +1 -1
- package/dist/esm/lib/hexclave-app/teams/index.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/url-targets.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/url-targets.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/url-targets.js +2 -2
- package/dist/esm/lib/hexclave-app/url-targets.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/url-targets.test.js +1 -1
- package/dist/esm/lib/hexclave-app/url-targets.test.js.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/users/index.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/users/index.d.ts.map +1 -0
- package/dist/esm/lib/{stack-app → hexclave-app}/users/index.js +1 -1
- package/dist/esm/lib/hexclave-app/users/index.js.map +1 -0
- package/dist/esm/utils/url.js.map +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.js +3 -3
- package/dist/integrations/convex/component/convex.config.js.map +1 -1
- package/dist/integrations/convex.js +2 -2
- package/dist/integrations/convex.js.map +1 -1
- package/dist/lib/auth.js.map +1 -1
- package/dist/lib/auth.test.js.map +1 -1
- package/dist/lib/cookie.js.map +1 -1
- package/dist/lib/env.js.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/api-keys/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/api-keys/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/api-keys/index.js +1 -1
- package/dist/lib/hexclave-app/api-keys/index.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/admin-app-impl.d.ts +6 -6
- package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/admin-app-impl.js +5 -5
- package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.cross-domain.test.js +2 -2
- package/dist/lib/hexclave-app/apps/implementations/client-app-impl.cross-domain.test.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.d.ts +13 -13
- package/dist/lib/hexclave-app/apps/implementations/client-app-impl.d.ts.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.js +22 -29
- package/dist/lib/hexclave-app/apps/implementations/client-app-impl.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.oauth-prefetch.test.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/client-app-impl.oauth-prefetch.test.js.map +1 -0
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/common.d.ts +3 -3
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/common.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/common.js +5 -5
- package/dist/lib/hexclave-app/apps/implementations/common.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/event-tracker.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/event-tracker.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.test.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/event-tracker.test.js.map +1 -0
- package/dist/lib/hexclave-app/apps/implementations/index.d.ts +9 -0
- package/dist/lib/hexclave-app/apps/implementations/index.d.ts.map +1 -0
- package/dist/lib/hexclave-app/apps/implementations/index.js +31 -0
- package/dist/lib/hexclave-app/apps/implementations/index.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/redirect-page-urls.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/redirect-page-urls.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/redirect-page-urls.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/redirect-page-urls.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/server-app-impl.d.ts +4 -4
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/server-app-impl.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/server-app-impl.js +4 -4
- package/dist/lib/hexclave-app/apps/implementations/server-app-impl.js.map +1 -0
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/session-refresh-subscription.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/session-refresh-subscription.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/session-refresh-subscription.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.test.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/session-refresh-subscription.test.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/implementations/session-replay.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/session-replay.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.test.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/session-replay.test.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/admin-app.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/interfaces/admin-app.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/admin-app.js +2 -2
- package/dist/lib/hexclave-app/apps/interfaces/admin-app.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/client-app.d.ts +4 -4
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/interfaces/client-app.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/client-app.js +2 -2
- package/dist/lib/hexclave-app/apps/interfaces/client-app.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/server-app.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/apps/interfaces/server-app.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/apps/interfaces/server-app.js +2 -2
- package/dist/lib/hexclave-app/apps/interfaces/server-app.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/common.d.ts +7 -7
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/common.d.ts.map +1 -1
- package/dist/lib/hexclave-app/common.js +9 -0
- package/dist/lib/hexclave-app/common.js.map +1 -0
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/connected-accounts/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/connected-accounts/index.d.ts.map +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/contact-channels/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/contact-channels/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/contact-channels/index.js +1 -1
- package/dist/lib/hexclave-app/contact-channels/index.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/customers/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/customers/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/data-vault/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/data-vault/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/email/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/email/index.d.ts.map +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/email-templates/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/email-templates/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/email-templates/index.js +1 -1
- package/dist/lib/hexclave-app/email-templates/index.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/index.d.ts +2 -2
- package/dist/lib/{stack-app → hexclave-app}/index.js +2 -2
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/internal-api-keys/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/internal-api-keys/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/internal-api-keys/index.js +1 -1
- package/dist/lib/hexclave-app/internal-api-keys/index.js.map +1 -0
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/notification-categories/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/notification-categories/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/permissions/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/permissions/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/permissions/index.js +1 -1
- package/dist/lib/hexclave-app/permissions/index.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/project-configs/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/project-configs/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/projects/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/projects/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/projects/index.js +1 -1
- package/dist/lib/hexclave-app/projects/index.js.map +1 -0
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/session-replays/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/session-replays/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/teams/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/teams/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/teams/index.js +1 -1
- package/dist/lib/hexclave-app/teams/index.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/url-targets.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/url-targets.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/url-targets.js +2 -2
- package/dist/lib/hexclave-app/url-targets.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/url-targets.test.js +1 -1
- package/dist/lib/hexclave-app/url-targets.test.js.map +1 -0
- package/dist/lib/{stack-app → hexclave-app}/users/index.d.ts +1 -1
- package/dist/{esm/lib/stack-app → lib/hexclave-app}/users/index.d.ts.map +1 -1
- package/dist/lib/{stack-app → hexclave-app}/users/index.js +1 -1
- package/dist/lib/hexclave-app/users/index.js.map +1 -0
- package/dist/utils/url.js.map +1 -1
- package/package.json +4 -3
- package/src/dev-tool/dev-tool-core.ts +2460 -0
- package/src/dev-tool/dev-tool-styles.ts +2758 -0
- package/src/dev-tool/dev-tool-trigger-position.test.ts +113 -0
- package/src/dev-tool/dev-tool-trigger-position.ts +109 -0
- package/src/dev-tool/index.ts +149 -0
- package/src/index.ts +12 -0
- package/src/integrations/convex/component/README.md +74 -0
- package/src/integrations/convex/component/convex.config.ts +9 -0
- package/src/integrations/convex.ts +28 -0
- package/src/lib/auth.test.ts +67 -0
- package/src/lib/auth.ts +175 -0
- package/src/lib/cookie.ts +327 -0
- package/src/lib/env.ts +93 -0
- package/src/lib/hexclave-app/api-keys/index.ts +73 -0
- package/src/lib/hexclave-app/apps/implementations/admin-app-impl.ts +1159 -0
- package/src/lib/hexclave-app/apps/implementations/client-app-impl.cross-domain.test.ts +141 -0
- package/src/lib/hexclave-app/apps/implementations/client-app-impl.oauth-prefetch.test.ts +36 -0
- package/src/lib/hexclave-app/apps/implementations/client-app-impl.ts +3525 -0
- package/src/lib/hexclave-app/apps/implementations/common.ts +190 -0
- package/src/lib/hexclave-app/apps/implementations/event-tracker.test.ts +105 -0
- package/src/lib/hexclave-app/apps/implementations/event-tracker.ts +306 -0
- package/src/lib/hexclave-app/apps/implementations/index.ts +35 -0
- package/src/lib/hexclave-app/apps/implementations/redirect-page-urls.ts +342 -0
- package/src/lib/hexclave-app/apps/implementations/server-app-impl.ts +1322 -0
- package/src/lib/hexclave-app/apps/implementations/session-refresh-subscription.test.ts +106 -0
- package/src/lib/hexclave-app/apps/implementations/session-refresh-subscription.ts +52 -0
- package/src/lib/hexclave-app/apps/implementations/session-replay.test.ts +33 -0
- package/src/lib/hexclave-app/apps/implementations/session-replay.ts +356 -0
- package/src/lib/hexclave-app/apps/index.ts +40 -0
- package/src/lib/hexclave-app/apps/interfaces/admin-app.ts +189 -0
- package/src/lib/hexclave-app/apps/interfaces/client-app.ts +172 -0
- package/src/lib/hexclave-app/apps/interfaces/server-app.ts +114 -0
- package/src/lib/hexclave-app/common.ts +209 -0
- package/src/lib/hexclave-app/connected-accounts/index.ts +47 -0
- package/src/lib/hexclave-app/contact-channels/index.ts +80 -0
- package/src/lib/hexclave-app/customers/index.ts +158 -0
- package/src/lib/hexclave-app/data-vault/index.ts +12 -0
- package/src/lib/hexclave-app/email/index.ts +280 -0
- package/src/lib/hexclave-app/email-templates/index.ts +24 -0
- package/src/lib/hexclave-app/index.ts +146 -0
- package/src/lib/hexclave-app/internal-api-keys/index.ts +55 -0
- package/src/lib/hexclave-app/notification-categories/index.ts +12 -0
- package/src/lib/hexclave-app/permissions/index.ts +75 -0
- package/src/lib/hexclave-app/project-configs/index.ts +103 -0
- package/src/lib/hexclave-app/projects/index.ts +234 -0
- package/src/lib/hexclave-app/session-replays/index.ts +72 -0
- package/src/lib/hexclave-app/teams/index.ts +203 -0
- package/src/lib/hexclave-app/url-targets.test.ts +253 -0
- package/src/lib/hexclave-app/url-targets.ts +395 -0
- package/src/lib/hexclave-app/users/index.ts +495 -0
- package/src/utils/url.ts +24 -0
- package/dist/esm/lib/stack-app/api-keys/index.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.d.ts.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.cross-domain.test.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.d.ts.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/common.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/event-tracker.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/event-tracker.test.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/index.d.ts +0 -9
- package/dist/esm/lib/stack-app/apps/implementations/index.d.ts.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/index.js +0 -27
- package/dist/esm/lib/stack-app/apps/implementations/index.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/redirect-page-urls.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/server-app-impl.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.test.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/session-replay.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/implementations/session-replay.test.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/interfaces/admin-app.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/interfaces/client-app.js.map +0 -1
- package/dist/esm/lib/stack-app/apps/interfaces/server-app.js.map +0 -1
- package/dist/esm/lib/stack-app/common.js +0 -7
- package/dist/esm/lib/stack-app/common.js.map +0 -1
- package/dist/esm/lib/stack-app/contact-channels/index.js.map +0 -1
- package/dist/esm/lib/stack-app/email-templates/index.js.map +0 -1
- package/dist/esm/lib/stack-app/internal-api-keys/index.js.map +0 -1
- package/dist/esm/lib/stack-app/permissions/index.js.map +0 -1
- package/dist/esm/lib/stack-app/projects/index.js.map +0 -1
- package/dist/esm/lib/stack-app/teams/index.js.map +0 -1
- package/dist/esm/lib/stack-app/url-targets.js.map +0 -1
- package/dist/esm/lib/stack-app/url-targets.test.js.map +0 -1
- package/dist/esm/lib/stack-app/users/index.js.map +0 -1
- package/dist/lib/stack-app/api-keys/index.d.ts.map +0 -1
- package/dist/lib/stack-app/api-keys/index.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/client-app-impl.cross-domain.test.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/client-app-impl.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/implementations/client-app-impl.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/common.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/implementations/common.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/event-tracker.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/implementations/event-tracker.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/event-tracker.test.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/index.d.ts +0 -9
- package/dist/lib/stack-app/apps/implementations/index.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/implementations/index.js +0 -31
- package/dist/lib/stack-app/apps/implementations/index.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/redirect-page-urls.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/implementations/redirect-page-urls.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/server-app-impl.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/implementations/server-app-impl.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.test.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/session-replay.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/implementations/session-replay.js.map +0 -1
- package/dist/lib/stack-app/apps/implementations/session-replay.test.js.map +0 -1
- package/dist/lib/stack-app/apps/interfaces/admin-app.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/interfaces/admin-app.js.map +0 -1
- package/dist/lib/stack-app/apps/interfaces/client-app.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/interfaces/client-app.js.map +0 -1
- package/dist/lib/stack-app/apps/interfaces/server-app.d.ts.map +0 -1
- package/dist/lib/stack-app/apps/interfaces/server-app.js.map +0 -1
- package/dist/lib/stack-app/common.d.ts.map +0 -1
- package/dist/lib/stack-app/common.js +0 -9
- package/dist/lib/stack-app/common.js.map +0 -1
- package/dist/lib/stack-app/connected-accounts/index.d.ts.map +0 -1
- package/dist/lib/stack-app/contact-channels/index.d.ts.map +0 -1
- package/dist/lib/stack-app/contact-channels/index.js.map +0 -1
- package/dist/lib/stack-app/customers/index.d.ts.map +0 -1
- package/dist/lib/stack-app/data-vault/index.d.ts.map +0 -1
- package/dist/lib/stack-app/email/index.d.ts.map +0 -1
- package/dist/lib/stack-app/email-templates/index.d.ts.map +0 -1
- package/dist/lib/stack-app/email-templates/index.js.map +0 -1
- package/dist/lib/stack-app/internal-api-keys/index.d.ts.map +0 -1
- package/dist/lib/stack-app/internal-api-keys/index.js.map +0 -1
- package/dist/lib/stack-app/notification-categories/index.d.ts.map +0 -1
- package/dist/lib/stack-app/permissions/index.d.ts.map +0 -1
- package/dist/lib/stack-app/permissions/index.js.map +0 -1
- package/dist/lib/stack-app/project-configs/index.d.ts.map +0 -1
- package/dist/lib/stack-app/projects/index.d.ts.map +0 -1
- package/dist/lib/stack-app/projects/index.js.map +0 -1
- package/dist/lib/stack-app/session-replays/index.d.ts.map +0 -1
- package/dist/lib/stack-app/teams/index.d.ts.map +0 -1
- package/dist/lib/stack-app/teams/index.js.map +0 -1
- package/dist/lib/stack-app/url-targets.d.ts.map +0 -1
- package/dist/lib/stack-app/url-targets.js.map +0 -1
- package/dist/lib/stack-app/url-targets.test.js.map +0 -1
- package/dist/lib/stack-app/users/index.d.ts.map +0 -1
- package/dist/lib/stack-app/users/index.js.map +0 -1
- /package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.cross-domain.test.d.ts +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.oauth-prefetch.test.d.ts +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.test.d.ts +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.test.d.ts +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.test.d.ts +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/apps/index.d.ts +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/apps/index.js +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/connected-accounts/index.js +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/customers/index.js +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/data-vault/index.js +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/email/index.js +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/notification-categories/index.js +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/project-configs/index.js +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/session-replays/index.js +0 -0
- /package/dist/esm/lib/{stack-app → hexclave-app}/url-targets.test.d.ts +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.cross-domain.test.d.ts +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/apps/implementations/client-app-impl.oauth-prefetch.test.d.ts +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/apps/implementations/event-tracker.test.d.ts +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-refresh-subscription.test.d.ts +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/apps/implementations/session-replay.test.d.ts +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/apps/index.d.ts +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/apps/index.js +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/connected-accounts/index.js +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/customers/index.js +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/data-vault/index.js +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/email/index.js +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/notification-categories/index.js +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/project-configs/index.js +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/session-replays/index.js +0 -0
- /package/dist/lib/{stack-app → hexclave-app}/url-targets.test.d.ts +0 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
|
|
2
|
+
//===========================================
|
|
3
|
+
// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template
|
|
4
|
+
//===========================================
|
|
5
|
+
import { ProductionModeError } from "@hexclave/shared/dist/helpers/production-mode";
|
|
6
|
+
import { AdminUserProjectsCrud, ProjectsCrud } from "@hexclave/shared/dist/interface/crud/projects";
|
|
7
|
+
import { ProjectOnboardingStatus } from "@hexclave/shared/dist/schema-fields";
|
|
8
|
+
|
|
9
|
+
import { CompleteConfig, EnvironmentConfigNormalizedOverride, EnvironmentConfigOverrideOverride } from "@hexclave/shared/dist/config/schema";
|
|
10
|
+
import { StackAdminApp } from "../apps/interfaces/admin-app";
|
|
11
|
+
import { AdminProjectConfig, AdminProjectConfigUpdateOptions, ProjectConfig } from "../project-configs";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* SDK type for pushed config source (camelCase for SDK).
|
|
15
|
+
* Represents where the branch config was pushed from.
|
|
16
|
+
*/
|
|
17
|
+
export type PushedConfigSource =
|
|
18
|
+
| { type: "pushed-from-github", owner: string, repo: string, branch: string, commitHash: string, configFilePath: string, workflowPath?: string }
|
|
19
|
+
| { type: "pushed-from-unknown" }
|
|
20
|
+
| { type: "unlinked" };
|
|
21
|
+
|
|
22
|
+
export type PushConfigOptions = {
|
|
23
|
+
/**
|
|
24
|
+
* The source of this config push.
|
|
25
|
+
*/
|
|
26
|
+
source: PushedConfigSource,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export type Project = {
|
|
31
|
+
readonly id: string,
|
|
32
|
+
readonly displayName: string,
|
|
33
|
+
readonly config: ProjectConfig,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type AdminProject = {
|
|
37
|
+
readonly id: string,
|
|
38
|
+
readonly displayName: string,
|
|
39
|
+
readonly description: string | null,
|
|
40
|
+
readonly createdAt: Date,
|
|
41
|
+
readonly isProductionMode: boolean,
|
|
42
|
+
readonly isDevelopmentEnvironment: boolean,
|
|
43
|
+
readonly ownerTeamId: string | null,
|
|
44
|
+
readonly onboardingStatus: ProjectOnboardingStatus,
|
|
45
|
+
readonly logoUrl: string | null | undefined,
|
|
46
|
+
readonly logoFullUrl: string | null | undefined,
|
|
47
|
+
readonly logoDarkModeUrl: string | null | undefined,
|
|
48
|
+
readonly logoFullDarkModeUrl: string | null | undefined,
|
|
49
|
+
|
|
50
|
+
readonly config: AdminProjectConfig,
|
|
51
|
+
|
|
52
|
+
update(this: AdminProject, update: AdminProjectUpdateOptions): Promise<void>,
|
|
53
|
+
delete(this: AdminProject): Promise<void>,
|
|
54
|
+
|
|
55
|
+
getConfig(this: AdminProject): Promise<CompleteConfig>,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Updates the environment's config by merging the provided config into the existing config.
|
|
59
|
+
*
|
|
60
|
+
* Changes made with `updateConfig` always take precedence over those made with `pushConfig`, even if the `pushConfig`
|
|
61
|
+
* config was pushed after the changes were made with `updateConfig`. This is best for environment-specific
|
|
62
|
+
* configuration like secrets, API keys, and other values that you wouldn't push into a source repository.
|
|
63
|
+
*/
|
|
64
|
+
// We have some strict types here in order to prevent accidental overwriting of a top-level property of a config object
|
|
65
|
+
updateConfig(
|
|
66
|
+
this: AdminProject,
|
|
67
|
+
config: EnvironmentConfigOverrideOverride,
|
|
68
|
+
): Promise<void>,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Pushes a config, replacing any previous config pushed with `pushConfig`.
|
|
72
|
+
*
|
|
73
|
+
* **Note:** This function does **not** replace any changes made with `updateConfig`. Changes made with
|
|
74
|
+
* `updateConfig` always take precedence over those made with `pushConfig`, even if the `pushConfig`
|
|
75
|
+
* config was pushed after the changes were made with `updateConfig`.
|
|
76
|
+
*
|
|
77
|
+
* This is useful for programmatically deploying configuration. More often than not, you'll want to use
|
|
78
|
+
* `updateConfig` instead.
|
|
79
|
+
*/
|
|
80
|
+
pushConfig(
|
|
81
|
+
this: AdminProject,
|
|
82
|
+
config: EnvironmentConfigOverrideOverride,
|
|
83
|
+
options: PushConfigOptions,
|
|
84
|
+
): Promise<void>,
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Updates the pushed config by merging the provided config into the existing pushed config.
|
|
88
|
+
*
|
|
89
|
+
* **Warning:** This is almost always **not** the function you want to call. Changes made with
|
|
90
|
+
* `updatePushedConfig` will be replaced entirely the next time `pushConfig` is called. Consider using
|
|
91
|
+
* `pushConfig` to set the full pushed config, or `updateConfig` for environment-specific values that
|
|
92
|
+
* should persist across pushes.
|
|
93
|
+
*
|
|
94
|
+
* This function is useful for making temporary modifications to the pushed config before the next push.
|
|
95
|
+
*/
|
|
96
|
+
updatePushedConfig(
|
|
97
|
+
this: AdminProject,
|
|
98
|
+
config: EnvironmentConfigOverrideOverride
|
|
99
|
+
): Promise<void>,
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Gets the source metadata for the pushed config, indicating where it was pushed from.
|
|
103
|
+
*
|
|
104
|
+
* The source can be:
|
|
105
|
+
* - `pushed-from-github`: Config was pushed from a GitHub repository
|
|
106
|
+
* - `pushed-from-unknown`: Config was pushed via CLI but source details unknown
|
|
107
|
+
* - `unlinked`: Config can be edited directly on the dashboard
|
|
108
|
+
*/
|
|
109
|
+
getPushedConfigSource(this: AdminProject): Promise<PushedConfigSource>,
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Unlinks the pushed config source, setting it to "unlinked".
|
|
113
|
+
* This allows the config to be edited directly on the dashboard without external push restrictions.
|
|
114
|
+
*/
|
|
115
|
+
unlinkPushedConfigSource(this: AdminProject): Promise<void>,
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Resets (removes) specific keys from the config override at the specified level.
|
|
119
|
+
* Uses the same nested key logic as the override algorithm: resetting key "a.b" also resets "a.b.c".
|
|
120
|
+
*
|
|
121
|
+
* This is useful when updating the pushed config (branch level) and wanting to remove the same keys
|
|
122
|
+
* from the environment config override so that the branch config values take precedence.
|
|
123
|
+
*/
|
|
124
|
+
resetConfigOverrideKeys(this: AdminProject, level: "branch" | "environment", keys: string[]): Promise<void>,
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Gets the raw config override at the specified level (before merging/defaults).
|
|
128
|
+
* Useful for inspecting exactly what's been set at each level.
|
|
129
|
+
*/
|
|
130
|
+
getConfigOverride(this: AdminProject, level: "branch" | "environment"): Promise<Record<string, unknown>>,
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Replaces the entire config override at the specified level.
|
|
134
|
+
* For branch level, preserves the existing source metadata.
|
|
135
|
+
*/
|
|
136
|
+
replaceConfigOverride(this: AdminProject, level: "branch" | "environment", config: Record<string, unknown>): Promise<void>,
|
|
137
|
+
|
|
138
|
+
getProductionModeErrors(this: AdminProject): Promise<ProductionModeError[]>,
|
|
139
|
+
} & Project;
|
|
140
|
+
|
|
141
|
+
export type AdminOwnedProject = {
|
|
142
|
+
readonly app: StackAdminApp<false>,
|
|
143
|
+
} & AdminProject;
|
|
144
|
+
|
|
145
|
+
export type AdminProjectUpdateOptions = {
|
|
146
|
+
displayName?: string,
|
|
147
|
+
description?: string,
|
|
148
|
+
isProductionMode?: boolean,
|
|
149
|
+
onboardingStatus?: ProjectOnboardingStatus,
|
|
150
|
+
/**
|
|
151
|
+
* Updates `project.requirePublishableClientKey` in the project-level config override.
|
|
152
|
+
*/
|
|
153
|
+
requirePublishableClientKey?: boolean,
|
|
154
|
+
logoUrl?: string | null,
|
|
155
|
+
logoFullUrl?: string | null,
|
|
156
|
+
logoDarkModeUrl?: string | null,
|
|
157
|
+
logoFullDarkModeUrl?: string | null,
|
|
158
|
+
config?: AdminProjectConfigUpdateOptions,
|
|
159
|
+
};
|
|
160
|
+
export function adminProjectUpdateOptionsToCrud(options: AdminProjectUpdateOptions): ProjectsCrud["Admin"]["Update"] {
|
|
161
|
+
return {
|
|
162
|
+
display_name: options.displayName,
|
|
163
|
+
description: options.description,
|
|
164
|
+
is_production_mode: options.isProductionMode,
|
|
165
|
+
onboarding_status: options.onboardingStatus,
|
|
166
|
+
logo_url: options.logoUrl,
|
|
167
|
+
logo_full_url: options.logoFullUrl,
|
|
168
|
+
logo_dark_mode_url: options.logoDarkModeUrl,
|
|
169
|
+
logo_full_dark_mode_url: options.logoFullDarkModeUrl,
|
|
170
|
+
/**
|
|
171
|
+
* NOTE: Do not update this config anymore. It's been superseded by the new config in schema.ts.
|
|
172
|
+
* @deprecated
|
|
173
|
+
*/
|
|
174
|
+
config: {
|
|
175
|
+
domains: options.config?.domains?.map((d) => ({
|
|
176
|
+
domain: d.domain,
|
|
177
|
+
handler_path: d.handlerPath
|
|
178
|
+
})),
|
|
179
|
+
oauth_providers: options.config?.oauthProviders?.map((p) => ({
|
|
180
|
+
id: p.id as any,
|
|
181
|
+
type: p.type,
|
|
182
|
+
...(p.type === 'standard' && {
|
|
183
|
+
client_id: p.clientId,
|
|
184
|
+
client_secret: p.clientSecret,
|
|
185
|
+
facebook_config_id: p.facebookConfigId,
|
|
186
|
+
microsoft_tenant_id: p.microsoftTenantId,
|
|
187
|
+
apple_bundle_ids: p.appleBundleIds,
|
|
188
|
+
}),
|
|
189
|
+
})),
|
|
190
|
+
email_config: options.config?.emailConfig && (
|
|
191
|
+
options.config.emailConfig.type === 'shared' ? {
|
|
192
|
+
type: 'shared',
|
|
193
|
+
} : {
|
|
194
|
+
type: 'standard',
|
|
195
|
+
host: options.config.emailConfig.host,
|
|
196
|
+
port: options.config.emailConfig.port,
|
|
197
|
+
username: options.config.emailConfig.username,
|
|
198
|
+
password: options.config.emailConfig.password,
|
|
199
|
+
sender_name: options.config.emailConfig.senderName,
|
|
200
|
+
sender_email: options.config.emailConfig.senderEmail,
|
|
201
|
+
}
|
|
202
|
+
),
|
|
203
|
+
email_theme: options.config?.emailTheme,
|
|
204
|
+
sign_up_enabled: options.config?.signUpEnabled,
|
|
205
|
+
credential_enabled: options.config?.credentialEnabled,
|
|
206
|
+
magic_link_enabled: options.config?.magicLinkEnabled,
|
|
207
|
+
passkey_enabled: options.config?.passkeyEnabled,
|
|
208
|
+
allow_localhost: options.config?.allowLocalhost,
|
|
209
|
+
create_team_on_sign_up: options.config?.createTeamOnSignUp,
|
|
210
|
+
client_team_creation_enabled: options.config?.clientTeamCreationEnabled,
|
|
211
|
+
client_user_deletion_enabled: options.config?.clientUserDeletionEnabled,
|
|
212
|
+
team_creator_default_permissions: options.config?.teamCreatorDefaultPermissions,
|
|
213
|
+
team_member_default_permissions: options.config?.teamMemberDefaultPermissions,
|
|
214
|
+
user_default_permissions: options.config?.userDefaultPermissions,
|
|
215
|
+
oauth_account_merge_strategy: options.config?.oauthAccountMergeStrategy,
|
|
216
|
+
allow_user_api_keys: options.config?.allowUserApiKeys,
|
|
217
|
+
allow_team_api_keys: options.config?.allowTeamApiKeys,
|
|
218
|
+
},
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export type AdminProjectCreateOptions = Omit<AdminProjectUpdateOptions, 'displayName'> & {
|
|
223
|
+
displayName: string,
|
|
224
|
+
teamId: string,
|
|
225
|
+
isDevelopmentEnvironment?: boolean,
|
|
226
|
+
};
|
|
227
|
+
export function adminProjectCreateOptionsToCrud(options: AdminProjectCreateOptions): AdminUserProjectsCrud["Server"]["Create"] {
|
|
228
|
+
return {
|
|
229
|
+
...adminProjectUpdateOptionsToCrud(options),
|
|
230
|
+
display_name: options.displayName,
|
|
231
|
+
is_development_environment: options.isDevelopmentEnvironment,
|
|
232
|
+
owner_team_id: options.teamId,
|
|
233
|
+
};
|
|
234
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
|
|
2
|
+
//===========================================
|
|
3
|
+
// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template
|
|
4
|
+
//===========================================
|
|
5
|
+
export type AdminSessionReplay = {
|
|
6
|
+
id: string,
|
|
7
|
+
projectUser: {
|
|
8
|
+
id: string,
|
|
9
|
+
displayName: string | null,
|
|
10
|
+
primaryEmail: string | null,
|
|
11
|
+
},
|
|
12
|
+
startedAt: Date,
|
|
13
|
+
lastEventAt: Date,
|
|
14
|
+
chunkCount: number,
|
|
15
|
+
eventCount: number,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type AdminSessionReplayChunk = {
|
|
19
|
+
id: string,
|
|
20
|
+
batchId: string,
|
|
21
|
+
sessionReplaySegmentId: string | null,
|
|
22
|
+
browserSessionId: string | null,
|
|
23
|
+
eventCount: number,
|
|
24
|
+
byteLength: number,
|
|
25
|
+
firstEventAt: Date,
|
|
26
|
+
lastEventAt: Date,
|
|
27
|
+
createdAt: Date,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type ListSessionReplaysOptions = {
|
|
31
|
+
limit?: number,
|
|
32
|
+
cursor?: string,
|
|
33
|
+
userIds?: string[],
|
|
34
|
+
teamIds?: string[],
|
|
35
|
+
durationMsMin?: number,
|
|
36
|
+
durationMsMax?: number,
|
|
37
|
+
lastEventAtFromMillis?: number,
|
|
38
|
+
lastEventAtToMillis?: number,
|
|
39
|
+
clickCountMin?: number,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type ListSessionReplaysResult = {
|
|
43
|
+
items: AdminSessionReplay[],
|
|
44
|
+
nextCursor: string | null,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type ListSessionReplayChunksOptions = {
|
|
48
|
+
limit?: number,
|
|
49
|
+
cursor?: string,
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type ListSessionReplayChunksResult = {
|
|
53
|
+
items: AdminSessionReplayChunk[],
|
|
54
|
+
nextCursor: string | null,
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type SessionReplayAllEventsResult = {
|
|
58
|
+
chunks: Array<{
|
|
59
|
+
id: string,
|
|
60
|
+
batchId: string,
|
|
61
|
+
sessionReplaySegmentId: string | null,
|
|
62
|
+
eventCount: number,
|
|
63
|
+
byteLength: number,
|
|
64
|
+
firstEventAt: Date,
|
|
65
|
+
lastEventAt: Date,
|
|
66
|
+
createdAt: Date,
|
|
67
|
+
}>,
|
|
68
|
+
chunkEvents: Array<{
|
|
69
|
+
chunkId: string,
|
|
70
|
+
events: unknown[],
|
|
71
|
+
}>,
|
|
72
|
+
};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
|
|
2
|
+
//===========================================
|
|
3
|
+
// THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template
|
|
4
|
+
//===========================================
|
|
5
|
+
import { TeamsCrud } from "@hexclave/shared/dist/interface/crud/teams";
|
|
6
|
+
import { ReadonlyJson } from "@hexclave/shared/dist/utils/json";
|
|
7
|
+
|
|
8
|
+
import { ApiKeyCreationOptions, TeamApiKey, TeamApiKeyFirstView } from "../api-keys";
|
|
9
|
+
import { AsyncStoreProperty } from "../common";
|
|
10
|
+
import { Customer } from "../customers";
|
|
11
|
+
import { ServerUser } from "../users";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
export type TeamMemberProfile = {
|
|
15
|
+
displayName: string | null,
|
|
16
|
+
profileImageUrl: string | null,
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type TeamMemberProfileUpdateOptions = {
|
|
20
|
+
displayName?: string,
|
|
21
|
+
profileImageUrl?: string | null,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type EditableTeamMemberProfile = TeamMemberProfile & {
|
|
25
|
+
update(update: TeamMemberProfileUpdateOptions): Promise<void>,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type TeamUser = {
|
|
29
|
+
id: string,
|
|
30
|
+
teamProfile: TeamMemberProfile,
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* A team invitation as seen from the team's perspective (ie. the sender).
|
|
35
|
+
*
|
|
36
|
+
* Returned by `team.listInvitations()`. Contains the recipient email and allows
|
|
37
|
+
* revoking the invitation.
|
|
38
|
+
*/
|
|
39
|
+
export type SentTeamInvitation = {
|
|
40
|
+
id: string,
|
|
41
|
+
recipientEmail: string | null,
|
|
42
|
+
expiresAt: Date,
|
|
43
|
+
revoke(): Promise<void>,
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated Use `SentTeamInvitation` instead.
|
|
48
|
+
*/
|
|
49
|
+
export type TeamInvitation = SentTeamInvitation;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* A team invitation as seen from the invited user's perspective (ie. the receiver).
|
|
53
|
+
*
|
|
54
|
+
* Returned by `user.listTeamInvitations()`. Contains information about teams that have
|
|
55
|
+
* sent invitations to any of the user's verified email addresses, and allows accepting
|
|
56
|
+
* the invitation to join the team.
|
|
57
|
+
*/
|
|
58
|
+
export type ReceivedTeamInvitation = {
|
|
59
|
+
id: string,
|
|
60
|
+
teamId: string,
|
|
61
|
+
teamDisplayName: string,
|
|
62
|
+
recipientEmail: string,
|
|
63
|
+
expiresAt: Date,
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Accepts the invitation, adding the current user to the team.
|
|
67
|
+
*
|
|
68
|
+
* The user must have a verified email address matching the invitation's recipient email.
|
|
69
|
+
*/
|
|
70
|
+
accept(): Promise<void>,
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type Team = {
|
|
74
|
+
id: string,
|
|
75
|
+
displayName: string,
|
|
76
|
+
profileImageUrl: string | null,
|
|
77
|
+
clientMetadata: any,
|
|
78
|
+
clientReadOnlyMetadata: any,
|
|
79
|
+
inviteUser(options: { email: string, callbackUrl?: string }): Promise<void>,
|
|
80
|
+
listUsers(): Promise<TeamUser[]>,
|
|
81
|
+
listInvitations(): Promise<SentTeamInvitation[]>,
|
|
82
|
+
update(update: TeamUpdateOptions): Promise<void>,
|
|
83
|
+
delete(): Promise<void>,
|
|
84
|
+
createApiKey(options: ApiKeyCreationOptions<"team">): Promise<TeamApiKeyFirstView>,
|
|
85
|
+
} & AsyncStoreProperty<"apiKeys", [], TeamApiKey[], true> & Customer;
|
|
86
|
+
|
|
87
|
+
export type TeamUpdateOptions = {
|
|
88
|
+
displayName?: string,
|
|
89
|
+
profileImageUrl?: string | null,
|
|
90
|
+
clientMetadata?: ReadonlyJson,
|
|
91
|
+
};
|
|
92
|
+
export function teamUpdateOptionsToCrud(options: TeamUpdateOptions): TeamsCrud["Client"]["Update"] {
|
|
93
|
+
return {
|
|
94
|
+
display_name: options.displayName,
|
|
95
|
+
profile_image_url: options.profileImageUrl,
|
|
96
|
+
client_metadata: options.clientMetadata,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type TeamCreateOptions = {
|
|
101
|
+
displayName: string,
|
|
102
|
+
profileImageUrl?: string,
|
|
103
|
+
}
|
|
104
|
+
export function teamCreateOptionsToCrud(options: TeamCreateOptions, creatorUserId: string): TeamsCrud["Client"]["Create"] {
|
|
105
|
+
return {
|
|
106
|
+
display_name: options.displayName,
|
|
107
|
+
profile_image_url: options.profileImageUrl,
|
|
108
|
+
creator_user_id: creatorUserId,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
export type ServerTeamMemberProfile = TeamMemberProfile;
|
|
114
|
+
|
|
115
|
+
export type ServerTeamUser = ServerUser & {
|
|
116
|
+
teamProfile: ServerTeamMemberProfile,
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type ServerTeam = {
|
|
120
|
+
createdAt: Date,
|
|
121
|
+
serverMetadata: any,
|
|
122
|
+
listUsers(): Promise<ServerTeamUser[]>,
|
|
123
|
+
update(update: ServerTeamUpdateOptions): Promise<void>,
|
|
124
|
+
delete(): Promise<void>,
|
|
125
|
+
addUser(userId: string): Promise<void>,
|
|
126
|
+
inviteUser(options: { email: string, callbackUrl?: string }): Promise<void>,
|
|
127
|
+
removeUser(userId: string): Promise<void>,
|
|
128
|
+
} & Team;
|
|
129
|
+
|
|
130
|
+
type ServerListUsersOptionsBase = {
|
|
131
|
+
cursor?: string,
|
|
132
|
+
limit?: number,
|
|
133
|
+
orderBy?: 'signedUpAt' | 'lastActiveAt',
|
|
134
|
+
desc?: boolean,
|
|
135
|
+
/**
|
|
136
|
+
* Free-text search. Matches user ID (exact UUID), display name, and contact channels (e.g. primary email).
|
|
137
|
+
*/
|
|
138
|
+
query?: string,
|
|
139
|
+
/**
|
|
140
|
+
* Only return users who are members of the given team.
|
|
141
|
+
*/
|
|
142
|
+
teamId?: string,
|
|
143
|
+
/**
|
|
144
|
+
* Whether to include restricted users (users who haven't completed onboarding requirements).
|
|
145
|
+
* Defaults to false.
|
|
146
|
+
*/
|
|
147
|
+
includeRestricted?: boolean,
|
|
148
|
+
/**
|
|
149
|
+
* Whether to include anonymous users (and restricted users).
|
|
150
|
+
* Defaults to false.
|
|
151
|
+
*/
|
|
152
|
+
includeAnonymous?: boolean,
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export type ServerListUsersOptions = ServerListUsersOptionsBase & (
|
|
156
|
+
{
|
|
157
|
+
onlyAnonymous?: false,
|
|
158
|
+
} | {
|
|
159
|
+
/**
|
|
160
|
+
* Whether to return only anonymous users.
|
|
161
|
+
* Requires includeAnonymous=true.
|
|
162
|
+
* Defaults to false.
|
|
163
|
+
*/
|
|
164
|
+
onlyAnonymous: true,
|
|
165
|
+
includeAnonymous: true,
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
|
|
169
|
+
export type ServerListTeamsOptions = {
|
|
170
|
+
orderBy?: 'createdAt',
|
|
171
|
+
desc?: boolean,
|
|
172
|
+
cursor?: string,
|
|
173
|
+
limit?: number,
|
|
174
|
+
/**
|
|
175
|
+
* Free-text search. Matches team ID (exact UUID) and display name.
|
|
176
|
+
*/
|
|
177
|
+
query?: string,
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export type ServerTeamCreateOptions = TeamCreateOptions & {
|
|
181
|
+
creatorUserId?: string,
|
|
182
|
+
};
|
|
183
|
+
export function serverTeamCreateOptionsToCrud(options: ServerTeamCreateOptions): TeamsCrud["Server"]["Create"] {
|
|
184
|
+
return {
|
|
185
|
+
display_name: options.displayName,
|
|
186
|
+
profile_image_url: options.profileImageUrl,
|
|
187
|
+
creator_user_id: options.creatorUserId,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export type ServerTeamUpdateOptions = TeamUpdateOptions & {
|
|
192
|
+
clientReadOnlyMetadata?: ReadonlyJson,
|
|
193
|
+
serverMetadata?: ReadonlyJson,
|
|
194
|
+
};
|
|
195
|
+
export function serverTeamUpdateOptionsToCrud(options: ServerTeamUpdateOptions): TeamsCrud["Server"]["Update"] {
|
|
196
|
+
return {
|
|
197
|
+
display_name: options.displayName,
|
|
198
|
+
profile_image_url: options.profileImageUrl,
|
|
199
|
+
client_metadata: options.clientMetadata,
|
|
200
|
+
client_read_only_metadata: options.clientReadOnlyMetadata,
|
|
201
|
+
server_metadata: options.serverMetadata,
|
|
202
|
+
};
|
|
203
|
+
}
|