@hexclave/shared 1.0.0
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/dist/ai/image-limits.d.ts +24 -0
- package/dist/ai/image-limits.d.ts.map +1 -0
- package/dist/ai/image-limits.js +61 -0
- package/dist/ai/image-limits.js.map +1 -0
- package/dist/ai/unified-prompts/reminders.d.ts +5 -0
- package/dist/ai/unified-prompts/reminders.d.ts.map +1 -0
- package/dist/ai/unified-prompts/reminders.js +33 -0
- package/dist/ai/unified-prompts/reminders.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +11 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +851 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +64 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js +12 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt.js +75 -0
- package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -0
- package/dist/apps/apps-config.d.ts +168 -0
- package/dist/apps/apps-config.d.ts.map +1 -0
- package/dist/apps/apps-config.js +157 -0
- package/dist/apps/apps-config.js.map +1 -0
- package/dist/apps/apps-ui.d.ts +45 -0
- package/dist/apps/apps-ui.d.ts.map +1 -0
- package/dist/apps/apps-ui.js +109 -0
- package/dist/apps/apps-ui.js.map +1 -0
- package/dist/chunk-BE-pF4vm.js +34 -0
- package/dist/config/db-sync-mappings.d.ts +193 -0
- package/dist/config/db-sync-mappings.d.ts.map +1 -0
- package/dist/config/db-sync-mappings.js +2255 -0
- package/dist/config/db-sync-mappings.js.map +1 -0
- package/dist/config/format.d.ts +61 -0
- package/dist/config/format.d.ts.map +1 -0
- package/dist/config/format.js +337 -0
- package/dist/config/format.js.map +1 -0
- package/dist/config/migrate-catalogs-to-product-lines.d.ts +14 -0
- package/dist/config/migrate-catalogs-to-product-lines.d.ts.map +1 -0
- package/dist/config/migrate-catalogs-to-product-lines.js +379 -0
- package/dist/config/migrate-catalogs-to-product-lines.js.map +1 -0
- package/dist/config/schema-fuzzer.test.d.ts +1 -0
- package/dist/config/schema-fuzzer.test.js +401 -0
- package/dist/config/schema-fuzzer.test.js.map +1 -0
- package/dist/config/schema.d.ts +2315 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +1085 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config-authoring.d.ts +12 -0
- package/dist/config-authoring.d.ts.map +1 -0
- package/dist/config-authoring.js +12 -0
- package/dist/config-authoring.js.map +1 -0
- package/dist/config-authoring.test.d.ts +1 -0
- package/dist/config-authoring.test.js +29 -0
- package/dist/config-authoring.test.js.map +1 -0
- package/dist/config-rendering.d.ts +17 -0
- package/dist/config-rendering.d.ts.map +1 -0
- package/dist/config-rendering.js +114 -0
- package/dist/config-rendering.js.map +1 -0
- package/dist/crud.d.ts +98 -0
- package/dist/crud.d.ts.map +1 -0
- package/dist/crud.js +129 -0
- package/dist/crud.js.map +1 -0
- package/dist/esm/ai/image-limits.d.ts +24 -0
- package/dist/esm/ai/image-limits.d.ts.map +1 -0
- package/dist/esm/ai/image-limits.js +53 -0
- package/dist/esm/ai/image-limits.js.map +1 -0
- package/dist/esm/ai/unified-prompts/reminders.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/reminders.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/reminders.js +31 -0
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +11 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +843 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +61 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js +10 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt.js +73 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -0
- package/dist/esm/apps/apps-config.d.ts +168 -0
- package/dist/esm/apps/apps-config.d.ts.map +1 -0
- package/dist/esm/apps/apps-config.js +154 -0
- package/dist/esm/apps/apps-config.js.map +1 -0
- package/dist/esm/apps/apps-ui.d.ts +45 -0
- package/dist/esm/apps/apps-ui.d.ts.map +1 -0
- package/dist/esm/apps/apps-ui.js +104 -0
- package/dist/esm/apps/apps-ui.js.map +1 -0
- package/dist/esm/config/db-sync-mappings.d.ts +193 -0
- package/dist/esm/config/db-sync-mappings.d.ts.map +1 -0
- package/dist/esm/config/db-sync-mappings.js +2253 -0
- package/dist/esm/config/db-sync-mappings.js.map +1 -0
- package/dist/esm/config/format.d.ts +61 -0
- package/dist/esm/config/format.d.ts.map +1 -0
- package/dist/esm/config/format.js +327 -0
- package/dist/esm/config/format.js.map +1 -0
- package/dist/esm/config/migrate-catalogs-to-product-lines.d.ts +14 -0
- package/dist/esm/config/migrate-catalogs-to-product-lines.d.ts.map +1 -0
- package/dist/esm/config/migrate-catalogs-to-product-lines.js +377 -0
- package/dist/esm/config/migrate-catalogs-to-product-lines.js.map +1 -0
- package/dist/esm/config/schema-fuzzer.test.d.ts +1 -0
- package/dist/esm/config/schema-fuzzer.test.js +401 -0
- package/dist/esm/config/schema-fuzzer.test.js.map +1 -0
- package/dist/esm/config/schema.d.ts +2315 -0
- package/dist/esm/config/schema.d.ts.map +1 -0
- package/dist/esm/config/schema.js +1065 -0
- package/dist/esm/config/schema.js.map +1 -0
- package/dist/esm/config-authoring.d.ts +12 -0
- package/dist/esm/config-authoring.d.ts.map +1 -0
- package/dist/esm/config-authoring.js +9 -0
- package/dist/esm/config-authoring.js.map +1 -0
- package/dist/esm/config-authoring.test.d.ts +1 -0
- package/dist/esm/config-authoring.test.js +29 -0
- package/dist/esm/config-authoring.test.js.map +1 -0
- package/dist/esm/config-rendering.d.ts +17 -0
- package/dist/esm/config-rendering.d.ts.map +1 -0
- package/dist/esm/config-rendering.js +108 -0
- package/dist/esm/config-rendering.js.map +1 -0
- package/dist/esm/crud.d.ts +98 -0
- package/dist/esm/crud.d.ts.map +1 -0
- package/dist/esm/crud.js +127 -0
- package/dist/esm/crud.js.map +1 -0
- package/dist/esm/global.d.ts +1 -0
- package/dist/esm/helpers/emails.d.ts +69 -0
- package/dist/esm/helpers/emails.d.ts.map +1 -0
- package/dist/esm/helpers/emails.js +243 -0
- package/dist/esm/helpers/emails.js.map +1 -0
- package/dist/esm/helpers/init-prompt.d.ts +5 -0
- package/dist/esm/helpers/init-prompt.d.ts.map +1 -0
- package/dist/esm/helpers/init-prompt.js +40 -0
- package/dist/esm/helpers/init-prompt.js.map +1 -0
- package/dist/esm/helpers/password.d.ts +7 -0
- package/dist/esm/helpers/password.d.ts.map +1 -0
- package/dist/esm/helpers/password.js +13 -0
- package/dist/esm/helpers/password.js.map +1 -0
- package/dist/esm/helpers/production-mode.d.ts +11 -0
- package/dist/esm/helpers/production-mode.d.ts.map +1 -0
- package/dist/esm/helpers/production-mode.js +46 -0
- package/dist/esm/helpers/production-mode.js.map +1 -0
- package/dist/esm/helpers/support-sla.d.ts +48 -0
- package/dist/esm/helpers/support-sla.d.ts.map +1 -0
- package/dist/esm/helpers/support-sla.js +65 -0
- package/dist/esm/helpers/support-sla.js.map +1 -0
- package/dist/esm/helpers/support-sla.test.d.ts +1 -0
- package/dist/esm/helpers/support-sla.test.js +102 -0
- package/dist/esm/helpers/support-sla.test.js.map +1 -0
- package/dist/esm/helpers/vault/client-side.d.ts +16 -0
- package/dist/esm/helpers/vault/client-side.d.ts.map +1 -0
- package/dist/esm/helpers/vault/client-side.js +69 -0
- package/dist/esm/helpers/vault/client-side.js.map +1 -0
- package/dist/esm/helpers/vault/server-side.d.ts +9 -0
- package/dist/esm/helpers/vault/server-side.d.ts.map +1 -0
- package/dist/esm/helpers/vault/server-side.js +123 -0
- package/dist/esm/helpers/vault/server-side.js.map +1 -0
- package/dist/esm/hooks/use-async-callback.d.ts +8 -0
- package/dist/esm/hooks/use-async-callback.d.ts.map +1 -0
- package/dist/esm/hooks/use-async-callback.js +38 -0
- package/dist/esm/hooks/use-async-callback.js.map +1 -0
- package/dist/esm/hooks/use-async-external-store.d.ts +9 -0
- package/dist/esm/hooks/use-async-external-store.d.ts.map +1 -0
- package/dist/esm/hooks/use-async-external-store.js +20 -0
- package/dist/esm/hooks/use-async-external-store.js.map +1 -0
- package/dist/esm/hooks/use-hash.d.ts +5 -0
- package/dist/esm/hooks/use-hash.d.ts.map +1 -0
- package/dist/esm/hooks/use-hash.js +15 -0
- package/dist/esm/hooks/use-hash.js.map +1 -0
- package/dist/esm/hooks/use-hover.d.ts +8 -0
- package/dist/esm/hooks/use-hover.d.ts.map +1 -0
- package/dist/esm/hooks/use-hover.js +59 -0
- package/dist/esm/hooks/use-hover.js.map +1 -0
- package/dist/esm/hooks/use-strict-memo.d.ts +10 -0
- package/dist/esm/hooks/use-strict-memo.d.ts.map +1 -0
- package/dist/esm/hooks/use-strict-memo.js +119 -0
- package/dist/esm/hooks/use-strict-memo.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/interface/admin-interface.d.ts +308 -0
- package/dist/esm/interface/admin-interface.d.ts.map +1 -0
- package/dist/esm/interface/admin-interface.js +463 -0
- package/dist/esm/interface/admin-interface.js.map +1 -0
- package/dist/esm/interface/admin-metrics.d.ts +597 -0
- package/dist/esm/interface/admin-metrics.d.ts.map +1 -0
- package/dist/esm/interface/admin-metrics.js +134 -0
- package/dist/esm/interface/admin-metrics.js.map +1 -0
- package/dist/esm/interface/client-interface.d.ts +447 -0
- package/dist/esm/interface/client-interface.d.ts.map +1 -0
- package/dist/esm/interface/client-interface.js +1946 -0
- package/dist/esm/interface/client-interface.js.map +1 -0
- package/dist/esm/interface/client-interface.test.d.ts +1 -0
- package/dist/esm/interface/client-interface.test.js +559 -0
- package/dist/esm/interface/client-interface.test.js.map +1 -0
- package/dist/esm/interface/conversations.d.ts +314 -0
- package/dist/esm/interface/conversations.d.ts.map +1 -0
- package/dist/esm/interface/conversations.js +108 -0
- package/dist/esm/interface/conversations.js.map +1 -0
- package/dist/esm/interface/crud/analytics.d.ts +14 -0
- package/dist/esm/interface/crud/analytics.d.ts.map +1 -0
- package/dist/esm/interface/crud/analytics.js +1 -0
- package/dist/esm/interface/crud/connected-accounts.d.ts +69 -0
- package/dist/esm/interface/crud/connected-accounts.d.ts.map +1 -0
- package/dist/esm/interface/crud/connected-accounts.js +35 -0
- package/dist/esm/interface/crud/connected-accounts.js.map +1 -0
- package/dist/esm/interface/crud/contact-channels.d.ts +182 -0
- package/dist/esm/interface/crud/contact-channels.d.ts.map +1 -0
- package/dist/esm/interface/crud/contact-channels.js +68 -0
- package/dist/esm/interface/crud/contact-channels.js.map +1 -0
- package/dist/esm/interface/crud/current-user.d.ts +286 -0
- package/dist/esm/interface/crud/current-user.d.ts.map +1 -0
- package/dist/esm/interface/crud/current-user.js +69 -0
- package/dist/esm/interface/crud/current-user.js.map +1 -0
- package/dist/esm/interface/crud/email-outbox.d.ts +1466 -0
- package/dist/esm/interface/crud/email-outbox.d.ts.map +1 -0
- package/dist/esm/interface/crud/email-outbox.js +190 -0
- package/dist/esm/interface/crud/email-outbox.js.map +1 -0
- package/dist/esm/interface/crud/email-templates.d.ts +86 -0
- package/dist/esm/interface/crud/email-templates.d.ts.map +1 -0
- package/dist/esm/interface/crud/email-templates.js +46 -0
- package/dist/esm/interface/crud/email-templates.js.map +1 -0
- package/dist/esm/interface/crud/emails.d.ts +42 -0
- package/dist/esm/interface/crud/emails.d.ts.map +1 -0
- package/dist/esm/interface/crud/emails.js +19 -0
- package/dist/esm/interface/crud/emails.js.map +1 -0
- package/dist/esm/interface/crud/internal-api-keys.d.ts +141 -0
- package/dist/esm/interface/crud/internal-api-keys.d.ts.map +1 -0
- package/dist/esm/interface/crud/internal-api-keys.js +49 -0
- package/dist/esm/interface/crud/internal-api-keys.js.map +1 -0
- package/dist/esm/interface/crud/invoices.d.ts +43 -0
- package/dist/esm/interface/crud/invoices.d.ts.map +1 -0
- package/dist/esm/interface/crud/invoices.js +25 -0
- package/dist/esm/interface/crud/invoices.js.map +1 -0
- package/dist/esm/interface/crud/items.d.ts +31 -0
- package/dist/esm/interface/crud/items.d.ts.map +1 -0
- package/dist/esm/interface/crud/items.js +23 -0
- package/dist/esm/interface/crud/items.js.map +1 -0
- package/dist/esm/interface/crud/notification-preferences.d.ts +39 -0
- package/dist/esm/interface/crud/notification-preferences.d.ts.map +1 -0
- package/dist/esm/interface/crud/notification-preferences.js +31 -0
- package/dist/esm/interface/crud/notification-preferences.js.map +1 -0
- package/dist/esm/interface/crud/oauth-providers.d.ts +187 -0
- package/dist/esm/interface/crud/oauth-providers.d.ts.map +1 -0
- package/dist/esm/interface/crud/oauth-providers.js +75 -0
- package/dist/esm/interface/crud/oauth-providers.js.map +1 -0
- package/dist/esm/interface/crud/products.d.ts +182 -0
- package/dist/esm/interface/crud/products.d.ts.map +1 -0
- package/dist/esm/interface/crud/products.js +29 -0
- package/dist/esm/interface/crud/products.js.map +1 -0
- package/dist/esm/interface/crud/project-api-keys.d.ts +204 -0
- package/dist/esm/interface/crud/project-api-keys.d.ts.map +1 -0
- package/dist/esm/interface/crud/project-api-keys.js +72 -0
- package/dist/esm/interface/crud/project-api-keys.js.map +1 -0
- package/dist/esm/interface/crud/project-permissions.d.ts +162 -0
- package/dist/esm/interface/crud/project-permissions.d.ts.map +1 -0
- package/dist/esm/interface/crud/project-permissions.js +104 -0
- package/dist/esm/interface/crud/project-permissions.js.map +1 -0
- package/dist/esm/interface/crud/projects.d.ts +852 -0
- package/dist/esm/interface/crud/projects.d.ts.map +1 -0
- package/dist/esm/interface/crud/projects.js +193 -0
- package/dist/esm/interface/crud/projects.js.map +1 -0
- package/dist/esm/interface/crud/session-replays.d.ts +83 -0
- package/dist/esm/interface/crud/session-replays.d.ts.map +1 -0
- package/dist/esm/interface/crud/session-replays.js +1 -0
- package/dist/esm/interface/crud/sessions.d.ts +151 -0
- package/dist/esm/interface/crud/sessions.d.ts.map +1 -0
- package/dist/esm/interface/crud/sessions.js +56 -0
- package/dist/esm/interface/crud/sessions.js.map +1 -0
- package/dist/esm/interface/crud/sign-up-rules.d.ts +15 -0
- package/dist/esm/interface/crud/sign-up-rules.d.ts.map +1 -0
- package/dist/esm/interface/crud/sign-up-rules.js +1 -0
- package/dist/esm/interface/crud/svix-token.d.ts +32 -0
- package/dist/esm/interface/crud/svix-token.d.ts.map +1 -0
- package/dist/esm/interface/crud/svix-token.js +18 -0
- package/dist/esm/interface/crud/svix-token.js.map +1 -0
- package/dist/esm/interface/crud/team-invitation-details.d.ts +32 -0
- package/dist/esm/interface/crud/team-invitation-details.d.ts.map +1 -0
- package/dist/esm/interface/crud/team-invitation-details.js +21 -0
- package/dist/esm/interface/crud/team-invitation-details.js.map +1 -0
- package/dist/esm/interface/crud/team-invitation.d.ts +55 -0
- package/dist/esm/interface/crud/team-invitation.d.ts.map +1 -0
- package/dist/esm/interface/crud/team-invitation.js +37 -0
- package/dist/esm/interface/crud/team-invitation.js.map +1 -0
- package/dist/esm/interface/crud/team-member-profiles.d.ts +287 -0
- package/dist/esm/interface/crud/team-member-profiles.d.ts.map +1 -0
- package/dist/esm/interface/crud/team-member-profiles.js +58 -0
- package/dist/esm/interface/crud/team-member-profiles.js.map +1 -0
- package/dist/esm/interface/crud/team-memberships.d.ts +76 -0
- package/dist/esm/interface/crud/team-memberships.d.ts.map +1 -0
- package/dist/esm/interface/crud/team-memberships.js +54 -0
- package/dist/esm/interface/crud/team-memberships.js.map +1 -0
- package/dist/esm/interface/crud/team-permissions.d.ts +170 -0
- package/dist/esm/interface/crud/team-permissions.d.ts.map +1 -0
- package/dist/esm/interface/crud/team-permissions.js +105 -0
- package/dist/esm/interface/crud/team-permissions.js.map +1 -0
- package/dist/esm/interface/crud/teams.d.ts +300 -0
- package/dist/esm/interface/crud/teams.d.ts.map +1 -0
- package/dist/esm/interface/crud/teams.js +129 -0
- package/dist/esm/interface/crud/teams.js.map +1 -0
- package/dist/esm/interface/crud/transactions.d.ts +183 -0
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -0
- package/dist/esm/interface/crud/transactions.js +85 -0
- package/dist/esm/interface/crud/transactions.js.map +1 -0
- package/dist/esm/interface/crud/users.d.ts +654 -0
- package/dist/esm/interface/crud/users.d.ts.map +1 -0
- package/dist/esm/interface/crud/users.js +181 -0
- package/dist/esm/interface/crud/users.js.map +1 -0
- package/dist/esm/interface/handler-urls.d.ts +51 -0
- package/dist/esm/interface/handler-urls.d.ts.map +1 -0
- package/dist/esm/interface/handler-urls.js +3 -0
- package/dist/esm/interface/page-component-versions.d.ts +25 -0
- package/dist/esm/interface/page-component-versions.d.ts.map +1 -0
- package/dist/esm/interface/page-component-versions.js +1661 -0
- package/dist/esm/interface/page-component-versions.js.map +1 -0
- package/dist/esm/interface/server-interface.d.ts +255 -0
- package/dist/esm/interface/server-interface.d.ts.map +1 -0
- package/dist/esm/interface/server-interface.js +459 -0
- package/dist/esm/interface/server-interface.js.map +1 -0
- package/dist/esm/interface/webhooks.d.ts +326 -0
- package/dist/esm/interface/webhooks.d.ts.map +1 -0
- package/dist/esm/interface/webhooks.js +22 -0
- package/dist/esm/interface/webhooks.js.map +1 -0
- package/dist/esm/known-errors.d.ts +575 -0
- package/dist/esm/known-errors.d.ts.map +1 -0
- package/dist/esm/known-errors.js +791 -0
- package/dist/esm/known-errors.js.map +1 -0
- package/dist/esm/local-emulator.d.ts +6 -0
- package/dist/esm/local-emulator.d.ts.map +1 -0
- package/dist/esm/local-emulator.js +7 -0
- package/dist/esm/local-emulator.js.map +1 -0
- package/dist/esm/payments/payment-methods.d.ts +64 -0
- package/dist/esm/payments/payment-methods.d.ts.map +1 -0
- package/dist/esm/payments/payment-methods.js +205 -0
- package/dist/esm/payments/payment-methods.js.map +1 -0
- package/dist/esm/payments/stripe-limits.d.ts +17 -0
- package/dist/esm/payments/stripe-limits.d.ts.map +1 -0
- package/dist/esm/payments/stripe-limits.js +17 -0
- package/dist/esm/payments/stripe-limits.js.map +1 -0
- package/dist/esm/plans.d.ts +72 -0
- package/dist/esm/plans.d.ts.map +1 -0
- package/dist/esm/plans.js +81 -0
- package/dist/esm/plans.js.map +1 -0
- package/dist/esm/schema-fields.d.ts +472 -0
- package/dist/esm/schema-fields.d.ts.map +1 -0
- package/dist/esm/schema-fields.js +1009 -0
- package/dist/esm/schema-fields.js.map +1 -0
- package/dist/esm/sessions.d.ts +165 -0
- package/dist/esm/sessions.d.ts.map +1 -0
- package/dist/esm/sessions.js +226 -0
- package/dist/esm/sessions.js.map +1 -0
- package/dist/esm/stack-config-file.d.ts +15 -0
- package/dist/esm/stack-config-file.d.ts.map +1 -0
- package/dist/esm/stack-config-file.js +76 -0
- package/dist/esm/stack-config-file.js.map +1 -0
- package/dist/esm/utils/api-keys.d.ts +26 -0
- package/dist/esm/utils/api-keys.d.ts.map +1 -0
- package/dist/esm/utils/api-keys.js +77 -0
- package/dist/esm/utils/api-keys.js.map +1 -0
- package/dist/esm/utils/arrays.d.ts +25 -0
- package/dist/esm/utils/arrays.d.ts.map +1 -0
- package/dist/esm/utils/arrays.js +552 -0
- package/dist/esm/utils/arrays.js.map +1 -0
- package/dist/esm/utils/auth-methods.d.ts +6 -0
- package/dist/esm/utils/auth-methods.d.ts.map +1 -0
- package/dist/esm/utils/auth-methods.js +11 -0
- package/dist/esm/utils/auth-methods.js.map +1 -0
- package/dist/esm/utils/base64.d.ts +6 -0
- package/dist/esm/utils/base64.d.ts.map +1 -0
- package/dist/esm/utils/base64.js +25 -0
- package/dist/esm/utils/base64.js.map +1 -0
- package/dist/esm/utils/booleans.d.ts +8 -0
- package/dist/esm/utils/booleans.d.ts.map +1 -0
- package/dist/esm/utils/booleans.js +35 -0
- package/dist/esm/utils/booleans.js.map +1 -0
- package/dist/esm/utils/browser-compat.d.ts +10 -0
- package/dist/esm/utils/browser-compat.d.ts.map +1 -0
- package/dist/esm/utils/browser-compat.js +21 -0
- package/dist/esm/utils/browser-compat.js.map +1 -0
- package/dist/esm/utils/bytes.d.ts +17 -0
- package/dist/esm/utils/bytes.d.ts.map +1 -0
- package/dist/esm/utils/bytes.js +290 -0
- package/dist/esm/utils/bytes.js.map +1 -0
- package/dist/esm/utils/caches.d.ts +102 -0
- package/dist/esm/utils/caches.d.ts.map +1 -0
- package/dist/esm/utils/caches.js +185 -0
- package/dist/esm/utils/caches.js.map +1 -0
- package/dist/esm/utils/cel-fields.d.ts +23 -0
- package/dist/esm/utils/cel-fields.d.ts.map +1 -0
- package/dist/esm/utils/cel-fields.js +99 -0
- package/dist/esm/utils/cel-fields.js.map +1 -0
- package/dist/esm/utils/compile-time.d.ts +10 -0
- package/dist/esm/utils/compile-time.d.ts.map +1 -0
- package/dist/esm/utils/compile-time.js +14 -0
- package/dist/esm/utils/compile-time.js.map +1 -0
- package/dist/esm/utils/country-codes.d.ts +11 -0
- package/dist/esm/utils/country-codes.d.ts.map +1 -0
- package/dist/esm/utils/country-codes.js +36 -0
- package/dist/esm/utils/country-codes.js.map +1 -0
- package/dist/esm/utils/crypto.d.ts +48 -0
- package/dist/esm/utils/crypto.d.ts.map +1 -0
- package/dist/esm/utils/crypto.js +208 -0
- package/dist/esm/utils/crypto.js.map +1 -0
- package/dist/esm/utils/currencies.d.ts +8 -0
- package/dist/esm/utils/currencies.d.ts.map +1 -0
- package/dist/esm/utils/currencies.js +50 -0
- package/dist/esm/utils/currencies.js.map +1 -0
- package/dist/esm/utils/currency-constants.d.ts +39 -0
- package/dist/esm/utils/currency-constants.d.ts.map +1 -0
- package/dist/esm/utils/currency-constants.js +42 -0
- package/dist/esm/utils/currency-constants.js.map +1 -0
- package/dist/esm/utils/dates.d.ts +23 -0
- package/dist/esm/utils/dates.d.ts.map +1 -0
- package/dist/esm/utils/dates.js +167 -0
- package/dist/esm/utils/dates.js.map +1 -0
- package/dist/esm/utils/dev-env-state-path.d.ts +6 -0
- package/dist/esm/utils/dev-env-state-path.d.ts.map +1 -0
- package/dist/esm/utils/dev-env-state-path.js +15 -0
- package/dist/esm/utils/dev-env-state-path.js.map +1 -0
- package/dist/esm/utils/dom.d.ts +5 -0
- package/dist/esm/utils/dom.d.ts.map +1 -0
- package/dist/esm/utils/dom.js +11 -0
- package/dist/esm/utils/dom.js.map +1 -0
- package/dist/esm/utils/env.d.ts +25 -0
- package/dist/esm/utils/env.d.ts.map +1 -0
- package/dist/esm/utils/env.js +78 -0
- package/dist/esm/utils/env.js.map +1 -0
- package/dist/esm/utils/errors.d.ts +231 -0
- package/dist/esm/utils/errors.d.ts.map +1 -0
- package/dist/esm/utils/errors.js +385 -0
- package/dist/esm/utils/errors.js.map +1 -0
- package/dist/esm/utils/esbuild.d.ts +16 -0
- package/dist/esm/utils/esbuild.d.ts.map +1 -0
- package/dist/esm/utils/esbuild.js +182 -0
- package/dist/esm/utils/esbuild.js.map +1 -0
- package/dist/esm/utils/featurebase.d.ts +30 -0
- package/dist/esm/utils/featurebase.d.ts.map +1 -0
- package/dist/esm/utils/featurebase.js +166 -0
- package/dist/esm/utils/featurebase.js.map +1 -0
- package/dist/esm/utils/fs.d.ts +9 -0
- package/dist/esm/utils/fs.d.ts.map +1 -0
- package/dist/esm/utils/fs.js +25 -0
- package/dist/esm/utils/fs.js.map +1 -0
- package/dist/esm/utils/functions.d.ts +6 -0
- package/dist/esm/utils/functions.d.ts.map +1 -0
- package/dist/esm/utils/functions.js +34 -0
- package/dist/esm/utils/functions.js.map +1 -0
- package/dist/esm/utils/geo.d.ts +24 -0
- package/dist/esm/utils/geo.d.ts.map +1 -0
- package/dist/esm/utils/geo.js +16 -0
- package/dist/esm/utils/geo.js.map +1 -0
- package/dist/esm/utils/globals.d.ts +13 -0
- package/dist/esm/utils/globals.d.ts.map +1 -0
- package/dist/esm/utils/globals.js +34 -0
- package/dist/esm/utils/globals.js.map +1 -0
- package/dist/esm/utils/hashes.d.ts +9 -0
- package/dist/esm/utils/hashes.d.ts.map +1 -0
- package/dist/esm/utils/hashes.js +40 -0
- package/dist/esm/utils/hashes.js.map +1 -0
- package/dist/esm/utils/html.d.ts +7 -0
- package/dist/esm/utils/html.d.ts.map +1 -0
- package/dist/esm/utils/html.js +33 -0
- package/dist/esm/utils/html.js.map +1 -0
- package/dist/esm/utils/http.d.ts +45 -0
- package/dist/esm/utils/http.d.ts.map +1 -0
- package/dist/esm/utils/http.js +75 -0
- package/dist/esm/utils/http.js.map +1 -0
- package/dist/esm/utils/ips.d.ts +8 -0
- package/dist/esm/utils/ips.d.ts.map +1 -0
- package/dist/esm/utils/ips.js +36 -0
- package/dist/esm/utils/ips.js.map +1 -0
- package/dist/esm/utils/json.d.ts +15 -0
- package/dist/esm/utils/json.d.ts.map +1 -0
- package/dist/esm/utils/json.js +178 -0
- package/dist/esm/utils/json.js.map +1 -0
- package/dist/esm/utils/jsx-editable-transpiler.d.ts +68 -0
- package/dist/esm/utils/jsx-editable-transpiler.d.ts.map +1 -0
- package/dist/esm/utils/jsx-editable-transpiler.js +216 -0
- package/dist/esm/utils/jsx-editable-transpiler.js.map +1 -0
- package/dist/esm/utils/jsx-editable-transpiler.test.d.ts +1 -0
- package/dist/esm/utils/jsx-editable-transpiler.test.js +122 -0
- package/dist/esm/utils/jsx-editable-transpiler.test.js.map +1 -0
- package/dist/esm/utils/jwt.d.ts +79 -0
- package/dist/esm/utils/jwt.d.ts.map +1 -0
- package/dist/esm/utils/jwt.js +102 -0
- package/dist/esm/utils/jwt.js.map +1 -0
- package/dist/esm/utils/locks.d.ts +17 -0
- package/dist/esm/utils/locks.d.ts.map +1 -0
- package/dist/esm/utils/locks.js +54 -0
- package/dist/esm/utils/locks.js.map +1 -0
- package/dist/esm/utils/maps.d.ts +61 -0
- package/dist/esm/utils/maps.d.ts.map +1 -0
- package/dist/esm/utils/maps.js +297 -0
- package/dist/esm/utils/maps.js.map +1 -0
- package/dist/esm/utils/math.d.ts +8 -0
- package/dist/esm/utils/math.d.ts.map +1 -0
- package/dist/esm/utils/math.js +21 -0
- package/dist/esm/utils/math.js.map +1 -0
- package/dist/esm/utils/monkey-patch.d.ts +7 -0
- package/dist/esm/utils/monkey-patch.d.ts.map +1 -0
- package/dist/esm/utils/monkey-patch.js +21 -0
- package/dist/esm/utils/monkey-patch.js.map +1 -0
- package/dist/esm/utils/node-http.d.ts +17 -0
- package/dist/esm/utils/node-http.d.ts.map +1 -0
- package/dist/esm/utils/node-http.js +38 -0
- package/dist/esm/utils/node-http.js.map +1 -0
- package/dist/esm/utils/numbers.d.ts +7 -0
- package/dist/esm/utils/numbers.d.ts.map +1 -0
- package/dist/esm/utils/numbers.js +75 -0
- package/dist/esm/utils/numbers.js.map +1 -0
- package/dist/esm/utils/oauth.d.ts +11 -0
- package/dist/esm/utils/oauth.d.ts.map +1 -0
- package/dist/esm/utils/oauth.js +27 -0
- package/dist/esm/utils/oauth.js.map +1 -0
- package/dist/esm/utils/objects.d.ts +59 -0
- package/dist/esm/utils/objects.d.ts.map +1 -0
- package/dist/esm/utils/objects.js +818 -0
- package/dist/esm/utils/objects.js.map +1 -0
- package/dist/esm/utils/paginated-lists.d.ts +442 -0
- package/dist/esm/utils/paginated-lists.d.ts.map +1 -0
- package/dist/esm/utils/paginated-lists.js +411 -0
- package/dist/esm/utils/paginated-lists.js.map +1 -0
- package/dist/esm/utils/paginated-lists.test.d.ts +1 -0
- package/dist/esm/utils/paginated-lists.test.js +1304 -0
- package/dist/esm/utils/paginated-lists.test.js.map +1 -0
- package/dist/esm/utils/passkey.d.ts +2 -0
- package/dist/esm/utils/passkey.js +1 -0
- package/dist/esm/utils/promises.d.ts +80 -0
- package/dist/esm/utils/promises.d.ts.map +1 -0
- package/dist/esm/utils/promises.js +333 -0
- package/dist/esm/utils/promises.js.map +1 -0
- package/dist/esm/utils/proxies.d.ts +13 -0
- package/dist/esm/utils/proxies.d.ts.map +1 -0
- package/dist/esm/utils/proxies.js +197 -0
- package/dist/esm/utils/proxies.js.map +1 -0
- package/dist/esm/utils/react.d.ts +61 -0
- package/dist/esm/utils/react.d.ts.map +1 -0
- package/dist/esm/utils/react.js +229 -0
- package/dist/esm/utils/react.js.map +1 -0
- package/dist/esm/utils/redirect-urls.d.ts +30 -0
- package/dist/esm/utils/redirect-urls.d.ts.map +1 -0
- package/dist/esm/utils/redirect-urls.js +215 -0
- package/dist/esm/utils/redirect-urls.js.map +1 -0
- package/dist/esm/utils/regex.d.ts +5 -0
- package/dist/esm/utils/regex.d.ts.map +1 -0
- package/dist/esm/utils/regex.js +13 -0
- package/dist/esm/utils/regex.js.map +1 -0
- package/dist/esm/utils/results.d.ts +70 -0
- package/dist/esm/utils/results.d.ts.map +1 -0
- package/dist/esm/utils/results.js +339 -0
- package/dist/esm/utils/results.js.map +1 -0
- package/dist/esm/utils/sentry.d.ts +13 -0
- package/dist/esm/utils/sentry.d.ts.map +1 -0
- package/dist/esm/utils/sentry.js +14 -0
- package/dist/esm/utils/sentry.js.map +1 -0
- package/dist/esm/utils/stores.d.ts +104 -0
- package/dist/esm/utils/stores.d.ts.map +1 -0
- package/dist/esm/utils/stores.js +175 -0
- package/dist/esm/utils/stores.js.map +1 -0
- package/dist/esm/utils/strings.d.ts +76 -0
- package/dist/esm/utils/strings.d.ts.map +1 -0
- package/dist/esm/utils/strings.js +530 -0
- package/dist/esm/utils/strings.js.map +1 -0
- package/dist/esm/utils/strings.nicify.test.d.ts +1 -0
- package/dist/esm/utils/strings.nicify.test.js +243 -0
- package/dist/esm/utils/strings.nicify.test.js.map +1 -0
- package/dist/esm/utils/telemetry.d.ts +15 -0
- package/dist/esm/utils/telemetry.d.ts.map +1 -0
- package/dist/esm/utils/telemetry.js +31 -0
- package/dist/esm/utils/telemetry.js.map +1 -0
- package/dist/esm/utils/turnstile-browser.d.ts +32 -0
- package/dist/esm/utils/turnstile-browser.d.ts.map +1 -0
- package/dist/esm/utils/turnstile-browser.js +61 -0
- package/dist/esm/utils/turnstile-browser.js.map +1 -0
- package/dist/esm/utils/turnstile-flow.d.ts +29 -0
- package/dist/esm/utils/turnstile-flow.d.ts.map +1 -0
- package/dist/esm/utils/turnstile-flow.js +219 -0
- package/dist/esm/utils/turnstile-flow.js.map +1 -0
- package/dist/esm/utils/turnstile-flow.test.d.ts +1 -0
- package/dist/esm/utils/turnstile-flow.test.js +75 -0
- package/dist/esm/utils/turnstile-flow.test.js.map +1 -0
- package/dist/esm/utils/turnstile.d.ts +17 -0
- package/dist/esm/utils/turnstile.d.ts.map +1 -0
- package/dist/esm/utils/turnstile.js +25 -0
- package/dist/esm/utils/turnstile.js.map +1 -0
- package/dist/esm/utils/typed-arrays.d.ts +14 -0
- package/dist/esm/utils/typed-arrays.d.ts.map +1 -0
- package/dist/esm/utils/typed-arrays.js +20 -0
- package/dist/esm/utils/typed-arrays.js.map +1 -0
- package/dist/esm/utils/types.d.ts +77 -0
- package/dist/esm/utils/types.d.ts.map +1 -0
- package/dist/esm/utils/types.js +55 -0
- package/dist/esm/utils/types.js.map +1 -0
- package/dist/esm/utils/unicode.d.ts +5 -0
- package/dist/esm/utils/unicode.d.ts.map +1 -0
- package/dist/esm/utils/unicode.js +24 -0
- package/dist/esm/utils/unicode.js.map +1 -0
- package/dist/esm/utils/urls.d.ts +28 -0
- package/dist/esm/utils/urls.d.ts.map +1 -0
- package/dist/esm/utils/urls.js +259 -0
- package/dist/esm/utils/urls.js.map +1 -0
- package/dist/esm/utils/uuids.d.ts +6 -0
- package/dist/esm/utils/uuids.d.ts.map +1 -0
- package/dist/esm/utils/uuids.js +36 -0
- package/dist/esm/utils/uuids.js.map +1 -0
- package/dist/global.d.d.ts +0 -0
- package/dist/global.d.ts +1 -0
- package/dist/helpers/emails.d.ts +69 -0
- package/dist/helpers/emails.d.ts.map +1 -0
- package/dist/helpers/emails.js +252 -0
- package/dist/helpers/emails.js.map +1 -0
- package/dist/helpers/init-prompt.d.ts +5 -0
- package/dist/helpers/init-prompt.d.ts.map +1 -0
- package/dist/helpers/init-prompt.js +42 -0
- package/dist/helpers/init-prompt.js.map +1 -0
- package/dist/helpers/password.d.ts +6 -0
- package/dist/helpers/password.d.ts.map +1 -0
- package/dist/helpers/password.js +15 -0
- package/dist/helpers/password.js.map +1 -0
- package/dist/helpers/production-mode.d.ts +11 -0
- package/dist/helpers/production-mode.d.ts.map +1 -0
- package/dist/helpers/production-mode.js +48 -0
- package/dist/helpers/production-mode.js.map +1 -0
- package/dist/helpers/support-sla.d.ts +48 -0
- package/dist/helpers/support-sla.d.ts.map +1 -0
- package/dist/helpers/support-sla.js +72 -0
- package/dist/helpers/support-sla.js.map +1 -0
- package/dist/helpers/support-sla.test.d.ts +1 -0
- package/dist/helpers/support-sla.test.js +102 -0
- package/dist/helpers/support-sla.test.js.map +1 -0
- package/dist/helpers/vault/client-side.d.ts +16 -0
- package/dist/helpers/vault/client-side.d.ts.map +1 -0
- package/dist/helpers/vault/client-side.js +73 -0
- package/dist/helpers/vault/client-side.js.map +1 -0
- package/dist/helpers/vault/server-side.d.ts +9 -0
- package/dist/helpers/vault/server-side.d.ts.map +1 -0
- package/dist/helpers/vault/server-side.js +126 -0
- package/dist/helpers/vault/server-side.js.map +1 -0
- package/dist/hooks/use-async-callback.d.ts +8 -0
- package/dist/hooks/use-async-callback.d.ts.map +1 -0
- package/dist/hooks/use-async-callback.js +42 -0
- package/dist/hooks/use-async-callback.js.map +1 -0
- package/dist/hooks/use-async-external-store.d.ts +9 -0
- package/dist/hooks/use-async-external-store.d.ts.map +1 -0
- package/dist/hooks/use-async-external-store.js +22 -0
- package/dist/hooks/use-async-external-store.js.map +1 -0
- package/dist/hooks/use-hash.d.ts +5 -0
- package/dist/hooks/use-hash.d.ts.map +1 -0
- package/dist/hooks/use-hash.js +17 -0
- package/dist/hooks/use-hash.js.map +1 -0
- package/dist/hooks/use-hover.d.ts +8 -0
- package/dist/hooks/use-hover.d.ts.map +1 -0
- package/dist/hooks/use-hover.js +61 -0
- package/dist/hooks/use-hover.js.map +1 -0
- package/dist/hooks/use-strict-memo.d.ts +10 -0
- package/dist/hooks/use-strict-memo.d.ts.map +1 -0
- package/dist/hooks/use-strict-memo.js +121 -0
- package/dist/hooks/use-strict-memo.js.map +1 -0
- package/dist/index-D9ysacya.d.ts +153 -0
- package/dist/index-D9ysacya.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +37 -0
- package/dist/interface/admin-interface.d.ts +308 -0
- package/dist/interface/admin-interface.d.ts.map +1 -0
- package/dist/interface/admin-interface.js +465 -0
- package/dist/interface/admin-interface.js.map +1 -0
- package/dist/interface/admin-metrics.d.ts +597 -0
- package/dist/interface/admin-metrics.d.ts.map +1 -0
- package/dist/interface/admin-metrics.js +153 -0
- package/dist/interface/admin-metrics.js.map +1 -0
- package/dist/interface/client-interface.d.ts +447 -0
- package/dist/interface/client-interface.d.ts.map +1 -0
- package/dist/interface/client-interface.js +1948 -0
- package/dist/interface/client-interface.js.map +1 -0
- package/dist/interface/client-interface.test.d.ts +1 -0
- package/dist/interface/client-interface.test.js +559 -0
- package/dist/interface/client-interface.test.js.map +1 -0
- package/dist/interface/conversations.d.ts +314 -0
- package/dist/interface/conversations.d.ts.map +1 -0
- package/dist/interface/conversations.js +121 -0
- package/dist/interface/conversations.js.map +1 -0
- package/dist/interface/crud/analytics.d.ts +14 -0
- package/dist/interface/crud/analytics.d.ts.map +1 -0
- package/dist/interface/crud/analytics.js +0 -0
- package/dist/interface/crud/connected-accounts.d.ts +68 -0
- package/dist/interface/crud/connected-accounts.d.ts.map +1 -0
- package/dist/interface/crud/connected-accounts.js +41 -0
- package/dist/interface/crud/connected-accounts.js.map +1 -0
- package/dist/interface/crud/contact-channels.d.ts +181 -0
- package/dist/interface/crud/contact-channels.d.ts.map +1 -0
- package/dist/interface/crud/contact-channels.js +76 -0
- package/dist/interface/crud/contact-channels.js.map +1 -0
- package/dist/interface/crud/current-user.d.ts +285 -0
- package/dist/interface/crud/current-user.d.ts.map +1 -0
- package/dist/interface/crud/current-user.js +71 -0
- package/dist/interface/crud/current-user.js.map +1 -0
- package/dist/interface/crud/email-outbox.d.ts +1465 -0
- package/dist/interface/crud/email-outbox.d.ts.map +1 -0
- package/dist/interface/crud/email-outbox.js +195 -0
- package/dist/interface/crud/email-outbox.js.map +1 -0
- package/dist/interface/crud/email-templates.d.ts +85 -0
- package/dist/interface/crud/email-templates.d.ts.map +1 -0
- package/dist/interface/crud/email-templates.js +53 -0
- package/dist/interface/crud/email-templates.js.map +1 -0
- package/dist/interface/crud/emails.d.ts +41 -0
- package/dist/interface/crud/emails.d.ts.map +1 -0
- package/dist/interface/crud/emails.js +23 -0
- package/dist/interface/crud/emails.js.map +1 -0
- package/dist/interface/crud/internal-api-keys.d.ts +140 -0
- package/dist/interface/crud/internal-api-keys.d.ts.map +1 -0
- package/dist/interface/crud/internal-api-keys.js +56 -0
- package/dist/interface/crud/internal-api-keys.js.map +1 -0
- package/dist/interface/crud/invoices.d.ts +43 -0
- package/dist/interface/crud/invoices.d.ts.map +1 -0
- package/dist/interface/crud/invoices.js +28 -0
- package/dist/interface/crud/invoices.js.map +1 -0
- package/dist/interface/crud/items.d.ts +30 -0
- package/dist/interface/crud/items.d.ts.map +1 -0
- package/dist/interface/crud/items.js +25 -0
- package/dist/interface/crud/items.js.map +1 -0
- package/dist/interface/crud/notification-preferences.d.ts +38 -0
- package/dist/interface/crud/notification-preferences.d.ts.map +1 -0
- package/dist/interface/crud/notification-preferences.js +33 -0
- package/dist/interface/crud/notification-preferences.js.map +1 -0
- package/dist/interface/crud/oauth-providers.d.ts +186 -0
- package/dist/interface/crud/oauth-providers.d.ts.map +1 -0
- package/dist/interface/crud/oauth-providers.js +83 -0
- package/dist/interface/crud/oauth-providers.js.map +1 -0
- package/dist/interface/crud/products.d.ts +182 -0
- package/dist/interface/crud/products.d.ts.map +1 -0
- package/dist/interface/crud/products.js +32 -0
- package/dist/interface/crud/products.js.map +1 -0
- package/dist/interface/crud/project-api-keys.d.ts +203 -0
- package/dist/interface/crud/project-api-keys.d.ts.map +1 -0
- package/dist/interface/crud/project-api-keys.js +79 -0
- package/dist/interface/crud/project-api-keys.js.map +1 -0
- package/dist/interface/crud/project-permissions.d.ts +161 -0
- package/dist/interface/crud/project-permissions.d.ts.map +1 -0
- package/dist/interface/crud/project-permissions.js +116 -0
- package/dist/interface/crud/project-permissions.js.map +1 -0
- package/dist/interface/crud/projects.d.ts +851 -0
- package/dist/interface/crud/projects.d.ts.map +1 -0
- package/dist/interface/crud/projects.js +204 -0
- package/dist/interface/crud/projects.js.map +1 -0
- package/dist/interface/crud/session-replays.d.ts +83 -0
- package/dist/interface/crud/session-replays.d.ts.map +1 -0
- package/dist/interface/crud/session-replays.js +0 -0
- package/dist/interface/crud/sessions.d.ts +150 -0
- package/dist/interface/crud/sessions.d.ts.map +1 -0
- package/dist/interface/crud/sessions.js +62 -0
- package/dist/interface/crud/sessions.js.map +1 -0
- package/dist/interface/crud/sign-up-rules.d.ts +15 -0
- package/dist/interface/crud/sign-up-rules.d.ts.map +1 -0
- package/dist/interface/crud/sign-up-rules.js +0 -0
- package/dist/interface/crud/svix-token.d.ts +31 -0
- package/dist/interface/crud/svix-token.d.ts.map +1 -0
- package/dist/interface/crud/svix-token.js +22 -0
- package/dist/interface/crud/svix-token.js.map +1 -0
- package/dist/interface/crud/team-invitation-details.d.ts +31 -0
- package/dist/interface/crud/team-invitation-details.d.ts.map +1 -0
- package/dist/interface/crud/team-invitation-details.js +24 -0
- package/dist/interface/crud/team-invitation-details.js.map +1 -0
- package/dist/interface/crud/team-invitation.d.ts +54 -0
- package/dist/interface/crud/team-invitation.d.ts.map +1 -0
- package/dist/interface/crud/team-invitation.js +40 -0
- package/dist/interface/crud/team-invitation.js.map +1 -0
- package/dist/interface/crud/team-member-profiles.d.ts +286 -0
- package/dist/interface/crud/team-member-profiles.d.ts.map +1 -0
- package/dist/interface/crud/team-member-profiles.js +63 -0
- package/dist/interface/crud/team-member-profiles.js.map +1 -0
- package/dist/interface/crud/team-memberships.d.ts +75 -0
- package/dist/interface/crud/team-memberships.d.ts.map +1 -0
- package/dist/interface/crud/team-memberships.js +61 -0
- package/dist/interface/crud/team-memberships.js.map +1 -0
- package/dist/interface/crud/team-permissions.d.ts +169 -0
- package/dist/interface/crud/team-permissions.d.ts.map +1 -0
- package/dist/interface/crud/team-permissions.js +117 -0
- package/dist/interface/crud/team-permissions.js.map +1 -0
- package/dist/interface/crud/teams.d.ts +299 -0
- package/dist/interface/crud/teams.d.ts.map +1 -0
- package/dist/interface/crud/teams.js +142 -0
- package/dist/interface/crud/teams.js.map +1 -0
- package/dist/interface/crud/transactions.d.ts +183 -0
- package/dist/interface/crud/transactions.d.ts.map +1 -0
- package/dist/interface/crud/transactions.js +89 -0
- package/dist/interface/crud/transactions.js.map +1 -0
- package/dist/interface/crud/users.d.ts +653 -0
- package/dist/interface/crud/users.d.ts.map +1 -0
- package/dist/interface/crud/users.js +193 -0
- package/dist/interface/crud/users.js.map +1 -0
- package/dist/interface/handler-urls.d.ts +51 -0
- package/dist/interface/handler-urls.d.ts.map +1 -0
- package/dist/interface/handler-urls.js +16 -0
- package/dist/interface/page-component-versions.d.ts +25 -0
- package/dist/interface/page-component-versions.d.ts.map +1 -0
- package/dist/interface/page-component-versions.js +1664 -0
- package/dist/interface/page-component-versions.js.map +1 -0
- package/dist/interface/server-interface.d.ts +255 -0
- package/dist/interface/server-interface.d.ts.map +1 -0
- package/dist/interface/server-interface.js +461 -0
- package/dist/interface/server-interface.js.map +1 -0
- package/dist/interface/webhooks.d.ts +326 -0
- package/dist/interface/webhooks.d.ts.map +1 -0
- package/dist/interface/webhooks.js +24 -0
- package/dist/interface/webhooks.js.map +1 -0
- package/dist/known-errors.d.ts +575 -0
- package/dist/known-errors.d.ts.map +1 -0
- package/dist/known-errors.js +794 -0
- package/dist/known-errors.js.map +1 -0
- package/dist/local-emulator.d.ts +6 -0
- package/dist/local-emulator.d.ts.map +1 -0
- package/dist/local-emulator.js +10 -0
- package/dist/local-emulator.js.map +1 -0
- package/dist/payments/payment-methods.d.ts +64 -0
- package/dist/payments/payment-methods.d.ts.map +1 -0
- package/dist/payments/payment-methods.js +216 -0
- package/dist/payments/payment-methods.js.map +1 -0
- package/dist/payments/stripe-limits.d.ts +17 -0
- package/dist/payments/stripe-limits.d.ts.map +1 -0
- package/dist/payments/stripe-limits.js +20 -0
- package/dist/payments/stripe-limits.js.map +1 -0
- package/dist/plans.d.ts +72 -0
- package/dist/plans.d.ts.map +1 -0
- package/dist/plans.js +88 -0
- package/dist/plans.js.map +1 -0
- package/dist/schema-fields.d.ts +472 -0
- package/dist/schema-fields.d.ts.map +1 -0
- package/dist/schema-fields.js +1188 -0
- package/dist/schema-fields.js.map +1 -0
- package/dist/sessions.d.ts +165 -0
- package/dist/sessions.d.ts.map +1 -0
- package/dist/sessions.js +231 -0
- package/dist/sessions.js.map +1 -0
- package/dist/stack-config-file.d.ts +15 -0
- package/dist/stack-config-file.d.ts.map +1 -0
- package/dist/stack-config-file.js +82 -0
- package/dist/stack-config-file.js.map +1 -0
- package/dist/utils/api-keys.d.ts +26 -0
- package/dist/utils/api-keys.d.ts.map +1 -0
- package/dist/utils/api-keys.js +82 -0
- package/dist/utils/api-keys.js.map +1 -0
- package/dist/utils/arrays.d.ts +25 -0
- package/dist/utils/arrays.d.ts.map +1 -0
- package/dist/utils/arrays.js +569 -0
- package/dist/utils/arrays.js.map +1 -0
- package/dist/utils/auth-methods.d.ts +6 -0
- package/dist/utils/auth-methods.d.ts.map +1 -0
- package/dist/utils/auth-methods.js +13 -0
- package/dist/utils/auth-methods.js.map +1 -0
- package/dist/utils/base64.d.ts +6 -0
- package/dist/utils/base64.d.ts.map +1 -0
- package/dist/utils/base64.js +28 -0
- package/dist/utils/base64.js.map +1 -0
- package/dist/utils/booleans.d.ts +8 -0
- package/dist/utils/booleans.d.ts.map +1 -0
- package/dist/utils/booleans.js +38 -0
- package/dist/utils/booleans.js.map +1 -0
- package/dist/utils/browser-compat.d.ts +10 -0
- package/dist/utils/browser-compat.d.ts.map +1 -0
- package/dist/utils/browser-compat.js +23 -0
- package/dist/utils/browser-compat.js.map +1 -0
- package/dist/utils/bytes.d.ts +17 -0
- package/dist/utils/bytes.d.ts.map +1 -0
- package/dist/utils/bytes.js +304 -0
- package/dist/utils/bytes.js.map +1 -0
- package/dist/utils/caches.d.ts +102 -0
- package/dist/utils/caches.d.ts.map +1 -0
- package/dist/utils/caches.js +188 -0
- package/dist/utils/caches.js.map +1 -0
- package/dist/utils/cel-fields.d.ts +23 -0
- package/dist/utils/cel-fields.d.ts.map +1 -0
- package/dist/utils/cel-fields.js +108 -0
- package/dist/utils/cel-fields.js.map +1 -0
- package/dist/utils/compile-time.d.ts +10 -0
- package/dist/utils/compile-time.d.ts.map +1 -0
- package/dist/utils/compile-time.js +16 -0
- package/dist/utils/compile-time.js.map +1 -0
- package/dist/utils/country-codes.d.ts +11 -0
- package/dist/utils/country-codes.d.ts.map +1 -0
- package/dist/utils/country-codes.js +40 -0
- package/dist/utils/country-codes.js.map +1 -0
- package/dist/utils/crypto.d.ts +48 -0
- package/dist/utils/crypto.d.ts.map +1 -0
- package/dist/utils/crypto.js +215 -0
- package/dist/utils/crypto.js.map +1 -0
- package/dist/utils/currencies.d.ts +8 -0
- package/dist/utils/currencies.d.ts.map +1 -0
- package/dist/utils/currencies.js +52 -0
- package/dist/utils/currencies.js.map +1 -0
- package/dist/utils/currency-constants.d.ts +39 -0
- package/dist/utils/currency-constants.d.ts.map +1 -0
- package/dist/utils/currency-constants.js +44 -0
- package/dist/utils/currency-constants.js.map +1 -0
- package/dist/utils/dates.d.ts +23 -0
- package/dist/utils/dates.d.ts.map +1 -0
- package/dist/utils/dates.js +176 -0
- package/dist/utils/dates.js.map +1 -0
- package/dist/utils/dev-env-state-path.d.ts +6 -0
- package/dist/utils/dev-env-state-path.d.ts.map +1 -0
- package/dist/utils/dev-env-state-path.js +18 -0
- package/dist/utils/dev-env-state-path.js.map +1 -0
- package/dist/utils/dom.d.ts +5 -0
- package/dist/utils/dom.d.ts.map +1 -0
- package/dist/utils/dom.js +13 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/env.d.ts +25 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/env.js +85 -0
- package/dist/utils/env.js.map +1 -0
- package/dist/utils/errors.d.ts +231 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +393 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/esbuild.d.ts +16 -0
- package/dist/utils/esbuild.d.ts.map +1 -0
- package/dist/utils/esbuild.js +186 -0
- package/dist/utils/esbuild.js.map +1 -0
- package/dist/utils/featurebase.d.ts +30 -0
- package/dist/utils/featurebase.d.ts.map +1 -0
- package/dist/utils/featurebase.js +168 -0
- package/dist/utils/featurebase.js.map +1 -0
- package/dist/utils/fs.d.ts +9 -0
- package/dist/utils/fs.d.ts.map +1 -0
- package/dist/utils/fs.js +31 -0
- package/dist/utils/fs.js.map +1 -0
- package/dist/utils/functions.d.ts +6 -0
- package/dist/utils/functions.d.ts.map +1 -0
- package/dist/utils/functions.js +37 -0
- package/dist/utils/functions.js.map +1 -0
- package/dist/utils/geo.d.ts +24 -0
- package/dist/utils/geo.d.ts.map +1 -0
- package/dist/utils/geo.js +18 -0
- package/dist/utils/geo.js.map +1 -0
- package/dist/utils/globals.d.ts +13 -0
- package/dist/utils/globals.d.ts.map +1 -0
- package/dist/utils/globals.js +40 -0
- package/dist/utils/globals.js.map +1 -0
- package/dist/utils/hashes.d.ts +9 -0
- package/dist/utils/hashes.d.ts.map +1 -0
- package/dist/utils/hashes.js +47 -0
- package/dist/utils/hashes.js.map +1 -0
- package/dist/utils/html.d.ts +7 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +37 -0
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/http.d.ts +45 -0
- package/dist/utils/http.d.ts.map +1 -0
- package/dist/utils/http.js +79 -0
- package/dist/utils/http.js.map +1 -0
- package/dist/utils/ips.d.ts +8 -0
- package/dist/utils/ips.d.ts.map +1 -0
- package/dist/utils/ips.js +40 -0
- package/dist/utils/ips.js.map +1 -0
- package/dist/utils/json.d.ts +15 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/json.js +182 -0
- package/dist/utils/json.js.map +1 -0
- package/dist/utils/jsx-editable-transpiler.d.ts +68 -0
- package/dist/utils/jsx-editable-transpiler.d.ts.map +1 -0
- package/dist/utils/jsx-editable-transpiler.js +223 -0
- package/dist/utils/jsx-editable-transpiler.js.map +1 -0
- package/dist/utils/jsx-editable-transpiler.test.d.ts +1 -0
- package/dist/utils/jsx-editable-transpiler.test.js +122 -0
- package/dist/utils/jsx-editable-transpiler.test.js.map +1 -0
- package/dist/utils/jwt.d.ts +79 -0
- package/dist/utils/jwt.d.ts.map +1 -0
- package/dist/utils/jwt.js +112 -0
- package/dist/utils/jwt.js.map +1 -0
- package/dist/utils/locks.d.ts +17 -0
- package/dist/utils/locks.d.ts.map +1 -0
- package/dist/utils/locks.js +56 -0
- package/dist/utils/locks.js.map +1 -0
- package/dist/utils/maps.d.ts +61 -0
- package/dist/utils/maps.d.ts.map +1 -0
- package/dist/utils/maps.js +302 -0
- package/dist/utils/maps.js.map +1 -0
- package/dist/utils/math.d.ts +8 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/math.js +23 -0
- package/dist/utils/math.js.map +1 -0
- package/dist/utils/monkey-patch.d.ts +7 -0
- package/dist/utils/monkey-patch.d.ts.map +1 -0
- package/dist/utils/monkey-patch.js +25 -0
- package/dist/utils/monkey-patch.js.map +1 -0
- package/dist/utils/node-http.d.ts +17 -0
- package/dist/utils/node-http.d.ts.map +1 -0
- package/dist/utils/node-http.js +40 -0
- package/dist/utils/node-http.js.map +1 -0
- package/dist/utils/numbers.d.ts +7 -0
- package/dist/utils/numbers.d.ts.map +1 -0
- package/dist/utils/numbers.js +79 -0
- package/dist/utils/numbers.js.map +1 -0
- package/dist/utils/oauth.d.ts +11 -0
- package/dist/utils/oauth.d.ts.map +1 -0
- package/dist/utils/oauth.js +32 -0
- package/dist/utils/oauth.js.map +1 -0
- package/dist/utils/objects.d.ts +59 -0
- package/dist/utils/objects.d.ts.map +1 -0
- package/dist/utils/objects.js +846 -0
- package/dist/utils/objects.js.map +1 -0
- package/dist/utils/paginated-lists.d.ts +442 -0
- package/dist/utils/paginated-lists.d.ts.map +1 -0
- package/dist/utils/paginated-lists.js +414 -0
- package/dist/utils/paginated-lists.js.map +1 -0
- package/dist/utils/paginated-lists.test.d.ts +1 -0
- package/dist/utils/paginated-lists.test.js +1304 -0
- package/dist/utils/paginated-lists.test.js.map +1 -0
- package/dist/utils/passkey.d.ts +2 -0
- package/dist/utils/passkey.js +0 -0
- package/dist/utils/promises.d.ts +80 -0
- package/dist/utils/promises.d.ts.map +1 -0
- package/dist/utils/promises.js +349 -0
- package/dist/utils/promises.js.map +1 -0
- package/dist/utils/proxies.d.ts +13 -0
- package/dist/utils/proxies.d.ts.map +1 -0
- package/dist/utils/proxies.js +201 -0
- package/dist/utils/proxies.js.map +1 -0
- package/dist/utils/react.d.ts +61 -0
- package/dist/utils/react.d.ts.map +1 -0
- package/dist/utils/react.js +243 -0
- package/dist/utils/react.js.map +1 -0
- package/dist/utils/redirect-urls.d.ts +30 -0
- package/dist/utils/redirect-urls.d.ts.map +1 -0
- package/dist/utils/redirect-urls.js +222 -0
- package/dist/utils/redirect-urls.js.map +1 -0
- package/dist/utils/regex.d.ts +5 -0
- package/dist/utils/regex.d.ts.map +1 -0
- package/dist/utils/regex.js +15 -0
- package/dist/utils/regex.js.map +1 -0
- package/dist/utils/results.d.ts +70 -0
- package/dist/utils/results.d.ts.map +1 -0
- package/dist/utils/results.js +342 -0
- package/dist/utils/results.js.map +1 -0
- package/dist/utils/sentry.d.ts +13 -0
- package/dist/utils/sentry.d.ts.map +1 -0
- package/dist/utils/sentry.js +16 -0
- package/dist/utils/sentry.js.map +1 -0
- package/dist/utils/stores.d.ts +104 -0
- package/dist/utils/stores.d.ts.map +1 -0
- package/dist/utils/stores.js +179 -0
- package/dist/utils/stores.js.map +1 -0
- package/dist/utils/strings.d.ts +76 -0
- package/dist/utils/strings.d.ts.map +1 -0
- package/dist/utils/strings.js +549 -0
- package/dist/utils/strings.js.map +1 -0
- package/dist/utils/strings.nicify.test.d.ts +1 -0
- package/dist/utils/strings.nicify.test.js +243 -0
- package/dist/utils/strings.nicify.test.js.map +1 -0
- package/dist/utils/telemetry.d.ts +15 -0
- package/dist/utils/telemetry.d.ts.map +1 -0
- package/dist/utils/telemetry.js +35 -0
- package/dist/utils/telemetry.js.map +1 -0
- package/dist/utils/turnstile-browser.d.ts +32 -0
- package/dist/utils/turnstile-browser.d.ts.map +1 -0
- package/dist/utils/turnstile-browser.js +65 -0
- package/dist/utils/turnstile-browser.js.map +1 -0
- package/dist/utils/turnstile-flow.d.ts +29 -0
- package/dist/utils/turnstile-flow.d.ts.map +1 -0
- package/dist/utils/turnstile-flow.js +225 -0
- package/dist/utils/turnstile-flow.js.map +1 -0
- package/dist/utils/turnstile-flow.test.d.ts +1 -0
- package/dist/utils/turnstile-flow.test.js +75 -0
- package/dist/utils/turnstile-flow.test.js.map +1 -0
- package/dist/utils/turnstile.d.ts +17 -0
- package/dist/utils/turnstile.d.ts.map +1 -0
- package/dist/utils/turnstile.js +31 -0
- package/dist/utils/turnstile.js.map +1 -0
- package/dist/utils/typed-arrays.d.ts +14 -0
- package/dist/utils/typed-arrays.d.ts.map +1 -0
- package/dist/utils/typed-arrays.js +22 -0
- package/dist/utils/typed-arrays.js.map +1 -0
- package/dist/utils/types.d.ts +77 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +59 -0
- package/dist/utils/types.js.map +1 -0
- package/dist/utils/unicode.d.ts +5 -0
- package/dist/utils/unicode.d.ts.map +1 -0
- package/dist/utils/unicode.js +26 -0
- package/dist/utils/unicode.js.map +1 -0
- package/dist/utils/urls.d.ts +28 -0
- package/dist/utils/urls.d.ts.map +1 -0
- package/dist/utils/urls.js +274 -0
- package/dist/utils/urls.js.map +1 -0
- package/dist/utils/uuids.d.ts +6 -0
- package/dist/utils/uuids.d.ts.map +1 -0
- package/dist/utils/uuids.js +39 -0
- package/dist/utils/uuids.js.map +1 -0
- package/package.json +99 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
const require_chunk = require('../chunk-BE-pF4vm.js');
|
|
2
|
+
let vitest = require("vitest");
|
|
3
|
+
let ___utils_results_js = require("../utils/results.js");
|
|
4
|
+
let ___known_errors_js = require("../known-errors.js");
|
|
5
|
+
let ___sessions_js = require("../sessions.js");
|
|
6
|
+
let __client_interface_js = require("./client-interface.js");
|
|
7
|
+
|
|
8
|
+
//#region src/interface/client-interface.test.ts
|
|
9
|
+
function createClientInterface(options) {
|
|
10
|
+
const apiUrls = options?.apiUrls ?? [options?.baseUrl ?? "https://api.example.com"];
|
|
11
|
+
return new __client_interface_js.HexclaveClientInterface({
|
|
12
|
+
clientVersion: "test",
|
|
13
|
+
getBaseUrl: () => apiUrls[0],
|
|
14
|
+
getApiUrls: () => apiUrls,
|
|
15
|
+
probeRate: options?.probeRate,
|
|
16
|
+
extraRequestHeaders: {},
|
|
17
|
+
projectId: "project-id",
|
|
18
|
+
publishableClientKey: "publishable-client-key"
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function createSession() {
|
|
22
|
+
return new ___sessions_js.InternalSession({
|
|
23
|
+
refreshAccessTokenCallback: async () => null,
|
|
24
|
+
refreshToken: null,
|
|
25
|
+
accessToken: null
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function createJsonResponse(body) {
|
|
29
|
+
return new Response(JSON.stringify(body), {
|
|
30
|
+
status: 200,
|
|
31
|
+
headers: { "Content-Type": "application/json" }
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function createKnownErrorResponse(error) {
|
|
35
|
+
return new Response(JSON.stringify({
|
|
36
|
+
code: error.errorCode,
|
|
37
|
+
message: error.message,
|
|
38
|
+
details: error.details
|
|
39
|
+
}), {
|
|
40
|
+
status: error.statusCode,
|
|
41
|
+
headers: {
|
|
42
|
+
"Content-Type": "application/json",
|
|
43
|
+
"x-stack-known-error": error.errorCode
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function createTextResponse(body, options) {
|
|
48
|
+
return new Response(body, options);
|
|
49
|
+
}
|
|
50
|
+
function getRequestBody(fetchMock) {
|
|
51
|
+
const requestInit = fetchMock.mock.calls[0]?.[1];
|
|
52
|
+
if (requestInit == null || typeof requestInit !== "object" || !("body" in requestInit)) throw new Error("Expected request init to include a body");
|
|
53
|
+
const requestBody = requestInit.body;
|
|
54
|
+
if (requestBody == null || typeof requestBody !== "string") throw new Error("Expected request body to be a JSON string");
|
|
55
|
+
const parsed = JSON.parse(requestBody);
|
|
56
|
+
if (parsed == null || typeof parsed !== "object" || Array.isArray(parsed)) throw new Error("Expected parsed request body to be an object");
|
|
57
|
+
return parsed;
|
|
58
|
+
}
|
|
59
|
+
(0, vitest.afterEach)(() => {
|
|
60
|
+
vitest.vi.unstubAllGlobals();
|
|
61
|
+
vitest.vi.restoreAllMocks();
|
|
62
|
+
});
|
|
63
|
+
(0, vitest.describe)("HexclaveClientInterface bot challenge compatibility", () => {
|
|
64
|
+
(0, vitest.it)("omits bot challenge from magic link requests when no token is provided", async () => {
|
|
65
|
+
const fetchMock = vitest.vi.fn(async () => createJsonResponse({ nonce: "nonce" }));
|
|
66
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
67
|
+
await createClientInterface().sendMagicLinkEmail("user@example.com", "https://app.example.com/callback");
|
|
68
|
+
(0, vitest.expect)(getRequestBody(fetchMock)).toStrictEqual({
|
|
69
|
+
email: "user@example.com",
|
|
70
|
+
callback_url: "https://app.example.com/callback"
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
(0, vitest.it)("serializes visible bot challenge retry fields for magic link requests", async () => {
|
|
74
|
+
const fetchMock = vitest.vi.fn(async () => createJsonResponse({ nonce: "nonce" }));
|
|
75
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
76
|
+
await createClientInterface().sendMagicLinkEmail("user@example.com", "https://app.example.com/callback", {
|
|
77
|
+
token: " visible-token ",
|
|
78
|
+
phase: "visible"
|
|
79
|
+
});
|
|
80
|
+
(0, vitest.expect)(getRequestBody(fetchMock)).toStrictEqual({
|
|
81
|
+
email: "user@example.com",
|
|
82
|
+
callback_url: "https://app.example.com/callback",
|
|
83
|
+
bot_challenge_token: "visible-token",
|
|
84
|
+
bot_challenge_phase: "visible"
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
(0, vitest.it)("serializes bot challenge unavailability for magic link requests", async () => {
|
|
88
|
+
const fetchMock = vitest.vi.fn(async () => createJsonResponse({ nonce: "nonce" }));
|
|
89
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
90
|
+
await createClientInterface().sendMagicLinkEmail("user@example.com", "https://app.example.com/callback", { phase: "visible" });
|
|
91
|
+
(0, vitest.expect)(getRequestBody(fetchMock)).toStrictEqual({
|
|
92
|
+
email: "user@example.com",
|
|
93
|
+
callback_url: "https://app.example.com/callback",
|
|
94
|
+
bot_challenge_unavailable: "true"
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
(0, vitest.it)("serializes explicit bot challenge unavailability for magic link requests", async () => {
|
|
98
|
+
const fetchMock = vitest.vi.fn(async () => createJsonResponse({ nonce: "nonce" }));
|
|
99
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
100
|
+
await createClientInterface().sendMagicLinkEmail("user@example.com", "https://app.example.com/callback", { unavailable: true });
|
|
101
|
+
(0, vitest.expect)(getRequestBody(fetchMock)).toStrictEqual({
|
|
102
|
+
email: "user@example.com",
|
|
103
|
+
callback_url: "https://app.example.com/callback",
|
|
104
|
+
bot_challenge_unavailable: "true"
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
(0, vitest.it)("returns BotChallengeFailed as a Result error for magic link requests", async () => {
|
|
108
|
+
const fetchMock = vitest.vi.fn(async () => createKnownErrorResponse(new ___known_errors_js.KnownErrors.BotChallengeFailed("Visible bot challenge verification failed")));
|
|
109
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
110
|
+
const result = await createClientInterface().sendMagicLinkEmail("user@example.com", "https://app.example.com/callback", { phase: "visible" });
|
|
111
|
+
(0, vitest.expect)(result.status).toBe("error");
|
|
112
|
+
if (result.status !== "error") throw new Error("Expected magic link request to fail with BotChallengeFailed");
|
|
113
|
+
(0, vitest.expect)(result.error).toBeInstanceOf(___known_errors_js.KnownErrors.BotChallengeFailed);
|
|
114
|
+
});
|
|
115
|
+
(0, vitest.it)("omits bot challenge from credential signup requests when no token is provided", async () => {
|
|
116
|
+
const fetchMock = vitest.vi.fn(async () => createJsonResponse({
|
|
117
|
+
access_token: "access-token",
|
|
118
|
+
refresh_token: "refresh-token"
|
|
119
|
+
}));
|
|
120
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
121
|
+
await createClientInterface().signUpWithCredential("user@example.com", "password", void 0, createSession(), void 0);
|
|
122
|
+
(0, vitest.expect)(getRequestBody(fetchMock)).toStrictEqual({
|
|
123
|
+
email: "user@example.com",
|
|
124
|
+
password: "password"
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
(0, vitest.it)("returns BotChallengeFailed as a Result error for credential signup requests", async () => {
|
|
128
|
+
const fetchMock = vitest.vi.fn(async () => createKnownErrorResponse(new ___known_errors_js.KnownErrors.BotChallengeFailed("Visible bot challenge verification failed")));
|
|
129
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
130
|
+
const result = await createClientInterface().signUpWithCredential("user@example.com", "password", void 0, createSession(), { phase: "visible" });
|
|
131
|
+
(0, vitest.expect)(result.status).toBe("error");
|
|
132
|
+
if (result.status !== "error") throw new Error("Expected credential signup to fail with BotChallengeFailed");
|
|
133
|
+
(0, vitest.expect)(result.error).toBeInstanceOf(___known_errors_js.KnownErrors.BotChallengeFailed);
|
|
134
|
+
});
|
|
135
|
+
(0, vitest.it)("omits bot challenge from OAuth URLs when no token is provided", async () => {
|
|
136
|
+
const oauthUrl = await createClientInterface().getOAuthUrl({
|
|
137
|
+
provider: "github",
|
|
138
|
+
redirectUrl: "https://app.example.com/oauth/callback",
|
|
139
|
+
errorRedirectUrl: "https://app.example.com/error",
|
|
140
|
+
codeChallenge: "code-challenge",
|
|
141
|
+
state: "state",
|
|
142
|
+
type: "authenticate",
|
|
143
|
+
session: createSession()
|
|
144
|
+
});
|
|
145
|
+
(0, vitest.expect)(new URL(oauthUrl).searchParams.has("bot_challenge_token")).toBe(false);
|
|
146
|
+
});
|
|
147
|
+
(0, vitest.it)("serializes visible bot challenge retry fields in OAuth URLs", async () => {
|
|
148
|
+
const oauthUrl = await createClientInterface().getOAuthUrl({
|
|
149
|
+
provider: "github",
|
|
150
|
+
redirectUrl: "https://app.example.com/oauth/callback",
|
|
151
|
+
errorRedirectUrl: "https://app.example.com/error",
|
|
152
|
+
codeChallenge: "code-challenge",
|
|
153
|
+
state: "state",
|
|
154
|
+
type: "authenticate",
|
|
155
|
+
botChallenge: {
|
|
156
|
+
token: "visible-token",
|
|
157
|
+
phase: "visible"
|
|
158
|
+
},
|
|
159
|
+
session: createSession()
|
|
160
|
+
});
|
|
161
|
+
(0, vitest.expect)(Object.fromEntries(new URL(oauthUrl).searchParams.entries())).toMatchObject({
|
|
162
|
+
bot_challenge_token: "visible-token",
|
|
163
|
+
bot_challenge_phase: "visible"
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
(0, vitest.it)("serializes bot challenge unavailability in OAuth URLs", async () => {
|
|
167
|
+
const oauthUrl = await createClientInterface().getOAuthUrl({
|
|
168
|
+
provider: "github",
|
|
169
|
+
redirectUrl: "https://app.example.com/oauth/callback",
|
|
170
|
+
errorRedirectUrl: "https://app.example.com/error",
|
|
171
|
+
codeChallenge: "code-challenge",
|
|
172
|
+
state: "state",
|
|
173
|
+
type: "authenticate",
|
|
174
|
+
botChallenge: { phase: "visible" },
|
|
175
|
+
session: createSession()
|
|
176
|
+
});
|
|
177
|
+
(0, vitest.expect)(Object.fromEntries(new URL(oauthUrl).searchParams.entries())).toMatchObject({ bot_challenge_unavailable: "true" });
|
|
178
|
+
});
|
|
179
|
+
(0, vitest.it)("authorizes OAuth via a JSON response instead of relying on manual redirects", async () => {
|
|
180
|
+
const fetchCalls = [];
|
|
181
|
+
const fetchMock = vitest.vi.fn(async (input, init) => {
|
|
182
|
+
fetchCalls.push([input, init]);
|
|
183
|
+
return createJsonResponse({ location: "https://accounts.example.com/oauth/authorize" });
|
|
184
|
+
});
|
|
185
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
186
|
+
vitest.vi.stubGlobal("window", {});
|
|
187
|
+
const result = await createClientInterface().authorizeOAuth({
|
|
188
|
+
provider: "github",
|
|
189
|
+
redirectUrl: "https://app.example.com/oauth/callback",
|
|
190
|
+
errorRedirectUrl: "https://app.example.com/error",
|
|
191
|
+
codeChallenge: "code-challenge",
|
|
192
|
+
state: "state",
|
|
193
|
+
type: "authenticate",
|
|
194
|
+
session: createSession()
|
|
195
|
+
});
|
|
196
|
+
(0, vitest.expect)(___utils_results_js.Result.orThrow(result)).toBe("https://accounts.example.com/oauth/authorize");
|
|
197
|
+
(0, vitest.expect)(fetchMock).toHaveBeenCalledTimes(1);
|
|
198
|
+
const [requestUrl, requestInit] = fetchCalls[0] ?? [];
|
|
199
|
+
if (!(typeof requestUrl === "string" || requestUrl instanceof URL)) throw new Error("Expected authorizeOAuth to call fetch with a URL");
|
|
200
|
+
(0, vitest.expect)(new URL(requestUrl.toString()).searchParams.get("stack_response_mode")).toBe("json");
|
|
201
|
+
(0, vitest.expect)(requestInit).toMatchObject({ method: "GET" });
|
|
202
|
+
(0, vitest.expect)(requestInit).not.toHaveProperty("credentials");
|
|
203
|
+
});
|
|
204
|
+
(0, vitest.it)("returns BotChallengeFailed as a Result error for OAuth authorization", async () => {
|
|
205
|
+
const fetchMock = vitest.vi.fn(async () => createKnownErrorResponse(new ___known_errors_js.KnownErrors.BotChallengeFailed("Visible bot challenge verification failed")));
|
|
206
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
207
|
+
vitest.vi.stubGlobal("window", {});
|
|
208
|
+
const result = await createClientInterface().authorizeOAuth({
|
|
209
|
+
provider: "github",
|
|
210
|
+
redirectUrl: "https://app.example.com/oauth/callback",
|
|
211
|
+
errorRedirectUrl: "https://app.example.com/error",
|
|
212
|
+
codeChallenge: "code-challenge",
|
|
213
|
+
state: "state",
|
|
214
|
+
type: "authenticate",
|
|
215
|
+
session: createSession()
|
|
216
|
+
});
|
|
217
|
+
(0, vitest.expect)(result.status).toBe("error");
|
|
218
|
+
if (result.status !== "error") throw new Error("Expected OAuth authorization to fail with BotChallengeFailed");
|
|
219
|
+
(0, vitest.expect)(result.error).toBeInstanceOf(___known_errors_js.KnownErrors.BotChallengeFailed);
|
|
220
|
+
});
|
|
221
|
+
(0, vitest.it)("serializes bot challenge unavailability for credential signup requests", async () => {
|
|
222
|
+
const fetchMock = vitest.vi.fn(async () => createJsonResponse({
|
|
223
|
+
access_token: "access-token",
|
|
224
|
+
refresh_token: "refresh-token"
|
|
225
|
+
}));
|
|
226
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
227
|
+
await createClientInterface().signUpWithCredential("user@example.com", "password", void 0, createSession(), { phase: "visible" });
|
|
228
|
+
(0, vitest.expect)(getRequestBody(fetchMock)).toStrictEqual({
|
|
229
|
+
email: "user@example.com",
|
|
230
|
+
password: "password",
|
|
231
|
+
bot_challenge_unavailable: "true"
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
(0, vitest.describe)("_withFallback", () => {
|
|
236
|
+
/** Builds a list of N URL bases: ["https://url-0.test", "https://url-1.test", ...] */
|
|
237
|
+
function urlList(n) {
|
|
238
|
+
return Array.from({ length: n }, (_, i) => `https://url-${i}.test`);
|
|
239
|
+
}
|
|
240
|
+
/** Returns the index of the URL base that `fullUrl` starts with, or -1. */
|
|
241
|
+
function urlIndex(urls, fullUrl) {
|
|
242
|
+
return urls.findIndex((base) => fullUrl.startsWith(base));
|
|
243
|
+
}
|
|
244
|
+
/** Records every fetch URL and calls `handler` to decide the outcome. */
|
|
245
|
+
function mockFetch(handler) {
|
|
246
|
+
const log = [];
|
|
247
|
+
vitest.vi.stubGlobal("fetch", vitest.vi.fn(async (input) => {
|
|
248
|
+
const url = input.toString();
|
|
249
|
+
log.push(url);
|
|
250
|
+
if (handler(url) === "fail") throw new TypeError("Failed to fetch");
|
|
251
|
+
return createJsonResponse({ display_name: "test" });
|
|
252
|
+
}));
|
|
253
|
+
return log;
|
|
254
|
+
}
|
|
255
|
+
function sendRequest(iface) {
|
|
256
|
+
const session = iface.createSession({
|
|
257
|
+
refreshToken: null,
|
|
258
|
+
accessToken: null
|
|
259
|
+
});
|
|
260
|
+
return iface.sendClientRequest("/users/me", { method: "GET" }, session);
|
|
261
|
+
}
|
|
262
|
+
(0, vitest.it)("single URL uses standard 5-retry behavior", async () => {
|
|
263
|
+
let attempts = 0;
|
|
264
|
+
vitest.vi.stubGlobal("fetch", vitest.vi.fn(async () => {
|
|
265
|
+
attempts++;
|
|
266
|
+
if (attempts < 3) throw new TypeError("Failed to fetch");
|
|
267
|
+
return createJsonResponse({ display_name: "test" });
|
|
268
|
+
}));
|
|
269
|
+
await sendRequest(createClientInterface({ apiUrls: urlList(1) }));
|
|
270
|
+
(0, vitest.expect)(attempts).toBe(3);
|
|
271
|
+
});
|
|
272
|
+
(0, vitest.it)("uses primary when it is healthy", async () => {
|
|
273
|
+
const urls = urlList(3);
|
|
274
|
+
const log = mockFetch(() => "ok");
|
|
275
|
+
await sendRequest(createClientInterface({ apiUrls: urls }));
|
|
276
|
+
(0, vitest.expect)(log.every((u) => urlIndex(urls, u) === 0)).toBe(true);
|
|
277
|
+
});
|
|
278
|
+
(0, vitest.it)("tries URLs in order and succeeds on first working one", async () => {
|
|
279
|
+
const urls = urlList(4);
|
|
280
|
+
const log = mockFetch((u) => urlIndex(urls, u) < 2 ? "fail" : "ok");
|
|
281
|
+
await sendRequest(createClientInterface({ apiUrls: urls }));
|
|
282
|
+
(0, vitest.expect)(urlIndex(urls, log[0])).toBe(0);
|
|
283
|
+
(0, vitest.expect)(urlIndex(urls, log[1])).toBe(1);
|
|
284
|
+
(0, vitest.expect)(urlIndex(urls, log[2])).toBe(2);
|
|
285
|
+
(0, vitest.expect)(log.length).toBe(3);
|
|
286
|
+
});
|
|
287
|
+
(0, vitest.it)("does not fall back on KnownError", async () => {
|
|
288
|
+
const urls = urlList(3);
|
|
289
|
+
const log = [];
|
|
290
|
+
vitest.vi.stubGlobal("fetch", vitest.vi.fn(async (input) => {
|
|
291
|
+
log.push(input.toString());
|
|
292
|
+
return createKnownErrorResponse(new ___known_errors_js.KnownErrors.UserNotFound());
|
|
293
|
+
}));
|
|
294
|
+
await (0, vitest.expect)(sendRequest(createClientInterface({ apiUrls: urls }))).rejects.toThrow();
|
|
295
|
+
(0, vitest.expect)(log.every((u) => urlIndex(urls, u) === 0)).toBe(true);
|
|
296
|
+
});
|
|
297
|
+
(0, vitest.it)("does not retry or fall back on non-KnownError 4xx responses", async () => {
|
|
298
|
+
const urls = urlList(3);
|
|
299
|
+
const log = [];
|
|
300
|
+
vitest.vi.stubGlobal("fetch", vitest.vi.fn(async (input) => {
|
|
301
|
+
log.push(input.toString());
|
|
302
|
+
return createTextResponse("Payments are not set up", { status: 402 });
|
|
303
|
+
}));
|
|
304
|
+
await (0, vitest.expect)(sendRequest(createClientInterface({ apiUrls: urls }))).rejects.toMatchObject({ name: "Error" });
|
|
305
|
+
(0, vitest.expect)(log.length).toBe(1);
|
|
306
|
+
(0, vitest.expect)(urlIndex(urls, log[0])).toBe(0);
|
|
307
|
+
});
|
|
308
|
+
(0, vitest.it)("wraps non-KnownError 4xx responses as normal errors", async () => {
|
|
309
|
+
const response = createTextResponse("Payments are not set up", { status: 402 });
|
|
310
|
+
vitest.vi.stubGlobal("fetch", vitest.vi.fn(async () => response));
|
|
311
|
+
await (0, vitest.expect)(sendRequest(createClientInterface({ apiUrls: urlList(1) }))).rejects.toMatchObject({
|
|
312
|
+
name: "Error",
|
|
313
|
+
message: vitest.expect.stringContaining("402 Payments are not set up"),
|
|
314
|
+
cause: response
|
|
315
|
+
});
|
|
316
|
+
});
|
|
317
|
+
(0, vitest.it)("does not retry non-KnownError 5xx responses on a single URL", async () => {
|
|
318
|
+
let attempts = 0;
|
|
319
|
+
vitest.vi.stubGlobal("fetch", vitest.vi.fn(async () => {
|
|
320
|
+
attempts++;
|
|
321
|
+
return createTextResponse("Server unavailable", { status: 503 });
|
|
322
|
+
}));
|
|
323
|
+
await (0, vitest.expect)(sendRequest(createClientInterface({ apiUrls: urlList(1) }))).rejects.toThrow("503 Server unavailable");
|
|
324
|
+
(0, vitest.expect)(attempts).toBe(1);
|
|
325
|
+
});
|
|
326
|
+
(0, vitest.it)("falls back on non-KnownError 5xx responses", async () => {
|
|
327
|
+
const urls = urlList(3);
|
|
328
|
+
const log = [];
|
|
329
|
+
vitest.vi.stubGlobal("fetch", vitest.vi.fn(async (input) => {
|
|
330
|
+
const url = input.toString();
|
|
331
|
+
log.push(url);
|
|
332
|
+
if (urlIndex(urls, url) === 0) return createTextResponse("Server unavailable", { status: 503 });
|
|
333
|
+
return createJsonResponse({ display_name: "test" });
|
|
334
|
+
}));
|
|
335
|
+
await sendRequest(createClientInterface({ apiUrls: urls }));
|
|
336
|
+
(0, vitest.expect)(log.length).toBe(2);
|
|
337
|
+
(0, vitest.expect)(urlIndex(urls, log[0])).toBe(0);
|
|
338
|
+
(0, vitest.expect)(urlIndex(urls, log[1])).toBe(1);
|
|
339
|
+
});
|
|
340
|
+
(0, vitest.it)("does not fall back on wrapped non-KnownError 4xx refresh token responses", async () => {
|
|
341
|
+
const urls = urlList(3);
|
|
342
|
+
const log = [];
|
|
343
|
+
vitest.vi.stubGlobal("fetch", vitest.vi.fn(async (input) => {
|
|
344
|
+
const url = input instanceof Request ? input.url : input.toString();
|
|
345
|
+
log.push(url);
|
|
346
|
+
return createTextResponse("Payments are not set up", { status: 402 });
|
|
347
|
+
}));
|
|
348
|
+
await (0, vitest.expect)(createClientInterface({ apiUrls: urls }).fetchNewAccessToken(new ___sessions_js.RefreshToken("refresh-token"))).rejects.toThrow("Payments are not set up");
|
|
349
|
+
(0, vitest.expect)(log.length).toBe(1);
|
|
350
|
+
(0, vitest.expect)(urlIndex(urls, log[0])).toBe(0);
|
|
351
|
+
});
|
|
352
|
+
(0, vitest.it)("makes 2 passes × N URLs attempts before throwing", async () => {
|
|
353
|
+
for (const n of [
|
|
354
|
+
2,
|
|
355
|
+
3,
|
|
356
|
+
5
|
|
357
|
+
]) {
|
|
358
|
+
const urls = urlList(n);
|
|
359
|
+
const log = mockFetch(() => "fail");
|
|
360
|
+
await (0, vitest.expect)(sendRequest(createClientInterface({ apiUrls: urls }))).rejects.toThrow();
|
|
361
|
+
(0, vitest.expect)(log.length).toBe(2 * n);
|
|
362
|
+
for (let i = 0; i < n; i++) (0, vitest.expect)(log.filter((u) => urlIndex(urls, u) === i).length).toBe(2);
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
(0, vitest.it)("bypasses fallback when apiUrlOverride is provided", async () => {
|
|
366
|
+
const log = [];
|
|
367
|
+
vitest.vi.stubGlobal("fetch", vitest.vi.fn(async (input) => {
|
|
368
|
+
log.push(input.toString());
|
|
369
|
+
return createJsonResponse({ display_name: "test" });
|
|
370
|
+
}));
|
|
371
|
+
const iface = createClientInterface({ apiUrls: urlList(3) });
|
|
372
|
+
const session = iface.createSession({
|
|
373
|
+
refreshToken: null,
|
|
374
|
+
accessToken: null
|
|
375
|
+
});
|
|
376
|
+
await iface.sendClientRequest("/users/me", { method: "GET" }, session, "client", "https://override.test/api/v1");
|
|
377
|
+
(0, vitest.expect)(log.every((u) => u.startsWith("https://override.test"))).toBe(true);
|
|
378
|
+
});
|
|
379
|
+
(0, vitest.it)("enters sticky mode: subsequent requests skip straight to the working fallback", async () => {
|
|
380
|
+
const urls = urlList(4);
|
|
381
|
+
const iface = createClientInterface({
|
|
382
|
+
apiUrls: urls,
|
|
383
|
+
probeRate: 0
|
|
384
|
+
});
|
|
385
|
+
mockFetch((u) => urlIndex(urls, u) === 3 ? "ok" : "fail");
|
|
386
|
+
await sendRequest(iface);
|
|
387
|
+
const log = mockFetch(() => "ok");
|
|
388
|
+
await sendRequest(iface);
|
|
389
|
+
(0, vitest.expect)(log.length).toBe(1);
|
|
390
|
+
(0, vitest.expect)(urlIndex(urls, log[0])).toBe(3);
|
|
391
|
+
});
|
|
392
|
+
(0, vitest.it)("probes primary and exits sticky mode when probe succeeds", async () => {
|
|
393
|
+
const urls = urlList(3);
|
|
394
|
+
const iface = createClientInterface({
|
|
395
|
+
apiUrls: urls,
|
|
396
|
+
probeRate: 1
|
|
397
|
+
});
|
|
398
|
+
mockFetch((u) => urlIndex(urls, u) === 0 ? "fail" : "ok");
|
|
399
|
+
await sendRequest(iface);
|
|
400
|
+
const log = mockFetch(() => "ok");
|
|
401
|
+
await sendRequest(iface);
|
|
402
|
+
(0, vitest.expect)(urlIndex(urls, log[0])).toBe(0);
|
|
403
|
+
const log2 = mockFetch(() => "ok");
|
|
404
|
+
await sendRequest(iface);
|
|
405
|
+
(0, vitest.expect)(log2.length).toBe(1);
|
|
406
|
+
(0, vitest.expect)(urlIndex(urls, log2[0])).toBe(0);
|
|
407
|
+
});
|
|
408
|
+
(0, vitest.it)("halves probe rate on each failed probe", async () => {
|
|
409
|
+
const urls = urlList(2);
|
|
410
|
+
const iface = createClientInterface({
|
|
411
|
+
apiUrls: urls,
|
|
412
|
+
probeRate: 1
|
|
413
|
+
});
|
|
414
|
+
mockFetch((u) => urlIndex(urls, u) === 0 ? "fail" : "ok");
|
|
415
|
+
await sendRequest(iface);
|
|
416
|
+
mockFetch((u) => urlIndex(urls, u) === 0 ? "fail" : "ok");
|
|
417
|
+
await sendRequest(iface);
|
|
418
|
+
const randomMock = vitest.vi.spyOn(Math, "random").mockReturnValue(.4);
|
|
419
|
+
mockFetch((u) => urlIndex(urls, u) === 0 ? "fail" : "ok");
|
|
420
|
+
await sendRequest(iface);
|
|
421
|
+
randomMock.mockReturnValue(.3);
|
|
422
|
+
const log = mockFetch(() => "ok");
|
|
423
|
+
await sendRequest(iface);
|
|
424
|
+
(0, vitest.expect)(log.length).toBe(1);
|
|
425
|
+
(0, vitest.expect)(urlIndex(urls, log[0])).toBe(1);
|
|
426
|
+
randomMock.mockRestore();
|
|
427
|
+
});
|
|
428
|
+
(0, vitest.it)("falls through to full iteration when sticky URL also goes down", async () => {
|
|
429
|
+
const urls = urlList(3);
|
|
430
|
+
const iface = createClientInterface({
|
|
431
|
+
apiUrls: urls,
|
|
432
|
+
probeRate: 0
|
|
433
|
+
});
|
|
434
|
+
mockFetch((u) => urlIndex(urls, u) === 2 ? "ok" : "fail");
|
|
435
|
+
await sendRequest(iface);
|
|
436
|
+
const log = mockFetch((u) => urlIndex(urls, u) === 1 ? "ok" : "fail");
|
|
437
|
+
await sendRequest(iface);
|
|
438
|
+
(0, vitest.expect)(log.some((u) => urlIndex(urls, u) === 2)).toBe(true);
|
|
439
|
+
(0, vitest.expect)(log.some((u) => urlIndex(urls, u) === 1)).toBe(true);
|
|
440
|
+
});
|
|
441
|
+
(0, vitest.it)("re-enters sticky on the new working URL after fallthrough", async () => {
|
|
442
|
+
const urls = urlList(4);
|
|
443
|
+
const iface = createClientInterface({
|
|
444
|
+
apiUrls: urls,
|
|
445
|
+
probeRate: 0
|
|
446
|
+
});
|
|
447
|
+
mockFetch((u) => urlIndex(urls, u) === 3 ? "ok" : "fail");
|
|
448
|
+
await sendRequest(iface);
|
|
449
|
+
mockFetch((u) => urlIndex(urls, u) === 2 ? "ok" : "fail");
|
|
450
|
+
await sendRequest(iface);
|
|
451
|
+
const log = mockFetch(() => "ok");
|
|
452
|
+
await sendRequest(iface);
|
|
453
|
+
(0, vitest.expect)(log.length).toBe(1);
|
|
454
|
+
(0, vitest.expect)(urlIndex(urls, log[0])).toBe(2);
|
|
455
|
+
});
|
|
456
|
+
(0, vitest.it)("throws when sticky URL fails and all URLs fail in iteration", async () => {
|
|
457
|
+
const urls = urlList(3);
|
|
458
|
+
const iface = createClientInterface({
|
|
459
|
+
apiUrls: urls,
|
|
460
|
+
probeRate: 0
|
|
461
|
+
});
|
|
462
|
+
mockFetch((u) => urlIndex(urls, u) === 1 ? "ok" : "fail");
|
|
463
|
+
await sendRequest(iface);
|
|
464
|
+
const log = mockFetch(() => "fail");
|
|
465
|
+
await (0, vitest.expect)(sendRequest(iface)).rejects.toThrow();
|
|
466
|
+
(0, vitest.expect)(log.length).toBe(7);
|
|
467
|
+
});
|
|
468
|
+
(0, vitest.it)("does not probe primary when sticky URL fails (probe only before sticky attempt)", async () => {
|
|
469
|
+
const urls = urlList(3);
|
|
470
|
+
const iface = createClientInterface({
|
|
471
|
+
apiUrls: urls,
|
|
472
|
+
probeRate: 1
|
|
473
|
+
});
|
|
474
|
+
mockFetch((u) => urlIndex(urls, u) === 2 ? "ok" : "fail");
|
|
475
|
+
await sendRequest(iface);
|
|
476
|
+
const log = mockFetch((u) => urlIndex(urls, u) === 1 ? "ok" : "fail");
|
|
477
|
+
await sendRequest(iface);
|
|
478
|
+
const hitOrder = log.map((u) => urlIndex(urls, u));
|
|
479
|
+
(0, vitest.expect)(hitOrder[0]).toBe(0);
|
|
480
|
+
(0, vitest.expect)(hitOrder[1]).toBe(2);
|
|
481
|
+
(0, vitest.expect)(hitOrder).toContain(1);
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
(0, vitest.describe)("sendAnalyticsEventBatch encoding", () => {
|
|
485
|
+
function captureFetch() {
|
|
486
|
+
const fetchMock = vitest.vi.fn(async () => createJsonResponse({ inserted: 0 }));
|
|
487
|
+
vitest.vi.stubGlobal("fetch", fetchMock);
|
|
488
|
+
return fetchMock;
|
|
489
|
+
}
|
|
490
|
+
function getRequestInit(fetchMock) {
|
|
491
|
+
const init = fetchMock.mock.calls[0]?.[1];
|
|
492
|
+
if (init == null || typeof init !== "object") throw new Error("expected RequestInit");
|
|
493
|
+
return init;
|
|
494
|
+
}
|
|
495
|
+
async function gunzipToText(body) {
|
|
496
|
+
if (!(body instanceof Uint8Array)) throw new Error("expected Uint8Array body");
|
|
497
|
+
const stream = new Blob([body]).stream().pipeThrough(new DecompressionStream("gzip"));
|
|
498
|
+
return await new Response(stream).text();
|
|
499
|
+
}
|
|
500
|
+
(0, vitest.it)("gzips body and sends application/octet-stream when keepalive is false", async () => {
|
|
501
|
+
const fetchMock = captureFetch();
|
|
502
|
+
const iface = createClientInterface();
|
|
503
|
+
const payload = JSON.stringify({
|
|
504
|
+
batch_id: "abc",
|
|
505
|
+
events: [{ event_type: "$click" }]
|
|
506
|
+
});
|
|
507
|
+
await iface.sendAnalyticsEventBatch(payload, null, { keepalive: false });
|
|
508
|
+
const init = getRequestInit(fetchMock);
|
|
509
|
+
(0, vitest.expect)(new Headers(init.headers).get("Content-Type")).toBe("application/octet-stream");
|
|
510
|
+
(0, vitest.expect)(init.body).toBeInstanceOf(Uint8Array);
|
|
511
|
+
await (0, vitest.expect)(gunzipToText(init.body)).resolves.toBe(payload);
|
|
512
|
+
});
|
|
513
|
+
(0, vitest.it)("falls back to plain JSON when keepalive is true (avoids racing pagehide tear-down)", async () => {
|
|
514
|
+
const fetchMock = captureFetch();
|
|
515
|
+
const iface = createClientInterface();
|
|
516
|
+
const payload = JSON.stringify({
|
|
517
|
+
batch_id: "abc",
|
|
518
|
+
events: []
|
|
519
|
+
});
|
|
520
|
+
await iface.sendAnalyticsEventBatch(payload, null, { keepalive: true });
|
|
521
|
+
const init = getRequestInit(fetchMock);
|
|
522
|
+
(0, vitest.expect)(new Headers(init.headers).get("Content-Type")).toBe("application/json");
|
|
523
|
+
(0, vitest.expect)(init.body).toBe(payload);
|
|
524
|
+
});
|
|
525
|
+
(0, vitest.it)("falls back to plain JSON when CompressionStream is unavailable", async () => {
|
|
526
|
+
vitest.vi.stubGlobal("CompressionStream", void 0);
|
|
527
|
+
const fetchMock = captureFetch();
|
|
528
|
+
const iface = createClientInterface();
|
|
529
|
+
const payload = JSON.stringify({
|
|
530
|
+
batch_id: "abc",
|
|
531
|
+
events: []
|
|
532
|
+
});
|
|
533
|
+
await iface.sendAnalyticsEventBatch(payload, null, { keepalive: false });
|
|
534
|
+
const init = getRequestInit(fetchMock);
|
|
535
|
+
(0, vitest.expect)(new Headers(init.headers).get("Content-Type")).toBe("application/json");
|
|
536
|
+
(0, vitest.expect)(init.body).toBe(payload);
|
|
537
|
+
});
|
|
538
|
+
(0, vitest.it)("falls back to plain JSON when CompressionStream throws at runtime", async () => {
|
|
539
|
+
class ThrowingCompressionStream {
|
|
540
|
+
constructor() {
|
|
541
|
+
throw new Error("compression unsupported");
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
vitest.vi.stubGlobal("CompressionStream", ThrowingCompressionStream);
|
|
545
|
+
const fetchMock = captureFetch();
|
|
546
|
+
const iface = createClientInterface();
|
|
547
|
+
const payload = JSON.stringify({
|
|
548
|
+
batch_id: "abc",
|
|
549
|
+
events: []
|
|
550
|
+
});
|
|
551
|
+
await iface.sendAnalyticsEventBatch(payload, null, { keepalive: false });
|
|
552
|
+
const init = getRequestInit(fetchMock);
|
|
553
|
+
(0, vitest.expect)(new Headers(init.headers).get("Content-Type")).toBe("application/json");
|
|
554
|
+
(0, vitest.expect)(init.body).toBe(payload);
|
|
555
|
+
});
|
|
556
|
+
});
|
|
557
|
+
|
|
558
|
+
//#endregion
|
|
559
|
+
//# sourceMappingURL=client-interface.test.js.map
|