@stackframe/tanstack-start 0.0.1 → 2.8.92
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/LICENSE +7 -0
- package/README.md +26 -0
- package/dist/chunk-BE-pF4vm.js +34 -0
- package/dist/components/api-key-dialogs.d.ts +28 -0
- package/dist/components/api-key-dialogs.d.ts.map +1 -0
- package/dist/components/api-key-dialogs.js +163 -0
- package/dist/components/api-key-dialogs.js.map +1 -0
- package/dist/components/api-key-table.d.ts +10 -0
- package/dist/components/api-key-table.d.ts.map +1 -0
- package/dist/components/api-key-table.js +144 -0
- package/dist/components/api-key-table.js.map +1 -0
- package/dist/components/credential-sign-in.d.ts +7 -0
- package/dist/components/credential-sign-in.d.ts.map +1 -0
- package/dist/components/credential-sign-in.js +87 -0
- package/dist/components/credential-sign-in.js.map +1 -0
- package/dist/components/credential-sign-up.d.ts +9 -0
- package/dist/components/credential-sign-up.d.ts.map +1 -0
- package/dist/components/credential-sign-up.js +121 -0
- package/dist/components/credential-sign-up.js.map +1 -0
- package/dist/components/elements/form-warning.d.ts +11 -0
- package/dist/components/elements/form-warning.d.ts.map +1 -0
- package/dist/components/elements/form-warning.js +18 -0
- package/dist/components/elements/form-warning.js.map +1 -0
- package/dist/components/elements/maybe-full-page.d.ts +16 -0
- package/dist/components/elements/maybe-full-page.d.ts.map +1 -0
- package/dist/components/elements/maybe-full-page.js +41 -0
- package/dist/components/elements/maybe-full-page.js.map +1 -0
- package/dist/components/elements/separator-with-text.d.ts +11 -0
- package/dist/components/elements/separator-with-text.d.ts.map +1 -0
- package/dist/components/elements/separator-with-text.js +31 -0
- package/dist/components/elements/separator-with-text.js.map +1 -0
- package/dist/components/elements/sidebar-layout.d.ts +21 -0
- package/dist/components/elements/sidebar-layout.d.ts.map +1 -0
- package/dist/components/elements/sidebar-layout.js +135 -0
- package/dist/components/elements/sidebar-layout.js.map +1 -0
- package/dist/components/elements/ssr-layout-effect.d.ts +10 -0
- package/dist/components/elements/ssr-layout-effect.d.ts.map +1 -0
- package/dist/components/elements/ssr-layout-effect.js +22 -0
- package/dist/components/elements/ssr-layout-effect.js.map +1 -0
- package/dist/components/elements/user-avatar.d.ts +15 -0
- package/dist/components/elements/user-avatar.d.ts.map +1 -0
- package/dist/components/elements/user-avatar.js +30 -0
- package/dist/components/elements/user-avatar.js.map +1 -0
- package/dist/components/link.d.ts +16 -0
- package/dist/components/link.d.ts.map +1 -0
- package/dist/components/link.js +29 -0
- package/dist/components/link.js.map +1 -0
- package/dist/components/magic-link-sign-in.d.ts +7 -0
- package/dist/components/magic-link-sign-in.d.ts.map +1 -0
- package/dist/components/magic-link-sign-in.js +138 -0
- package/dist/components/magic-link-sign-in.js.map +1 -0
- package/dist/components/message-cards/known-error-message-card.d.ts +14 -0
- package/dist/components/message-cards/known-error-message-card.d.ts.map +1 -0
- package/dist/components/message-cards/known-error-message-card.js +24 -0
- package/dist/components/message-cards/known-error-message-card.js.map +1 -0
- package/dist/components/message-cards/message-card.d.ts +19 -0
- package/dist/components/message-cards/message-card.d.ts.map +1 -0
- package/dist/components/message-cards/message-card.js +46 -0
- package/dist/components/message-cards/message-card.js.map +1 -0
- package/dist/components/message-cards/predefined-message-card.d.ts +13 -0
- package/dist/components/message-cards/predefined-message-card.d.ts.map +1 -0
- package/dist/components/message-cards/predefined-message-card.js +73 -0
- package/dist/components/message-cards/predefined-message-card.js.map +1 -0
- package/dist/components/oauth-button-group.d.ts +19 -0
- package/dist/components/oauth-button-group.d.ts.map +1 -0
- package/dist/components/oauth-button-group.js +24 -0
- package/dist/components/oauth-button-group.js.map +1 -0
- package/dist/components/oauth-button.d.ts +17 -0
- package/dist/components/oauth-button.d.ts.map +1 -0
- package/dist/components/oauth-button.js +173 -0
- package/dist/components/oauth-button.js.map +1 -0
- package/dist/components/passkey-button.d.ts +11 -0
- package/dist/components/passkey-button.d.ts.map +1 -0
- package/dist/components/passkey-button.js +33 -0
- package/dist/components/passkey-button.js.map +1 -0
- package/dist/components/profile-image-editor.d.ts +15 -0
- package/dist/components/profile-image-editor.d.ts.map +1 -0
- package/dist/components/profile-image-editor.js +171 -0
- package/dist/components/profile-image-editor.js.map +1 -0
- package/dist/components/selected-team-switcher.d.ts +31 -0
- package/dist/components/selected-team-switcher.d.ts.map +1 -0
- package/dist/components/selected-team-switcher.js +59 -0
- package/dist/components/selected-team-switcher.js.map +1 -0
- package/dist/components/team-icon.d.ts +10 -0
- package/dist/components/team-icon.d.ts.map +1 -0
- package/dist/components/team-icon.js +31 -0
- package/dist/components/team-icon.js.map +1 -0
- package/dist/components/team-switcher.d.ts +31 -0
- package/dist/components/team-switcher.d.ts.map +1 -0
- package/dist/components/team-switcher.js +123 -0
- package/dist/components/team-switcher.js.map +1 -0
- package/dist/components/use-in-iframe.d.ts +5 -0
- package/dist/components/use-in-iframe.d.ts.map +1 -0
- package/dist/components/use-in-iframe.js +18 -0
- package/dist/components/use-in-iframe.js.map +1 -0
- package/dist/components/user-button.d.ts +22 -0
- package/dist/components/user-button.d.ts.map +1 -0
- package/dist/components/user-button.js +134 -0
- package/dist/components/user-button.js.map +1 -0
- package/dist/components-page/account-settings/active-sessions/active-sessions-page.d.ts +20 -0
- package/dist/components-page/account-settings/active-sessions/active-sessions-page.d.ts.map +1 -0
- package/dist/components-page/account-settings/active-sessions/active-sessions-page.js +208 -0
- package/dist/components-page/account-settings/active-sessions/active-sessions-page.js.map +1 -0
- package/dist/components-page/account-settings/api-keys/api-keys-page.d.ts +16 -0
- package/dist/components-page/account-settings/api-keys/api-keys-page.d.ts.map +1 -0
- package/dist/components-page/account-settings/api-keys/api-keys-page.js +115 -0
- package/dist/components-page/account-settings/api-keys/api-keys-page.js.map +1 -0
- package/dist/components-page/account-settings/editable-text.d.ts +10 -0
- package/dist/components-page/account-settings/editable-text.d.ts.map +1 -0
- package/dist/components-page/account-settings/editable-text.js +49 -0
- package/dist/components-page/account-settings/editable-text.js.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/email-and-auth-page.d.ts +9 -0
- package/dist/components-page/account-settings/email-and-auth/email-and-auth-page.d.ts.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/email-and-auth-page.js +24 -0
- package/dist/components-page/account-settings/email-and-auth/email-and-auth-page.js.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/emails-section.d.ts +9 -0
- package/dist/components-page/account-settings/email-and-auth/emails-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/emails-section.js +181 -0
- package/dist/components-page/account-settings/email-and-auth/emails-section.js.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/mfa-section.d.ts +9 -0
- package/dist/components-page/account-settings/email-and-auth/mfa-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/mfa-section.js +121 -0
- package/dist/components-page/account-settings/email-and-auth/mfa-section.js.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/otp-section.d.ts +9 -0
- package/dist/components-page/account-settings/email-and-auth/otp-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/otp-section.js +80 -0
- package/dist/components-page/account-settings/email-and-auth/otp-section.js.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/passkey-section.d.ts +9 -0
- package/dist/components-page/account-settings/email-and-auth/passkey-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/passkey-section.js +89 -0
- package/dist/components-page/account-settings/email-and-auth/passkey-section.js.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/password-section.d.ts +9 -0
- package/dist/components-page/account-settings/email-and-auth/password-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/email-and-auth/password-section.js +161 -0
- package/dist/components-page/account-settings/email-and-auth/password-section.js.map +1 -0
- package/dist/components-page/account-settings/notifications/notifications-page.d.ts +7 -0
- package/dist/components-page/account-settings/notifications/notifications-page.d.ts.map +1 -0
- package/dist/components-page/account-settings/notifications/notifications-page.js +42 -0
- package/dist/components-page/account-settings/notifications/notifications-page.js.map +1 -0
- package/dist/components-page/account-settings/page-layout.d.ts +9 -0
- package/dist/components-page/account-settings/page-layout.d.ts.map +1 -0
- package/dist/components-page/account-settings/page-layout.js +15 -0
- package/dist/components-page/account-settings/page-layout.js.map +1 -0
- package/dist/components-page/account-settings/payments/payments-page.d.ts +12 -0
- package/dist/components-page/account-settings/payments/payments-page.d.ts.map +1 -0
- package/dist/components-page/account-settings/payments/payments-page.js +55 -0
- package/dist/components-page/account-settings/payments/payments-page.js.map +1 -0
- package/dist/components-page/account-settings/payments/payments-panel.d.ts +61 -0
- package/dist/components-page/account-settings/payments/payments-panel.d.ts.map +1 -0
- package/dist/components-page/account-settings/payments/payments-panel.js +466 -0
- package/dist/components-page/account-settings/payments/payments-panel.js.map +1 -0
- package/dist/components-page/account-settings/profile-page/profile-page.d.ts +12 -0
- package/dist/components-page/account-settings/profile-page/profile-page.d.ts.map +1 -0
- package/dist/components-page/account-settings/profile-page/profile-page.js +46 -0
- package/dist/components-page/account-settings/profile-page/profile-page.js.map +1 -0
- package/dist/components-page/account-settings/section.d.ts +11 -0
- package/dist/components-page/account-settings/section.d.ts.map +1 -0
- package/dist/components-page/account-settings/section.js +29 -0
- package/dist/components-page/account-settings/section.js.map +1 -0
- package/dist/components-page/account-settings/settings/delete-account-section.d.ts +9 -0
- package/dist/components-page/account-settings/settings/delete-account-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/settings/delete-account-section.js +70 -0
- package/dist/components-page/account-settings/settings/delete-account-section.js.map +1 -0
- package/dist/components-page/account-settings/settings/settings-page.d.ts +9 -0
- package/dist/components-page/account-settings/settings/settings-page.d.ts.map +1 -0
- package/dist/components-page/account-settings/settings/settings-page.js +15 -0
- package/dist/components-page/account-settings/settings/settings-page.js.map +1 -0
- package/dist/components-page/account-settings/settings/sign-out-section.d.ts +9 -0
- package/dist/components-page/account-settings/settings/sign-out-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/settings/sign-out-section.js +33 -0
- package/dist/components-page/account-settings/settings/sign-out-section.js.map +1 -0
- package/dist/components-page/account-settings/teams/leave-team-section.d.ts +10 -0
- package/dist/components-page/account-settings/teams/leave-team-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/teams/leave-team-section.js +48 -0
- package/dist/components-page/account-settings/teams/leave-team-section.js.map +1 -0
- package/dist/components-page/account-settings/teams/team-api-keys-section.d.ts +10 -0
- package/dist/components-page/account-settings/teams/team-api-keys-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/teams/team-api-keys-section.js +57 -0
- package/dist/components-page/account-settings/teams/team-api-keys-section.js.map +1 -0
- package/dist/components-page/account-settings/teams/team-creation-page.d.ts +9 -0
- package/dist/components-page/account-settings/teams/team-creation-page.d.ts.map +1 -0
- package/dist/components-page/account-settings/teams/team-creation-page.js +67 -0
- package/dist/components-page/account-settings/teams/team-creation-page.js.map +1 -0
- package/dist/components-page/account-settings/teams/team-display-name-section.d.ts +10 -0
- package/dist/components-page/account-settings/teams/team-display-name-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/teams/team-display-name-section.js +25 -0
- package/dist/components-page/account-settings/teams/team-display-name-section.js.map +1 -0
- package/dist/components-page/account-settings/teams/team-member-invitation-section.d.ts +10 -0
- package/dist/components-page/account-settings/teams/team-member-invitation-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/teams/team-member-invitation-section.js +114 -0
- package/dist/components-page/account-settings/teams/team-member-invitation-section.js.map +1 -0
- package/dist/components-page/account-settings/teams/team-member-list-section.d.ts +10 -0
- package/dist/components-page/account-settings/teams/team-member-list-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/teams/team-member-list-section.js +40 -0
- package/dist/components-page/account-settings/teams/team-member-list-section.js.map +1 -0
- package/dist/components-page/account-settings/teams/team-page.d.ts +10 -0
- package/dist/components-page/account-settings/teams/team-page.d.ts.map +1 -0
- package/dist/components-page/account-settings/teams/team-page.js +28 -0
- package/dist/components-page/account-settings/teams/team-page.js.map +1 -0
- package/dist/components-page/account-settings/teams/team-profile-image-section.d.ts +10 -0
- package/dist/components-page/account-settings/teams/team-profile-image-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/teams/team-profile-image-section.js +27 -0
- package/dist/components-page/account-settings/teams/team-profile-image-section.js.map +1 -0
- package/dist/components-page/account-settings/teams/team-profile-user-section.d.ts +10 -0
- package/dist/components-page/account-settings/teams/team-profile-user-section.d.ts.map +1 -0
- package/dist/components-page/account-settings/teams/team-profile-user-section.js +27 -0
- package/dist/components-page/account-settings/teams/team-profile-user-section.js.map +1 -0
- package/dist/components-page/account-settings.d.ts +58 -0
- package/dist/components-page/account-settings.d.ts.map +1 -0
- package/dist/components-page/account-settings.js +267 -0
- package/dist/components-page/account-settings.js.map +1 -0
- package/dist/components-page/auth-page.d.ts +26 -0
- package/dist/components-page/auth-page.d.ts.map +1 -0
- package/dist/components-page/auth-page.js +163 -0
- package/dist/components-page/auth-page.js.map +1 -0
- package/dist/components-page/cli-auth-confirm.d.ts +21 -0
- package/dist/components-page/cli-auth-confirm.d.ts.map +1 -0
- package/dist/components-page/cli-auth-confirm.js +216 -0
- package/dist/components-page/cli-auth-confirm.js.map +1 -0
- package/dist/components-page/cli-auth-confirm.test.d.ts +1 -0
- package/dist/components-page/cli-auth-confirm.test.js +176 -0
- package/dist/components-page/cli-auth-confirm.test.js.map +1 -0
- package/dist/components-page/email-verification.d.ts +10 -0
- package/dist/components-page/email-verification.d.ts.map +1 -0
- package/dist/components-page/email-verification.js +60 -0
- package/dist/components-page/email-verification.js.map +1 -0
- package/dist/components-page/error-page.d.ts +10 -0
- package/dist/components-page/error-page.d.ts.map +1 -0
- package/dist/components-page/error-page.js +77 -0
- package/dist/components-page/error-page.js.map +1 -0
- package/dist/components-page/forgot-password.d.ts +14 -0
- package/dist/components-page/forgot-password.d.ts.map +1 -0
- package/dist/components-page/forgot-password.js +103 -0
- package/dist/components-page/forgot-password.js.map +1 -0
- package/dist/components-page/magic-link-callback.d.ts +10 -0
- package/dist/components-page/magic-link-callback.d.ts.map +1 -0
- package/dist/components-page/magic-link-callback.js +75 -0
- package/dist/components-page/magic-link-callback.js.map +1 -0
- package/dist/components-page/mfa.d.ts +11 -0
- package/dist/components-page/mfa.d.ts.map +1 -0
- package/dist/components-page/mfa.js +166 -0
- package/dist/components-page/mfa.js.map +1 -0
- package/dist/components-page/oauth-callback.d.ts +11 -0
- package/dist/components-page/oauth-callback.d.ts.map +1 -0
- package/dist/components-page/oauth-callback.js +72 -0
- package/dist/components-page/oauth-callback.js.map +1 -0
- package/dist/components-page/onboarding.d.ts +9 -0
- package/dist/components-page/onboarding.d.ts.map +1 -0
- package/dist/components-page/onboarding.js +140 -0
- package/dist/components-page/onboarding.js.map +1 -0
- package/dist/components-page/password-reset.d.ts +17 -0
- package/dist/components-page/password-reset.d.ts.map +1 -0
- package/dist/components-page/password-reset.js +161 -0
- package/dist/components-page/password-reset.js.map +1 -0
- package/dist/components-page/section.d.ts +1 -0
- package/dist/components-page/section.js +2 -0
- package/dist/components-page/sign-in.d.ts +23 -0
- package/dist/components-page/sign-in.d.ts.map +1 -0
- package/dist/components-page/sign-in.js +20 -0
- package/dist/components-page/sign-in.js.map +1 -0
- package/dist/components-page/sign-out.d.ts +9 -0
- package/dist/components-page/sign-out.d.ts.map +1 -0
- package/dist/components-page/sign-out.js +26 -0
- package/dist/components-page/sign-out.js.map +1 -0
- package/dist/components-page/sign-up.d.ts +13 -0
- package/dist/components-page/sign-up.d.ts.map +1 -0
- package/dist/components-page/sign-up.js +22 -0
- package/dist/components-page/sign-up.js.map +1 -0
- package/dist/components-page/stack-handler-client.d.ts +50 -0
- package/dist/components-page/stack-handler-client.d.ts.map +1 -0
- package/dist/components-page/stack-handler-client.js +235 -0
- package/dist/components-page/stack-handler-client.js.map +1 -0
- package/dist/components-page/stack-handler.d.ts +32 -0
- package/dist/components-page/stack-handler.d.ts.map +1 -0
- package/dist/components-page/stack-handler.js +12 -0
- package/dist/components-page/stack-handler.js.map +1 -0
- package/dist/components-page/team-creation.d.ts +9 -0
- package/dist/components-page/team-creation.d.ts.map +1 -0
- package/dist/components-page/team-creation.js +80 -0
- package/dist/components-page/team-creation.js.map +1 -0
- package/dist/components-page/team-invitation.d.ts +13 -0
- package/dist/components-page/team-invitation.d.ts.map +1 -0
- package/dist/components-page/team-invitation.js +109 -0
- package/dist/components-page/team-invitation.js.map +1 -0
- package/dist/dev-tool/dev-tool-core.d.ts +7 -0
- package/dist/dev-tool/dev-tool-core.d.ts.map +1 -0
- package/dist/dev-tool/dev-tool-core.js +2107 -0
- package/dist/dev-tool/dev-tool-core.js.map +1 -0
- package/dist/dev-tool/dev-tool-styles.d.ts +5 -0
- package/dist/dev-tool/dev-tool-styles.d.ts.map +1 -0
- package/dist/dev-tool/dev-tool-styles.js +2757 -0
- package/dist/dev-tool/dev-tool-styles.js.map +1 -0
- package/dist/dev-tool/dev-tool-trigger-position.d.ts +36 -0
- package/dist/dev-tool/dev-tool-trigger-position.d.ts.map +1 -0
- package/dist/dev-tool/dev-tool-trigger-position.js +70 -0
- package/dist/dev-tool/dev-tool-trigger-position.js.map +1 -0
- package/dist/dev-tool/dev-tool-trigger-position.test.d.ts +1 -0
- package/dist/dev-tool/dev-tool-trigger-position.test.js +155 -0
- package/dist/dev-tool/dev-tool-trigger-position.test.js.map +1 -0
- package/dist/dev-tool/index.d.ts +19 -0
- package/dist/dev-tool/index.d.ts.map +1 -0
- package/dist/dev-tool/index.js +119 -0
- package/dist/dev-tool/index.js.map +1 -0
- package/dist/esm/components/api-key-dialogs.d.ts +28 -0
- package/dist/esm/components/api-key-dialogs.d.ts.map +1 -0
- package/dist/esm/components/api-key-dialogs.js +158 -0
- package/dist/esm/components/api-key-dialogs.js.map +1 -0
- package/dist/esm/components/api-key-table.d.ts +10 -0
- package/dist/esm/components/api-key-table.d.ts.map +1 -0
- package/dist/esm/components/api-key-table.js +142 -0
- package/dist/esm/components/api-key-table.js.map +1 -0
- package/dist/esm/components/credential-sign-in.d.ts +7 -0
- package/dist/esm/components/credential-sign-in.d.ts.map +1 -0
- package/dist/esm/components/credential-sign-in.js +85 -0
- package/dist/esm/components/credential-sign-in.js.map +1 -0
- package/dist/esm/components/credential-sign-up.d.ts +9 -0
- package/dist/esm/components/credential-sign-up.d.ts.map +1 -0
- package/dist/esm/components/credential-sign-up.js +117 -0
- package/dist/esm/components/credential-sign-up.js.map +1 -0
- package/dist/esm/components/elements/form-warning.d.ts +11 -0
- package/dist/esm/components/elements/form-warning.d.ts.map +1 -0
- package/dist/esm/components/elements/form-warning.js +16 -0
- package/dist/esm/components/elements/form-warning.js.map +1 -0
- package/dist/esm/components/elements/maybe-full-page.d.ts +16 -0
- package/dist/esm/components/elements/maybe-full-page.d.ts.map +1 -0
- package/dist/esm/components/elements/maybe-full-page.js +38 -0
- package/dist/esm/components/elements/maybe-full-page.js.map +1 -0
- package/dist/esm/components/elements/separator-with-text.d.ts +11 -0
- package/dist/esm/components/elements/separator-with-text.d.ts.map +1 -0
- package/dist/esm/components/elements/separator-with-text.js +29 -0
- package/dist/esm/components/elements/separator-with-text.js.map +1 -0
- package/dist/esm/components/elements/sidebar-layout.d.ts +21 -0
- package/dist/esm/components/elements/sidebar-layout.d.ts.map +1 -0
- package/dist/esm/components/elements/sidebar-layout.js +132 -0
- package/dist/esm/components/elements/sidebar-layout.js.map +1 -0
- package/dist/esm/components/elements/ssr-layout-effect.d.ts +10 -0
- package/dist/esm/components/elements/ssr-layout-effect.d.ts.map +1 -0
- package/dist/esm/components/elements/ssr-layout-effect.js +20 -0
- package/dist/esm/components/elements/ssr-layout-effect.js.map +1 -0
- package/dist/esm/components/elements/user-avatar.d.ts +15 -0
- package/dist/esm/components/elements/user-avatar.d.ts.map +1 -0
- package/dist/esm/components/elements/user-avatar.js +28 -0
- package/dist/esm/components/elements/user-avatar.js.map +1 -0
- package/dist/esm/components/link.d.ts +16 -0
- package/dist/esm/components/link.d.ts.map +1 -0
- package/dist/esm/components/link.js +26 -0
- package/dist/esm/components/link.js.map +1 -0
- package/dist/esm/components/magic-link-sign-in.d.ts +7 -0
- package/dist/esm/components/magic-link-sign-in.d.ts.map +1 -0
- package/dist/esm/components/magic-link-sign-in.js +136 -0
- package/dist/esm/components/magic-link-sign-in.js.map +1 -0
- package/dist/esm/components/message-cards/known-error-message-card.d.ts +14 -0
- package/dist/esm/components/message-cards/known-error-message-card.d.ts.map +1 -0
- package/dist/esm/components/message-cards/known-error-message-card.js +22 -0
- package/dist/esm/components/message-cards/known-error-message-card.js.map +1 -0
- package/dist/esm/components/message-cards/message-card.d.ts +19 -0
- package/dist/esm/components/message-cards/message-card.d.ts.map +1 -0
- package/dist/esm/components/message-cards/message-card.js +43 -0
- package/dist/esm/components/message-cards/message-card.js.map +1 -0
- package/dist/esm/components/message-cards/predefined-message-card.d.ts +13 -0
- package/dist/esm/components/message-cards/predefined-message-card.d.ts.map +1 -0
- package/dist/esm/components/message-cards/predefined-message-card.js +71 -0
- package/dist/esm/components/message-cards/predefined-message-card.js.map +1 -0
- package/dist/esm/components/oauth-button-group.d.ts +19 -0
- package/dist/esm/components/oauth-button-group.d.ts.map +1 -0
- package/dist/esm/components/oauth-button-group.js +22 -0
- package/dist/esm/components/oauth-button-group.js.map +1 -0
- package/dist/esm/components/oauth-button.d.ts +17 -0
- package/dist/esm/components/oauth-button.d.ts.map +1 -0
- package/dist/esm/components/oauth-button.js +170 -0
- package/dist/esm/components/oauth-button.js.map +1 -0
- package/dist/esm/components/passkey-button.d.ts +11 -0
- package/dist/esm/components/passkey-button.d.ts.map +1 -0
- package/dist/esm/components/passkey-button.js +31 -0
- package/dist/esm/components/passkey-button.js.map +1 -0
- package/dist/esm/components/profile-image-editor.d.ts +15 -0
- package/dist/esm/components/profile-image-editor.d.ts.map +1 -0
- package/dist/esm/components/profile-image-editor.js +165 -0
- package/dist/esm/components/profile-image-editor.js.map +1 -0
- package/dist/esm/components/selected-team-switcher.d.ts +31 -0
- package/dist/esm/components/selected-team-switcher.d.ts.map +1 -0
- package/dist/esm/components/selected-team-switcher.js +57 -0
- package/dist/esm/components/selected-team-switcher.js.map +1 -0
- package/dist/esm/components/team-icon.d.ts +10 -0
- package/dist/esm/components/team-icon.d.ts.map +1 -0
- package/dist/esm/components/team-icon.js +29 -0
- package/dist/esm/components/team-icon.js.map +1 -0
- package/dist/esm/components/team-switcher.d.ts +31 -0
- package/dist/esm/components/team-switcher.d.ts.map +1 -0
- package/dist/esm/components/team-switcher.js +121 -0
- package/dist/esm/components/team-switcher.js.map +1 -0
- package/dist/esm/components/use-in-iframe.d.ts +5 -0
- package/dist/esm/components/use-in-iframe.d.ts.map +1 -0
- package/dist/esm/components/use-in-iframe.js +16 -0
- package/dist/esm/components/use-in-iframe.js.map +1 -0
- package/dist/esm/components/user-button.d.ts +22 -0
- package/dist/esm/components/user-button.d.ts.map +1 -0
- package/dist/esm/components/user-button.js +131 -0
- package/dist/esm/components/user-button.js.map +1 -0
- package/dist/esm/components-page/account-settings/active-sessions/active-sessions-page.d.ts +20 -0
- package/dist/esm/components-page/account-settings/active-sessions/active-sessions-page.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/active-sessions/active-sessions-page.js +206 -0
- package/dist/esm/components-page/account-settings/active-sessions/active-sessions-page.js.map +1 -0
- package/dist/esm/components-page/account-settings/api-keys/api-keys-page.d.ts +16 -0
- package/dist/esm/components-page/account-settings/api-keys/api-keys-page.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/api-keys/api-keys-page.js +113 -0
- package/dist/esm/components-page/account-settings/api-keys/api-keys-page.js.map +1 -0
- package/dist/esm/components-page/account-settings/editable-text.d.ts +10 -0
- package/dist/esm/components-page/account-settings/editable-text.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/editable-text.js +47 -0
- package/dist/esm/components-page/account-settings/editable-text.js.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/email-and-auth-page.d.ts +9 -0
- package/dist/esm/components-page/account-settings/email-and-auth/email-and-auth-page.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/email-and-auth-page.js +22 -0
- package/dist/esm/components-page/account-settings/email-and-auth/email-and-auth-page.js.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/emails-section.d.ts +9 -0
- package/dist/esm/components-page/account-settings/email-and-auth/emails-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/emails-section.js +179 -0
- package/dist/esm/components-page/account-settings/email-and-auth/emails-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/mfa-section.d.ts +9 -0
- package/dist/esm/components-page/account-settings/email-and-auth/mfa-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/mfa-section.js +118 -0
- package/dist/esm/components-page/account-settings/email-and-auth/mfa-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/otp-section.d.ts +9 -0
- package/dist/esm/components-page/account-settings/email-and-auth/otp-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/otp-section.js +78 -0
- package/dist/esm/components-page/account-settings/email-and-auth/otp-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/passkey-section.d.ts +9 -0
- package/dist/esm/components-page/account-settings/email-and-auth/passkey-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/passkey-section.js +87 -0
- package/dist/esm/components-page/account-settings/email-and-auth/passkey-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/password-section.d.ts +9 -0
- package/dist/esm/components-page/account-settings/email-and-auth/password-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/email-and-auth/password-section.js +158 -0
- package/dist/esm/components-page/account-settings/email-and-auth/password-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/notifications/notifications-page.d.ts +7 -0
- package/dist/esm/components-page/account-settings/notifications/notifications-page.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/notifications/notifications-page.js +40 -0
- package/dist/esm/components-page/account-settings/notifications/notifications-page.js.map +1 -0
- package/dist/esm/components-page/account-settings/page-layout.d.ts +9 -0
- package/dist/esm/components-page/account-settings/page-layout.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/page-layout.js +13 -0
- package/dist/esm/components-page/account-settings/page-layout.js.map +1 -0
- package/dist/esm/components-page/account-settings/payments/payments-page.d.ts +12 -0
- package/dist/esm/components-page/account-settings/payments/payments-page.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/payments/payments-page.js +53 -0
- package/dist/esm/components-page/account-settings/payments/payments-page.js.map +1 -0
- package/dist/esm/components-page/account-settings/payments/payments-panel.d.ts +61 -0
- package/dist/esm/components-page/account-settings/payments/payments-panel.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/payments/payments-panel.js +464 -0
- package/dist/esm/components-page/account-settings/payments/payments-panel.js.map +1 -0
- package/dist/esm/components-page/account-settings/profile-page/profile-page.d.ts +12 -0
- package/dist/esm/components-page/account-settings/profile-page/profile-page.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/profile-page/profile-page.js +44 -0
- package/dist/esm/components-page/account-settings/profile-page/profile-page.js.map +1 -0
- package/dist/esm/components-page/account-settings/section.d.ts +11 -0
- package/dist/esm/components-page/account-settings/section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/section.js +27 -0
- package/dist/esm/components-page/account-settings/section.js.map +1 -0
- package/dist/esm/components-page/account-settings/settings/delete-account-section.d.ts +9 -0
- package/dist/esm/components-page/account-settings/settings/delete-account-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/settings/delete-account-section.js +68 -0
- package/dist/esm/components-page/account-settings/settings/delete-account-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/settings/settings-page.d.ts +9 -0
- package/dist/esm/components-page/account-settings/settings/settings-page.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/settings/settings-page.js +13 -0
- package/dist/esm/components-page/account-settings/settings/settings-page.js.map +1 -0
- package/dist/esm/components-page/account-settings/settings/sign-out-section.d.ts +9 -0
- package/dist/esm/components-page/account-settings/settings/sign-out-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/settings/sign-out-section.js +31 -0
- package/dist/esm/components-page/account-settings/settings/sign-out-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/teams/leave-team-section.d.ts +10 -0
- package/dist/esm/components-page/account-settings/teams/leave-team-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/teams/leave-team-section.js +46 -0
- package/dist/esm/components-page/account-settings/teams/leave-team-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-api-keys-section.d.ts +10 -0
- package/dist/esm/components-page/account-settings/teams/team-api-keys-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-api-keys-section.js +55 -0
- package/dist/esm/components-page/account-settings/teams/team-api-keys-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-creation-page.d.ts +9 -0
- package/dist/esm/components-page/account-settings/teams/team-creation-page.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-creation-page.js +65 -0
- package/dist/esm/components-page/account-settings/teams/team-creation-page.js.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-display-name-section.d.ts +10 -0
- package/dist/esm/components-page/account-settings/teams/team-display-name-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-display-name-section.js +23 -0
- package/dist/esm/components-page/account-settings/teams/team-display-name-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.d.ts +10 -0
- package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.js +112 -0
- package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-member-list-section.d.ts +10 -0
- package/dist/esm/components-page/account-settings/teams/team-member-list-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-member-list-section.js +38 -0
- package/dist/esm/components-page/account-settings/teams/team-member-list-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-page.d.ts +10 -0
- package/dist/esm/components-page/account-settings/teams/team-page.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-page.js +26 -0
- package/dist/esm/components-page/account-settings/teams/team-page.js.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-profile-image-section.d.ts +10 -0
- package/dist/esm/components-page/account-settings/teams/team-profile-image-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-profile-image-section.js +25 -0
- package/dist/esm/components-page/account-settings/teams/team-profile-image-section.js.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-profile-user-section.d.ts +10 -0
- package/dist/esm/components-page/account-settings/teams/team-profile-user-section.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings/teams/team-profile-user-section.js +25 -0
- package/dist/esm/components-page/account-settings/teams/team-profile-user-section.js.map +1 -0
- package/dist/esm/components-page/account-settings.d.ts +58 -0
- package/dist/esm/components-page/account-settings.d.ts.map +1 -0
- package/dist/esm/components-page/account-settings.js +264 -0
- package/dist/esm/components-page/account-settings.js.map +1 -0
- package/dist/esm/components-page/auth-page.d.ts +26 -0
- package/dist/esm/components-page/auth-page.d.ts.map +1 -0
- package/dist/esm/components-page/auth-page.js +161 -0
- package/dist/esm/components-page/auth-page.js.map +1 -0
- package/dist/esm/components-page/cli-auth-confirm.d.ts +21 -0
- package/dist/esm/components-page/cli-auth-confirm.d.ts.map +1 -0
- package/dist/esm/components-page/cli-auth-confirm.js +213 -0
- package/dist/esm/components-page/cli-auth-confirm.js.map +1 -0
- package/dist/esm/components-page/cli-auth-confirm.test.d.ts +1 -0
- package/dist/esm/components-page/cli-auth-confirm.test.js +175 -0
- package/dist/esm/components-page/cli-auth-confirm.test.js.map +1 -0
- package/dist/esm/components-page/email-verification.d.ts +10 -0
- package/dist/esm/components-page/email-verification.d.ts.map +1 -0
- package/dist/esm/components-page/email-verification.js +57 -0
- package/dist/esm/components-page/email-verification.js.map +1 -0
- package/dist/esm/components-page/error-page.d.ts +10 -0
- package/dist/esm/components-page/error-page.d.ts.map +1 -0
- package/dist/esm/components-page/error-page.js +75 -0
- package/dist/esm/components-page/error-page.js.map +1 -0
- package/dist/esm/components-page/forgot-password.d.ts +14 -0
- package/dist/esm/components-page/forgot-password.d.ts.map +1 -0
- package/dist/esm/components-page/forgot-password.js +100 -0
- package/dist/esm/components-page/forgot-password.js.map +1 -0
- package/dist/esm/components-page/magic-link-callback.d.ts +10 -0
- package/dist/esm/components-page/magic-link-callback.d.ts.map +1 -0
- package/dist/esm/components-page/magic-link-callback.js +72 -0
- package/dist/esm/components-page/magic-link-callback.js.map +1 -0
- package/dist/esm/components-page/mfa.d.ts +11 -0
- package/dist/esm/components-page/mfa.d.ts.map +1 -0
- package/dist/esm/components-page/mfa.js +164 -0
- package/dist/esm/components-page/mfa.js.map +1 -0
- package/dist/esm/components-page/oauth-callback.d.ts +11 -0
- package/dist/esm/components-page/oauth-callback.d.ts.map +1 -0
- package/dist/esm/components-page/oauth-callback.js +70 -0
- package/dist/esm/components-page/oauth-callback.js.map +1 -0
- package/dist/esm/components-page/onboarding.d.ts +9 -0
- package/dist/esm/components-page/onboarding.d.ts.map +1 -0
- package/dist/esm/components-page/onboarding.js +138 -0
- package/dist/esm/components-page/onboarding.js.map +1 -0
- package/dist/esm/components-page/password-reset.d.ts +17 -0
- package/dist/esm/components-page/password-reset.d.ts.map +1 -0
- package/dist/esm/components-page/password-reset.js +157 -0
- package/dist/esm/components-page/password-reset.js.map +1 -0
- package/dist/esm/components-page/section.d.ts +1 -0
- package/dist/esm/components-page/section.js +4 -0
- package/dist/esm/components-page/sign-in.d.ts +23 -0
- package/dist/esm/components-page/sign-in.d.ts.map +1 -0
- package/dist/esm/components-page/sign-in.js +18 -0
- package/dist/esm/components-page/sign-in.js.map +1 -0
- package/dist/esm/components-page/sign-out.d.ts +9 -0
- package/dist/esm/components-page/sign-out.d.ts.map +1 -0
- package/dist/esm/components-page/sign-out.js +24 -0
- package/dist/esm/components-page/sign-out.js.map +1 -0
- package/dist/esm/components-page/sign-up.d.ts +13 -0
- package/dist/esm/components-page/sign-up.d.ts.map +1 -0
- package/dist/esm/components-page/sign-up.js +20 -0
- package/dist/esm/components-page/sign-up.js.map +1 -0
- package/dist/esm/components-page/stack-handler-client.d.ts +49 -0
- package/dist/esm/components-page/stack-handler-client.d.ts.map +1 -0
- package/dist/esm/components-page/stack-handler-client.js +233 -0
- package/dist/esm/components-page/stack-handler-client.js.map +1 -0
- package/dist/esm/components-page/stack-handler.d.ts +33 -0
- package/dist/esm/components-page/stack-handler.d.ts.map +1 -0
- package/dist/esm/components-page/stack-handler.js +11 -0
- package/dist/esm/components-page/stack-handler.js.map +1 -0
- package/dist/esm/components-page/team-creation.d.ts +9 -0
- package/dist/esm/components-page/team-creation.d.ts.map +1 -0
- package/dist/esm/components-page/team-creation.js +78 -0
- package/dist/esm/components-page/team-creation.js.map +1 -0
- package/dist/esm/components-page/team-invitation.d.ts +13 -0
- package/dist/esm/components-page/team-invitation.d.ts.map +1 -0
- package/dist/esm/components-page/team-invitation.js +106 -0
- package/dist/esm/components-page/team-invitation.js.map +1 -0
- package/dist/esm/dev-tool/dev-tool-core.d.ts +7 -0
- package/dist/esm/dev-tool/dev-tool-core.d.ts.map +1 -0
- package/dist/esm/dev-tool/dev-tool-core.js +2105 -0
- package/dist/esm/dev-tool/dev-tool-core.js.map +1 -0
- package/dist/esm/dev-tool/dev-tool-styles.d.ts +5 -0
- package/dist/esm/dev-tool/dev-tool-styles.d.ts.map +1 -0
- package/dist/esm/dev-tool/dev-tool-styles.js +2755 -0
- package/dist/esm/dev-tool/dev-tool-styles.js.map +1 -0
- package/dist/esm/dev-tool/dev-tool-trigger-position.d.ts +36 -0
- package/dist/esm/dev-tool/dev-tool-trigger-position.d.ts.map +1 -0
- package/dist/esm/dev-tool/dev-tool-trigger-position.js +65 -0
- package/dist/esm/dev-tool/dev-tool-trigger-position.js.map +1 -0
- package/dist/esm/dev-tool/dev-tool-trigger-position.test.d.ts +1 -0
- package/dist/esm/dev-tool/dev-tool-trigger-position.test.js +155 -0
- package/dist/esm/dev-tool/dev-tool-trigger-position.test.js.map +1 -0
- package/dist/esm/dev-tool/index.d.ts +19 -0
- package/dist/esm/dev-tool/index.d.ts.map +1 -0
- package/dist/esm/dev-tool/index.js +117 -0
- package/dist/esm/dev-tool/index.js.map +1 -0
- package/dist/esm/generated/global-css.d.ts +5 -0
- package/dist/esm/generated/global-css.d.ts.map +1 -0
- package/dist/esm/generated/global-css.js +6 -0
- package/dist/esm/generated/global-css.js.map +1 -0
- package/dist/esm/generated/quetzal-translations.d.ts +6 -0
- package/dist/esm/generated/quetzal-translations.d.ts.map +1 -0
- package/dist/esm/generated/quetzal-translations.js +4307 -0
- package/dist/esm/generated/quetzal-translations.js.map +1 -0
- package/dist/esm/global.d.ts +1 -0
- package/dist/esm/index.d.ts +27 -0
- package/dist/esm/index.js +28 -0
- package/dist/esm/integrations/convex/component/convex.config.d.ts +7 -0
- package/dist/esm/integrations/convex/component/convex.config.d.ts.map +1 -0
- package/dist/esm/integrations/convex/component/convex.config.js +8 -0
- package/dist/esm/integrations/convex/component/convex.config.js.map +1 -0
- package/dist/esm/integrations/convex.d.ts +13 -0
- package/dist/esm/integrations/convex.d.ts.map +1 -0
- package/dist/esm/integrations/convex.js +23 -0
- package/dist/esm/integrations/convex.js.map +1 -0
- package/dist/esm/lib/auth.d.ts +29 -0
- package/dist/esm/lib/auth.d.ts.map +1 -0
- package/dist/esm/lib/auth.js +108 -0
- package/dist/esm/lib/auth.js.map +1 -0
- package/dist/esm/lib/auth.test.d.ts +1 -0
- package/dist/esm/lib/auth.test.js +60 -0
- package/dist/esm/lib/auth.test.js.map +1 -0
- package/dist/esm/lib/cookie.d.ts +50 -0
- package/dist/esm/lib/cookie.d.ts.map +1 -0
- package/dist/esm/lib/cookie.js +347 -0
- package/dist/esm/lib/cookie.js.map +1 -0
- package/dist/esm/lib/env.d.ts +37 -0
- package/dist/esm/lib/env.d.ts.map +1 -0
- package/dist/esm/lib/env.js +88 -0
- package/dist/esm/lib/env.js.map +1 -0
- package/dist/esm/lib/hooks.d.ts +33 -0
- package/dist/esm/lib/hooks.d.ts.map +1 -0
- package/dist/esm/lib/hooks.js +27 -0
- package/dist/esm/lib/hooks.js.map +1 -0
- package/dist/esm/lib/stack-app/api-keys/index.d.ts +53 -0
- package/dist/esm/lib/stack-app/api-keys/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/api-keys/index.js +22 -0
- package/dist/esm/lib/stack-app/api-keys/index.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.d.ts +423 -0
- package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.js +1041 -0
- package/dist/esm/lib/stack-app/apps/implementations/admin-app-impl.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.d.ts +562 -0
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.js +2631 -0
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.d.ts +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.js +32 -0
- package/dist/esm/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/common.d.ts +66 -0
- package/dist/esm/lib/stack-app/apps/implementations/common.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/common.js +167 -0
- package/dist/esm/lib/stack-app/apps/implementations/common.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/event-tracker.d.ts +42 -0
- package/dist/esm/lib/stack-app/apps/implementations/event-tracker.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/event-tracker.js +211 -0
- package/dist/esm/lib/stack-app/apps/implementations/event-tracker.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/event-tracker.test.d.ts +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/event-tracker.test.js +87 -0
- package/dist/esm/lib/stack-app/apps/implementations/event-tracker.test.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/index.d.ts +9 -0
- package/dist/esm/lib/stack-app/apps/implementations/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/index.js +27 -0
- package/dist/esm/lib/stack-app/apps/implementations/index.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/redirect-page-urls.d.ts +35 -0
- package/dist/esm/lib/stack-app/apps/implementations/redirect-page-urls.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/redirect-page-urls.js +187 -0
- package/dist/esm/lib/stack-app/apps/implementations/redirect-page-urls.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/server-app-impl.d.ts +260 -0
- package/dist/esm/lib/stack-app/apps/implementations/server-app-impl.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/server-app-impl.js +1383 -0
- package/dist/esm/lib/stack-app/apps/implementations/server-app-impl.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.d.ts +28 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.js +31 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.test.d.ts +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.test.js +82 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-refresh-subscription.test.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-replay.d.ts +108 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-replay.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-replay.js +234 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-replay.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-replay.test.d.ts +1 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-replay.test.js +29 -0
- package/dist/esm/lib/stack-app/apps/implementations/session-replay.test.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/index.d.ts +4 -0
- package/dist/esm/lib/stack-app/apps/index.js +5 -0
- package/dist/esm/lib/stack-app/apps/interfaces/admin-app.d.ts +252 -0
- package/dist/esm/lib/stack-app/apps/interfaces/admin-app.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/interfaces/admin-app.js +8 -0
- package/dist/esm/lib/stack-app/apps/interfaces/admin-app.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/interfaces/client-app.d.ts +220 -0
- package/dist/esm/lib/stack-app/apps/interfaces/client-app.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/interfaces/client-app.js +8 -0
- package/dist/esm/lib/stack-app/apps/interfaces/client-app.js.map +1 -0
- package/dist/esm/lib/stack-app/apps/interfaces/server-app.d.ts +153 -0
- package/dist/esm/lib/stack-app/apps/interfaces/server-app.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/apps/interfaces/server-app.js +8 -0
- package/dist/esm/lib/stack-app/apps/interfaces/server-app.js.map +1 -0
- package/dist/esm/lib/stack-app/common.d.ts +183 -0
- package/dist/esm/lib/stack-app/common.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/common.js +7 -0
- package/dist/esm/lib/stack-app/common.js.map +1 -0
- package/dist/esm/lib/stack-app/connected-accounts/index.d.ts +57 -0
- package/dist/esm/lib/stack-app/connected-accounts/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/connected-accounts/index.js +1 -0
- package/dist/esm/lib/stack-app/contact-channels/index.d.ts +43 -0
- package/dist/esm/lib/stack-app/contact-channels/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/contact-channels/index.js +39 -0
- package/dist/esm/lib/stack-app/contact-channels/index.js.map +1 -0
- package/dist/esm/lib/stack-app/customers/index.d.ts +129 -0
- package/dist/esm/lib/stack-app/customers/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/customers/index.js +1 -0
- package/dist/esm/lib/stack-app/data-vault/index.d.ts +14 -0
- package/dist/esm/lib/stack-app/data-vault/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/data-vault/index.js +1 -0
- package/dist/esm/lib/stack-app/email/index.d.ts +204 -0
- package/dist/esm/lib/stack-app/email/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/email/index.js +1 -0
- package/dist/esm/lib/stack-app/email-templates/index.d.ts +17 -0
- package/dist/esm/lib/stack-app/email-templates/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/email-templates/index.js +11 -0
- package/dist/esm/lib/stack-app/email-templates/index.js.map +1 -0
- package/dist/esm/lib/stack-app/index.d.ts +14 -0
- package/dist/esm/lib/stack-app/index.js +5 -0
- package/dist/esm/lib/stack-app/internal-api-keys/index.d.ts +42 -0
- package/dist/esm/lib/stack-app/internal-api-keys/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/internal-api-keys/index.js +14 -0
- package/dist/esm/lib/stack-app/internal-api-keys/index.js.map +1 -0
- package/dist/esm/lib/stack-app/notification-categories/index.d.ts +11 -0
- package/dist/esm/lib/stack-app/notification-categories/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/notification-categories/index.js +1 -0
- package/dist/esm/lib/stack-app/permissions/index.d.ts +43 -0
- package/dist/esm/lib/stack-app/permissions/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/permissions/index.js +31 -0
- package/dist/esm/lib/stack-app/permissions/index.js.map +1 -0
- package/dist/esm/lib/stack-app/project-configs/index.d.ts +99 -0
- package/dist/esm/lib/stack-app/project-configs/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/project-configs/index.js +1 -0
- package/dist/esm/lib/stack-app/projects/index.d.ts +147 -0
- package/dist/esm/lib/stack-app/projects/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/projects/index.js +66 -0
- package/dist/esm/lib/stack-app/projects/index.js.map +1 -0
- package/dist/esm/lib/stack-app/session-replays/index.d.ts +66 -0
- package/dist/esm/lib/stack-app/session-replays/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/session-replays/index.js +1 -0
- package/dist/esm/lib/stack-app/teams/index.d.ts +163 -0
- package/dist/esm/lib/stack-app/teams/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/teams/index.js +35 -0
- package/dist/esm/lib/stack-app/teams/index.js.map +1 -0
- package/dist/esm/lib/stack-app/url-targets.d.ts +40 -0
- package/dist/esm/lib/stack-app/url-targets.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/url-targets.js +280 -0
- package/dist/esm/lib/stack-app/url-targets.js.map +1 -0
- package/dist/esm/lib/stack-app/url-targets.test.d.ts +1 -0
- package/dist/esm/lib/stack-app/url-targets.test.js +169 -0
- package/dist/esm/lib/stack-app/url-targets.test.js.map +1 -0
- package/dist/esm/lib/stack-app/users/index.d.ts +400 -0
- package/dist/esm/lib/stack-app/users/index.d.ts.map +1 -0
- package/dist/esm/lib/stack-app/users/index.js +71 -0
- package/dist/esm/lib/stack-app/users/index.js.map +1 -0
- package/dist/esm/lib/translations.d.ts +7 -0
- package/dist/esm/lib/translations.d.ts.map +1 -0
- package/dist/esm/lib/translations.js +18 -0
- package/dist/esm/lib/translations.js.map +1 -0
- package/dist/esm/providers/stack-context.d.ts +10 -0
- package/dist/esm/providers/stack-context.d.ts.map +1 -0
- package/dist/esm/providers/stack-context.js +10 -0
- package/dist/esm/providers/stack-context.js.map +1 -0
- package/dist/esm/providers/stack-provider-client.d.ts +17 -0
- package/dist/esm/providers/stack-provider-client.d.ts.map +1 -0
- package/dist/esm/providers/stack-provider-client.js +30 -0
- package/dist/esm/providers/stack-provider-client.js.map +1 -0
- package/dist/esm/providers/stack-provider.d.ts +26 -0
- package/dist/esm/providers/stack-provider.d.ts.map +1 -0
- package/dist/esm/providers/stack-provider.js +24 -0
- package/dist/esm/providers/stack-provider.js.map +1 -0
- package/dist/esm/providers/theme-provider.d.ts +46 -0
- package/dist/esm/providers/theme-provider.d.ts.map +1 -0
- package/dist/esm/providers/theme-provider.js +68 -0
- package/dist/esm/providers/theme-provider.js.map +1 -0
- package/dist/esm/providers/translation-provider-client.d.ts +16 -0
- package/dist/esm/providers/translation-provider-client.d.ts.map +1 -0
- package/dist/esm/providers/translation-provider-client.js +20 -0
- package/dist/esm/providers/translation-provider-client.js.map +1 -0
- package/dist/esm/providers/translation-provider.d.ts +16 -0
- package/dist/esm/providers/translation-provider.d.ts.map +1 -0
- package/dist/esm/providers/translation-provider.js +23 -0
- package/dist/esm/providers/translation-provider.js.map +1 -0
- package/dist/esm/tanstack-start-server-context.combined.d.ts +12 -0
- package/dist/esm/tanstack-start-server-context.combined.d.ts.map +1 -0
- package/dist/esm/tanstack-start-server-context.combined.js +1 -0
- package/dist/esm/tanstack-start-server-context.default.d.ts +9 -0
- package/dist/esm/tanstack-start-server-context.default.d.ts.map +1 -0
- package/dist/esm/tanstack-start-server-context.default.js +10 -0
- package/dist/esm/tanstack-start-server-context.default.js.map +1 -0
- package/dist/esm/tanstack-start-server-context.server.d.ts +2 -0
- package/dist/esm/tanstack-start-server-context.server.js +3 -0
- package/dist/esm/utils/browser-script.d.ts +9 -0
- package/dist/esm/utils/browser-script.d.ts.map +1 -0
- package/dist/esm/utils/browser-script.js +105 -0
- package/dist/esm/utils/browser-script.js.map +1 -0
- package/dist/esm/utils/constants.d.ts +81 -0
- package/dist/esm/utils/constants.d.ts.map +1 -0
- package/dist/esm/utils/constants.js +82 -0
- package/dist/esm/utils/constants.js.map +1 -0
- package/dist/esm/utils/url.d.ts +5 -0
- package/dist/esm/utils/url.d.ts.map +1 -0
- package/dist/esm/utils/url.js +16 -0
- package/dist/esm/utils/url.js.map +1 -0
- package/dist/generated/global-css.d.ts +5 -0
- package/dist/generated/global-css.d.ts.map +1 -0
- package/dist/generated/global-css.js +8 -0
- package/dist/generated/global-css.js.map +1 -0
- package/dist/generated/quetzal-translations.d.ts +6 -0
- package/dist/generated/quetzal-translations.d.ts.map +1 -0
- package/dist/generated/quetzal-translations.js +4310 -0
- package/dist/generated/quetzal-translations.js.map +1 -0
- package/dist/global.d.d.ts +0 -0
- package/dist/global.d.ts +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +192 -0
- package/dist/integrations/convex/component/convex.config.d.ts +61 -0
- package/dist/integrations/convex/component/convex.config.d.ts.map +1 -0
- package/dist/integrations/convex/component/convex.config.js +9 -0
- package/dist/integrations/convex/component/convex.config.js.map +1 -0
- package/dist/integrations/convex.d.ts +13 -0
- package/dist/integrations/convex.d.ts.map +1 -0
- package/dist/integrations/convex.js +25 -0
- package/dist/integrations/convex.js.map +1 -0
- package/dist/lib/auth.d.ts +29 -0
- package/dist/lib/auth.d.ts.map +1 -0
- package/dist/lib/auth.js +111 -0
- package/dist/lib/auth.js.map +1 -0
- package/dist/lib/auth.test.d.ts +1 -0
- package/dist/lib/auth.test.js +60 -0
- package/dist/lib/auth.test.js.map +1 -0
- package/dist/lib/cookie.d.ts +50 -0
- package/dist/lib/cookie.d.ts.map +1 -0
- package/dist/lib/cookie.js +366 -0
- package/dist/lib/cookie.js.map +1 -0
- package/dist/lib/env.d.ts +37 -0
- package/dist/lib/env.d.ts.map +1 -0
- package/dist/lib/env.js +90 -0
- package/dist/lib/env.js.map +1 -0
- package/dist/lib/hooks.d.ts +35 -0
- package/dist/lib/hooks.d.ts.map +1 -0
- package/dist/lib/hooks.js +30 -0
- package/dist/lib/hooks.js.map +1 -0
- package/dist/lib/stack-app/api-keys/index.d.ts +53 -0
- package/dist/lib/stack-app/api-keys/index.d.ts.map +1 -0
- package/dist/lib/stack-app/api-keys/index.js +25 -0
- package/dist/lib/stack-app/api-keys/index.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.d.ts +421 -0
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.js +1043 -0
- package/dist/lib/stack-app/apps/implementations/admin-app-impl.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/client-app-impl.d.ts +561 -0
- package/dist/lib/stack-app/apps/implementations/client-app-impl.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/implementations/client-app-impl.js +2637 -0
- package/dist/lib/stack-app/apps/implementations/client-app-impl.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.d.ts +1 -0
- package/dist/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.js +32 -0
- package/dist/lib/stack-app/apps/implementations/client-app-impl.oauth-prefetch.test.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/common.d.ts +66 -0
- package/dist/lib/stack-app/apps/implementations/common.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/implementations/common.js +186 -0
- package/dist/lib/stack-app/apps/implementations/common.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/event-tracker.d.ts +42 -0
- package/dist/lib/stack-app/apps/implementations/event-tracker.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/implementations/event-tracker.js +213 -0
- package/dist/lib/stack-app/apps/implementations/event-tracker.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/event-tracker.test.d.ts +1 -0
- package/dist/lib/stack-app/apps/implementations/event-tracker.test.js +87 -0
- package/dist/lib/stack-app/apps/implementations/event-tracker.test.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/index.d.ts +9 -0
- package/dist/lib/stack-app/apps/implementations/index.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/implementations/index.js +31 -0
- package/dist/lib/stack-app/apps/implementations/index.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/redirect-page-urls.d.ts +35 -0
- package/dist/lib/stack-app/apps/implementations/redirect-page-urls.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/implementations/redirect-page-urls.js +191 -0
- package/dist/lib/stack-app/apps/implementations/redirect-page-urls.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/server-app-impl.d.ts +260 -0
- package/dist/lib/stack-app/apps/implementations/server-app-impl.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/implementations/server-app-impl.js +1385 -0
- package/dist/lib/stack-app/apps/implementations/server-app-impl.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.d.ts +28 -0
- package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.js +33 -0
- package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.test.d.ts +1 -0
- package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.test.js +82 -0
- package/dist/lib/stack-app/apps/implementations/session-refresh-subscription.test.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/session-replay.d.ts +108 -0
- package/dist/lib/stack-app/apps/implementations/session-replay.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/implementations/session-replay.js +242 -0
- package/dist/lib/stack-app/apps/implementations/session-replay.js.map +1 -0
- package/dist/lib/stack-app/apps/implementations/session-replay.test.d.ts +1 -0
- package/dist/lib/stack-app/apps/implementations/session-replay.test.js +29 -0
- package/dist/lib/stack-app/apps/implementations/session-replay.test.js.map +1 -0
- package/dist/lib/stack-app/apps/index.d.ts +4 -0
- package/dist/lib/stack-app/apps/index.js +24 -0
- package/dist/lib/stack-app/apps/interfaces/admin-app.d.ts +252 -0
- package/dist/lib/stack-app/apps/interfaces/admin-app.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/interfaces/admin-app.js +10 -0
- package/dist/lib/stack-app/apps/interfaces/admin-app.js.map +1 -0
- package/dist/lib/stack-app/apps/interfaces/client-app.d.ts +220 -0
- package/dist/lib/stack-app/apps/interfaces/client-app.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/interfaces/client-app.js +10 -0
- package/dist/lib/stack-app/apps/interfaces/client-app.js.map +1 -0
- package/dist/lib/stack-app/apps/interfaces/server-app.d.ts +153 -0
- package/dist/lib/stack-app/apps/interfaces/server-app.d.ts.map +1 -0
- package/dist/lib/stack-app/apps/interfaces/server-app.js +10 -0
- package/dist/lib/stack-app/apps/interfaces/server-app.js.map +1 -0
- package/dist/lib/stack-app/common.d.ts +183 -0
- package/dist/lib/stack-app/common.d.ts.map +1 -0
- package/dist/lib/stack-app/common.js +9 -0
- package/dist/lib/stack-app/common.js.map +1 -0
- package/dist/lib/stack-app/connected-accounts/index.d.ts +57 -0
- package/dist/lib/stack-app/connected-accounts/index.d.ts.map +1 -0
- package/dist/lib/stack-app/connected-accounts/index.js +0 -0
- package/dist/lib/stack-app/contact-channels/index.d.ts +43 -0
- package/dist/lib/stack-app/contact-channels/index.d.ts.map +1 -0
- package/dist/lib/stack-app/contact-channels/index.js +44 -0
- package/dist/lib/stack-app/contact-channels/index.js.map +1 -0
- package/dist/lib/stack-app/customers/index.d.ts +129 -0
- package/dist/lib/stack-app/customers/index.d.ts.map +1 -0
- package/dist/lib/stack-app/customers/index.js +0 -0
- package/dist/lib/stack-app/data-vault/index.d.ts +14 -0
- package/dist/lib/stack-app/data-vault/index.d.ts.map +1 -0
- package/dist/lib/stack-app/data-vault/index.js +0 -0
- package/dist/lib/stack-app/email/index.d.ts +204 -0
- package/dist/lib/stack-app/email/index.d.ts.map +1 -0
- package/dist/lib/stack-app/email/index.js +0 -0
- package/dist/lib/stack-app/email-templates/index.d.ts +17 -0
- package/dist/lib/stack-app/email-templates/index.d.ts.map +1 -0
- package/dist/lib/stack-app/email-templates/index.js +13 -0
- package/dist/lib/stack-app/email-templates/index.js.map +1 -0
- package/dist/lib/stack-app/index.d.ts +15 -0
- package/dist/lib/stack-app/index.js +36 -0
- package/dist/lib/stack-app/internal-api-keys/index.d.ts +42 -0
- package/dist/lib/stack-app/internal-api-keys/index.d.ts.map +1 -0
- package/dist/lib/stack-app/internal-api-keys/index.js +16 -0
- package/dist/lib/stack-app/internal-api-keys/index.js.map +1 -0
- package/dist/lib/stack-app/notification-categories/index.d.ts +11 -0
- package/dist/lib/stack-app/notification-categories/index.d.ts.map +1 -0
- package/dist/lib/stack-app/notification-categories/index.js +0 -0
- package/dist/lib/stack-app/permissions/index.d.ts +43 -0
- package/dist/lib/stack-app/permissions/index.d.ts.map +1 -0
- package/dist/lib/stack-app/permissions/index.js +36 -0
- package/dist/lib/stack-app/permissions/index.js.map +1 -0
- package/dist/lib/stack-app/project-configs/index.d.ts +99 -0
- package/dist/lib/stack-app/project-configs/index.d.ts.map +1 -0
- package/dist/lib/stack-app/project-configs/index.js +0 -0
- package/dist/lib/stack-app/projects/index.d.ts +147 -0
- package/dist/lib/stack-app/projects/index.d.ts.map +1 -0
- package/dist/lib/stack-app/projects/index.js +69 -0
- package/dist/lib/stack-app/projects/index.js.map +1 -0
- package/dist/lib/stack-app/session-replays/index.d.ts +66 -0
- package/dist/lib/stack-app/session-replays/index.d.ts.map +1 -0
- package/dist/lib/stack-app/session-replays/index.js +0 -0
- package/dist/lib/stack-app/teams/index.d.ts +163 -0
- package/dist/lib/stack-app/teams/index.d.ts.map +1 -0
- package/dist/lib/stack-app/teams/index.js +40 -0
- package/dist/lib/stack-app/teams/index.js.map +1 -0
- package/dist/lib/stack-app/url-targets.d.ts +40 -0
- package/dist/lib/stack-app/url-targets.d.ts.map +1 -0
- package/dist/lib/stack-app/url-targets.js +289 -0
- package/dist/lib/stack-app/url-targets.js.map +1 -0
- package/dist/lib/stack-app/url-targets.test.d.ts +1 -0
- package/dist/lib/stack-app/url-targets.test.js +169 -0
- package/dist/lib/stack-app/url-targets.test.js.map +1 -0
- package/dist/lib/stack-app/users/index.d.ts +400 -0
- package/dist/lib/stack-app/users/index.d.ts.map +1 -0
- package/dist/lib/stack-app/users/index.js +76 -0
- package/dist/lib/stack-app/users/index.js.map +1 -0
- package/dist/lib/translations.d.ts +7 -0
- package/dist/lib/translations.d.ts.map +1 -0
- package/dist/lib/translations.js +21 -0
- package/dist/lib/translations.js.map +1 -0
- package/dist/providers/stack-context.d.ts +10 -0
- package/dist/providers/stack-context.d.ts.map +1 -0
- package/dist/providers/stack-context.js +13 -0
- package/dist/providers/stack-context.js.map +1 -0
- package/dist/providers/stack-provider-client.d.ts +17 -0
- package/dist/providers/stack-provider-client.d.ts.map +1 -0
- package/dist/providers/stack-provider-client.js +34 -0
- package/dist/providers/stack-provider-client.js.map +1 -0
- package/dist/providers/stack-provider.d.ts +25 -0
- package/dist/providers/stack-provider.d.ts.map +1 -0
- package/dist/providers/stack-provider.js +26 -0
- package/dist/providers/stack-provider.js.map +1 -0
- package/dist/providers/theme-provider.d.ts +46 -0
- package/dist/providers/theme-provider.d.ts.map +1 -0
- package/dist/providers/theme-provider.js +72 -0
- package/dist/providers/theme-provider.js.map +1 -0
- package/dist/providers/translation-provider-client.d.ts +16 -0
- package/dist/providers/translation-provider-client.d.ts.map +1 -0
- package/dist/providers/translation-provider-client.js +23 -0
- package/dist/providers/translation-provider-client.js.map +1 -0
- package/dist/providers/translation-provider.d.ts +16 -0
- package/dist/providers/translation-provider.d.ts.map +1 -0
- package/dist/providers/translation-provider.js +25 -0
- package/dist/providers/translation-provider.js.map +1 -0
- package/dist/storage-CKzvsBxG.d.ts +1912 -0
- package/dist/storage-CKzvsBxG.d.ts.map +1 -0
- package/dist/tanstack-start-server-context.combined.d.ts +12 -0
- package/dist/tanstack-start-server-context.combined.d.ts.map +1 -0
- package/dist/tanstack-start-server-context.combined.js +0 -0
- package/dist/tanstack-start-server-context.default.d.ts +9 -0
- package/dist/tanstack-start-server-context.default.d.ts.map +1 -0
- package/dist/tanstack-start-server-context.default.js +16 -0
- package/dist/tanstack-start-server-context.default.js.map +1 -0
- package/dist/tanstack-start-server-context.server.d.ts +2 -0
- package/dist/tanstack-start-server-context.server.js +34 -0
- package/dist/utils/browser-script.d.ts +9 -0
- package/dist/utils/browser-script.d.ts.map +1 -0
- package/dist/utils/browser-script.js +107 -0
- package/dist/utils/browser-script.js.map +1 -0
- package/dist/utils/constants.d.ts +81 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +92 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/url.d.ts +5 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/dist/utils/url.js +18 -0
- package/dist/utils/url.js.map +1 -0
- package/package.json +129 -6
|
@@ -0,0 +1,1912 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/values/value.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The type of JavaScript values serializable to JSON.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
type JSONValue = null | boolean | number | string | JSONValue[] | {
|
|
8
|
+
[key: string]: JSONValue;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* An identifier for a document in Convex.
|
|
12
|
+
*
|
|
13
|
+
* Convex documents are uniquely identified by their `Id`, which is accessible
|
|
14
|
+
* on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/database/document-ids).
|
|
15
|
+
*
|
|
16
|
+
* Documents can be loaded using `db.get(id)` in query and mutation functions.
|
|
17
|
+
*
|
|
18
|
+
* IDs are base 32 encoded strings which are URL safe.
|
|
19
|
+
*
|
|
20
|
+
* IDs are just strings at runtime, but this type can be used to distinguish them from other
|
|
21
|
+
* strings at compile time.
|
|
22
|
+
*
|
|
23
|
+
* If you're using code generation, use the `Id` type generated for your data model in
|
|
24
|
+
* `convex/_generated/dataModel.d.ts`.
|
|
25
|
+
*
|
|
26
|
+
* @typeParam TableName - A string literal type of the table name (like "users").
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
type Id<TableName extends string> = string & {
|
|
31
|
+
__tableName: TableName;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A value supported by Convex.
|
|
35
|
+
*
|
|
36
|
+
* Values can be:
|
|
37
|
+
* - stored inside of documents.
|
|
38
|
+
* - used as arguments and return types to queries and mutation functions.
|
|
39
|
+
*
|
|
40
|
+
* You can see the full set of supported types at
|
|
41
|
+
* [Types](https://docs.convex.dev/using/types).
|
|
42
|
+
*
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
type Value$1 = null | bigint | number | boolean | string | ArrayBuffer | Value$1[] | {
|
|
46
|
+
[key: string]: undefined | Value$1;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* The types of {@link Value} that can be used to represent numbers.
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
type NumericValue = bigint | number;
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/type_utils.d.ts
|
|
56
|
+
/**
|
|
57
|
+
* Common utilities for manipulating TypeScript types.
|
|
58
|
+
* @module
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* Hack! This type causes TypeScript to simplify how it renders object types.
|
|
62
|
+
*
|
|
63
|
+
* It is functionally the identity for object types, but in practice it can
|
|
64
|
+
* simplify expressions like `A & B`.
|
|
65
|
+
*/
|
|
66
|
+
type Expand<ObjectType extends Record<any, any>> = ObjectType extends Record<any, any> ? { [Key in keyof ObjectType]: ObjectType[Key] } : never;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/values/validators.d.ts
|
|
69
|
+
type TableNameFromType<T> = T extends Id<infer TableName> ? TableName : string;
|
|
70
|
+
/**
|
|
71
|
+
* Avoid using `instanceof BaseValidator`; this is inheritence for code reuse
|
|
72
|
+
* not type heirarchy.
|
|
73
|
+
*/
|
|
74
|
+
declare abstract class BaseValidator<Type, IsOptional extends OptionalProperty = "required", FieldPaths extends string = never> {
|
|
75
|
+
/**
|
|
76
|
+
* Only for TypeScript, the TS type of the JS values validated
|
|
77
|
+
* by this validator.
|
|
78
|
+
*/
|
|
79
|
+
readonly type: Type;
|
|
80
|
+
/**
|
|
81
|
+
* Only for TypeScript, if this an Object validator, then
|
|
82
|
+
* this is the TS type of its property names.
|
|
83
|
+
*/
|
|
84
|
+
readonly fieldPaths: FieldPaths;
|
|
85
|
+
/**
|
|
86
|
+
* Whether this is an optional Object property value validator.
|
|
87
|
+
*/
|
|
88
|
+
readonly isOptional: IsOptional;
|
|
89
|
+
/**
|
|
90
|
+
* Always `"true"`.
|
|
91
|
+
*/
|
|
92
|
+
readonly isConvexValidator: true;
|
|
93
|
+
constructor({
|
|
94
|
+
isOptional
|
|
95
|
+
}: {
|
|
96
|
+
isOptional: IsOptional;
|
|
97
|
+
});
|
|
98
|
+
/** @deprecated - use isOptional instead */
|
|
99
|
+
get optional(): boolean;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The type of the `v.id(tableName)` validator.
|
|
103
|
+
*/
|
|
104
|
+
declare class VId<Type, IsOptional extends OptionalProperty = "required"> extends BaseValidator<Type, IsOptional> {
|
|
105
|
+
/**
|
|
106
|
+
* The name of the table that the validated IDs must belong to.
|
|
107
|
+
*/
|
|
108
|
+
readonly tableName: TableNameFromType<Type>;
|
|
109
|
+
/**
|
|
110
|
+
* The kind of validator, `"id"`.
|
|
111
|
+
*/
|
|
112
|
+
readonly kind: "id";
|
|
113
|
+
/**
|
|
114
|
+
* Usually you'd use `v.id(tableName)` instead.
|
|
115
|
+
*/
|
|
116
|
+
constructor({
|
|
117
|
+
isOptional,
|
|
118
|
+
tableName
|
|
119
|
+
}: {
|
|
120
|
+
isOptional: IsOptional;
|
|
121
|
+
tableName: TableNameFromType<Type>;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The type of the `v.float64()` validator.
|
|
126
|
+
*/
|
|
127
|
+
declare class VFloat64<Type = number, IsOptional extends OptionalProperty = "required"> extends BaseValidator<Type, IsOptional> {
|
|
128
|
+
/**
|
|
129
|
+
* The kind of validator, `"float64"`.
|
|
130
|
+
*/
|
|
131
|
+
readonly kind: "float64";
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* The type of the `v.int64()` validator.
|
|
135
|
+
*/
|
|
136
|
+
declare class VInt64<Type = bigint, IsOptional extends OptionalProperty = "required"> extends BaseValidator<Type, IsOptional> {
|
|
137
|
+
/**
|
|
138
|
+
* The kind of validator, `"int64"`.
|
|
139
|
+
*/
|
|
140
|
+
readonly kind: "int64";
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* The type of the `v.boolean()` validator.
|
|
144
|
+
*/
|
|
145
|
+
declare class VBoolean<Type = boolean, IsOptional extends OptionalProperty = "required"> extends BaseValidator<Type, IsOptional> {
|
|
146
|
+
/**
|
|
147
|
+
* The kind of validator, `"boolean"`.
|
|
148
|
+
*/
|
|
149
|
+
readonly kind: "boolean";
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The type of the `v.bytes()` validator.
|
|
153
|
+
*/
|
|
154
|
+
declare class VBytes<Type = ArrayBuffer, IsOptional extends OptionalProperty = "required"> extends BaseValidator<Type, IsOptional> {
|
|
155
|
+
/**
|
|
156
|
+
* The kind of validator, `"bytes"`.
|
|
157
|
+
*/
|
|
158
|
+
readonly kind: "bytes";
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* The type of the `v.string()` validator.
|
|
162
|
+
*/
|
|
163
|
+
declare class VString<Type = string, IsOptional extends OptionalProperty = "required"> extends BaseValidator<Type, IsOptional> {
|
|
164
|
+
/**
|
|
165
|
+
* The kind of validator, `"string"`.
|
|
166
|
+
*/
|
|
167
|
+
readonly kind: "string";
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* The type of the `v.null()` validator.
|
|
171
|
+
*/
|
|
172
|
+
declare class VNull<Type = null, IsOptional extends OptionalProperty = "required"> extends BaseValidator<Type, IsOptional> {
|
|
173
|
+
/**
|
|
174
|
+
* The kind of validator, `"null"`.
|
|
175
|
+
*/
|
|
176
|
+
readonly kind: "null";
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* The type of the `v.any()` validator.
|
|
180
|
+
*/
|
|
181
|
+
declare class VAny<Type = any, IsOptional extends OptionalProperty = "required", FieldPaths extends string = string> extends BaseValidator<Type, IsOptional, FieldPaths> {
|
|
182
|
+
/**
|
|
183
|
+
* The kind of validator, `"any"`.
|
|
184
|
+
*/
|
|
185
|
+
readonly kind: "any";
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* The type of the `v.object()` validator.
|
|
189
|
+
*/
|
|
190
|
+
declare class VObject<Type, Fields extends Record<string, GenericValidator>, IsOptional extends OptionalProperty = "required", FieldPaths extends string = { [Property in keyof Fields]: JoinFieldPaths<Property & string, Fields[Property]["fieldPaths"]> | Property }[keyof Fields] & string> extends BaseValidator<Type, IsOptional, FieldPaths> {
|
|
191
|
+
/**
|
|
192
|
+
* An object with the validator for each property.
|
|
193
|
+
*/
|
|
194
|
+
readonly fields: Fields;
|
|
195
|
+
/**
|
|
196
|
+
* The kind of validator, `"object"`.
|
|
197
|
+
*/
|
|
198
|
+
readonly kind: "object";
|
|
199
|
+
/**
|
|
200
|
+
* Usually you'd use `v.object({ ... })` instead.
|
|
201
|
+
*/
|
|
202
|
+
constructor({
|
|
203
|
+
isOptional,
|
|
204
|
+
fields
|
|
205
|
+
}: {
|
|
206
|
+
isOptional: IsOptional;
|
|
207
|
+
fields: Fields;
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* The type of the `v.literal()` validator.
|
|
212
|
+
*/
|
|
213
|
+
declare class VLiteral<Type, IsOptional extends OptionalProperty = "required"> extends BaseValidator<Type, IsOptional> {
|
|
214
|
+
/**
|
|
215
|
+
* The value that the validated values must be equal to.
|
|
216
|
+
*/
|
|
217
|
+
readonly value: Type;
|
|
218
|
+
/**
|
|
219
|
+
* The kind of validator, `"literal"`.
|
|
220
|
+
*/
|
|
221
|
+
readonly kind: "literal";
|
|
222
|
+
/**
|
|
223
|
+
* Usually you'd use `v.literal(value)` instead.
|
|
224
|
+
*/
|
|
225
|
+
constructor({
|
|
226
|
+
isOptional,
|
|
227
|
+
value
|
|
228
|
+
}: {
|
|
229
|
+
isOptional: IsOptional;
|
|
230
|
+
value: Type;
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* The type of the `v.array()` validator.
|
|
235
|
+
*/
|
|
236
|
+
declare class VArray<Type, Element extends Validator<any, "required", any>, IsOptional extends OptionalProperty = "required"> extends BaseValidator<Type, IsOptional> {
|
|
237
|
+
/**
|
|
238
|
+
* The validator for the elements of the array.
|
|
239
|
+
*/
|
|
240
|
+
readonly element: Element;
|
|
241
|
+
/**
|
|
242
|
+
* The kind of validator, `"array"`.
|
|
243
|
+
*/
|
|
244
|
+
readonly kind: "array";
|
|
245
|
+
/**
|
|
246
|
+
* Usually you'd use `v.array(element)` instead.
|
|
247
|
+
*/
|
|
248
|
+
constructor({
|
|
249
|
+
isOptional,
|
|
250
|
+
element
|
|
251
|
+
}: {
|
|
252
|
+
isOptional: IsOptional;
|
|
253
|
+
element: Element;
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* The type of the `v.record()` validator.
|
|
258
|
+
*/
|
|
259
|
+
declare class VRecord<Type, Key extends Validator<string, "required", any>, Value extends Validator<any, "required", any>, IsOptional extends OptionalProperty = "required", FieldPaths extends string = string> extends BaseValidator<Type, IsOptional, FieldPaths> {
|
|
260
|
+
/**
|
|
261
|
+
* The validator for the keys of the record.
|
|
262
|
+
*/
|
|
263
|
+
readonly key: Key;
|
|
264
|
+
/**
|
|
265
|
+
* The validator for the values of the record.
|
|
266
|
+
*/
|
|
267
|
+
readonly value: Value;
|
|
268
|
+
/**
|
|
269
|
+
* The kind of validator, `"record"`.
|
|
270
|
+
*/
|
|
271
|
+
readonly kind: "record";
|
|
272
|
+
/**
|
|
273
|
+
* Usually you'd use `v.record(key, value)` instead.
|
|
274
|
+
*/
|
|
275
|
+
constructor({
|
|
276
|
+
isOptional,
|
|
277
|
+
key,
|
|
278
|
+
value
|
|
279
|
+
}: {
|
|
280
|
+
isOptional: IsOptional;
|
|
281
|
+
key: Key;
|
|
282
|
+
value: Value;
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* The type of the `v.union()` validator.
|
|
287
|
+
*/
|
|
288
|
+
declare class VUnion<Type, T extends Validator<any, "required", any>[], IsOptional extends OptionalProperty = "required", FieldPaths extends string = T[number]["fieldPaths"]> extends BaseValidator<Type, IsOptional, FieldPaths> {
|
|
289
|
+
/**
|
|
290
|
+
* The array of validators, one of which must match the value.
|
|
291
|
+
*/
|
|
292
|
+
readonly members: T;
|
|
293
|
+
/**
|
|
294
|
+
* The kind of validator, `"union"`.
|
|
295
|
+
*/
|
|
296
|
+
readonly kind: "union";
|
|
297
|
+
/**
|
|
298
|
+
* Usually you'd use `v.union(...members)` instead.
|
|
299
|
+
*/
|
|
300
|
+
constructor({
|
|
301
|
+
isOptional,
|
|
302
|
+
members
|
|
303
|
+
}: {
|
|
304
|
+
isOptional: IsOptional;
|
|
305
|
+
members: T;
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Type representing whether a property in an object is optional or required.
|
|
310
|
+
*
|
|
311
|
+
* @public
|
|
312
|
+
*/
|
|
313
|
+
type OptionalProperty = "optional" | "required";
|
|
314
|
+
/**
|
|
315
|
+
* A validator for a Convex value.
|
|
316
|
+
*
|
|
317
|
+
* This should be constructed using the validator builder, {@link v}.
|
|
318
|
+
*
|
|
319
|
+
* A validator encapsulates:
|
|
320
|
+
* - The TypeScript type of this value.
|
|
321
|
+
* - Whether this field should be optional if it's included in an object.
|
|
322
|
+
* - The TypeScript type for the set of index field paths that can be used to
|
|
323
|
+
* build indexes on this value.
|
|
324
|
+
* - A JSON representation of the validator.
|
|
325
|
+
*
|
|
326
|
+
* Specific types of validators contain additional information: for example
|
|
327
|
+
* an `ArrayValidator` contains an `element` property with the validator
|
|
328
|
+
* used to validate each element of the list. Use the shared 'kind' property
|
|
329
|
+
* to identity the type of validator.
|
|
330
|
+
*
|
|
331
|
+
* More validators can be added in future releases so an exhaustive
|
|
332
|
+
* switch statement on validator `kind` should be expected to break
|
|
333
|
+
* in future releases of Convex.
|
|
334
|
+
*
|
|
335
|
+
* @public
|
|
336
|
+
*/
|
|
337
|
+
type Validator<Type, IsOptional extends OptionalProperty = "required", FieldPaths extends string = never> = VId<Type, IsOptional> | VString<Type, IsOptional> | VFloat64<Type, IsOptional> | VInt64<Type, IsOptional> | VBoolean<Type, IsOptional> | VNull<Type, IsOptional> | VAny<Type, IsOptional> | VLiteral<Type, IsOptional> | VBytes<Type, IsOptional> | VObject<Type, Record<string, Validator<any, OptionalProperty, any>>, IsOptional, FieldPaths> | VArray<Type, Validator<any, "required", any>, IsOptional> | VRecord<Type, Validator<string, "required", any>, Validator<any, "required", any>, IsOptional, FieldPaths> | VUnion<Type, Validator<any, "required", any>[], IsOptional, FieldPaths>;
|
|
338
|
+
/**
|
|
339
|
+
* Join together two index field paths.
|
|
340
|
+
*
|
|
341
|
+
* This is used within the validator builder, {@link v}.
|
|
342
|
+
* @public
|
|
343
|
+
*/
|
|
344
|
+
type JoinFieldPaths<Start extends string, End extends string> = `${Start}.${End}`;
|
|
345
|
+
//#endregion
|
|
346
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/values/validator.d.ts
|
|
347
|
+
/**
|
|
348
|
+
* The type that all validators must extend.
|
|
349
|
+
*
|
|
350
|
+
* @public
|
|
351
|
+
*/
|
|
352
|
+
type GenericValidator = Validator<any, any, any>;
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/authentication.d.ts
|
|
355
|
+
/**
|
|
356
|
+
* Information about an authenticated user, derived from a
|
|
357
|
+
* [JWT](https://datatracker.ietf.org/doc/html/rfc7519).
|
|
358
|
+
*
|
|
359
|
+
* The only fields guaranteed to be present are
|
|
360
|
+
* {@link UserIdentity.tokenIdentifier} and {@link UserIdentity.issuer}. All
|
|
361
|
+
* remaining fields may or may not be present depending on the information given
|
|
362
|
+
* by the identity provider.
|
|
363
|
+
*
|
|
364
|
+
* The explicitly listed fields are derived from the OpenID Connect (OIDC) standard fields,
|
|
365
|
+
* see the [OIDC specification](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims)
|
|
366
|
+
* for more information on these fields.
|
|
367
|
+
*
|
|
368
|
+
* Any additional fields are custom claims that may be present in the JWT,
|
|
369
|
+
* and their type depends on your identity provider configuration. If you
|
|
370
|
+
* know the type of the field, you can assert it in TypeScript like this
|
|
371
|
+
* (for example as a `string`):
|
|
372
|
+
*
|
|
373
|
+
* ```typescript
|
|
374
|
+
* const identity = await ctx.auth.getUserIdentity();
|
|
375
|
+
* if (identity === null) {
|
|
376
|
+
* return null;
|
|
377
|
+
* }
|
|
378
|
+
* const customClaim = identity.custom_claim as string;
|
|
379
|
+
* ```
|
|
380
|
+
*
|
|
381
|
+
* @public
|
|
382
|
+
*/
|
|
383
|
+
interface UserIdentity {
|
|
384
|
+
/**
|
|
385
|
+
* A stable and globally unique string for this identity (i.e. no other
|
|
386
|
+
* user, even from a different identity provider, will have the same string.)
|
|
387
|
+
*
|
|
388
|
+
* JWT claims: `sub` + `iss`
|
|
389
|
+
*/
|
|
390
|
+
readonly tokenIdentifier: string;
|
|
391
|
+
/**
|
|
392
|
+
* Identifier for the end-user from the identity provider, not necessarily
|
|
393
|
+
* unique across different providers.
|
|
394
|
+
*
|
|
395
|
+
* JWT claim: `sub`
|
|
396
|
+
*/
|
|
397
|
+
readonly subject: string;
|
|
398
|
+
/**
|
|
399
|
+
* The hostname of the identity provider used to authenticate this user.
|
|
400
|
+
*
|
|
401
|
+
* JWT claim: `iss`
|
|
402
|
+
*/
|
|
403
|
+
readonly issuer: string;
|
|
404
|
+
/**
|
|
405
|
+
* JWT claim: `name`
|
|
406
|
+
*/
|
|
407
|
+
readonly name?: string;
|
|
408
|
+
/**
|
|
409
|
+
* JWT claim: `given_name`
|
|
410
|
+
*/
|
|
411
|
+
readonly givenName?: string;
|
|
412
|
+
/**
|
|
413
|
+
* JWT claim: `family_name`
|
|
414
|
+
*/
|
|
415
|
+
readonly familyName?: string;
|
|
416
|
+
/**
|
|
417
|
+
* JWT claim: `nickname`
|
|
418
|
+
*/
|
|
419
|
+
readonly nickname?: string;
|
|
420
|
+
/**
|
|
421
|
+
* JWT claim: `preferred_username`
|
|
422
|
+
*/
|
|
423
|
+
readonly preferredUsername?: string;
|
|
424
|
+
/**
|
|
425
|
+
* JWT claim: `profile`
|
|
426
|
+
*/
|
|
427
|
+
readonly profileUrl?: string;
|
|
428
|
+
/**
|
|
429
|
+
* JWT claim: `picture`
|
|
430
|
+
*/
|
|
431
|
+
readonly pictureUrl?: string;
|
|
432
|
+
/**
|
|
433
|
+
* JWT claim: `email`
|
|
434
|
+
*/
|
|
435
|
+
readonly email?: string;
|
|
436
|
+
/**
|
|
437
|
+
* JWT claim: `email_verified`
|
|
438
|
+
*/
|
|
439
|
+
readonly emailVerified?: boolean;
|
|
440
|
+
/**
|
|
441
|
+
* JWT claim: `gender`
|
|
442
|
+
*/
|
|
443
|
+
readonly gender?: string;
|
|
444
|
+
/**
|
|
445
|
+
* JWT claim: `birthdate`
|
|
446
|
+
*/
|
|
447
|
+
readonly birthday?: string;
|
|
448
|
+
/**
|
|
449
|
+
* JWT claim: `zoneinfo`
|
|
450
|
+
*/
|
|
451
|
+
readonly timezone?: string;
|
|
452
|
+
/**
|
|
453
|
+
* JWT claim: `locale`
|
|
454
|
+
*/
|
|
455
|
+
readonly language?: string;
|
|
456
|
+
/**
|
|
457
|
+
* JWT claim: `phone_number`
|
|
458
|
+
*/
|
|
459
|
+
readonly phoneNumber?: string;
|
|
460
|
+
/**
|
|
461
|
+
* JWT claim: `phone_number_verified`
|
|
462
|
+
*/
|
|
463
|
+
readonly phoneNumberVerified?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* JWT claim: `address`
|
|
466
|
+
*/
|
|
467
|
+
readonly address?: string;
|
|
468
|
+
/**
|
|
469
|
+
* JWT claim: `updated_at`
|
|
470
|
+
*/
|
|
471
|
+
readonly updatedAt?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Any custom claims.
|
|
474
|
+
*/
|
|
475
|
+
[key: string]: JSONValue | undefined;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* An interface to access information about the currently authenticated user
|
|
479
|
+
* within Convex query and mutation functions.
|
|
480
|
+
*
|
|
481
|
+
* @public
|
|
482
|
+
*/
|
|
483
|
+
interface Auth {
|
|
484
|
+
/**
|
|
485
|
+
* Get details about the currently authenticated user.
|
|
486
|
+
*
|
|
487
|
+
* @returns A promise that resolves to a {@link UserIdentity} if the Convex
|
|
488
|
+
* client was configured with a valid ID token, or if not, will:
|
|
489
|
+
* + returns `null` on Convex queries, mutations, actions.
|
|
490
|
+
* + `throw` on HTTP Actions.
|
|
491
|
+
*/
|
|
492
|
+
getUserIdentity(): Promise<UserIdentity | null>;
|
|
493
|
+
}
|
|
494
|
+
//#endregion
|
|
495
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/data_model.d.ts
|
|
496
|
+
/**
|
|
497
|
+
* A document stored in Convex.
|
|
498
|
+
* @public
|
|
499
|
+
*/
|
|
500
|
+
type GenericDocument = Record<string, Value$1>;
|
|
501
|
+
/**
|
|
502
|
+
* A type describing all of the document fields in a table.
|
|
503
|
+
*
|
|
504
|
+
* These can either be field names (like "name") or references to fields on
|
|
505
|
+
* nested objects (like "properties.name").
|
|
506
|
+
* @public
|
|
507
|
+
*/
|
|
508
|
+
type GenericFieldPaths = string;
|
|
509
|
+
/**
|
|
510
|
+
* A type describing the ordered fields in an index.
|
|
511
|
+
*
|
|
512
|
+
* These can either be field names (like "name") or references to fields on
|
|
513
|
+
* nested objects (like "properties.name").
|
|
514
|
+
* @public
|
|
515
|
+
*/
|
|
516
|
+
type GenericIndexFields = string[];
|
|
517
|
+
/**
|
|
518
|
+
* A type describing the indexes in a table.
|
|
519
|
+
*
|
|
520
|
+
* It's an object mapping each index name to the fields in the index.
|
|
521
|
+
* @public
|
|
522
|
+
*/
|
|
523
|
+
type GenericTableIndexes = Record<string, GenericIndexFields>;
|
|
524
|
+
/**
|
|
525
|
+
* A type describing the configuration of a search index.
|
|
526
|
+
* @public
|
|
527
|
+
*/
|
|
528
|
+
type GenericSearchIndexConfig = {
|
|
529
|
+
searchField: string;
|
|
530
|
+
filterFields: string;
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* A type describing all of the search indexes in a table.
|
|
534
|
+
*
|
|
535
|
+
* This is an object mapping each index name to the config for the index.
|
|
536
|
+
* @public
|
|
537
|
+
*/
|
|
538
|
+
type GenericTableSearchIndexes = Record<string, GenericSearchIndexConfig>;
|
|
539
|
+
/**
|
|
540
|
+
* A type describing the configuration of a vector index.
|
|
541
|
+
* @public
|
|
542
|
+
*/
|
|
543
|
+
type GenericVectorIndexConfig = {
|
|
544
|
+
vectorField: string;
|
|
545
|
+
dimensions: number;
|
|
546
|
+
filterFields: string;
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* A type describing all of the vector indexes in a table.
|
|
550
|
+
*
|
|
551
|
+
* This is an object mapping each index name to the config for the index.
|
|
552
|
+
* @public
|
|
553
|
+
*/
|
|
554
|
+
type GenericTableVectorIndexes = Record<string, GenericVectorIndexConfig>;
|
|
555
|
+
/**
|
|
556
|
+
* If we have A | B | C, this finds A[Key] | B[Key] | C[Key], where we default to
|
|
557
|
+
* `Default` if the Key isn't found.
|
|
558
|
+
*
|
|
559
|
+
* Conditional types apparently loop over the variants in a union, so the `T extends T`
|
|
560
|
+
* is enough to force this behavior.
|
|
561
|
+
* https://stackoverflow.com/questions/49401866/all-possible-keys-of-an-union-type
|
|
562
|
+
*/
|
|
563
|
+
type ValueFromUnion<T, Key, Default> = T extends T ? Key extends keyof T ? T[Key] : Default : never;
|
|
564
|
+
/**
|
|
565
|
+
* The type of a field in a document.
|
|
566
|
+
*
|
|
567
|
+
* Note that this supports both simple fields like "name" and nested fields like
|
|
568
|
+
* "properties.name".
|
|
569
|
+
*
|
|
570
|
+
* If the field is not present in the document it is considered to be `undefined`.
|
|
571
|
+
*
|
|
572
|
+
* @public
|
|
573
|
+
*/
|
|
574
|
+
type FieldTypeFromFieldPath<Document extends GenericDocument, FieldPath extends string> = FieldTypeFromFieldPathInner<Document, FieldPath> extends Value$1 | undefined ? FieldTypeFromFieldPathInner<Document, FieldPath> : Value$1 | undefined;
|
|
575
|
+
/**
|
|
576
|
+
* The inner type of {@link FieldTypeFromFieldPath}.
|
|
577
|
+
*
|
|
578
|
+
* It's wrapped in a helper to coerce the type to `Value | undefined` since some
|
|
579
|
+
* versions of TypeScript fail to infer this type correctly.
|
|
580
|
+
*
|
|
581
|
+
* @public
|
|
582
|
+
*/
|
|
583
|
+
type FieldTypeFromFieldPathInner<Document extends GenericDocument, FieldPath extends string> = FieldPath extends `${infer First}.${infer Second}` ? ValueFromUnion<Document, First, Record<never, never>> extends infer FieldValue ? FieldValue extends GenericDocument ? FieldTypeFromFieldPath<FieldValue, Second> : undefined : undefined : ValueFromUnion<Document, FieldPath, undefined>;
|
|
584
|
+
/**
|
|
585
|
+
* A type describing the document type and indexes in a table.
|
|
586
|
+
* @public
|
|
587
|
+
*/
|
|
588
|
+
type GenericTableInfo = {
|
|
589
|
+
document: GenericDocument;
|
|
590
|
+
fieldPaths: GenericFieldPaths;
|
|
591
|
+
indexes: GenericTableIndexes;
|
|
592
|
+
searchIndexes: GenericTableSearchIndexes;
|
|
593
|
+
vectorIndexes: GenericTableVectorIndexes;
|
|
594
|
+
};
|
|
595
|
+
/**
|
|
596
|
+
* The type of a document in a table for a given {@link GenericTableInfo}.
|
|
597
|
+
* @public
|
|
598
|
+
*/
|
|
599
|
+
type DocumentByInfo<TableInfo extends GenericTableInfo> = TableInfo["document"];
|
|
600
|
+
/**
|
|
601
|
+
* The field paths in a table for a given {@link GenericTableInfo}.
|
|
602
|
+
*
|
|
603
|
+
* These can either be field names (like "name") or references to fields on
|
|
604
|
+
* nested objects (like "properties.name").
|
|
605
|
+
* @public
|
|
606
|
+
*/
|
|
607
|
+
type FieldPaths$1<TableInfo extends GenericTableInfo> = TableInfo["fieldPaths"];
|
|
608
|
+
/**
|
|
609
|
+
* The database indexes in a table for a given {@link GenericTableInfo}.
|
|
610
|
+
*
|
|
611
|
+
* This will be an object mapping index names to the fields in the index.
|
|
612
|
+
* @public
|
|
613
|
+
*/
|
|
614
|
+
type Indexes$1<TableInfo extends GenericTableInfo> = TableInfo["indexes"];
|
|
615
|
+
/**
|
|
616
|
+
* The names of indexes in a table for a given {@link GenericTableInfo}.
|
|
617
|
+
* @public
|
|
618
|
+
*/
|
|
619
|
+
type IndexNames<TableInfo extends GenericTableInfo> = keyof Indexes$1<TableInfo>;
|
|
620
|
+
/**
|
|
621
|
+
* Extract the fields of an index from a {@link GenericTableInfo} by name.
|
|
622
|
+
* @public
|
|
623
|
+
*/
|
|
624
|
+
type NamedIndex<TableInfo extends GenericTableInfo, IndexName extends IndexNames<TableInfo>> = Indexes$1<TableInfo>[IndexName];
|
|
625
|
+
/**
|
|
626
|
+
* The search indexes in a table for a given {@link GenericTableInfo}.
|
|
627
|
+
*
|
|
628
|
+
* This will be an object mapping index names to the search index config.
|
|
629
|
+
* @public
|
|
630
|
+
*/
|
|
631
|
+
type SearchIndexes$1<TableInfo extends GenericTableInfo> = TableInfo["searchIndexes"];
|
|
632
|
+
/**
|
|
633
|
+
* The names of search indexes in a table for a given {@link GenericTableInfo}.
|
|
634
|
+
* @public
|
|
635
|
+
*/
|
|
636
|
+
type SearchIndexNames<TableInfo extends GenericTableInfo> = keyof SearchIndexes$1<TableInfo>;
|
|
637
|
+
/**
|
|
638
|
+
* Extract the config of a search index from a {@link GenericTableInfo} by name.
|
|
639
|
+
* @public
|
|
640
|
+
*/
|
|
641
|
+
type NamedSearchIndex<TableInfo extends GenericTableInfo, IndexName extends SearchIndexNames<TableInfo>> = SearchIndexes$1<TableInfo>[IndexName];
|
|
642
|
+
/**
|
|
643
|
+
* A type describing the tables in a Convex project.
|
|
644
|
+
*
|
|
645
|
+
* This is designed to be code generated with `npx convex dev`.
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
type GenericDataModel = Record<string, GenericTableInfo>;
|
|
649
|
+
/**
|
|
650
|
+
* A {@link GenericDataModel} that considers documents to be `any` and does not
|
|
651
|
+
* support indexes.
|
|
652
|
+
*
|
|
653
|
+
* This is the default before a schema is defined.
|
|
654
|
+
* @public
|
|
655
|
+
*/
|
|
656
|
+
type AnyDataModel = {
|
|
657
|
+
[tableName: string]: {
|
|
658
|
+
document: any;
|
|
659
|
+
fieldPaths: GenericFieldPaths;
|
|
660
|
+
indexes: {};
|
|
661
|
+
searchIndexes: {};
|
|
662
|
+
vectorIndexes: {};
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* A type of all of the table names defined in a {@link GenericDataModel}.
|
|
667
|
+
* @public
|
|
668
|
+
*/
|
|
669
|
+
type TableNamesInDataModel<DataModel extends GenericDataModel> = keyof DataModel & string;
|
|
670
|
+
/**
|
|
671
|
+
* Extract the `TableInfo` for a table in a {@link GenericDataModel} by table
|
|
672
|
+
* name.
|
|
673
|
+
*
|
|
674
|
+
* @public
|
|
675
|
+
*/
|
|
676
|
+
type NamedTableInfo<DataModel extends GenericDataModel, TableName extends keyof DataModel> = DataModel[TableName];
|
|
677
|
+
/**
|
|
678
|
+
* The type of a document in a {@link GenericDataModel} by table name.
|
|
679
|
+
* @public
|
|
680
|
+
*/
|
|
681
|
+
type DocumentByName<DataModel extends GenericDataModel, TableName extends TableNamesInDataModel<DataModel>> = DataModel[TableName]["document"];
|
|
682
|
+
//#endregion
|
|
683
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/filter_builder.d.ts
|
|
684
|
+
/**
|
|
685
|
+
* Expressions are evaluated to produce a {@link values.Value} in the course of executing a query.
|
|
686
|
+
*
|
|
687
|
+
* To construct an expression, use the {@link FilterBuilder} provided within
|
|
688
|
+
* {@link OrderedQuery.filter}.
|
|
689
|
+
*
|
|
690
|
+
* @typeParam T - The type that this expression evaluates to.
|
|
691
|
+
* @public
|
|
692
|
+
*/
|
|
693
|
+
declare abstract class Expression<T extends Value$1 | undefined> {
|
|
694
|
+
private _isExpression;
|
|
695
|
+
private _value;
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* An {@link Expression} or a constant {@link values.Value}
|
|
699
|
+
*
|
|
700
|
+
* @public
|
|
701
|
+
*/
|
|
702
|
+
type ExpressionOrValue<T extends Value$1 | undefined> = Expression<T> | T;
|
|
703
|
+
/**
|
|
704
|
+
* An interface for defining filters in queries.
|
|
705
|
+
*
|
|
706
|
+
* `FilterBuilder` has various methods that produce {@link Expression}s.
|
|
707
|
+
* These expressions can be nested together along with constants to express
|
|
708
|
+
* a filter predicate.
|
|
709
|
+
*
|
|
710
|
+
* `FilterBuilder` is used within {@link OrderedQuery.filter} to create query
|
|
711
|
+
* filters.
|
|
712
|
+
*
|
|
713
|
+
* Here are the available methods:
|
|
714
|
+
*
|
|
715
|
+
* | | |
|
|
716
|
+
* |-------------------------------|-----------------------------------------------|
|
|
717
|
+
* | **Comparisons** | Error when `l` and `r` are not the same type. |
|
|
718
|
+
* | [`eq(l, r)`](#eq) | `l === r` |
|
|
719
|
+
* | [`neq(l, r)`](#neq) | `l !== r` |
|
|
720
|
+
* | [`lt(l, r)`](#lt) | `l < r` |
|
|
721
|
+
* | [`lte(l, r)`](#lte) | `l <= r` |
|
|
722
|
+
* | [`gt(l, r)`](#gt) | `l > r` |
|
|
723
|
+
* | [`gte(l, r)`](#gte) | `l >= r` |
|
|
724
|
+
* | | |
|
|
725
|
+
* | **Arithmetic** | Error when `l` and `r` are not the same type. |
|
|
726
|
+
* | [`add(l, r)`](#add) | `l + r` |
|
|
727
|
+
* | [`sub(l, r)`](#sub) | `l - r` |
|
|
728
|
+
* | [`mul(l, r)`](#mul) | `l * r` |
|
|
729
|
+
* | [`div(l, r)`](#div) | `l / r` |
|
|
730
|
+
* | [`mod(l, r)`](#mod) | `l % r` |
|
|
731
|
+
* | [`neg(x)`](#neg) | `-x` |
|
|
732
|
+
* | | |
|
|
733
|
+
* | **Logic** | Error if any param is not a `bool`. |
|
|
734
|
+
* | [`not(x)`](#not) | `!x` |
|
|
735
|
+
* | [`and(a, b, ..., z)`](#and) | `a && b && ... && z` |
|
|
736
|
+
* | [`or(a, b, ..., z)`](#or) | <code>a || b || ... || z</code> |
|
|
737
|
+
* | | |
|
|
738
|
+
* | **Other** | |
|
|
739
|
+
* | [`field(fieldPath)`](#field) | Evaluates to the field at `fieldPath`. |
|
|
740
|
+
* @public
|
|
741
|
+
*/
|
|
742
|
+
interface FilterBuilder<TableInfo extends GenericTableInfo> {
|
|
743
|
+
/**
|
|
744
|
+
* `l === r`
|
|
745
|
+
*
|
|
746
|
+
* @public
|
|
747
|
+
* */
|
|
748
|
+
eq<T extends Value$1 | undefined>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<boolean>;
|
|
749
|
+
/**
|
|
750
|
+
* `l !== r`
|
|
751
|
+
*
|
|
752
|
+
* @public
|
|
753
|
+
* */
|
|
754
|
+
neq<T extends Value$1 | undefined>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<boolean>;
|
|
755
|
+
/**
|
|
756
|
+
* `l < r`
|
|
757
|
+
*
|
|
758
|
+
* @public
|
|
759
|
+
*/
|
|
760
|
+
lt<T extends Value$1>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<boolean>;
|
|
761
|
+
/**
|
|
762
|
+
* `l <= r`
|
|
763
|
+
*
|
|
764
|
+
* @public
|
|
765
|
+
*/
|
|
766
|
+
lte<T extends Value$1>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<boolean>;
|
|
767
|
+
/**
|
|
768
|
+
* `l > r`
|
|
769
|
+
*
|
|
770
|
+
* @public
|
|
771
|
+
*/
|
|
772
|
+
gt<T extends Value$1>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<boolean>;
|
|
773
|
+
/**
|
|
774
|
+
* `l >= r`
|
|
775
|
+
*
|
|
776
|
+
* @public
|
|
777
|
+
*/
|
|
778
|
+
gte<T extends Value$1>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<boolean>;
|
|
779
|
+
/**
|
|
780
|
+
* `l + r`
|
|
781
|
+
*
|
|
782
|
+
* @public
|
|
783
|
+
*/
|
|
784
|
+
add<T extends NumericValue>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<T>;
|
|
785
|
+
/**
|
|
786
|
+
* `l - r`
|
|
787
|
+
*
|
|
788
|
+
* @public
|
|
789
|
+
*/
|
|
790
|
+
sub<T extends NumericValue>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<T>;
|
|
791
|
+
/**
|
|
792
|
+
* `l * r`
|
|
793
|
+
*
|
|
794
|
+
* @public
|
|
795
|
+
*/
|
|
796
|
+
mul<T extends NumericValue>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<T>;
|
|
797
|
+
/**
|
|
798
|
+
* `l / r`
|
|
799
|
+
*
|
|
800
|
+
* @public
|
|
801
|
+
*/
|
|
802
|
+
div<T extends NumericValue>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<T>;
|
|
803
|
+
/**
|
|
804
|
+
* `l % r`
|
|
805
|
+
*
|
|
806
|
+
* @public
|
|
807
|
+
*/
|
|
808
|
+
mod<T extends NumericValue>(l: ExpressionOrValue<T>, r: ExpressionOrValue<T>): Expression<T>;
|
|
809
|
+
/**
|
|
810
|
+
* `-x`
|
|
811
|
+
*
|
|
812
|
+
* @public
|
|
813
|
+
*/
|
|
814
|
+
neg<T extends NumericValue>(x: ExpressionOrValue<T>): Expression<T>;
|
|
815
|
+
/**
|
|
816
|
+
* `exprs[0] && exprs[1] && ... && exprs[n]`
|
|
817
|
+
*
|
|
818
|
+
* @public
|
|
819
|
+
*/
|
|
820
|
+
and(...exprs: Array<ExpressionOrValue<boolean>>): Expression<boolean>;
|
|
821
|
+
/**
|
|
822
|
+
* `exprs[0] || exprs[1] || ... || exprs[n]`
|
|
823
|
+
*
|
|
824
|
+
* @public
|
|
825
|
+
*/
|
|
826
|
+
or(...exprs: Array<ExpressionOrValue<boolean>>): Expression<boolean>;
|
|
827
|
+
/**
|
|
828
|
+
* `!x`
|
|
829
|
+
*
|
|
830
|
+
* @public
|
|
831
|
+
*/
|
|
832
|
+
not(x: ExpressionOrValue<boolean>): Expression<boolean>;
|
|
833
|
+
/**
|
|
834
|
+
* Evaluates to the field at the given `fieldPath`.
|
|
835
|
+
*
|
|
836
|
+
* For example, in {@link OrderedQuery.filter} this can be used to examine the values being filtered.
|
|
837
|
+
*
|
|
838
|
+
* #### Example
|
|
839
|
+
*
|
|
840
|
+
* On this object:
|
|
841
|
+
* ```
|
|
842
|
+
* {
|
|
843
|
+
* "user": {
|
|
844
|
+
* "isActive": true
|
|
845
|
+
* }
|
|
846
|
+
* }
|
|
847
|
+
* ```
|
|
848
|
+
*
|
|
849
|
+
* `field("user.isActive")` evaluates to `true`.
|
|
850
|
+
*
|
|
851
|
+
* @public
|
|
852
|
+
*/
|
|
853
|
+
field<FieldPath extends FieldPaths$1<TableInfo>>(fieldPath: FieldPath): Expression<FieldTypeFromFieldPath<DocumentByInfo<TableInfo>, FieldPath>>;
|
|
854
|
+
}
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/index_range_builder.d.ts
|
|
857
|
+
/**
|
|
858
|
+
* A type that adds 1 to a number literal type (up to 14).
|
|
859
|
+
*
|
|
860
|
+
* This is necessary to step through the fields in an index.
|
|
861
|
+
*/
|
|
862
|
+
type PlusOne<N extends number> = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15][N];
|
|
863
|
+
/**
|
|
864
|
+
* Builder to define an index range to query.
|
|
865
|
+
*
|
|
866
|
+
* An index range is a description of which documents Convex should consider
|
|
867
|
+
* when running the query.
|
|
868
|
+
*
|
|
869
|
+
* An index range is always a chained list of:
|
|
870
|
+
* 1. 0 or more equality expressions defined with `.eq`.
|
|
871
|
+
* 2. [Optionally] A lower bound expression defined with `.gt` or `.gte`.
|
|
872
|
+
* 3. [Optionally] An upper bound expression defined with `.lt` or `.lte`.
|
|
873
|
+
*
|
|
874
|
+
* **You must step through fields in index order.**
|
|
875
|
+
*
|
|
876
|
+
* Each equality expression must compare a different index field, starting from
|
|
877
|
+
* the beginning and in order. The upper and lower bounds must follow the
|
|
878
|
+
* equality expressions and compare the next field.
|
|
879
|
+
*
|
|
880
|
+
* For example, if there is an index of messages on
|
|
881
|
+
* `["projectId", "priority"]`, a range searching for "messages in 'myProjectId'
|
|
882
|
+
* with priority at least 100" would look like:
|
|
883
|
+
* ```ts
|
|
884
|
+
* q.eq("projectId", myProjectId)
|
|
885
|
+
* .gte("priority", 100)
|
|
886
|
+
* ```
|
|
887
|
+
*
|
|
888
|
+
* **The performance of your query is based on the specificity of the range.**
|
|
889
|
+
*
|
|
890
|
+
* This class is designed to only allow you to specify ranges that Convex can
|
|
891
|
+
* efficiently use your index to find. For all other filtering use
|
|
892
|
+
* {@link OrderedQuery.filter}.
|
|
893
|
+
*
|
|
894
|
+
* To learn about indexes, see [Indexes](https://docs.convex.dev/using/indexes).
|
|
895
|
+
* @public
|
|
896
|
+
*/
|
|
897
|
+
interface IndexRangeBuilder<Document extends GenericDocument, IndexFields extends GenericIndexFields, FieldNum extends number = 0> extends LowerBoundIndexRangeBuilder<Document, IndexFields[FieldNum]> {
|
|
898
|
+
/**
|
|
899
|
+
* Restrict this range to documents where `doc[fieldName] === value`.
|
|
900
|
+
*
|
|
901
|
+
* @param fieldName - The name of the field to compare. Must be the next field
|
|
902
|
+
* in the index.
|
|
903
|
+
* @param value - The value to compare against.
|
|
904
|
+
*/
|
|
905
|
+
eq(fieldName: IndexFields[FieldNum], value: FieldTypeFromFieldPath<Document, IndexFields[FieldNum]>): NextIndexRangeBuilder<Document, IndexFields, FieldNum>;
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* An {@link IndexRangeBuilder} for the next field of the index.
|
|
909
|
+
*
|
|
910
|
+
* This type is careful to check if adding one to the `FieldNum` will exceed
|
|
911
|
+
* the length of the `IndexFields`.
|
|
912
|
+
*/
|
|
913
|
+
type NextIndexRangeBuilder<Document extends GenericDocument, IndexFields extends GenericIndexFields, FieldNum extends number> = PlusOne<FieldNum> extends IndexFields["length"] ? IndexRange : IndexRangeBuilder<Document, IndexFields, PlusOne<FieldNum>>;
|
|
914
|
+
/**
|
|
915
|
+
* Builder to define the lower bound of an index range.
|
|
916
|
+
*
|
|
917
|
+
* See {@link IndexRangeBuilder}.
|
|
918
|
+
*
|
|
919
|
+
* @public
|
|
920
|
+
*/
|
|
921
|
+
interface LowerBoundIndexRangeBuilder<Document extends GenericDocument, IndexFieldName extends string> extends UpperBoundIndexRangeBuilder<Document, IndexFieldName> {
|
|
922
|
+
/**
|
|
923
|
+
* Restrict this range to documents where `doc[fieldName] > value`.
|
|
924
|
+
*
|
|
925
|
+
* @param fieldName - The name of the field to compare. Must be the next field
|
|
926
|
+
* in the index.
|
|
927
|
+
* @param value - The value to compare against.
|
|
928
|
+
*/
|
|
929
|
+
gt(fieldName: IndexFieldName, value: FieldTypeFromFieldPath<Document, IndexFieldName>): UpperBoundIndexRangeBuilder<Document, IndexFieldName>;
|
|
930
|
+
/**
|
|
931
|
+
* Restrict this range to documents where `doc[fieldName] >= value`.
|
|
932
|
+
*
|
|
933
|
+
* @param fieldName - The name of the field to compare. Must be the next field
|
|
934
|
+
* in the index.
|
|
935
|
+
* @param value - The value to compare against.
|
|
936
|
+
*/
|
|
937
|
+
gte(fieldName: IndexFieldName, value: FieldTypeFromFieldPath<Document, IndexFieldName>): UpperBoundIndexRangeBuilder<Document, IndexFieldName>;
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* Builder to define the upper bound of an index range.
|
|
941
|
+
*
|
|
942
|
+
* See {@link IndexRangeBuilder}.
|
|
943
|
+
*
|
|
944
|
+
* @public
|
|
945
|
+
*/
|
|
946
|
+
interface UpperBoundIndexRangeBuilder<Document extends GenericDocument, IndexFieldName extends string> extends IndexRange {
|
|
947
|
+
/**
|
|
948
|
+
* Restrict this range to documents where `doc[fieldName] < value`.
|
|
949
|
+
*
|
|
950
|
+
* @param fieldName - The name of the field to compare. Must be the same index
|
|
951
|
+
* field used in the lower bound (`.gt` or `.gte`) or the next field if no
|
|
952
|
+
* lower bound was specified.
|
|
953
|
+
* @param value - The value to compare against.
|
|
954
|
+
*/
|
|
955
|
+
lt(fieldName: IndexFieldName, value: FieldTypeFromFieldPath<Document, IndexFieldName>): IndexRange;
|
|
956
|
+
/**
|
|
957
|
+
* Restrict this range to documents where `doc[fieldName] <= value`.
|
|
958
|
+
*
|
|
959
|
+
* @param fieldName - The name of the field to compare. Must be the same index
|
|
960
|
+
* field used in the lower bound (`.gt` or `.gte`) or the next field if no
|
|
961
|
+
* lower bound was specified.
|
|
962
|
+
* @param value - The value to compare against.
|
|
963
|
+
*/
|
|
964
|
+
lte(fieldName: IndexFieldName, value: FieldTypeFromFieldPath<Document, IndexFieldName>): IndexRange;
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* An expression representing an index range created by
|
|
968
|
+
* {@link IndexRangeBuilder}.
|
|
969
|
+
* @public
|
|
970
|
+
*/
|
|
971
|
+
declare abstract class IndexRange {
|
|
972
|
+
private _isIndexRange;
|
|
973
|
+
}
|
|
974
|
+
//#endregion
|
|
975
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/pagination.d.ts
|
|
976
|
+
/**
|
|
977
|
+
* An opaque identifier used for paginating a database query.
|
|
978
|
+
*
|
|
979
|
+
* Cursors are returned from {@link OrderedQuery.paginate} and represent the
|
|
980
|
+
* point of the query where the page of results ended.
|
|
981
|
+
*
|
|
982
|
+
* To continue paginating, pass the cursor back into
|
|
983
|
+
* {@link OrderedQuery.paginate} in the {@link PaginationOptions} object to
|
|
984
|
+
* fetch another page of results.
|
|
985
|
+
*
|
|
986
|
+
* Note: Cursors can only be passed to _exactly_ the same database query that
|
|
987
|
+
* they were generated from. You may not reuse a cursor between different
|
|
988
|
+
* database queries.
|
|
989
|
+
*
|
|
990
|
+
* @public
|
|
991
|
+
*/
|
|
992
|
+
type Cursor = string;
|
|
993
|
+
/**
|
|
994
|
+
* The result of paginating using {@link OrderedQuery.paginate}.
|
|
995
|
+
*
|
|
996
|
+
* @public
|
|
997
|
+
*/
|
|
998
|
+
interface PaginationResult<T> {
|
|
999
|
+
/**
|
|
1000
|
+
* The page of results.
|
|
1001
|
+
*/
|
|
1002
|
+
page: T[];
|
|
1003
|
+
/**
|
|
1004
|
+
* Have we reached the end of the results?
|
|
1005
|
+
*/
|
|
1006
|
+
isDone: boolean;
|
|
1007
|
+
/**
|
|
1008
|
+
* A {@link Cursor} to continue loading more results.
|
|
1009
|
+
*/
|
|
1010
|
+
continueCursor: Cursor;
|
|
1011
|
+
/**
|
|
1012
|
+
* A {@link Cursor} to split the page into two, so the page from
|
|
1013
|
+
* (cursor, continueCursor] can be replaced by two pages (cursor, splitCursor]
|
|
1014
|
+
* and (splitCursor, continueCursor].
|
|
1015
|
+
*/
|
|
1016
|
+
splitCursor?: Cursor | null;
|
|
1017
|
+
/**
|
|
1018
|
+
* When a query reads too much data, it may return 'SplitRecommended' to
|
|
1019
|
+
* indicate that the page should be split into two with `splitCursor`.
|
|
1020
|
+
* When a query reads so much data that `page` might be incomplete, its status
|
|
1021
|
+
* becomes 'SplitRequired'.
|
|
1022
|
+
*/
|
|
1023
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* The options passed to {@link OrderedQuery.paginate}.
|
|
1027
|
+
*
|
|
1028
|
+
* To use this type in [argument validation](https://docs.convex.dev/functions/validation),
|
|
1029
|
+
* use the {@link paginationOptsValidator}.
|
|
1030
|
+
*
|
|
1031
|
+
* @public
|
|
1032
|
+
*/
|
|
1033
|
+
interface PaginationOptions {
|
|
1034
|
+
/**
|
|
1035
|
+
* Number of items to load in this page of results.
|
|
1036
|
+
*
|
|
1037
|
+
* Note: This is only an initial value!
|
|
1038
|
+
*
|
|
1039
|
+
* If you are running this paginated query in a reactive query function, you
|
|
1040
|
+
* may receive more or less items than this if items were added to or removed
|
|
1041
|
+
* from the query range.
|
|
1042
|
+
*/
|
|
1043
|
+
numItems: number;
|
|
1044
|
+
/**
|
|
1045
|
+
* A {@link Cursor} representing the start of this page or `null` to start
|
|
1046
|
+
* at the beginning of the query results.
|
|
1047
|
+
*/
|
|
1048
|
+
cursor: Cursor | null;
|
|
1049
|
+
}
|
|
1050
|
+
//#endregion
|
|
1051
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/search_filter_builder.d.ts
|
|
1052
|
+
/**
|
|
1053
|
+
* Builder for defining search filters.
|
|
1054
|
+
*
|
|
1055
|
+
* A search filter is a chained list of:
|
|
1056
|
+
* 1. One search expression constructed with `.search`.
|
|
1057
|
+
* 2. Zero or more equality expressions constructed with `.eq`.
|
|
1058
|
+
*
|
|
1059
|
+
* The search expression must search for text in the index's `searchField`. The
|
|
1060
|
+
* filter expressions can use any of the `filterFields` defined in the index.
|
|
1061
|
+
*
|
|
1062
|
+
* For all other filtering use {@link OrderedQuery.filter}.
|
|
1063
|
+
*
|
|
1064
|
+
* To learn about full text search, see [Indexes](https://docs.convex.dev/text-search).
|
|
1065
|
+
* @public
|
|
1066
|
+
*/
|
|
1067
|
+
interface SearchFilterBuilder<Document extends GenericDocument, SearchIndexConfig extends GenericSearchIndexConfig> {
|
|
1068
|
+
/**
|
|
1069
|
+
* Search for the terms in `query` within `doc[fieldName]`.
|
|
1070
|
+
*
|
|
1071
|
+
* This will do a full text search that returns results where any word of of
|
|
1072
|
+
* `query` appears in the field.
|
|
1073
|
+
*
|
|
1074
|
+
* Documents will be returned based on their relevance to the query. This
|
|
1075
|
+
* takes into account:
|
|
1076
|
+
* - How many words in the query appear in the text?
|
|
1077
|
+
* - How many times do they appear?
|
|
1078
|
+
* - How long is the text field?
|
|
1079
|
+
*
|
|
1080
|
+
* @param fieldName - The name of the field to search in. This must be listed
|
|
1081
|
+
* as the index's `searchField`.
|
|
1082
|
+
* @param query - The query text to search for.
|
|
1083
|
+
*/
|
|
1084
|
+
search(fieldName: SearchIndexConfig["searchField"], query: string): SearchFilterFinalizer<Document, SearchIndexConfig>;
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Builder to define equality expressions as part of a search filter.
|
|
1088
|
+
*
|
|
1089
|
+
* See {@link SearchFilterBuilder}.
|
|
1090
|
+
*
|
|
1091
|
+
* @public
|
|
1092
|
+
*/
|
|
1093
|
+
interface SearchFilterFinalizer<Document extends GenericDocument, SearchIndexConfig extends GenericSearchIndexConfig> extends SearchFilter {
|
|
1094
|
+
/**
|
|
1095
|
+
* Restrict this query to documents where `doc[fieldName] === value`.
|
|
1096
|
+
*
|
|
1097
|
+
* @param fieldName - The name of the field to compare. This must be listed in
|
|
1098
|
+
* the search index's `filterFields`.
|
|
1099
|
+
* @param value - The value to compare against.
|
|
1100
|
+
*/
|
|
1101
|
+
eq<FieldName extends SearchIndexConfig["filterFields"]>(fieldName: FieldName, value: FieldTypeFromFieldPath<Document, FieldName>): SearchFilterFinalizer<Document, SearchIndexConfig>;
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* An expression representing a search filter created by
|
|
1105
|
+
* {@link SearchFilterBuilder}.
|
|
1106
|
+
*
|
|
1107
|
+
* @public
|
|
1108
|
+
*/
|
|
1109
|
+
declare abstract class SearchFilter {
|
|
1110
|
+
private _isSearchFilter;
|
|
1111
|
+
}
|
|
1112
|
+
//#endregion
|
|
1113
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/query.d.ts
|
|
1114
|
+
/**
|
|
1115
|
+
* The {@link QueryInitializer} interface is the entry point for building a {@link Query}
|
|
1116
|
+
* over a Convex database table.
|
|
1117
|
+
*
|
|
1118
|
+
* There are two types of queries:
|
|
1119
|
+
* 1. Full table scans: Queries created with {@link QueryInitializer.fullTableScan} which
|
|
1120
|
+
* iterate over all of the documents in the table in insertion order.
|
|
1121
|
+
* 2. Indexed Queries: Queries created with {@link QueryInitializer.withIndex} which iterate
|
|
1122
|
+
* over an index range in index order.
|
|
1123
|
+
*
|
|
1124
|
+
* For convenience, {@link QueryInitializer} extends the {@link Query} interface, implicitly
|
|
1125
|
+
* starting a full table scan.
|
|
1126
|
+
*
|
|
1127
|
+
* @public
|
|
1128
|
+
*/
|
|
1129
|
+
interface QueryInitializer<TableInfo extends GenericTableInfo> extends Query<TableInfo> {
|
|
1130
|
+
/**
|
|
1131
|
+
* Query by reading all of the values out of this table.
|
|
1132
|
+
*
|
|
1133
|
+
* This query's cost is relative to the size of the entire table, so this
|
|
1134
|
+
* should only be used on tables that will stay very small (say between a few
|
|
1135
|
+
* hundred and a few thousand documents) and are updated infrequently.
|
|
1136
|
+
*
|
|
1137
|
+
* @returns - The {@link Query} that iterates over every document of the table.
|
|
1138
|
+
*/
|
|
1139
|
+
fullTableScan(): Query<TableInfo>;
|
|
1140
|
+
/**
|
|
1141
|
+
* Query by reading documents from an index on this table.
|
|
1142
|
+
*
|
|
1143
|
+
* This query's cost is relative to the number of documents that match the
|
|
1144
|
+
* index range expression.
|
|
1145
|
+
*
|
|
1146
|
+
* Results will be returned in index order.
|
|
1147
|
+
*
|
|
1148
|
+
* To learn about indexes, see [Indexes](https://docs.convex.dev/using/indexes).
|
|
1149
|
+
*
|
|
1150
|
+
* @param indexName - The name of the index to query.
|
|
1151
|
+
* @param indexRange - An optional index range constructed with the supplied
|
|
1152
|
+
* {@link IndexRangeBuilder}. An index range is a description of which
|
|
1153
|
+
* documents Convex should consider when running the query. If no index
|
|
1154
|
+
* range is present, the query will consider all documents in the index.
|
|
1155
|
+
* @returns - The query that yields documents in the index.
|
|
1156
|
+
*/
|
|
1157
|
+
withIndex<IndexName extends IndexNames<TableInfo>>(indexName: IndexName, indexRange?: (q: IndexRangeBuilder<DocumentByInfo<TableInfo>, NamedIndex<TableInfo, IndexName>>) => IndexRange): Query<TableInfo>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Query by running a full text search against a search index.
|
|
1160
|
+
*
|
|
1161
|
+
* Search queries must always search for some text within the index's
|
|
1162
|
+
* `searchField`. This query can optionally add equality filters for any
|
|
1163
|
+
* `filterFields` specified in the index.
|
|
1164
|
+
*
|
|
1165
|
+
* Documents will be returned in relevance order based on how well they
|
|
1166
|
+
* match the search text.
|
|
1167
|
+
*
|
|
1168
|
+
* To learn about full text search, see [Indexes](https://docs.convex.dev/text-search).
|
|
1169
|
+
*
|
|
1170
|
+
* @param indexName - The name of the search index to query.
|
|
1171
|
+
* @param searchFilter - A search filter expression constructed with the
|
|
1172
|
+
* supplied {@link SearchFilterBuilder}. This defines the full text search to run
|
|
1173
|
+
* along with equality filtering to run within the search index.
|
|
1174
|
+
* @returns - A query that searches for matching documents, returning them
|
|
1175
|
+
* in relevancy order.
|
|
1176
|
+
*/
|
|
1177
|
+
withSearchIndex<IndexName extends SearchIndexNames<TableInfo>>(indexName: IndexName, searchFilter: (q: SearchFilterBuilder<DocumentByInfo<TableInfo>, NamedSearchIndex<TableInfo, IndexName>>) => SearchFilter): OrderedQuery<TableInfo>;
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
* The {@link Query} interface allows functions to read values out of the database.
|
|
1181
|
+
*
|
|
1182
|
+
* **If you only need to load an object by ID, use `db.get(id)` instead.**
|
|
1183
|
+
*
|
|
1184
|
+
* Executing a query consists of calling
|
|
1185
|
+
* 1. (Optional) {@link Query.order} to define the order
|
|
1186
|
+
* 2. (Optional) {@link Query.filter} to refine the results
|
|
1187
|
+
* 3. A *consumer* method to obtain the results
|
|
1188
|
+
*
|
|
1189
|
+
* Queries are lazily evaluated. No work is done until iteration begins, so constructing and
|
|
1190
|
+
* extending a query is free. The query is executed incrementally as the results are iterated over,
|
|
1191
|
+
* so early terminating also reduces the cost of the query.
|
|
1192
|
+
*
|
|
1193
|
+
* It is more efficient to use `filter` expression rather than executing JavaScript to filter.
|
|
1194
|
+
*
|
|
1195
|
+
* | | |
|
|
1196
|
+
* |----------------------------------------------|-|
|
|
1197
|
+
* | **Ordering** | |
|
|
1198
|
+
* | [`order("asc")`](#order) | Define the order of query results. |
|
|
1199
|
+
* | | |
|
|
1200
|
+
* | **Filtering** | |
|
|
1201
|
+
* | [`filter(...)`](#filter) | Filter the query results to only the values that match some condition. |
|
|
1202
|
+
* | | |
|
|
1203
|
+
* | **Consuming** | Execute a query and return results in different ways. |
|
|
1204
|
+
* | [`[Symbol.asyncIterator]()`](#asynciterator) | The query's results can be iterated over using a `for await..of` loop. |
|
|
1205
|
+
* | [`collect()`](#collect) | Return all of the results as an array. |
|
|
1206
|
+
* | [`take(n: number)`](#take) | Return the first `n` results as an array. |
|
|
1207
|
+
* | [`first()`](#first) | Return the first result. |
|
|
1208
|
+
* | [`unique()`](#unique) | Return the only result, and throw if there is more than one result. |
|
|
1209
|
+
*
|
|
1210
|
+
* To learn more about how to write queries, see [Querying the Database](https://docs.convex.dev/using/database-queries).
|
|
1211
|
+
*
|
|
1212
|
+
* @public
|
|
1213
|
+
*/
|
|
1214
|
+
interface Query<TableInfo extends GenericTableInfo> extends OrderedQuery<TableInfo> {
|
|
1215
|
+
/**
|
|
1216
|
+
* Define the order of the query output.
|
|
1217
|
+
*
|
|
1218
|
+
* Use `"asc"` for an ascending order and `"desc"` for a descending order. If not specified, the order defaults to ascending.
|
|
1219
|
+
* @param order - The order to return results in.
|
|
1220
|
+
*/
|
|
1221
|
+
order(order: "asc" | "desc"): OrderedQuery<TableInfo>;
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* A {@link Query} with an order that has already been defined.
|
|
1225
|
+
*
|
|
1226
|
+
* @public
|
|
1227
|
+
*/
|
|
1228
|
+
interface OrderedQuery<TableInfo extends GenericTableInfo> extends AsyncIterable<DocumentByInfo<TableInfo>> {
|
|
1229
|
+
/**
|
|
1230
|
+
* Filter the query output, returning only the values for which `predicate` evaluates to true.
|
|
1231
|
+
*
|
|
1232
|
+
* @param predicate - An {@link Expression} constructed with the supplied {@link FilterBuilder} that specifies which documents to keep.
|
|
1233
|
+
* @returns - A new {@link OrderedQuery} with the given filter predicate applied.
|
|
1234
|
+
*/
|
|
1235
|
+
filter(predicate: (q: FilterBuilder<TableInfo>) => ExpressionOrValue<boolean>): this;
|
|
1236
|
+
/**
|
|
1237
|
+
* Load a page of `n` results and obtain a {@link Cursor} for loading more.
|
|
1238
|
+
*
|
|
1239
|
+
* Note: If this is called from a reactive query function the number of
|
|
1240
|
+
* results may not match `paginationOpts.numItems`!
|
|
1241
|
+
*
|
|
1242
|
+
* `paginationOpts.numItems` is only an initial value. After the first invocation,
|
|
1243
|
+
* `paginate` will return all items in the original query range. This ensures
|
|
1244
|
+
* that all pages will remain adjacent and non-overlapping.
|
|
1245
|
+
*
|
|
1246
|
+
* @param paginationOpts - A {@link PaginationOptions} object containing the number
|
|
1247
|
+
* of items to load and the cursor to start at.
|
|
1248
|
+
* @returns A {@link PaginationResult} containing the page of results and a
|
|
1249
|
+
* cursor to continue paginating.
|
|
1250
|
+
*/
|
|
1251
|
+
paginate(paginationOpts: PaginationOptions): Promise<PaginationResult<DocumentByInfo<TableInfo>>>;
|
|
1252
|
+
/**
|
|
1253
|
+
* Execute the query and return all of the results as an array.
|
|
1254
|
+
*
|
|
1255
|
+
* Note: when processing a query with a lot of results, it's often better to use the `Query` as an
|
|
1256
|
+
* `AsyncIterable` instead.
|
|
1257
|
+
*
|
|
1258
|
+
* @returns - An array of all of the query's results.
|
|
1259
|
+
*/
|
|
1260
|
+
collect(): Promise<Array<DocumentByInfo<TableInfo>>>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Execute the query and return the first `n` results.
|
|
1263
|
+
*
|
|
1264
|
+
* @param n - The number of items to take.
|
|
1265
|
+
* @returns - An array of the first `n` results of the query (or less if the
|
|
1266
|
+
* query doesn't have `n` results).
|
|
1267
|
+
*/
|
|
1268
|
+
take(n: number): Promise<Array<DocumentByInfo<TableInfo>>>;
|
|
1269
|
+
/**
|
|
1270
|
+
* Execute the query and return the first result if there is one.
|
|
1271
|
+
*
|
|
1272
|
+
* @returns - The first value of the query or `null` if the query returned no results.
|
|
1273
|
+
* */
|
|
1274
|
+
first(): Promise<DocumentByInfo<TableInfo> | null>;
|
|
1275
|
+
/**
|
|
1276
|
+
* Execute the query and return the singular result if there is one.
|
|
1277
|
+
*
|
|
1278
|
+
* @returns - The single result returned from the query or null if none exists.
|
|
1279
|
+
* @throws Will throw an error if the query returns more than one result.
|
|
1280
|
+
*/
|
|
1281
|
+
unique(): Promise<DocumentByInfo<TableInfo> | null>;
|
|
1282
|
+
}
|
|
1283
|
+
//#endregion
|
|
1284
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/system_fields.d.ts
|
|
1285
|
+
/**
|
|
1286
|
+
* The fields that Convex automatically adds to documents, not including `_id`.
|
|
1287
|
+
*
|
|
1288
|
+
* This is an object type mapping field name to field type.
|
|
1289
|
+
* @public
|
|
1290
|
+
*/
|
|
1291
|
+
type SystemFields = {
|
|
1292
|
+
_creationTime: number;
|
|
1293
|
+
};
|
|
1294
|
+
/**
|
|
1295
|
+
* The `_id` field that Convex automatically adds to documents.
|
|
1296
|
+
* @public
|
|
1297
|
+
*/
|
|
1298
|
+
type IdField<TableName extends string> = {
|
|
1299
|
+
_id: Id<TableName>;
|
|
1300
|
+
};
|
|
1301
|
+
/**
|
|
1302
|
+
* The indexes that Convex automatically adds to every table.
|
|
1303
|
+
*
|
|
1304
|
+
* This is an object mapping index names to index field paths.
|
|
1305
|
+
* @public
|
|
1306
|
+
*/
|
|
1307
|
+
type SystemIndexes = {
|
|
1308
|
+
by_id: ["_id"];
|
|
1309
|
+
by_creation_time: ["_creationTime"];
|
|
1310
|
+
};
|
|
1311
|
+
/**
|
|
1312
|
+
* Convex automatically appends "_creationTime" to the end of every index to
|
|
1313
|
+
* break ties if all of the other fields are identical.
|
|
1314
|
+
* @public
|
|
1315
|
+
*/
|
|
1316
|
+
type IndexTiebreakerField = "_creationTime";
|
|
1317
|
+
//#endregion
|
|
1318
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/schema.d.ts
|
|
1319
|
+
/**
|
|
1320
|
+
* Extract all of the index field paths within a {@link Validator}.
|
|
1321
|
+
*
|
|
1322
|
+
* This is used within {@link defineTable}.
|
|
1323
|
+
* @public
|
|
1324
|
+
*/
|
|
1325
|
+
type ExtractFieldPaths<T extends Validator<any, any, any>> = T["fieldPaths"] | keyof SystemFields;
|
|
1326
|
+
/**
|
|
1327
|
+
* Extract the {@link GenericDocument} within a {@link Validator} and
|
|
1328
|
+
* add on the system fields.
|
|
1329
|
+
*
|
|
1330
|
+
* This is used within {@link defineTable}.
|
|
1331
|
+
* @public
|
|
1332
|
+
*/
|
|
1333
|
+
type ExtractDocument<T extends Validator<any, any, any>> = Expand<SystemFields & T["type"]>;
|
|
1334
|
+
interface DbIndexConfig<FirstFieldPath extends string, RestFieldPaths extends string[]> {
|
|
1335
|
+
/**
|
|
1336
|
+
* The fields to index, in order. Must specify at least one field.
|
|
1337
|
+
*/
|
|
1338
|
+
fields: [FirstFieldPath, ...RestFieldPaths];
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* The configuration for a full text search index.
|
|
1342
|
+
*
|
|
1343
|
+
* @public
|
|
1344
|
+
*/
|
|
1345
|
+
interface SearchIndexConfig<SearchField extends string, FilterFields extends string> {
|
|
1346
|
+
/**
|
|
1347
|
+
* The field to index for full text search.
|
|
1348
|
+
*
|
|
1349
|
+
* This must be a field of type `string`.
|
|
1350
|
+
*/
|
|
1351
|
+
searchField: SearchField;
|
|
1352
|
+
/**
|
|
1353
|
+
* Additional fields to index for fast filtering when running search queries.
|
|
1354
|
+
*/
|
|
1355
|
+
filterFields?: FilterFields[];
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* The configuration for a vector index.
|
|
1359
|
+
*
|
|
1360
|
+
* @public
|
|
1361
|
+
*/
|
|
1362
|
+
interface VectorIndexConfig<VectorField extends string, FilterFields extends string> {
|
|
1363
|
+
/**
|
|
1364
|
+
* The field to index for vector search.
|
|
1365
|
+
*
|
|
1366
|
+
* This must be a field of type `v.array(v.float64())` (or a union)
|
|
1367
|
+
*/
|
|
1368
|
+
vectorField: VectorField;
|
|
1369
|
+
/**
|
|
1370
|
+
* The length of the vectors indexed. This must be between 2 and 2048 inclusive.
|
|
1371
|
+
*/
|
|
1372
|
+
dimensions: number;
|
|
1373
|
+
/**
|
|
1374
|
+
* Additional fields to index for fast filtering when running vector searches.
|
|
1375
|
+
*/
|
|
1376
|
+
filterFields?: FilterFields[];
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* Options for defining an index.
|
|
1380
|
+
*
|
|
1381
|
+
* @public
|
|
1382
|
+
*/
|
|
1383
|
+
interface IndexOptions {
|
|
1384
|
+
/**
|
|
1385
|
+
* Whether the index should be staged.
|
|
1386
|
+
*
|
|
1387
|
+
* For large tables, index backfill can be slow. Staging an index allows you
|
|
1388
|
+
* to push the schema and enable the index later.
|
|
1389
|
+
*
|
|
1390
|
+
* If `staged` is `true`, the index will be staged and will not be enabled
|
|
1391
|
+
* until the staged flag is removed. Staged indexes do not block push
|
|
1392
|
+
* completion. Staged indexes cannot be used in queries.
|
|
1393
|
+
*/
|
|
1394
|
+
staged?: boolean;
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* The definition of a table within a schema.
|
|
1398
|
+
*
|
|
1399
|
+
* This should be produced by using {@link defineTable}.
|
|
1400
|
+
* @public
|
|
1401
|
+
*/
|
|
1402
|
+
declare class TableDefinition<DocumentType extends Validator<any, any, any> = Validator<any, any, any>, Indexes extends GenericTableIndexes = {}, SearchIndexes extends GenericTableSearchIndexes = {}, VectorIndexes extends GenericTableVectorIndexes = {}> {
|
|
1403
|
+
private indexes;
|
|
1404
|
+
private stagedDbIndexes;
|
|
1405
|
+
private searchIndexes;
|
|
1406
|
+
private stagedSearchIndexes;
|
|
1407
|
+
private vectorIndexes;
|
|
1408
|
+
private stagedVectorIndexes;
|
|
1409
|
+
validator: DocumentType;
|
|
1410
|
+
/**
|
|
1411
|
+
* This API is experimental: it may change or disappear.
|
|
1412
|
+
*
|
|
1413
|
+
* Returns indexes defined on this table.
|
|
1414
|
+
* Intended for the advanced use cases of dynamically deciding which index to use for a query.
|
|
1415
|
+
* If you think you need this, please chime in on ths issue in the Convex JS GitHub repo.
|
|
1416
|
+
* https://github.com/get-convex/convex-js/issues/49
|
|
1417
|
+
*/
|
|
1418
|
+
" indexes"(): {
|
|
1419
|
+
indexDescriptor: string;
|
|
1420
|
+
fields: string[];
|
|
1421
|
+
}[];
|
|
1422
|
+
/**
|
|
1423
|
+
* Define an index on this table.
|
|
1424
|
+
*
|
|
1425
|
+
* To learn about indexes, see [Defining Indexes](https://docs.convex.dev/using/indexes).
|
|
1426
|
+
*
|
|
1427
|
+
* @param name - The name of the index.
|
|
1428
|
+
* @param indexConfig - The index configuration object.
|
|
1429
|
+
* @returns A {@link TableDefinition} with this index included.
|
|
1430
|
+
*/
|
|
1431
|
+
index<IndexName extends string, FirstFieldPath extends ExtractFieldPaths<DocumentType>, RestFieldPaths extends ExtractFieldPaths<DocumentType>[]>(name: IndexName, indexConfig: Expand<DbIndexConfig<FirstFieldPath, RestFieldPaths> & IndexOptions & {
|
|
1432
|
+
staged?: false;
|
|
1433
|
+
}>): TableDefinition<DocumentType, Expand<Indexes & Record<IndexName, [FirstFieldPath, ...RestFieldPaths, IndexTiebreakerField]>>, SearchIndexes, VectorIndexes>;
|
|
1434
|
+
/**
|
|
1435
|
+
* Define an index on this table.
|
|
1436
|
+
*
|
|
1437
|
+
* To learn about indexes, see [Defining Indexes](https://docs.convex.dev/using/indexes).
|
|
1438
|
+
*
|
|
1439
|
+
* @param name - The name of the index.
|
|
1440
|
+
* @param fields - The fields to index, in order. Must specify at least one
|
|
1441
|
+
* field.
|
|
1442
|
+
* @returns A {@link TableDefinition} with this index included.
|
|
1443
|
+
*/
|
|
1444
|
+
index<IndexName extends string, FirstFieldPath extends ExtractFieldPaths<DocumentType>, RestFieldPaths extends ExtractFieldPaths<DocumentType>[]>(name: IndexName, fields: [FirstFieldPath, ...RestFieldPaths]): TableDefinition<DocumentType, Expand<Indexes & Record<IndexName, [FirstFieldPath, ...RestFieldPaths, IndexTiebreakerField]>>, SearchIndexes, VectorIndexes>;
|
|
1445
|
+
/**
|
|
1446
|
+
* Define a staged index on this table.
|
|
1447
|
+
*
|
|
1448
|
+
* For large tables, index backfill can be slow. Staging an index allows you
|
|
1449
|
+
* to push the schema and enable the index later.
|
|
1450
|
+
*
|
|
1451
|
+
* If `staged` is `true`, the index will be staged and will not be enabled
|
|
1452
|
+
* until the staged flag is removed. Staged indexes do not block push
|
|
1453
|
+
* completion. Staged indexes cannot be used in queries.
|
|
1454
|
+
*
|
|
1455
|
+
* To learn about indexes, see [Defining Indexes](https://docs.convex.dev/using/indexes).
|
|
1456
|
+
*
|
|
1457
|
+
* @param name - The name of the index.
|
|
1458
|
+
* @param indexConfig - The index configuration object.
|
|
1459
|
+
* @returns A {@link TableDefinition} with this index included.
|
|
1460
|
+
*/
|
|
1461
|
+
index<IndexName extends string, FirstFieldPath extends ExtractFieldPaths<DocumentType>, RestFieldPaths extends ExtractFieldPaths<DocumentType>[]>(name: IndexName, indexConfig: Expand<DbIndexConfig<FirstFieldPath, RestFieldPaths> & IndexOptions & {
|
|
1462
|
+
staged: true;
|
|
1463
|
+
}>): TableDefinition<DocumentType, Indexes, SearchIndexes, VectorIndexes>;
|
|
1464
|
+
/**
|
|
1465
|
+
* Define a search index on this table.
|
|
1466
|
+
*
|
|
1467
|
+
* To learn about search indexes, see [Search](https://docs.convex.dev/text-search).
|
|
1468
|
+
*
|
|
1469
|
+
* @param name - The name of the index.
|
|
1470
|
+
* @param indexConfig - The search index configuration object.
|
|
1471
|
+
* @returns A {@link TableDefinition} with this search index included.
|
|
1472
|
+
*/
|
|
1473
|
+
searchIndex<IndexName extends string, SearchField extends ExtractFieldPaths<DocumentType>, FilterFields extends ExtractFieldPaths<DocumentType> = never>(name: IndexName, indexConfig: Expand<SearchIndexConfig<SearchField, FilterFields> & IndexOptions & {
|
|
1474
|
+
staged?: false;
|
|
1475
|
+
}>): TableDefinition<DocumentType, Indexes, Expand<SearchIndexes & Record<IndexName, {
|
|
1476
|
+
searchField: SearchField;
|
|
1477
|
+
filterFields: FilterFields;
|
|
1478
|
+
}>>, VectorIndexes>;
|
|
1479
|
+
/**
|
|
1480
|
+
* Define a staged search index on this table.
|
|
1481
|
+
*
|
|
1482
|
+
* For large tables, index backfill can be slow. Staging an index allows you
|
|
1483
|
+
* to push the schema and enable the index later.
|
|
1484
|
+
*
|
|
1485
|
+
* If `staged` is `true`, the index will be staged and will not be enabled
|
|
1486
|
+
* until the staged flag is removed. Staged indexes do not block push
|
|
1487
|
+
* completion. Staged indexes cannot be used in queries.
|
|
1488
|
+
*
|
|
1489
|
+
* To learn about search indexes, see [Search](https://docs.convex.dev/text-search).
|
|
1490
|
+
*
|
|
1491
|
+
* @param name - The name of the index.
|
|
1492
|
+
* @param indexConfig - The search index configuration object.
|
|
1493
|
+
* @returns A {@link TableDefinition} with this search index included.
|
|
1494
|
+
*/
|
|
1495
|
+
searchIndex<IndexName extends string, SearchField extends ExtractFieldPaths<DocumentType>, FilterFields extends ExtractFieldPaths<DocumentType> = never>(name: IndexName, indexConfig: Expand<SearchIndexConfig<SearchField, FilterFields> & IndexOptions & {
|
|
1496
|
+
staged: true;
|
|
1497
|
+
}>): TableDefinition<DocumentType, Indexes, SearchIndexes, VectorIndexes>;
|
|
1498
|
+
/**
|
|
1499
|
+
* Define a vector index on this table.
|
|
1500
|
+
*
|
|
1501
|
+
* To learn about vector indexes, see [Vector Search](https://docs.convex.dev/vector-search).
|
|
1502
|
+
*
|
|
1503
|
+
* @param name - The name of the index.
|
|
1504
|
+
* @param indexConfig - The vector index configuration object.
|
|
1505
|
+
* @returns A {@link TableDefinition} with this vector index included.
|
|
1506
|
+
*/
|
|
1507
|
+
vectorIndex<IndexName extends string, VectorField extends ExtractFieldPaths<DocumentType>, FilterFields extends ExtractFieldPaths<DocumentType> = never>(name: IndexName, indexConfig: Expand<VectorIndexConfig<VectorField, FilterFields> & IndexOptions & {
|
|
1508
|
+
staged?: false;
|
|
1509
|
+
}>): TableDefinition<DocumentType, Indexes, SearchIndexes, Expand<VectorIndexes & Record<IndexName, {
|
|
1510
|
+
vectorField: VectorField;
|
|
1511
|
+
dimensions: number;
|
|
1512
|
+
filterFields: FilterFields;
|
|
1513
|
+
}>>>;
|
|
1514
|
+
/**
|
|
1515
|
+
* Define a staged vector index on this table.
|
|
1516
|
+
*
|
|
1517
|
+
* For large tables, index backfill can be slow. Staging an index allows you
|
|
1518
|
+
* to push the schema and enable the index later.
|
|
1519
|
+
*
|
|
1520
|
+
* If `staged` is `true`, the index will be staged and will not be enabled
|
|
1521
|
+
* until the staged flag is removed. Staged indexes do not block push
|
|
1522
|
+
* completion. Staged indexes cannot be used in queries.
|
|
1523
|
+
*
|
|
1524
|
+
* To learn about vector indexes, see [Vector Search](https://docs.convex.dev/vector-search).
|
|
1525
|
+
*
|
|
1526
|
+
* @param name - The name of the index.
|
|
1527
|
+
* @param indexConfig - The vector index configuration object.
|
|
1528
|
+
* @returns A {@link TableDefinition} with this vector index included.
|
|
1529
|
+
*/
|
|
1530
|
+
vectorIndex<IndexName extends string, VectorField extends ExtractFieldPaths<DocumentType>, FilterFields extends ExtractFieldPaths<DocumentType> = never>(name: IndexName, indexConfig: Expand<VectorIndexConfig<VectorField, FilterFields> & IndexOptions & {
|
|
1531
|
+
staged: true;
|
|
1532
|
+
}>): TableDefinition<DocumentType, Indexes, SearchIndexes, VectorIndexes>;
|
|
1533
|
+
/**
|
|
1534
|
+
* Work around for https://github.com/microsoft/TypeScript/issues/57035
|
|
1535
|
+
*/
|
|
1536
|
+
protected self(): TableDefinition<DocumentType, Indexes, SearchIndexes, VectorIndexes>;
|
|
1537
|
+
}
|
|
1538
|
+
/**
|
|
1539
|
+
* A type describing the schema of a Convex project.
|
|
1540
|
+
*
|
|
1541
|
+
* This should be constructed using {@link defineSchema}, {@link defineTable},
|
|
1542
|
+
* and {@link v}.
|
|
1543
|
+
* @public
|
|
1544
|
+
*/
|
|
1545
|
+
type GenericSchema = Record<string, TableDefinition>;
|
|
1546
|
+
/**
|
|
1547
|
+
*
|
|
1548
|
+
* The definition of a Convex project schema.
|
|
1549
|
+
*
|
|
1550
|
+
* This should be produced by using {@link defineSchema}.
|
|
1551
|
+
* @public
|
|
1552
|
+
*/
|
|
1553
|
+
declare class SchemaDefinition<Schema extends GenericSchema, StrictTableTypes extends boolean> {
|
|
1554
|
+
tables: Schema;
|
|
1555
|
+
strictTableNameTypes: StrictTableTypes;
|
|
1556
|
+
readonly schemaValidation: boolean;
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
* Internal type used in Convex code generation!
|
|
1560
|
+
*
|
|
1561
|
+
* Convert a {@link SchemaDefinition} into a {@link server.GenericDataModel}.
|
|
1562
|
+
*
|
|
1563
|
+
* @public
|
|
1564
|
+
*/
|
|
1565
|
+
type DataModelFromSchemaDefinition<SchemaDef extends SchemaDefinition<any, boolean>> = MaybeMakeLooseDataModel<{ [TableName in keyof SchemaDef["tables"] & string]: SchemaDef["tables"][TableName] extends TableDefinition<infer DocumentType, infer Indexes, infer SearchIndexes, infer VectorIndexes> ? {
|
|
1566
|
+
document: Expand<IdField<TableName> & ExtractDocument<DocumentType>>;
|
|
1567
|
+
fieldPaths: keyof IdField<TableName> | ExtractFieldPaths<DocumentType>;
|
|
1568
|
+
indexes: Expand<Indexes & SystemIndexes>;
|
|
1569
|
+
searchIndexes: SearchIndexes;
|
|
1570
|
+
vectorIndexes: VectorIndexes;
|
|
1571
|
+
} : never }, SchemaDef["strictTableNameTypes"]>;
|
|
1572
|
+
type MaybeMakeLooseDataModel<DataModel extends GenericDataModel, StrictTableNameTypes extends boolean> = StrictTableNameTypes extends true ? DataModel : Expand<DataModel & AnyDataModel>;
|
|
1573
|
+
declare const _systemSchema: SchemaDefinition<{
|
|
1574
|
+
_scheduled_functions: TableDefinition<VObject<{
|
|
1575
|
+
completedTime?: number | undefined;
|
|
1576
|
+
name: string;
|
|
1577
|
+
args: any[];
|
|
1578
|
+
scheduledTime: number;
|
|
1579
|
+
state: {
|
|
1580
|
+
kind: "pending";
|
|
1581
|
+
} | {
|
|
1582
|
+
kind: "inProgress";
|
|
1583
|
+
} | {
|
|
1584
|
+
kind: "success";
|
|
1585
|
+
} | {
|
|
1586
|
+
kind: "failed";
|
|
1587
|
+
error: string;
|
|
1588
|
+
} | {
|
|
1589
|
+
kind: "canceled";
|
|
1590
|
+
};
|
|
1591
|
+
}, {
|
|
1592
|
+
name: VString<string, "required">;
|
|
1593
|
+
args: VArray<any[], VAny<any, "required", string>, "required">;
|
|
1594
|
+
scheduledTime: VFloat64<number, "required">;
|
|
1595
|
+
completedTime: VFloat64<number | undefined, "optional">;
|
|
1596
|
+
state: VUnion<{
|
|
1597
|
+
kind: "pending";
|
|
1598
|
+
} | {
|
|
1599
|
+
kind: "inProgress";
|
|
1600
|
+
} | {
|
|
1601
|
+
kind: "success";
|
|
1602
|
+
} | {
|
|
1603
|
+
kind: "failed";
|
|
1604
|
+
error: string;
|
|
1605
|
+
} | {
|
|
1606
|
+
kind: "canceled";
|
|
1607
|
+
}, [VObject<{
|
|
1608
|
+
kind: "pending";
|
|
1609
|
+
}, {
|
|
1610
|
+
kind: VLiteral<"pending", "required">;
|
|
1611
|
+
}, "required", "kind">, VObject<{
|
|
1612
|
+
kind: "inProgress";
|
|
1613
|
+
}, {
|
|
1614
|
+
kind: VLiteral<"inProgress", "required">;
|
|
1615
|
+
}, "required", "kind">, VObject<{
|
|
1616
|
+
kind: "success";
|
|
1617
|
+
}, {
|
|
1618
|
+
kind: VLiteral<"success", "required">;
|
|
1619
|
+
}, "required", "kind">, VObject<{
|
|
1620
|
+
kind: "failed";
|
|
1621
|
+
error: string;
|
|
1622
|
+
}, {
|
|
1623
|
+
kind: VLiteral<"failed", "required">;
|
|
1624
|
+
error: VString<string, "required">;
|
|
1625
|
+
}, "required", "kind" | "error">, VObject<{
|
|
1626
|
+
kind: "canceled";
|
|
1627
|
+
}, {
|
|
1628
|
+
kind: VLiteral<"canceled", "required">;
|
|
1629
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
1630
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>;
|
|
1631
|
+
_storage: TableDefinition<VObject<{
|
|
1632
|
+
contentType?: string | undefined;
|
|
1633
|
+
sha256: string;
|
|
1634
|
+
size: number;
|
|
1635
|
+
}, {
|
|
1636
|
+
sha256: VString<string, "required">;
|
|
1637
|
+
size: VFloat64<number, "required">;
|
|
1638
|
+
contentType: VString<string | undefined, "optional">;
|
|
1639
|
+
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>;
|
|
1640
|
+
}, true>;
|
|
1641
|
+
interface SystemDataModel extends DataModelFromSchemaDefinition<typeof _systemSchema> {}
|
|
1642
|
+
//#endregion
|
|
1643
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/database.d.ts
|
|
1644
|
+
interface BaseDatabaseReader<DataModel extends GenericDataModel> {
|
|
1645
|
+
/**
|
|
1646
|
+
* Fetch a single document from the database by its {@link values.GenericId}.
|
|
1647
|
+
*
|
|
1648
|
+
* @param id - The {@link values.GenericId} of the document to fetch from the database.
|
|
1649
|
+
* @returns - The {@link GenericDocument} of the document at the given {@link values.GenericId}, or `null` if it no longer exists.
|
|
1650
|
+
*/
|
|
1651
|
+
get<TableName extends TableNamesInDataModel<DataModel>>(id: Id<TableName>): Promise<DocumentByName<DataModel, TableName> | null>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Begin a query for the given table name.
|
|
1654
|
+
*
|
|
1655
|
+
* Queries don't execute immediately, so calling this method and extending its
|
|
1656
|
+
* query are free until the results are actually used.
|
|
1657
|
+
*
|
|
1658
|
+
* @param tableName - The name of the table to query.
|
|
1659
|
+
* @returns - A {@link QueryInitializer} object to start building a query.
|
|
1660
|
+
*/
|
|
1661
|
+
query<TableName extends TableNamesInDataModel<DataModel>>(tableName: TableName): QueryInitializer<NamedTableInfo<DataModel, TableName>>;
|
|
1662
|
+
/**
|
|
1663
|
+
* Returns the string ID format for the ID in a given table, or null if the ID
|
|
1664
|
+
* is from a different table or is not a valid ID.
|
|
1665
|
+
*
|
|
1666
|
+
* This accepts the string ID format as well as the `.toString()` representation
|
|
1667
|
+
* of the legacy class-based ID format.
|
|
1668
|
+
*
|
|
1669
|
+
* This does not guarantee that the ID exists (i.e. `db.get(id)` may return `null`).
|
|
1670
|
+
*
|
|
1671
|
+
* @param tableName - The name of the table.
|
|
1672
|
+
* @param id - The ID string.
|
|
1673
|
+
*/
|
|
1674
|
+
normalizeId<TableName extends TableNamesInDataModel<DataModel>>(tableName: TableName, id: string): Id<TableName> | null;
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* An interface to read from the database within Convex query functions.
|
|
1678
|
+
*
|
|
1679
|
+
* The two entry points are:
|
|
1680
|
+
* - {@link GenericDatabaseReader.get}, which fetches a single document
|
|
1681
|
+
* by its {@link values.GenericId}.
|
|
1682
|
+
* - {@link GenericDatabaseReader.query}, which starts building a query.
|
|
1683
|
+
*
|
|
1684
|
+
* If you're using code generation, use the `DatabaseReader` type in
|
|
1685
|
+
* `convex/_generated/server.d.ts` which is typed for your data model.
|
|
1686
|
+
*
|
|
1687
|
+
* @public
|
|
1688
|
+
*/
|
|
1689
|
+
interface GenericDatabaseReader<DataModel extends GenericDataModel> extends BaseDatabaseReader<DataModel> {
|
|
1690
|
+
/**
|
|
1691
|
+
* An interface to read from the system tables within Convex query functions
|
|
1692
|
+
*
|
|
1693
|
+
* The two entry points are:
|
|
1694
|
+
* - {@link GenericDatabaseReader.get}, which fetches a single document
|
|
1695
|
+
* by its {@link values.GenericId}.
|
|
1696
|
+
* - {@link GenericDatabaseReader.query}, which starts building a query.
|
|
1697
|
+
*
|
|
1698
|
+
* @public
|
|
1699
|
+
*/
|
|
1700
|
+
system: BaseDatabaseReader<SystemDataModel>;
|
|
1701
|
+
}
|
|
1702
|
+
//#endregion
|
|
1703
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/api.d.ts
|
|
1704
|
+
/**
|
|
1705
|
+
* The type of a Convex function.
|
|
1706
|
+
*
|
|
1707
|
+
* @public
|
|
1708
|
+
*/
|
|
1709
|
+
type FunctionType = "query" | "mutation" | "action";
|
|
1710
|
+
/**
|
|
1711
|
+
* A reference to a registered Convex function.
|
|
1712
|
+
*
|
|
1713
|
+
* You can create a {@link FunctionReference} using the generated `api` utility:
|
|
1714
|
+
* ```js
|
|
1715
|
+
* import { api } from "../convex/_generated/api";
|
|
1716
|
+
*
|
|
1717
|
+
* const reference = api.myModule.myFunction;
|
|
1718
|
+
* ```
|
|
1719
|
+
*
|
|
1720
|
+
* If you aren't using code generation, you can create references using
|
|
1721
|
+
* {@link anyApi}:
|
|
1722
|
+
* ```js
|
|
1723
|
+
* import { anyApi } from "convex/server";
|
|
1724
|
+
*
|
|
1725
|
+
* const reference = anyApi.myModule.myFunction;
|
|
1726
|
+
* ```
|
|
1727
|
+
*
|
|
1728
|
+
* Function references can be used to invoke functions from the client. For
|
|
1729
|
+
* example, in React you can pass references to the {@link react.useQuery} hook:
|
|
1730
|
+
* ```js
|
|
1731
|
+
* const result = useQuery(api.myModule.myFunction);
|
|
1732
|
+
* ```
|
|
1733
|
+
*
|
|
1734
|
+
* @typeParam Type - The type of the function ("query", "mutation", or "action").
|
|
1735
|
+
* @typeParam Visibility - The visibility of the function ("public" or "internal").
|
|
1736
|
+
* @typeParam Args - The arguments to this function. This is an object mapping
|
|
1737
|
+
* argument names to their types.
|
|
1738
|
+
* @typeParam ReturnType - The return type of this function.
|
|
1739
|
+
* @public
|
|
1740
|
+
*/
|
|
1741
|
+
type FunctionReference<Type extends FunctionType, Visibility extends FunctionVisibility = "public", Args extends DefaultFunctionArgs = any, ReturnType = any, ComponentPath = string | undefined> = {
|
|
1742
|
+
_type: Type;
|
|
1743
|
+
_visibility: Visibility;
|
|
1744
|
+
_args: Args;
|
|
1745
|
+
_returnType: ReturnType;
|
|
1746
|
+
_componentPath: ComponentPath;
|
|
1747
|
+
};
|
|
1748
|
+
/**
|
|
1749
|
+
* A {@link FunctionReference} of any type and any visibility with any
|
|
1750
|
+
* arguments and any return type.
|
|
1751
|
+
*
|
|
1752
|
+
* @public
|
|
1753
|
+
*/
|
|
1754
|
+
type AnyFunctionReference = FunctionReference<any, any>;
|
|
1755
|
+
/**
|
|
1756
|
+
* A tuple type of the (maybe optional) arguments to `FuncRef`.
|
|
1757
|
+
*
|
|
1758
|
+
* This type is used to make methods involving arguments type safe while allowing
|
|
1759
|
+
* skipping the arguments for functions that don't require arguments.
|
|
1760
|
+
*
|
|
1761
|
+
* @public
|
|
1762
|
+
*/
|
|
1763
|
+
type OptionalRestArgs<FuncRef extends AnyFunctionReference> = FuncRef["_args"] extends EmptyObject ? [args?: EmptyObject] : [args: FuncRef["_args"]];
|
|
1764
|
+
/**
|
|
1765
|
+
* Given a {@link FunctionReference}, get the return type of the function.
|
|
1766
|
+
*
|
|
1767
|
+
* @public
|
|
1768
|
+
*/
|
|
1769
|
+
type FunctionReturnType<FuncRef extends AnyFunctionReference> = FuncRef["_returnType"];
|
|
1770
|
+
//#endregion
|
|
1771
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/registration.d.ts
|
|
1772
|
+
/**
|
|
1773
|
+
* A set of services for use within Convex query functions.
|
|
1774
|
+
*
|
|
1775
|
+
* The query context is passed as the first argument to any Convex query
|
|
1776
|
+
* function run on the server.
|
|
1777
|
+
*
|
|
1778
|
+
* This differs from the {@link MutationCtx} because all of the services are
|
|
1779
|
+
* read-only.
|
|
1780
|
+
*
|
|
1781
|
+
*
|
|
1782
|
+
* @public
|
|
1783
|
+
*/
|
|
1784
|
+
interface GenericQueryCtx<DataModel extends GenericDataModel> {
|
|
1785
|
+
/**
|
|
1786
|
+
* A utility for reading data in the database.
|
|
1787
|
+
*/
|
|
1788
|
+
db: GenericDatabaseReader<DataModel>;
|
|
1789
|
+
/**
|
|
1790
|
+
* Information about the currently authenticated user.
|
|
1791
|
+
*/
|
|
1792
|
+
auth: Auth;
|
|
1793
|
+
/**
|
|
1794
|
+
* A utility for reading files in storage.
|
|
1795
|
+
*/
|
|
1796
|
+
storage: StorageReader;
|
|
1797
|
+
/**
|
|
1798
|
+
* Call a query function within the same transaction.
|
|
1799
|
+
*
|
|
1800
|
+
* NOTE: often you can call the query's function directly instead of using this.
|
|
1801
|
+
* `runQuery` incurs overhead of running argument and return value validation,
|
|
1802
|
+
* and creating a new isolated JS context.
|
|
1803
|
+
*/
|
|
1804
|
+
runQuery: <Query extends FunctionReference<"query", "public" | "internal">>(query: Query, ...args: OptionalRestArgs<Query>) => Promise<FunctionReturnType<Query>>;
|
|
1805
|
+
}
|
|
1806
|
+
/**
|
|
1807
|
+
* The default arguments type for a Convex query, mutation, or action function.
|
|
1808
|
+
*
|
|
1809
|
+
* Convex functions always take an arguments object that maps the argument
|
|
1810
|
+
* names to their values.
|
|
1811
|
+
*
|
|
1812
|
+
* @public
|
|
1813
|
+
*/
|
|
1814
|
+
type DefaultFunctionArgs = Record<string, unknown>;
|
|
1815
|
+
/**
|
|
1816
|
+
* A type for the empty object `{}`.
|
|
1817
|
+
*
|
|
1818
|
+
* Note that we don't use `type EmptyObject = {}` because that matches every object.
|
|
1819
|
+
*/
|
|
1820
|
+
type EmptyObject = Record<string, never>;
|
|
1821
|
+
/**
|
|
1822
|
+
* A type representing the visibility of a Convex function.
|
|
1823
|
+
*
|
|
1824
|
+
* @public
|
|
1825
|
+
*/
|
|
1826
|
+
type FunctionVisibility = "public" | "internal";
|
|
1827
|
+
//#endregion
|
|
1828
|
+
//#region ../../node_modules/.pnpm/convex@1.27.0_react@19.2.3/node_modules/convex/dist/cjs-types/server/storage.d.ts
|
|
1829
|
+
/**
|
|
1830
|
+
* A reference to a file in storage.
|
|
1831
|
+
*
|
|
1832
|
+
* This is used in the {@link StorageReader} and {@link StorageWriter} which are accessible in
|
|
1833
|
+
* Convex queries and mutations via {@link QueryCtx} and {@link MutationCtx} respectively.
|
|
1834
|
+
*
|
|
1835
|
+
* @public
|
|
1836
|
+
*/
|
|
1837
|
+
type StorageId = string;
|
|
1838
|
+
/**
|
|
1839
|
+
* Metadata for a single file as returned by {@link StorageReader.getMetadata | storage.getMetadata}.
|
|
1840
|
+
*
|
|
1841
|
+
* @public
|
|
1842
|
+
*/
|
|
1843
|
+
type FileMetadata = {
|
|
1844
|
+
/**
|
|
1845
|
+
* ID for referencing the file (eg. via {@link StorageReader.getUrl | storage.getUrl})
|
|
1846
|
+
*/
|
|
1847
|
+
storageId: StorageId;
|
|
1848
|
+
/**
|
|
1849
|
+
* Hex encoded sha256 checksum of file contents
|
|
1850
|
+
*/
|
|
1851
|
+
sha256: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* Size of the file in bytes
|
|
1854
|
+
*/
|
|
1855
|
+
size: number;
|
|
1856
|
+
/**
|
|
1857
|
+
* ContentType of the file if it was provided on upload
|
|
1858
|
+
*/
|
|
1859
|
+
contentType: string | null;
|
|
1860
|
+
};
|
|
1861
|
+
/**
|
|
1862
|
+
* An interface to read files from storage within Convex query functions.
|
|
1863
|
+
*
|
|
1864
|
+
* @public
|
|
1865
|
+
*/
|
|
1866
|
+
interface StorageReader {
|
|
1867
|
+
/**
|
|
1868
|
+
* Get the URL for a file in storage by its `Id<"_storage">`.
|
|
1869
|
+
*
|
|
1870
|
+
* The GET response includes a standard HTTP Digest header with a sha256 checksum.
|
|
1871
|
+
*
|
|
1872
|
+
* @param storageId - The `Id<"_storage">` of the file to fetch from Convex storage.
|
|
1873
|
+
* @returns - A url which fetches the file via an HTTP GET, or `null` if it no longer exists.
|
|
1874
|
+
*/
|
|
1875
|
+
getUrl(storageId: Id<"_storage">): Promise<string | null>;
|
|
1876
|
+
/**
|
|
1877
|
+
* @deprecated Passing a string is deprecated, use `storage.getUrl(Id<"_storage">)` instead.
|
|
1878
|
+
*
|
|
1879
|
+
* Get the URL for a file in storage by its {@link StorageId}.
|
|
1880
|
+
*
|
|
1881
|
+
* The GET response includes a standard HTTP Digest header with a sha256 checksum.
|
|
1882
|
+
*
|
|
1883
|
+
* @param storageId - The {@link StorageId} of the file to fetch from Convex storage.
|
|
1884
|
+
* @returns - A url which fetches the file via an HTTP GET, or `null` if it no longer exists.
|
|
1885
|
+
*/
|
|
1886
|
+
getUrl<T extends StorageId>(storageId: T extends {
|
|
1887
|
+
__tableName: any;
|
|
1888
|
+
} ? never : T): Promise<string | null>;
|
|
1889
|
+
/**
|
|
1890
|
+
* @deprecated This function is deprecated, use `db.system.get(Id<"_storage">)` instead.
|
|
1891
|
+
*
|
|
1892
|
+
* Get metadata for a file.
|
|
1893
|
+
*
|
|
1894
|
+
* @param storageId - The `Id<"_storage">` of the file.
|
|
1895
|
+
* @returns - A {@link FileMetadata} object if found or `null` if not found.
|
|
1896
|
+
*/
|
|
1897
|
+
getMetadata(storageId: Id<"_storage">): Promise<FileMetadata | null>;
|
|
1898
|
+
/**
|
|
1899
|
+
* @deprecated This function is deprecated, use `db.system.get(Id<"_storage">)` instead.
|
|
1900
|
+
*
|
|
1901
|
+
* Get metadata for a file.
|
|
1902
|
+
*
|
|
1903
|
+
* @param storageId - The {@link StorageId} of the file.
|
|
1904
|
+
* @returns - A {@link FileMetadata} object if found or `null` if not found.
|
|
1905
|
+
*/
|
|
1906
|
+
getMetadata<T extends StorageId>(storageId: T extends {
|
|
1907
|
+
__tableName: any;
|
|
1908
|
+
} ? never : T): Promise<FileMetadata | null>;
|
|
1909
|
+
}
|
|
1910
|
+
//#endregion
|
|
1911
|
+
export { FunctionReference as n, UserIdentity as r, GenericQueryCtx as t };
|
|
1912
|
+
//# sourceMappingURL=storage-CKzvsBxG.d.ts.map
|