@langwatch/server 3.1.0-beta.21 → 3.1.0-beta.23
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/langevals/evaluators/topic_clustering/langevals_topic_clustering/__init__.py +36 -0
- package/langevals/evaluators/topic_clustering/langevals_topic_clustering/_logger.py +165 -0
- package/langevals/evaluators/topic_clustering/langevals_topic_clustering/batch_clustering.py +153 -0
- package/langevals/evaluators/topic_clustering/langevals_topic_clustering/build_response.py +77 -0
- package/langevals/evaluators/topic_clustering/langevals_topic_clustering/constants.py +7 -0
- package/langevals/evaluators/topic_clustering/langevals_topic_clustering/incremental_clustering.py +325 -0
- package/langevals/evaluators/topic_clustering/langevals_topic_clustering/topic_naming.py +432 -0
- package/langevals/evaluators/topic_clustering/langevals_topic_clustering/types.py +42 -0
- package/langevals/evaluators/topic_clustering/langevals_topic_clustering/utils.py +191 -0
- package/langevals/evaluators/topic_clustering/pyproject.toml +52 -0
- package/langevals/evaluators/topic_clustering/tests/test_topic_clustering.py +239 -0
- package/langevals/evaluators/topic_clustering/tests/test_topic_clustering_integration.py +97 -0
- package/langevals/evaluators/topic_clustering/tests/test_topic_naming.py +72 -0
- package/langevals/langevals/pytest_plugins/pass_rate_plugin.py +7 -1
- package/langevals/langevals/server.py +28 -0
- package/langevals/pyproject.toml +3 -0
- package/langevals/uv.lock +119 -20
- package/langwatch/dist/client/assets/{AnnotationsTable-BDAkYaz6.js → AnnotationsTable-uS_9SQ-g.js} +2 -2
- package/langwatch/dist/client/assets/{BatchEvaluationSummary-DMaQM_VB.js → BatchEvaluationSummary-DtFd8yKJ.js} +2 -2
- package/langwatch/dist/client/assets/{BudgetEditDrawer-CHaqmdIl.js → BudgetEditDrawer-CHEPz0hH.js} +2 -2
- package/langwatch/dist/client/assets/{ChartCard-D14PUg_d.js → ChartCard-s5fMPo7b.js} +2 -2
- package/langwatch/dist/client/assets/{ChatWindow-CRDnlP-Q.js → ChatWindow-C0XSteVJ.js} +2 -2
- package/langwatch/dist/client/assets/ChatWindow-DFEmNXQL.js +1 -0
- package/langwatch/dist/client/assets/{ConfirmDialog-CXIhncvW.js → ConfirmDialog-M94yLNvP.js} +2 -2
- package/langwatch/dist/client/assets/{ContactSalesBlock-CijLBwRC.js → ContactSalesBlock-CnnuZ8iI.js} +2 -2
- package/langwatch/dist/client/assets/{DSPyExperiment-B1YOL2m8.js → DSPyExperiment-CMA6lrlx.js} +2 -2
- package/langwatch/dist/client/assets/{FilterDisplay-BB0xWrLn.js → FilterDisplay-0S3NqCkq.js} +2 -2
- package/langwatch/dist/client/assets/{FormatMoney-w9vr_h0X.js → FormatMoney-CCygtAHg.js} +2 -2
- package/langwatch/dist/client/assets/{FoundryDrawer-CdJDXtpz.js → FoundryDrawer-B35xZ26C.js} +2 -2
- package/langwatch/dist/client/assets/{GatewayErrorPanel-DvE9U2dS.js → GatewayErrorPanel-BsaYQEie.js} +2 -2
- package/langwatch/dist/client/assets/{GatewayLayout-lv1p_6B5.js → GatewayLayout-LvwwrwMf.js} +2 -2
- package/langwatch/dist/client/assets/{GraphsLayout-BJ68J9e-.js → GraphsLayout-DJ-HI9N1.js} +2 -2
- package/langwatch/dist/client/assets/{GroupBindingInputRow-DebZBCnD.js → GroupBindingInputRow-CV-fBkX9.js} +2 -2
- package/langwatch/dist/client/assets/{MessagesTable-B6lYde-x.js → MessagesTable-9taaKCOZ.js} +2 -2
- package/langwatch/dist/client/assets/{NavigationFooter-CiOVzDUh.js → NavigationFooter-Dzvauw3l.js} +2 -2
- package/langwatch/dist/client/assets/{NoDataInfoBlock-quSW_MRm.js → NoDataInfoBlock-CLKl_wlX.js} +2 -2
- package/langwatch/dist/client/assets/{OpsPageShell-DJ1WlI6-.js → OpsPageShell-C_mTziRS.js} +2 -2
- package/langwatch/dist/client/assets/{OptimizationStudio-BlozXjcN.js → OptimizationStudio-D2zpsmJj.js} +8 -12
- package/langwatch/dist/client/assets/{PreconditionsField-BOfcWvmZ.js → PreconditionsField-WXB8kcTK.js} +2 -2
- package/langwatch/dist/client/assets/{SettingsLayout-CLCGxMAe.js → SettingsLayout--1gdEuhv.js} +2 -2
- package/langwatch/dist/client/assets/{SubscriptionPage-J8b2Zaj6.js → SubscriptionPage-B0ox_4kM.js} +2 -2
- package/langwatch/dist/client/assets/{VirtualKeySecretReveal-DR1VDLy7.js → VirtualKeySecretReveal-CRbI1dKQ.js} +2 -2
- package/langwatch/dist/client/assets/{WithPermissionGuard-DD8uo3UK.js → WithPermissionGuard-B4Jo8E5-.js} +2 -2
- package/langwatch/dist/client/assets/{__...path__-BZVaIayJ.js → __...path__-BF2zkD84.js} +2 -2
- package/langwatch/dist/client/assets/{_experiment_-B1aT-wS3.js → _experiment_-D02aoVQk.js} +2 -2
- package/langwatch/dist/client/assets/{_id_-oI_eq-I_.js → _id_-Ch8YmTiM.js} +2 -2
- package/langwatch/dist/client/assets/{_id_-DAqPuO73.js → _id_-D6ZvwHpH.js} +2 -2
- package/langwatch/dist/client/assets/{_id_-DUngklVb.js → _id_-DOC1ZkBm.js} +2 -2
- package/langwatch/dist/client/assets/{_id_-jFDAfbob.js → _id_-DfWwW6_N.js} +2 -2
- package/langwatch/dist/client/assets/{_id_-BKBrWGG0.js → _id_-DxUo4W7J.js} +2 -2
- package/langwatch/dist/client/assets/_not-found-COI3ShsR.js +1 -0
- package/langwatch/dist/client/assets/{_project_-Bt1tayHB.js → _project_-_UUt5Ar9.js} +2 -2
- package/langwatch/dist/client/assets/{_runId_-CfvnDt5H.js → _runId_-Dimwzp48.js} +2 -2
- package/langwatch/dist/client/assets/_slug_-BMvKBwS_.js +2 -0
- package/langwatch/dist/client/assets/{_slug_-DZAdl0QS.js → _slug_-CE6VoDSC.js} +2 -2
- package/langwatch/dist/client/assets/{_slug_-DmoWXjKT.js → _slug_-OiOLG1Mv.js} +2 -2
- package/langwatch/dist/client/assets/{_team_-DL_wKSWK.js → _team_-DKvmwO_5.js} +2 -2
- package/langwatch/dist/client/assets/{_workflow_-DcMXLPUe.js → _workflow_-FkilKiB-.js} +3 -3
- package/langwatch/dist/client/assets/{_workflow_-NI9bac7d.js → _workflow_-gJZppg3h.js} +2 -2
- package/langwatch/dist/client/assets/{access-audit-CFwNwusI.js → access-audit-xcUVYMMT.js} +2 -2
- package/langwatch/dist/client/assets/{agents-Di4XRwcn.js → agents-D32g91cu.js} +2 -2
- package/langwatch/dist/client/assets/{all-C273mlDB.js → all-vnREzDZj.js} +2 -2
- package/langwatch/dist/client/assets/{analytics-CEAcSf6B.js → analytics-DP6Y4Feh.js} +2 -2
- package/langwatch/dist/client/assets/{annotation-scores-CHfn4LQp.js → annotation-scores-CjD4CEB6.js} +2 -2
- package/langwatch/dist/client/assets/{annotations-CHZQrha6.js → annotations-1rVXiDRQ.js} +2 -2
- package/langwatch/dist/client/assets/{api-keys-BT7HExHM.js → api-keys-BJpKyuaz.js} +2 -2
- package/langwatch/dist/client/assets/{audit-log-BGk-51Dt.js → audit-log-BdUdZjxp.js} +2 -2
- package/langwatch/dist/client/assets/{authentication-DvwXfkp-.js → authentication-8mQB00CC.js} +2 -2
- package/langwatch/dist/client/assets/{authorize-tXpHrWyw.js → authorize-BpUueMNW.js} +2 -2
- package/langwatch/dist/client/assets/{authorize-CRu9xlpU.js → authorize-CbNBtmxW.js} +2 -2
- package/langwatch/dist/client/assets/{automations-CjDvz9Ak.js → automations-34KMkRxd.js} +2 -2
- package/langwatch/dist/client/assets/{billing-plans-FUqEPN62.js → billing-plans-BUQp08MI.js} +2 -2
- package/langwatch/dist/client/assets/{budgets-BV6_RHrs.js → budgets-CdelE8Hv.js} +2 -2
- package/langwatch/dist/client/assets/{cache-rules-CtYA79E_.js → cache-rules-D2m1QlNJ.js} +2 -2
- package/langwatch/dist/client/assets/choose-C0LdeUiH.js +2 -0
- package/langwatch/dist/client/assets/{command-bar-CaJygoez.js → command-bar-DUK45yin.js} +7 -9
- package/langwatch/dist/client/assets/custom-hBq2K4FJ.js +1 -0
- package/langwatch/dist/client/assets/{datasets-vLWpH84_.js → datasets-ErNNhmjg.js} +2 -2
- package/langwatch/dist/client/assets/{dejaview-DwVR3RGg.js → dejaview-BaD4_v90.js} +2 -2
- package/langwatch/dist/client/assets/{dist-SwV3YZv3.js → dist-Cds4Mqhj.js} +4 -6
- package/langwatch/dist/client/assets/{edit-CyxsmQmW.js → edit-DpT8ejBV.js} +2 -2
- package/langwatch/dist/client/assets/{evaluations-BfgeZMph.js → evaluations-BdQ2Dm2r.js} +2 -2
- package/langwatch/dist/client/assets/{evaluations-HSQIMvbX.js → evaluations-C90I4VAr.js} +2 -2
- package/langwatch/dist/client/assets/{evaluators-DLHVvnrh.js → evaluators-ig_ugRLt.js} +2 -2
- package/langwatch/dist/client/assets/{foundry-Ckq0WjPU.js → foundry-B-X_80pD.js} +2 -2
- package/langwatch/dist/client/assets/{gateway-CDSYPZ6w.js → gateway-CS_mtJx-.js} +2 -2
- package/langwatch/dist/client/assets/{groups-CCCRUqPj.js → groups-Bp90ChP3.js} +2 -2
- package/langwatch/dist/client/assets/{index-Bm6z2fM9.js → index-BEjGS0kI.js} +5 -5
- package/langwatch/dist/client/assets/{license-CHOarGWr.js → license-CgnlvyuI.js} +2 -2
- package/langwatch/dist/client/assets/{me-CBya_vXs.js → me-DEqhm_KC.js} +2 -2
- package/langwatch/dist/client/assets/{members-lIFLh-rh.js → members-CUJANDtH.js} +2 -2
- package/langwatch/dist/client/assets/{messages-CG9j8Dz8.js → messages-fQBfCjvp.js} +2 -2
- package/langwatch/dist/client/assets/{metrics-C9pzeaI6.js → metrics-DeIxebpD.js} +2 -2
- package/langwatch/dist/client/assets/{model-costs-Bc5uqjkl.js → model-costs-C1RbgK--.js} +2 -2
- package/langwatch/dist/client/assets/{model-providers-B5UjRgS_.js → model-providers-Pv3ML_-t.js} +2 -2
- package/langwatch/dist/client/assets/{my-queue-BkEfiWyR.js → my-queue-BLre2NMr.js} +2 -2
- package/langwatch/dist/client/assets/{ops-Cc-g-CMn.js → ops-CCw-FJaT.js} +2 -2
- package/langwatch/dist/client/assets/{organization-features-CoIKKHkQ.js → organization-features-rqg-75mI.js} +2 -2
- package/langwatch/dist/client/assets/{organizations-DWcQUTzi.js → organizations-DjCzIHVx.js} +2 -2
- package/langwatch/dist/client/assets/{persistence-CTQ44vGL.js → persistence-BPvHS0F6.js} +2 -2
- package/langwatch/dist/client/assets/{plans-Dq3eFg5K.js → plans-Ch2Ol-Fd.js} +2 -2
- package/langwatch/dist/client/assets/{projections-CTNj1QBM.js → projections-it4FOVjm.js} +2 -2
- package/langwatch/dist/client/assets/{projects-BxM7C87h.js → projects-CjWZFLfn.js} +2 -2
- package/langwatch/dist/client/assets/{prompts-DhXnJT6e.js → prompts-DilmFH_s.js} +2 -2
- package/langwatch/dist/client/assets/{providers-DW7VWdqq.js → providers-tlLT_lTF.js} +2 -2
- package/langwatch/dist/client/assets/{reports-D3QFKhNP.js → reports-vlrcTrLs.js} +2 -2
- package/langwatch/dist/client/assets/{roles-B_0t5DWA.js → roles-DNgi-NQ9.js} +2 -2
- package/langwatch/dist/client/assets/{scenarios-BX3XslU0.js → scenarios-BmG_wDkR.js} +2 -2
- package/langwatch/dist/client/assets/{scim-DDsLO39r.js → scim-BKr1_FHt.js} +2 -2
- package/langwatch/dist/client/assets/{secrets-BvEGwDCy.js → secrets-CU8ocTGv.js} +2 -2
- package/langwatch/dist/client/assets/{settings-9giNiAQQ.js → settings-CDzdoYVK.js} +2 -2
- package/langwatch/dist/client/assets/{setup-HxXKoVKG.js → setup-nEvn2rjN.js} +2 -2
- package/langwatch/dist/client/assets/{subscription-DhyswDze.js → subscription-BPNl_6jF.js} +3 -3
- package/langwatch/dist/client/assets/{subscriptions-Dyyau22a.js → subscriptions-D0G-OE5C.js} +2 -2
- package/langwatch/dist/client/assets/{teams-DRmeAxzf.js → teams-DThgDQvB.js} +2 -2
- package/langwatch/dist/client/assets/{textOverflowHeuristic-JibhpzDV.js → textOverflowHeuristic-DTC8-Ffx.js} +2 -2
- package/langwatch/dist/client/assets/{topic-clustering-Bllfw5rZ.js → topic-clustering-BR2Mbpao.js} +2 -2
- package/langwatch/dist/client/assets/{topics-CpiGYxqb.js → topics-CI8GoNqp.js} +2 -2
- package/langwatch/dist/client/assets/{traceExecutor-CiHXJB0V.js → traceExecutor-CDUGyUaw.js} +2 -2
- package/langwatch/dist/client/assets/{usage-BnsstwBY.js → usage-B4mR7ut_.js} +2 -2
- package/langwatch/dist/client/assets/{usage-CoyGtJoI.js → usage-C8fbffYi.js} +2 -2
- package/langwatch/dist/client/assets/{useAdminResource-SPC5iBHM.js → useAdminResource-SmnnHro6.js} +2 -2
- package/langwatch/dist/client/assets/{useAnnotationQueues-2DKZTC7r.js → useAnnotationQueues-CA6Vk--V.js} +2 -2
- package/langwatch/dist/client/assets/{useAvailableEvaluators-HndTl2LV.js → useAvailableEvaluators-hmbmcRQr.js} +2 -2
- package/langwatch/dist/client/assets/{useDeleteDatasetConfirmation-BgWN6Qqb.js → useDeleteDatasetConfirmation-BCK_zUUe.js} +2 -2
- package/langwatch/dist/client/assets/{useWorkflowStore-e1wFCvo2.js → useWorkflowStore-QUJ3J8X9.js} +2 -2
- package/langwatch/dist/client/assets/{users-C6wjliCC.js → users-CfhanCfR.js} +2 -2
- package/langwatch/dist/client/assets/{users-tF6ZKeV1.js → users-HjuN3o6k.js} +2 -2
- package/langwatch/dist/client/assets/{virtual-keys-BL-65S0B.js → virtual-keys-Bj-MhW66.js} +2 -2
- package/langwatch/dist/client/assets/{wizard-faGkpZDT.js → wizard-dRWCVVx6.js} +2 -2
- package/langwatch/dist/client/assets/{workbench-Oj0s_YR-.js → workbench-CuixH3G1.js} +2 -2
- package/langwatch/dist/client/assets/{workflows-Cu9k-Twu.js → workflows-BT6m4Yu9.js} +2 -2
- package/langwatch/dist/client/index.html +3 -3
- package/langwatch/dist/scenario-child-process.js +20 -10
- package/langwatch/package.json +2 -2
- package/langwatch/pnpm-lock.yaml +329 -328
- package/langwatch/scripts/seed-dogfood-password.ts +163 -0
- package/langwatch/src/app/api/workflows/post_event/__tests__/post-event-evaluator.integration.test.ts +458 -0
- package/langwatch/src/app/api/workflows/post_event/__tests__/post-event-routing.test.ts +188 -0
- package/langwatch/src/app/api/workflows/post_event/__tests__/post-event.integration.test.ts +274 -0
- package/langwatch/src/app/api/workflows/post_event/post-event.ts +29 -1
- package/langwatch/src/components/agents/AgentCodeEditorDrawer.tsx +4 -5
- package/langwatch/src/components/agents/__tests__/AgentCodeEditorDrawer.integration.test.tsx +40 -0
- package/langwatch/src/components/evaluations/wizard/hooks/evaluation-wizard-store/slices/factories/__tests__/code-execution-node.factory.unit.test.ts +47 -0
- package/langwatch/src/components/evaluations/wizard/hooks/evaluation-wizard-store/slices/factories/code-execution-node.factory.ts +2 -4
- package/langwatch/src/components/experiments/BatchEvaluationV2/BatchEvaluationV2EvaluationResults.tsx +6 -1
- package/langwatch/src/hooks/usePostHog.ts +11 -0
- package/langwatch/src/optimization_studio/__tests__/registry.test.ts +29 -1
- package/langwatch/src/optimization_studio/components/Optimize.tsx +17 -3
- package/langwatch/src/optimization_studio/components/properties/AgentPropertiesPanel.tsx +4 -5
- package/langwatch/src/optimization_studio/hooks/workflowStoreCore.ts +17 -6
- package/langwatch/src/optimization_studio/hooks/workflowStoreCore.unit.test.ts +42 -0
- package/langwatch/src/optimization_studio/registry.ts +2 -4
- package/langwatch/src/optimization_studio/server/lambda/index.ts +12 -2
- package/langwatch/src/server/api/routers/workflows.ts +18 -0
- package/langwatch/src/server/evaluations-v3/execution/workflowBuilder.ts +3 -2
- package/langwatch/src/server/evaluations-v3/services/__tests__/experiment-run.service.getRun-null.unit.test.ts +71 -0
- package/langwatch/src/server/evaluations-v3/services/experiment-run.service.ts +18 -9
- package/langwatch/src/server/modelProviders/utils.ts +11 -1
- package/langwatch/src/server/nlpgo/__tests__/nlpgoFetch.integration.test.ts +248 -0
- package/langwatch/src/server/nlpgo/nlpgoFetch.ts +155 -0
- package/langwatch/src/server/routes/__tests__/playground-proxy.integration.test.ts +242 -0
- package/langwatch/src/server/routes/playground.ts +11 -1
- package/langwatch/src/server/routes/workflows.ts +17 -0
- package/langwatch/src/server/topicClustering/topicClustering.ts +33 -8
- package/langwatch/src/server/workflows/runWorkflow.ts +10 -13
- package/langwatch_nlp/langwatch_nlp/studio/execute/execute_component.py +25 -1
- package/langwatch_nlp/langwatch_nlp/studio/parser.py +121 -16
- package/langwatch_nlp/langwatch_nlp/topic_clustering/topic_naming.py +39 -32
- package/langwatch_nlp/scripts/entrypoint.sh +67 -0
- package/langwatch_nlp/tests/studio/test_parse.py +198 -0
- package/mcp-server/pnpm-lock.yaml +15 -21
- package/package.json +1 -1
- package/packages/server/dist/cli.cjs +78 -94
- package/langwatch/dist/client/assets/ChatWindow-DzB-tNlQ.js +0 -1
- package/langwatch/dist/client/assets/_not-found-PEUaWdF3.js +0 -1
- package/langwatch/dist/client/assets/_slug_-C-8AjsjC.js +0 -2
- package/langwatch/dist/client/assets/choose--PBky27o.js +0 -2
- package/langwatch/dist/client/assets/custom-CSiS1liN.js +0 -1
package/langwatch/dist/client/assets/{billing-plans-FUqEPN62.js → billing-plans-BUQp08MI.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./chunk-Bj-mKKzh.js";import{Dr as t}from"./command-bar-CaJygoez.js";import{c as n}from"./useOrganizationTeamProject-DC0iozx2.js";import{A as r,D as i,E as a,b as o,h as s,j as c}from"./types-B5pOLKPA.js";import{t as l}from"./planTypes-Cig7WlCp.js";var u=n(),d={schemaVersion:1,updatedAt:`2026-03-08T20:42:15.318Z`,mapping:{PRO:{test:`price_1P6bSyIMsTw08cudmzoqwBVN`,live:`price_1P6fvzIMsTw08cudWCwqfEjq`},GROWTH:{test:`price_1P6fbyIMsTw08cudKh5L8w8x`,live:`price_1P6fw2IMsTw08cudFUkOX7jV`},LAUNCH:{test:`price_1R9LHnIMsTw08cudoc9eO4L8`,live:`price_1QRflaIMsTw08cudIMK1ai2x`},LAUNCH_ANNUAL:{test:`price_1R9LIcIMsTw08cudk2QB7qfD`,live:`price_1QRfmKIMsTw08cud2FNGkopZ`},ACCELERATE:{test:`price_1R9LMvIMsTw08cudDvep2CIz`,live:`price_1R9QlPIMsTw08cudEupEEivx`},ACCELERATE_ANNUAL:{test:`price_1R9LNbIMsTw08cudIBv5n38r`,live:`price_1R9QmNIMsTw08cudpk6UDhZg`},LAUNCH_USERS:{test:`price_1QRby4IMsTw08cud0IDctQuX`,live:`price_1QHNZ1IMsTw08cudbfSO8xOt`},ACCELERATE_USERS:{test:`price_1R6nx1IMsTw08cudjSeT6Qoj`,live:`price_1QeC8uIMsTw08cudqxcFMrCd`},LAUNCH_TRACES_10K:{test:`price_1R6YYpIMsTw08cudI2IEMIkk`,live:`price_1R55Y9IMsTw08cudoJBCK9Zq`},ACCELERATE_TRACES_100K:{test:`price_1R6nttIMsTw08cudaPXCFRPc`,live:`price_1R9R7CIMsTw08cudFKXaCUjK`},LAUNCH_ANNUAL_TRACES_10K:{test:`price_1R9LLeIMsTw08cudK3be8XZ7`,live:`price_1R9R1FIMsTw08cudjyrUQ2de`},ACCELERATE_ANNUAL_TRACES_100K:{test:`price_1R9LAVIMsTw08cudVWx5aKLY`,live:`price_1R9RAGIMsTw08cudG1qutTQi`},LAUNCH_ANNUAL_USERS:{test:`price_1R9LJfIMsTw08cudLqdRyQX8`,live:`price_1R9QseIMsTw08cudNuAgREET`},ACCELERATE_ANNUAL_USERS:{test:`price_1R9LKfIMsTw08cudopZOEoto`,live:`price_1R9QtYIMsTw08cud2pHVq7XK`},GROWTH_SEAT_EUR_MONTHLY:{test:`price_1SyxCwIMsTw08cudPPOqniRl`,live:`price_1T1xsvIMsTw08cuduq0DavPc`},GROWTH_SEAT_EUR_ANNUAL:{test:`price_1SzO35IMsTw08cudeQVCGzHQ`,live:`price_1T1xsxIMsTw08cudBeyYXEi2`},GROWTH_SEAT_USD_MONTHLY:{test:`price_1SzP11IMsTw08cudRhGETYNa`,live:`price_1T1xsyIMsTw08cudW0OwlpzR`},GROWTH_SEAT_USD_ANNUAL:{test:`price_1T1wBAIMsTw08cudIw0KvQb8`,live:`price_1T1xt0IMsTw08cuddFmUchMv`},GROWTH_EVENTS_EUR_MONTHLY:{test:`price_1T8nfoIMsTw08cuddjqbqvLN`,live:`price_1T8njlIMsTw08cudXUOpxP8S`},GROWTH_EVENTS_EUR_ANNUAL:{test:`price_1T8nfuIMsTw08cudhCqeb82G`,live:`price_1T8nkBIMsTw08cuduDEScSeq`},GROWTH_EVENTS_USD_MONTHLY:{test:`price_1T8nfzIMsTw08cudahMR8H7U`,live:`price_1T8nkHIMsTw08cudTYAeGIeb`},GROWTH_EVENTS_USD_ANNUAL:{test:`price_1T8ng5IMsTw08cudrdc6jPa4`,live:`price_1T8nkMIMsTw08cudRVOzEObY`},GROWTH_EVENTS_EUR_MONTHLY_UNTIL_MAR_2026:{test:`price_1T291RIMsTw08cudnqymaTXk`,live:`price_1T2FSiIMsTw08cud5q01SFk9`},GROWTH_EVENTS_EUR_ANNUAL_UNTIL_MAR_2026:{test:`price_1T291dIMsTw08cudihCUhsUX`,live:`price_1T2FSoIMsTw08cudCc7v2cVI`},GROWTH_EVENTS_USD_MONTHLY_UNTIL_MAR_2026:{test:`price_1T291fIMsTw08cudzZ6ohXsq`,live:`price_1T2FSuIMsTw08cudD5hbFicc`},GROWTH_EVENTS_USD_ANNUAL_UNTIL_MAR_2026:{test:`price_1T291iIMsTw08cudWlyDf1pH`,live:`price_1T2FT0IMsTw08cudNjcizYxH`}},meters:{BILLABLE_EVENTS:{test:`mtr_test_61UBL0fe0hM4Csg7x41IMsTw08cudQaG`,live:`mtr_61UBLon1Ka5iWAcoH41IMsTw08cudD7o`}},prices:JSON.parse(`{"price_1P5muJIMsTw08cud1dKRDRaD":{"id":"price_1P5muJIMsTw08cud1dKRDRaD","active":true,"livemode":true,"product":"prod_PveCqwJmtacGT4","unitAmount":9900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1P5n1SIMsTw08cud8uWZkYfZ":{"id":"price_1P5n1SIMsTw08cud8uWZkYfZ","active":true,"livemode":true,"product":"prod_PveKjgoONwibWN","unitAmount":9900,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1P6biaIMsTw08cud1XOOmKk7":{"id":"price_1P6biaIMsTw08cud1XOOmKk7","active":true,"livemode":false,"product":"prod_PwURbUIVBuXVRq","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1P6bSyIMsTw08cudmzoqwBVN":{"id":"price_1P6bSyIMsTw08cudmzoqwBVN","active":true,"livemode":false,"product":"prod_PwURbUIVBuXVRq","unitAmount":9900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"PRO","metadata":{}},"price_1P6fbyIMsTw08cudKh5L8w8x":{"id":"price_1P6fbyIMsTw08cudKh5L8w8x","active":true,"livemode":false,"product":"prod_PwYjPJyrRryLuZ","unitAmount":39900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"GROWTH","metadata":{}},"price_1P6ffXIMsTw08cud20SxDMVg":{"id":"price_1P6ffXIMsTw08cud20SxDMVg","active":true,"livemode":false,"product":"prod_PwYjPJyrRryLuZ","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1P6fvzIMsTw08cudAF16C16Z":{"id":"price_1P6fvzIMsTw08cudAF16C16Z","active":true,"livemode":true,"product":"prod_PwZ40XV4NICBM7","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1P6fvzIMsTw08cudWCwqfEjq":{"id":"price_1P6fvzIMsTw08cudWCwqfEjq","active":true,"livemode":true,"product":"prod_PwZ40XV4NICBM7","unitAmount":9900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"PRO","metadata":{}},"price_1P6fw2IMsTw08cudFUkOX7jV":{"id":"price_1P6fw2IMsTw08cudFUkOX7jV","active":true,"livemode":true,"product":"prod_PwZ4sA0ZnBwqDG","unitAmount":39900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"GROWTH","metadata":{}},"price_1P6fw2IMsTw08cudoxz07deB":{"id":"price_1P6fw2IMsTw08cudoxz07deB","active":true,"livemode":true,"product":"prod_PwZ4sA0ZnBwqDG","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QABXSIMsTw08cudeFqpju4s":{"id":"price_1QABXSIMsTw08cudeFqpju4s","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":49900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QCgDmIMsTw08cud7d9kl6hq":{"id":"price_1QCgDmIMsTw08cud7d9kl6hq","active":true,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":14900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QCgIOIMsTw08cudxAUM8qub":{"id":"price_1QCgIOIMsTw08cudxAUM8qub","active":false,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":14900,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1QCiNlIMsTw08cudxvFQB2kW":{"id":"price_1QCiNlIMsTw08cudxvFQB2kW","active":true,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":14900,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1QeC8uIMsTw08cudqxcFMrCd":{"id":"price_1QeC8uIMsTw08cudqxcFMrCd","active":true,"livemode":true,"product":"prod_R9gwfOvXNJ1t3K","unitAmount":1000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_USERS","metadata":{}},"price_1Qf1dJIMsTw08cudk6uzRKjg":{"id":"price_1Qf1dJIMsTw08cudk6uzRKjg","active":true,"livemode":true,"product":"prod_RY7tU82V18s3JB","unitAmount":1900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1Qf1eYIMsTw08cudTixR6Lg7":{"id":"price_1Qf1eYIMsTw08cudTixR6Lg7","active":true,"livemode":true,"product":"prod_RY7uSRE4aC3I4b","unitAmount":1900,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QGHINIMsTw08cudcqddL9Wp":{"id":"price_1QGHINIMsTw08cudcqddL9Wp","active":true,"livemode":true,"product":"prod_R8YP2j45ESnUWf","unitAmount":89900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QHNZ1IMsTw08cudbfSO8xOt":{"id":"price_1QHNZ1IMsTw08cudbfSO8xOt","active":true,"livemode":true,"product":"prod_R9gwfOvXNJ1t3K","unitAmount":1900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_USERS","metadata":{}},"price_1QHNZMIMsTw08cudA1yBOOPz":{"id":"price_1QHNZMIMsTw08cudA1yBOOPz","active":true,"livemode":true,"product":"prod_R9gxWBjCeinChu","unitAmount":5000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QHo0eIMsTw08cudYPNLwrW4":{"id":"price_1QHo0eIMsTw08cudYPNLwrW4","active":true,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":164400,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QI6qUIMsTw08cudxkCfGCNX":{"id":"price_1QI6qUIMsTw08cudxkCfGCNX","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":526900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QISHaIMsTw08cud6mkt89rk":{"id":"price_1QISHaIMsTw08cud6mkt89rk","active":true,"livemode":false,"product":"prod_RAntC2jdV2ukUu","unitAmount":14900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QIt9lIMsTw08cudt4Kue39f":{"id":"price_1QIt9lIMsTw08cudt4Kue39f","active":true,"livemode":false,"product":"prod_RBFfox7UwPJzC7","unitAmount":49900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QIxuwIMsTw08cudjAK7BmNH":{"id":"price_1QIxuwIMsTw08cudjAK7BmNH","active":true,"livemode":false,"product":"prod_RBFfox7UwPJzC7","unitAmount":526900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QIxvQIMsTw08cudPTtDHuCa":{"id":"price_1QIxvQIMsTw08cudPTtDHuCa","active":true,"livemode":false,"product":"prod_RAntC2jdV2ukUu","unitAmount":164400,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QRby4IMsTw08cud0IDctQuX":{"id":"price_1QRby4IMsTw08cud0IDctQuX","active":true,"livemode":false,"product":"prod_RKGVfjsMHyiMVU","unitAmount":1900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_USERS","metadata":{}},"price_1QRcy9IMsTw08cud2x0FMy2f":{"id":"price_1QRcy9IMsTw08cud2x0FMy2f","active":false,"livemode":false,"product":"prod_RKHXdC3kbJa2fL","unitAmount":5000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QRfGzIMsTw08cud3VbD2Sa2":{"id":"price_1QRfGzIMsTw08cud3VbD2Sa2","active":true,"livemode":true,"product":"prod_RKJupxzE0EZqgA","unitAmount":5900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QRflaIMsTw08cudIMK1ai2x":{"id":"price_1QRflaIMsTw08cudIMK1ai2x","active":true,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":5900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH","metadata":{}},"price_1QRfmKIMsTw08cud2FNGkopZ":{"id":"price_1QRfmKIMsTw08cud2FNGkopZ","active":true,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":65100,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL","metadata":{}},"price_1R55Y9IMsTw08cudoJBCK9Zq":{"id":"price_1R55Y9IMsTw08cudoJBCK9Zq","active":true,"livemode":true,"product":"prod_Rz3fgRZzWmZ16A","unitAmount":500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_TRACES_10K","metadata":{}},"price_1R6nttIMsTw08cudaPXCFRPc":{"id":"price_1R6nttIMsTw08cudaPXCFRPc","active":true,"livemode":false,"product":"prod_RKHXdC3kbJa2fL","unitAmount":2900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_TRACES_100K","metadata":{}},"price_1R6nx1IMsTw08cudjSeT6Qoj":{"id":"price_1R6nx1IMsTw08cudjSeT6Qoj","active":true,"livemode":false,"product":"prod_S0pcAGoNP7utLM","unitAmount":1000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_USERS","metadata":{}},"price_1R6oIFIMsTw08cudLaJQ2IFx":{"id":"price_1R6oIFIMsTw08cudLaJQ2IFx","active":true,"livemode":false,"product":"prod_S0pyX72pOXxZH8","unitAmount":3900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1R6YYpIMsTw08cudI2IEMIkk":{"id":"price_1R6YYpIMsTw08cudI2IEMIkk","active":true,"livemode":false,"product":"prod_S0ZiMo7Tpt7FzN","unitAmount":500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_TRACES_10K","metadata":{}},"price_1R9L9JIMsTw08cuddDNKp74b":{"id":"price_1R9L9JIMsTw08cuddDNKp74b","active":true,"livemode":false,"product":"prod_RKHXdC3kbJa2fL","unitAmount":4500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1R9LAVIMsTw08cudVWx5aKLY":{"id":"price_1R9LAVIMsTw08cudVWx5aKLY","active":true,"livemode":false,"product":"prod_RKHXdC3kbJa2fL","unitAmount":49900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL_TRACES_100K","metadata":{}},"price_1R9LHnIMsTw08cudoc9eO4L8":{"id":"price_1R9LHnIMsTw08cudoc9eO4L8","active":true,"livemode":false,"product":"prod_RAntC2jdV2ukUu","unitAmount":5900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH","metadata":{}},"price_1R9LIcIMsTw08cudk2QB7qfD":{"id":"price_1R9LIcIMsTw08cudk2QB7qfD","active":true,"livemode":false,"product":"prod_RAntC2jdV2ukUu","unitAmount":64900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL","metadata":{}},"price_1R9LJfIMsTw08cudLqdRyQX8":{"id":"price_1R9LJfIMsTw08cudLqdRyQX8","active":true,"livemode":false,"product":"prod_RKGVfjsMHyiMVU","unitAmount":21000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL_USERS","metadata":{}},"price_1R9LKfIMsTw08cudopZOEoto":{"id":"price_1R9LKfIMsTw08cudopZOEoto","active":true,"livemode":false,"product":"prod_S0pcAGoNP7utLM","unitAmount":11000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL_USERS","metadata":{}},"price_1R9LLeIMsTw08cudK3be8XZ7":{"id":"price_1R9LLeIMsTw08cudK3be8XZ7","active":true,"livemode":false,"product":"prod_S0ZiMo7Tpt7FzN","unitAmount":5500,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL_TRACES_10K","metadata":{}},"price_1R9LMvIMsTw08cudDvep2CIz":{"id":"price_1R9LMvIMsTw08cudDvep2CIz","active":true,"livemode":false,"product":"prod_RBFfox7UwPJzC7","unitAmount":19900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE","metadata":{}},"price_1R9LNbIMsTw08cudIBv5n38r":{"id":"price_1R9LNbIMsTw08cudIBv5n38r","active":true,"livemode":false,"product":"prod_RBFfox7UwPJzC7","unitAmount":219900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL","metadata":{}},"price_1R9LPJIMsTw08cud22Rd0oYi":{"id":"price_1R9LPJIMsTw08cud22Rd0oYi","active":true,"livemode":false,"product":"prod_S3SJGorELhb61u","unitAmount":30000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1R9LQ7IMsTw08cudcEoX88N9":{"id":"price_1R9LQ7IMsTw08cudcEoX88N9","active":true,"livemode":false,"product":"prod_S3SJGorELhb61u","unitAmount":330000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1R9QlPIMsTw08cudEupEEivx":{"id":"price_1R9QlPIMsTw08cudEupEEivx","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":19900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE","metadata":{}},"price_1R9QmNIMsTw08cudpk6UDhZg":{"id":"price_1R9QmNIMsTw08cudpk6UDhZg","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":219900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL","metadata":{}},"price_1R9QseIMsTw08cudNuAgREET":{"id":"price_1R9QseIMsTw08cudNuAgREET","active":true,"livemode":true,"product":"prod_R9gwfOvXNJ1t3K","unitAmount":21000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL_USERS","metadata":{}},"price_1R9QtYIMsTw08cud2pHVq7XK":{"id":"price_1R9QtYIMsTw08cud2pHVq7XK","active":true,"livemode":true,"product":"prod_R9gwfOvXNJ1t3K","unitAmount":11000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL_USERS","metadata":{}},"price_1R9R1FIMsTw08cudjyrUQ2de":{"id":"price_1R9R1FIMsTw08cudjyrUQ2de","active":true,"livemode":true,"product":"prod_Rz3fgRZzWmZ16A","unitAmount":5500,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL_TRACES_10K","metadata":{}},"price_1R9R7CIMsTw08cudFKXaCUjK":{"id":"price_1R9R7CIMsTw08cudFKXaCUjK","active":true,"livemode":true,"product":"prod_R9gxWBjCeinChu","unitAmount":4500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_TRACES_100K","metadata":{}},"price_1R9RAGIMsTw08cudG1qutTQi":{"id":"price_1R9RAGIMsTw08cudG1qutTQi","active":true,"livemode":true,"product":"prod_R9gxWBjCeinChu","unitAmount":49900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL_TRACES_100K","metadata":{}},"price_1RBZK3IMsTw08cudnaKCztZz":{"id":"price_1RBZK3IMsTw08cudnaKCztZz","active":true,"livemode":true,"product":"prod_S5kp4GpESyvdQ3","unitAmount":49900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1RThx4IMsTw08cudIoY2frJJ":{"id":"price_1RThx4IMsTw08cudIoY2frJJ","active":true,"livemode":true,"product":"prod_SOUwQ14plEgApS","unitAmount":500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1S3vx6IMsTw08cudUJD7Cux3":{"id":"price_1S3vx6IMsTw08cudUJD7Cux3","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":58267,"currency":"usd","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnF8IMsTw08cud7u4INgMP":{"id":"price_1SMnF8IMsTw08cud7u4INgMP","active":true,"livemode":true,"product":"prod_RY7tU82V18s3JB","unitAmount":1900,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnFIIMsTw08cudsxkSZ5qP":{"id":"price_1SMnFIIMsTw08cudsxkSZ5qP","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":49900,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnFsIMsTw08cudl4ttXU7x":{"id":"price_1SMnFsIMsTw08cudl4ttXU7x","active":true,"livemode":true,"product":"prod_R9gxWBjCeinChu","unitAmount":5000,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnHuIMsTw08cudd8UkZlJG":{"id":"price_1SMnHuIMsTw08cudd8UkZlJG","active":true,"livemode":true,"product":"prod_TJQ8atW8LdoKfR","unitAmount":149700,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":3},"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnIRIMsTw08cudCIPHfKJ5":{"id":"price_1SMnIRIMsTw08cudCIPHfKJ5","active":true,"livemode":true,"product":"prod_TJQ8iHbHdsoyqt","unitAmount":4500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":3},"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnJIIMsTw08cudPdHSrR2X":{"id":"price_1SMnJIIMsTw08cudPdHSrR2X","active":true,"livemode":true,"product":"prod_TJQ9XRxk8B7OpO","unitAmount":13500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":3},"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMpA1IMsTw08cudIzMYxEdc":{"id":"price_1SMpA1IMsTw08cudIzMYxEdc","active":true,"livemode":true,"product":"prod_TJS4K9qCLtmiTN","unitAmount":750000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":3},"nickname":null,"lookupKey":null,"metadata":{}},"price_1STOAQIMsTw08cudenJYn1dx":{"id":"price_1STOAQIMsTw08cudenJYn1dx","active":true,"livemode":true,"product":"prod_TJQ8atW8LdoKfR","unitAmount":149700,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1STONyIMsTw08cudBQywa4mu":{"id":"price_1STONyIMsTw08cudBQywa4mu","active":true,"livemode":true,"product":"prod_TJQ8iHbHdsoyqt","unitAmount":4500,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1STOOEIMsTw08cudx0mM1ayi":{"id":"price_1STOOEIMsTw08cudx0mM1ayi","active":true,"livemode":true,"product":"prod_TJQ9XRxk8B7OpO","unitAmount":13500,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1STOZIIMsTw08cud4ZufHA4q":{"id":"price_1STOZIIMsTw08cud4ZufHA4q","active":true,"livemode":true,"product":"prod_TQF3HuItbw0Dla","unitAmount":30000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1SVWVOIMsTw08cud9l5rPfpQ":{"id":"price_1SVWVOIMsTw08cud9l5rPfpQ","active":true,"livemode":true,"product":"prod_TJS4K9qCLtmiTN","unitAmount":750000,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1SwmECIMsTw08cudounfKzhE":{"id":"price_1SwmECIMsTw08cudounfKzhE","active":true,"livemode":true,"product":"prod_TubRb55wWdBld8","unitAmount":2900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1SyxCwIMsTw08cudPPOqniRl":{"id":"price_1SyxCwIMsTw08cudPPOqniRl","active":true,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":2900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth - EUR Monthly","lookupKey":"GROWTH_SEAT_EUR_MONTHLY","metadata":{}},"price_1SzO35IMsTw08cudeQVCGzHQ":{"id":"price_1SzO35IMsTw08cudeQVCGzHQ","active":true,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":32000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth - EUR Annual","lookupKey":"GROWTH_SEAT_EUR_ANNUAL","metadata":{}},"price_1SzP11IMsTw08cudRhGETYNa":{"id":"price_1SzP11IMsTw08cudRhGETYNa","active":true,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":3200,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth - USD Monthly","lookupKey":"GROWTH_SEAT_USD_MONTHLY","metadata":{}},"price_1SzP12IMsTw08cudD89W6g0v":{"id":"price_1SzP12IMsTw08cudD89W6g0v","active":false,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":35400,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth - USD Annual","lookupKey":null,"metadata":{}},"price_1T1wBAIMsTw08cudIw0KvQb8":{"id":"price_1T1wBAIMsTw08cudIw0KvQb8","active":true,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":35328,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth - USD Annual","lookupKey":"GROWTH_SEAT_USD_ANNUAL","metadata":{}},"price_1T1x3RIMsTw08cudcDltplhj":{"id":"price_1T1x3RIMsTw08cudcDltplhj","active":false,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":null,"metadata":{}},"price_1T1x3TIMsTw08cudIti61iiN":{"id":"price_1T1x3TIMsTw08cudIti61iiN","active":false,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":null,"metadata":{}},"price_1T1x3VIMsTw08cud85sJJiaU":{"id":"price_1T1x3VIMsTw08cud85sJJiaU","active":false,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":null,"metadata":{}},"price_1T1x3XIMsTw08cudO5d3b9wy":{"id":"price_1T1x3XIMsTw08cudO5d3b9wy","active":false,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":null,"metadata":{}},"price_1T1xjuIMsTw08cudagYgfcI6":{"id":"price_1T1xjuIMsTw08cudagYgfcI6","active":true,"livemode":false,"product":"prod_TzxeuOWe65M4HU","unitAmount":2900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1T1xsvIMsTw08cuduq0DavPc":{"id":"price_1T1xsvIMsTw08cuduq0DavPc","active":true,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":2900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth - EUR Monthly","lookupKey":"GROWTH_SEAT_EUR_MONTHLY","metadata":{}},"price_1T1xsxIMsTw08cudBeyYXEi2":{"id":"price_1T1xsxIMsTw08cudBeyYXEi2","active":true,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":32000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth - EUR Annual","lookupKey":"GROWTH_SEAT_EUR_ANNUAL","metadata":{}},"price_1T1xsyIMsTw08cudW0OwlpzR":{"id":"price_1T1xsyIMsTw08cudW0OwlpzR","active":true,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":3400,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth - USD Monthly","lookupKey":"GROWTH_SEAT_USD_MONTHLY","metadata":{}},"price_1T1xt0IMsTw08cuddFmUchMv":{"id":"price_1T1xt0IMsTw08cuddFmUchMv","active":true,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":37536,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth - USD Annual","lookupKey":"GROWTH_SEAT_USD_ANNUAL","metadata":{}},"price_1T1xt4IMsTw08cudXgZytO75":{"id":"price_1T1xt4IMsTw08cudXgZytO75","active":false,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":null,"metadata":{}},"price_1T1xt6IMsTw08cudwOa7jzz8":{"id":"price_1T1xt6IMsTw08cudwOa7jzz8","active":false,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":null,"metadata":{}},"price_1T1xt9IMsTw08cudx6VGnQvS":{"id":"price_1T1xt9IMsTw08cudx6VGnQvS","active":false,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":null,"metadata":{}},"price_1T1xtBIMsTw08cudaHu01HNk":{"id":"price_1T1xtBIMsTw08cudaHu01HNk","active":false,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":null,"metadata":{}},"price_1T291dIMsTw08cudihCUhsUX":{"id":"price_1T291dIMsTw08cudihCUhsUX","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":"GROWTH_EVENTS_EUR_ANNUAL_UNTIL_MAR_2026","metadata":{}},"price_1T291fIMsTw08cudzZ6ohXsq":{"id":"price_1T291fIMsTw08cudzZ6ohXsq","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":"GROWTH_EVENTS_USD_MONTHLY_UNTIL_MAR_2026","metadata":{}},"price_1T291iIMsTw08cudWlyDf1pH":{"id":"price_1T291iIMsTw08cudWlyDf1pH","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":"GROWTH_EVENTS_USD_ANNUAL_UNTIL_MAR_2026","metadata":{}},"price_1T291RIMsTw08cudnqymaTXk":{"id":"price_1T291RIMsTw08cudnqymaTXk","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":"GROWTH_EVENTS_EUR_MONTHLY_UNTIL_MAR_2026","metadata":{}},"price_1T2FSiIMsTw08cud5q01SFk9":{"id":"price_1T2FSiIMsTw08cud5q01SFk9","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":"GROWTH_EVENTS_EUR_MONTHLY_UNTIL_MAR_2026","metadata":{}},"price_1T2FSoIMsTw08cudCc7v2cVI":{"id":"price_1T2FSoIMsTw08cudCc7v2cVI","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":"GROWTH_EVENTS_EUR_ANNUAL_UNTIL_MAR_2026","metadata":{}},"price_1T2FSuIMsTw08cudD5hbFicc":{"id":"price_1T2FSuIMsTw08cudD5hbFicc","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":"GROWTH_EVENTS_USD_MONTHLY_UNTIL_MAR_2026","metadata":{}},"price_1T2FT0IMsTw08cudNjcizYxH":{"id":"price_1T2FT0IMsTw08cudNjcizYxH","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":"GROWTH_EVENTS_USD_ANNUAL_UNTIL_MAR_2026","metadata":{}},"price_1T8hNyIMsTw08cudUuNH8J83":{"id":"price_1T8hNyIMsTw08cudUuNH8J83","active":false,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly (wrong unit)","lookupKey":null,"metadata":{}},"price_1T8hOKIMsTw08cudsHn46XWL":{"id":"price_1T8hOKIMsTw08cudsHn46XWL","active":false,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly (wrong unit)","lookupKey":null,"metadata":{}},"price_1T8nfoIMsTw08cuddjqbqvLN":{"id":"price_1T8nfoIMsTw08cuddjqbqvLN","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":"GROWTH_EVENTS_EUR_MONTHLY","metadata":{}},"price_1T8nfuIMsTw08cudhCqeb82G":{"id":"price_1T8nfuIMsTw08cudhCqeb82G","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":"GROWTH_EVENTS_EUR_ANNUAL","metadata":{}},"price_1T8nfzIMsTw08cudahMR8H7U":{"id":"price_1T8nfzIMsTw08cudahMR8H7U","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":"GROWTH_EVENTS_USD_MONTHLY","metadata":{}},"price_1T8ng5IMsTw08cudrdc6jPa4":{"id":"price_1T8ng5IMsTw08cudrdc6jPa4","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":"GROWTH_EVENTS_USD_ANNUAL","metadata":{}},"price_1T8njlIMsTw08cudXUOpxP8S":{"id":"price_1T8njlIMsTw08cudXUOpxP8S","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":"GROWTH_EVENTS_EUR_MONTHLY","metadata":{}},"price_1T8nkBIMsTw08cuduDEScSeq":{"id":"price_1T8nkBIMsTw08cuduDEScSeq","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":"GROWTH_EVENTS_EUR_ANNUAL","metadata":{}},"price_1T8nkHIMsTw08cudTYAeGIeb":{"id":"price_1T8nkHIMsTw08cudTYAeGIeb","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":"GROWTH_EVENTS_USD_MONTHLY","metadata":{}},"price_1T8nkMIMsTw08cudRVOzEObY":{"id":"price_1T8nkMIMsTw08cudRVOzEObY","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":"GROWTH_EVENTS_USD_ANNUAL","metadata":{}}}`)},f=`PRO.GROWTH.LAUNCH.LAUNCH_ANNUAL.ACCELERATE.ACCELERATE_ANNUAL.LAUNCH_USERS.ACCELERATE_USERS.LAUNCH_TRACES_10K.ACCELERATE_TRACES_100K.LAUNCH_ANNUAL_TRACES_10K.ACCELERATE_ANNUAL_TRACES_100K.LAUNCH_ANNUAL_USERS.ACCELERATE_ANNUAL_USERS.GROWTH_SEAT_EUR_MONTHLY.GROWTH_SEAT_EUR_ANNUAL.GROWTH_SEAT_USD_MONTHLY.GROWTH_SEAT_USD_ANNUAL.GROWTH_EVENTS_EUR_MONTHLY.GROWTH_EVENTS_EUR_ANNUAL.GROWTH_EVENTS_USD_MONTHLY.GROWTH_EVENTS_USD_ANNUAL.GROWTH_EVENTS_EUR_MONTHLY_UNTIL_MAR_2026.GROWTH_EVENTS_EUR_ANNUAL_UNTIL_MAR_2026.GROWTH_EVENTS_USD_MONTHLY_UNTIL_MAR_2026.GROWTH_EVENTS_USD_ANNUAL_UNTIL_MAR_2026`.split(`.`),p=[`BILLABLE_EVENTS`],m=i({interval:o([`day`,`week`,`month`,`year`]),intervalCount:a()}),h=i({id:c(),active:s(),livemode:s(),product:c().nullable(),unitAmount:a().nullable(),currency:c(),type:o([`one_time`,`recurring`]),recurring:m.nullable(),nickname:c().nullable(),lookupKey:c().nullable(),metadata:r(c(),c())}),g=i({test:c(),live:c()}),_=i(Object.fromEntries(f.map(e=>[e,g]))),v=i(Object.fromEntries(p.map(e=>[e,g]))),y=i({schemaVersion:a(),updatedAt:c(),mapping:_,meters:v,prices:r(c(),h)}),b=e=>y.parse(e),x=(e=`production`)=>e===`production`?`live`:`test`,S=(e,t)=>{let n={};for(let r of f){let i=e.mapping[r][t];if(!i)throw Error(`Missing mapped price for ${r} in ${t} mode`);n[r]=i}return n},C=b(d),w=S(C,x());((e,t)=>{let n={};for(let r of p){let i=e.meters?.[r]?.[t];if(!i)throw Error(`Missing mapped meter for ${r} in ${t} mode`);n[r]=i}return n})(C,x()),new Set([w.GROWTH_SEAT_EUR_MONTHLY,w.GROWTH_SEAT_EUR_ANNUAL,w.GROWTH_SEAT_USD_MONTHLY,w.GROWTH_SEAT_USD_ANNUAL]),new Set([w.GROWTH_EVENTS_EUR_MONTHLY,w.GROWTH_EVENTS_EUR_ANNUAL,w.GROWTH_EVENTS_USD_MONTHLY,w.GROWTH_EVENTS_USD_ANNUAL,w.GROWTH_EVENTS_EUR_MONTHLY_UNTIL_MAR_2026,w.GROWTH_EVENTS_EUR_ANNUAL_UNTIL_MAR_2026,w.GROWTH_EVENTS_USD_MONTHLY_UNTIL_MAR_2026,w.GROWTH_EVENTS_USD_ANNUAL_UNTIL_MAR_2026]);var T=[l.GROWTH_SEAT_EUR_MONTHLY,l.GROWTH_SEAT_EUR_ANNUAL,l.GROWTH_SEAT_USD_MONTHLY,l.GROWTH_SEAT_USD_ANNUAL],E=e=>T.includes(e),D=({currency:e,interval:t})=>`GROWTH_SEAT_${e}_${t.toUpperCase()}`,O=e=>{let t=e.match(/^GROWTH_SEAT_(EUR|USD)_(MONTHLY|ANNUAL)$/);return t?{currency:t[1],billingInterval:t[2].toLowerCase()}:null},k=999999999,A={maxWorkflows:9999,maxPrompts:9999,maxEvaluators:9999,maxScenarios:9999,maxExperiments:9999,maxOnlineEvaluations:9999,maxAgents:9999,maxTeams:9999,maxMembersLite:9999,maxDatasets:9999,maxDashboards:9999,maxCustomGraphs:9999,maxAutomations:9999,canPublish:!0},j=e=>({planSource:`subscription`,free:!1,...A,...e}),M=({basePlan:e,type:t,name:n,prices:r})=>({...e,type:t,name:n,prices:r}),N=j({type:l.LAUNCH,name:`Launch`,maxMembers:3,maxProjects:99,maxMessagesPerMonth:2e4,prices:{USD:59,EUR:59}}),P=j({type:l.ACCELERATE,name:`Accelerate`,maxMembers:5,maxProjects:99,maxMessagesPerMonth:2e4,prices:{USD:199,EUR:199}});l.FREE,l.FREE,l.PRO,j({type:l.PRO,name:`Pro`,maxMembers:5,maxProjects:9999,maxMessagesPerMonth:1e4,prices:{USD:99,EUR:99}}),l.LAUNCH,l.LAUNCH_ANNUAL,M({basePlan:N,type:l.LAUNCH_ANNUAL,name:`Launch Annual`,prices:{USD:649,EUR:649}}),l.ACCELERATE,l.ACCELERATE_ANNUAL,M({basePlan:P,type:l.ACCELERATE_ANNUAL,name:`Accelerate Annual`,prices:{USD:2199,EUR:2199}}),l.GROWTH,j({type:l.GROWTH,name:`Growth`,maxMembers:10,maxProjects:99,maxMessagesPerMonth:1e5,prices:{USD:399,EUR:399}}),{...Object.fromEntries(T.map(e=>[e,j({type:e,name:`Growth`,maxMembers:20,maxProjects:99,maxMessagesPerMonth:k,userPrice:{EUR:29,USD:32},prices:{USD:0,EUR:0}})]))},l.ENTERPRISE,j({type:l.ENTERPRISE,name:`Enterprise`,maxMembers:1e3,maxProjects:9999,maxMessagesPerMonth:1e6,prices:{USD:999,EUR:999}});var F=e(t());function I(e,t=`0,0`){return(0,F.default)(e).format(t)}function L(e){let t=w[e],n=C.prices[t];if(!n?.unitAmount)throw Error(`No unitAmount for ${e}`);return n.unitAmount}function R(){return{[u.Currency.EUR]:{monthly:L(`GROWTH_SEAT_EUR_MONTHLY`),annual:L(`GROWTH_SEAT_EUR_ANNUAL`)},[u.Currency.USD]:{monthly:L(`GROWTH_SEAT_USD_MONTHLY`),annual:L(`GROWTH_SEAT_USD_ANNUAL`)}}}function z(e){let t=R();return Math.round((1-t[e].annual/(t[e].monthly*12))*100)}function B({cents:e,currency:t}){let n=e/100;return new Intl.NumberFormat(t===u.Currency.EUR?`en-IE`:`en-US`,{style:`currency`,currency:t,minimumFractionDigits:Number.isInteger(n)?0:2,maximumFractionDigits:2}).format(n)}var V={[u.Currency.EUR]:`€`,[u.Currency.USD]:`$`},H=e=>e===u.Currency.EUR?`€5 per additional 100,000 events`:`$6 per additional 100,000 events`,U=e=>[`Up to 20 core users`,`200,000 events included`,H(e),`Unlimited lite users`,`30 days retention`,`Unlimited evals`,`Private Slack support`],W=[`All platform features`,`50,000 events included`,`14 days data retention`,`2 users`,`3 scenarios`,`3 simulations`,`3 custom evaluations`,`Community support`],G=e=>[`Everything in Free`,`200,000 events included`,H(e),`30 days retention (+ custom at $3/GB)`,`Up to 20 core users (volume discount available)`,`Unlimited lite users`,`Unlimited evals, simulations and prompts`,`Slack support`],K=[`Alternative hosting options`,`Custom data retention`,`Custom SSO / RBAC`,`Audit logs`,`Uptime & Support SLA`,`Compliance and legal reviews`,`Custom terms and DPA`,`Dedicated Solution Engineer`,`Slack / Teams support`,`AWS/Azure/GCP Marketplace`,`ISO27001 / SOC2 reports`];function q({maxMembers:e,maxMessagesPerMonth:t,maxProjects:n,maxMembersLite:r}){return[e>0?`Up to ${I(e)} core users`:`Custom core user limits`,t>=999999999?`Unlimited events`:t>0?`${I(t)} events included`:`Custom event limits`,n>=9999?`Unlimited projects`:n>0?`Up to ${I(n)} projects`:`Custom project limits`,r>=9999?`Unlimited lite users`:r>0?`Up to ${I(r)} lite users`:`Custom lite user limits`]}export{U as a,z as c,O as d,D as f,V as i,R as l,W as n,G as o,q as r,B as s,K as t,E as u};
|
|
2
|
-
//# sourceMappingURL=billing-plans-
|
|
1
|
+
import{s as e}from"./chunk-Bj-mKKzh.js";import{Dr as t}from"./command-bar-DUK45yin.js";import{c as n}from"./useOrganizationTeamProject-DC0iozx2.js";import{A as r,D as i,E as a,b as o,h as s,j as c}from"./types-B5pOLKPA.js";import{t as l}from"./planTypes-Cig7WlCp.js";var u=n(),d={schemaVersion:1,updatedAt:`2026-03-08T20:42:15.318Z`,mapping:{PRO:{test:`price_1P6bSyIMsTw08cudmzoqwBVN`,live:`price_1P6fvzIMsTw08cudWCwqfEjq`},GROWTH:{test:`price_1P6fbyIMsTw08cudKh5L8w8x`,live:`price_1P6fw2IMsTw08cudFUkOX7jV`},LAUNCH:{test:`price_1R9LHnIMsTw08cudoc9eO4L8`,live:`price_1QRflaIMsTw08cudIMK1ai2x`},LAUNCH_ANNUAL:{test:`price_1R9LIcIMsTw08cudk2QB7qfD`,live:`price_1QRfmKIMsTw08cud2FNGkopZ`},ACCELERATE:{test:`price_1R9LMvIMsTw08cudDvep2CIz`,live:`price_1R9QlPIMsTw08cudEupEEivx`},ACCELERATE_ANNUAL:{test:`price_1R9LNbIMsTw08cudIBv5n38r`,live:`price_1R9QmNIMsTw08cudpk6UDhZg`},LAUNCH_USERS:{test:`price_1QRby4IMsTw08cud0IDctQuX`,live:`price_1QHNZ1IMsTw08cudbfSO8xOt`},ACCELERATE_USERS:{test:`price_1R6nx1IMsTw08cudjSeT6Qoj`,live:`price_1QeC8uIMsTw08cudqxcFMrCd`},LAUNCH_TRACES_10K:{test:`price_1R6YYpIMsTw08cudI2IEMIkk`,live:`price_1R55Y9IMsTw08cudoJBCK9Zq`},ACCELERATE_TRACES_100K:{test:`price_1R6nttIMsTw08cudaPXCFRPc`,live:`price_1R9R7CIMsTw08cudFKXaCUjK`},LAUNCH_ANNUAL_TRACES_10K:{test:`price_1R9LLeIMsTw08cudK3be8XZ7`,live:`price_1R9R1FIMsTw08cudjyrUQ2de`},ACCELERATE_ANNUAL_TRACES_100K:{test:`price_1R9LAVIMsTw08cudVWx5aKLY`,live:`price_1R9RAGIMsTw08cudG1qutTQi`},LAUNCH_ANNUAL_USERS:{test:`price_1R9LJfIMsTw08cudLqdRyQX8`,live:`price_1R9QseIMsTw08cudNuAgREET`},ACCELERATE_ANNUAL_USERS:{test:`price_1R9LKfIMsTw08cudopZOEoto`,live:`price_1R9QtYIMsTw08cud2pHVq7XK`},GROWTH_SEAT_EUR_MONTHLY:{test:`price_1SyxCwIMsTw08cudPPOqniRl`,live:`price_1T1xsvIMsTw08cuduq0DavPc`},GROWTH_SEAT_EUR_ANNUAL:{test:`price_1SzO35IMsTw08cudeQVCGzHQ`,live:`price_1T1xsxIMsTw08cudBeyYXEi2`},GROWTH_SEAT_USD_MONTHLY:{test:`price_1SzP11IMsTw08cudRhGETYNa`,live:`price_1T1xsyIMsTw08cudW0OwlpzR`},GROWTH_SEAT_USD_ANNUAL:{test:`price_1T1wBAIMsTw08cudIw0KvQb8`,live:`price_1T1xt0IMsTw08cuddFmUchMv`},GROWTH_EVENTS_EUR_MONTHLY:{test:`price_1T8nfoIMsTw08cuddjqbqvLN`,live:`price_1T8njlIMsTw08cudXUOpxP8S`},GROWTH_EVENTS_EUR_ANNUAL:{test:`price_1T8nfuIMsTw08cudhCqeb82G`,live:`price_1T8nkBIMsTw08cuduDEScSeq`},GROWTH_EVENTS_USD_MONTHLY:{test:`price_1T8nfzIMsTw08cudahMR8H7U`,live:`price_1T8nkHIMsTw08cudTYAeGIeb`},GROWTH_EVENTS_USD_ANNUAL:{test:`price_1T8ng5IMsTw08cudrdc6jPa4`,live:`price_1T8nkMIMsTw08cudRVOzEObY`},GROWTH_EVENTS_EUR_MONTHLY_UNTIL_MAR_2026:{test:`price_1T291RIMsTw08cudnqymaTXk`,live:`price_1T2FSiIMsTw08cud5q01SFk9`},GROWTH_EVENTS_EUR_ANNUAL_UNTIL_MAR_2026:{test:`price_1T291dIMsTw08cudihCUhsUX`,live:`price_1T2FSoIMsTw08cudCc7v2cVI`},GROWTH_EVENTS_USD_MONTHLY_UNTIL_MAR_2026:{test:`price_1T291fIMsTw08cudzZ6ohXsq`,live:`price_1T2FSuIMsTw08cudD5hbFicc`},GROWTH_EVENTS_USD_ANNUAL_UNTIL_MAR_2026:{test:`price_1T291iIMsTw08cudWlyDf1pH`,live:`price_1T2FT0IMsTw08cudNjcizYxH`}},meters:{BILLABLE_EVENTS:{test:`mtr_test_61UBL0fe0hM4Csg7x41IMsTw08cudQaG`,live:`mtr_61UBLon1Ka5iWAcoH41IMsTw08cudD7o`}},prices:JSON.parse(`{"price_1P5muJIMsTw08cud1dKRDRaD":{"id":"price_1P5muJIMsTw08cud1dKRDRaD","active":true,"livemode":true,"product":"prod_PveCqwJmtacGT4","unitAmount":9900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1P5n1SIMsTw08cud8uWZkYfZ":{"id":"price_1P5n1SIMsTw08cud8uWZkYfZ","active":true,"livemode":true,"product":"prod_PveKjgoONwibWN","unitAmount":9900,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1P6biaIMsTw08cud1XOOmKk7":{"id":"price_1P6biaIMsTw08cud1XOOmKk7","active":true,"livemode":false,"product":"prod_PwURbUIVBuXVRq","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1P6bSyIMsTw08cudmzoqwBVN":{"id":"price_1P6bSyIMsTw08cudmzoqwBVN","active":true,"livemode":false,"product":"prod_PwURbUIVBuXVRq","unitAmount":9900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"PRO","metadata":{}},"price_1P6fbyIMsTw08cudKh5L8w8x":{"id":"price_1P6fbyIMsTw08cudKh5L8w8x","active":true,"livemode":false,"product":"prod_PwYjPJyrRryLuZ","unitAmount":39900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"GROWTH","metadata":{}},"price_1P6ffXIMsTw08cud20SxDMVg":{"id":"price_1P6ffXIMsTw08cud20SxDMVg","active":true,"livemode":false,"product":"prod_PwYjPJyrRryLuZ","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1P6fvzIMsTw08cudAF16C16Z":{"id":"price_1P6fvzIMsTw08cudAF16C16Z","active":true,"livemode":true,"product":"prod_PwZ40XV4NICBM7","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1P6fvzIMsTw08cudWCwqfEjq":{"id":"price_1P6fvzIMsTw08cudWCwqfEjq","active":true,"livemode":true,"product":"prod_PwZ40XV4NICBM7","unitAmount":9900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"PRO","metadata":{}},"price_1P6fw2IMsTw08cudFUkOX7jV":{"id":"price_1P6fw2IMsTw08cudFUkOX7jV","active":true,"livemode":true,"product":"prod_PwZ4sA0ZnBwqDG","unitAmount":39900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"GROWTH","metadata":{}},"price_1P6fw2IMsTw08cudoxz07deB":{"id":"price_1P6fw2IMsTw08cudoxz07deB","active":true,"livemode":true,"product":"prod_PwZ4sA0ZnBwqDG","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QABXSIMsTw08cudeFqpju4s":{"id":"price_1QABXSIMsTw08cudeFqpju4s","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":49900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QCgDmIMsTw08cud7d9kl6hq":{"id":"price_1QCgDmIMsTw08cud7d9kl6hq","active":true,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":14900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QCgIOIMsTw08cudxAUM8qub":{"id":"price_1QCgIOIMsTw08cudxAUM8qub","active":false,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":14900,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1QCiNlIMsTw08cudxvFQB2kW":{"id":"price_1QCiNlIMsTw08cudxvFQB2kW","active":true,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":14900,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1QeC8uIMsTw08cudqxcFMrCd":{"id":"price_1QeC8uIMsTw08cudqxcFMrCd","active":true,"livemode":true,"product":"prod_R9gwfOvXNJ1t3K","unitAmount":1000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_USERS","metadata":{}},"price_1Qf1dJIMsTw08cudk6uzRKjg":{"id":"price_1Qf1dJIMsTw08cudk6uzRKjg","active":true,"livemode":true,"product":"prod_RY7tU82V18s3JB","unitAmount":1900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1Qf1eYIMsTw08cudTixR6Lg7":{"id":"price_1Qf1eYIMsTw08cudTixR6Lg7","active":true,"livemode":true,"product":"prod_RY7uSRE4aC3I4b","unitAmount":1900,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QGHINIMsTw08cudcqddL9Wp":{"id":"price_1QGHINIMsTw08cudcqddL9Wp","active":true,"livemode":true,"product":"prod_R8YP2j45ESnUWf","unitAmount":89900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QHNZ1IMsTw08cudbfSO8xOt":{"id":"price_1QHNZ1IMsTw08cudbfSO8xOt","active":true,"livemode":true,"product":"prod_R9gwfOvXNJ1t3K","unitAmount":1900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_USERS","metadata":{}},"price_1QHNZMIMsTw08cudA1yBOOPz":{"id":"price_1QHNZMIMsTw08cudA1yBOOPz","active":true,"livemode":true,"product":"prod_R9gxWBjCeinChu","unitAmount":5000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QHo0eIMsTw08cudYPNLwrW4":{"id":"price_1QHo0eIMsTw08cudYPNLwrW4","active":true,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":164400,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QI6qUIMsTw08cudxkCfGCNX":{"id":"price_1QI6qUIMsTw08cudxkCfGCNX","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":526900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QISHaIMsTw08cud6mkt89rk":{"id":"price_1QISHaIMsTw08cud6mkt89rk","active":true,"livemode":false,"product":"prod_RAntC2jdV2ukUu","unitAmount":14900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QIt9lIMsTw08cudt4Kue39f":{"id":"price_1QIt9lIMsTw08cudt4Kue39f","active":true,"livemode":false,"product":"prod_RBFfox7UwPJzC7","unitAmount":49900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QIxuwIMsTw08cudjAK7BmNH":{"id":"price_1QIxuwIMsTw08cudjAK7BmNH","active":true,"livemode":false,"product":"prod_RBFfox7UwPJzC7","unitAmount":526900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QIxvQIMsTw08cudPTtDHuCa":{"id":"price_1QIxvQIMsTw08cudPTtDHuCa","active":true,"livemode":false,"product":"prod_RAntC2jdV2ukUu","unitAmount":164400,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QRby4IMsTw08cud0IDctQuX":{"id":"price_1QRby4IMsTw08cud0IDctQuX","active":true,"livemode":false,"product":"prod_RKGVfjsMHyiMVU","unitAmount":1900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_USERS","metadata":{}},"price_1QRcy9IMsTw08cud2x0FMy2f":{"id":"price_1QRcy9IMsTw08cud2x0FMy2f","active":false,"livemode":false,"product":"prod_RKHXdC3kbJa2fL","unitAmount":5000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QRfGzIMsTw08cud3VbD2Sa2":{"id":"price_1QRfGzIMsTw08cud3VbD2Sa2","active":true,"livemode":true,"product":"prod_RKJupxzE0EZqgA","unitAmount":5900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1QRflaIMsTw08cudIMK1ai2x":{"id":"price_1QRflaIMsTw08cudIMK1ai2x","active":true,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":5900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH","metadata":{}},"price_1QRfmKIMsTw08cud2FNGkopZ":{"id":"price_1QRfmKIMsTw08cud2FNGkopZ","active":true,"livemode":true,"product":"prod_R4ptrHAVdzIsFu","unitAmount":65100,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL","metadata":{}},"price_1R55Y9IMsTw08cudoJBCK9Zq":{"id":"price_1R55Y9IMsTw08cudoJBCK9Zq","active":true,"livemode":true,"product":"prod_Rz3fgRZzWmZ16A","unitAmount":500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_TRACES_10K","metadata":{}},"price_1R6nttIMsTw08cudaPXCFRPc":{"id":"price_1R6nttIMsTw08cudaPXCFRPc","active":true,"livemode":false,"product":"prod_RKHXdC3kbJa2fL","unitAmount":2900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_TRACES_100K","metadata":{}},"price_1R6nx1IMsTw08cudjSeT6Qoj":{"id":"price_1R6nx1IMsTw08cudjSeT6Qoj","active":true,"livemode":false,"product":"prod_S0pcAGoNP7utLM","unitAmount":1000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_USERS","metadata":{}},"price_1R6oIFIMsTw08cudLaJQ2IFx":{"id":"price_1R6oIFIMsTw08cudLaJQ2IFx","active":true,"livemode":false,"product":"prod_S0pyX72pOXxZH8","unitAmount":3900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1R6YYpIMsTw08cudI2IEMIkk":{"id":"price_1R6YYpIMsTw08cudI2IEMIkk","active":true,"livemode":false,"product":"prod_S0ZiMo7Tpt7FzN","unitAmount":500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_TRACES_10K","metadata":{}},"price_1R9L9JIMsTw08cuddDNKp74b":{"id":"price_1R9L9JIMsTw08cuddDNKp74b","active":true,"livemode":false,"product":"prod_RKHXdC3kbJa2fL","unitAmount":4500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1R9LAVIMsTw08cudVWx5aKLY":{"id":"price_1R9LAVIMsTw08cudVWx5aKLY","active":true,"livemode":false,"product":"prod_RKHXdC3kbJa2fL","unitAmount":49900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL_TRACES_100K","metadata":{}},"price_1R9LHnIMsTw08cudoc9eO4L8":{"id":"price_1R9LHnIMsTw08cudoc9eO4L8","active":true,"livemode":false,"product":"prod_RAntC2jdV2ukUu","unitAmount":5900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH","metadata":{}},"price_1R9LIcIMsTw08cudk2QB7qfD":{"id":"price_1R9LIcIMsTw08cudk2QB7qfD","active":true,"livemode":false,"product":"prod_RAntC2jdV2ukUu","unitAmount":64900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL","metadata":{}},"price_1R9LJfIMsTw08cudLqdRyQX8":{"id":"price_1R9LJfIMsTw08cudLqdRyQX8","active":true,"livemode":false,"product":"prod_RKGVfjsMHyiMVU","unitAmount":21000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL_USERS","metadata":{}},"price_1R9LKfIMsTw08cudopZOEoto":{"id":"price_1R9LKfIMsTw08cudopZOEoto","active":true,"livemode":false,"product":"prod_S0pcAGoNP7utLM","unitAmount":11000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL_USERS","metadata":{}},"price_1R9LLeIMsTw08cudK3be8XZ7":{"id":"price_1R9LLeIMsTw08cudK3be8XZ7","active":true,"livemode":false,"product":"prod_S0ZiMo7Tpt7FzN","unitAmount":5500,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL_TRACES_10K","metadata":{}},"price_1R9LMvIMsTw08cudDvep2CIz":{"id":"price_1R9LMvIMsTw08cudDvep2CIz","active":true,"livemode":false,"product":"prod_RBFfox7UwPJzC7","unitAmount":19900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE","metadata":{}},"price_1R9LNbIMsTw08cudIBv5n38r":{"id":"price_1R9LNbIMsTw08cudIBv5n38r","active":true,"livemode":false,"product":"prod_RBFfox7UwPJzC7","unitAmount":219900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL","metadata":{}},"price_1R9LPJIMsTw08cud22Rd0oYi":{"id":"price_1R9LPJIMsTw08cud22Rd0oYi","active":true,"livemode":false,"product":"prod_S3SJGorELhb61u","unitAmount":30000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1R9LQ7IMsTw08cudcEoX88N9":{"id":"price_1R9LQ7IMsTw08cudcEoX88N9","active":true,"livemode":false,"product":"prod_S3SJGorELhb61u","unitAmount":330000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1R9QlPIMsTw08cudEupEEivx":{"id":"price_1R9QlPIMsTw08cudEupEEivx","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":19900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE","metadata":{}},"price_1R9QmNIMsTw08cudpk6UDhZg":{"id":"price_1R9QmNIMsTw08cudpk6UDhZg","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":219900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL","metadata":{}},"price_1R9QseIMsTw08cudNuAgREET":{"id":"price_1R9QseIMsTw08cudNuAgREET","active":true,"livemode":true,"product":"prod_R9gwfOvXNJ1t3K","unitAmount":21000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL_USERS","metadata":{}},"price_1R9QtYIMsTw08cud2pHVq7XK":{"id":"price_1R9QtYIMsTw08cud2pHVq7XK","active":true,"livemode":true,"product":"prod_R9gwfOvXNJ1t3K","unitAmount":11000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL_USERS","metadata":{}},"price_1R9R1FIMsTw08cudjyrUQ2de":{"id":"price_1R9R1FIMsTw08cudjyrUQ2de","active":true,"livemode":true,"product":"prod_Rz3fgRZzWmZ16A","unitAmount":5500,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"LAUNCH_ANNUAL_TRACES_10K","metadata":{}},"price_1R9R7CIMsTw08cudFKXaCUjK":{"id":"price_1R9R7CIMsTw08cudFKXaCUjK","active":true,"livemode":true,"product":"prod_R9gxWBjCeinChu","unitAmount":4500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_TRACES_100K","metadata":{}},"price_1R9RAGIMsTw08cudG1qutTQi":{"id":"price_1R9RAGIMsTw08cudG1qutTQi","active":true,"livemode":true,"product":"prod_R9gxWBjCeinChu","unitAmount":49900,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":null,"lookupKey":"ACCELERATE_ANNUAL_TRACES_100K","metadata":{}},"price_1RBZK3IMsTw08cudnaKCztZz":{"id":"price_1RBZK3IMsTw08cudnaKCztZz","active":true,"livemode":true,"product":"prod_S5kp4GpESyvdQ3","unitAmount":49900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1RThx4IMsTw08cudIoY2frJJ":{"id":"price_1RThx4IMsTw08cudIoY2frJJ","active":true,"livemode":true,"product":"prod_SOUwQ14plEgApS","unitAmount":500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1S3vx6IMsTw08cudUJD7Cux3":{"id":"price_1S3vx6IMsTw08cudUJD7Cux3","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":58267,"currency":"usd","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnF8IMsTw08cud7u4INgMP":{"id":"price_1SMnF8IMsTw08cud7u4INgMP","active":true,"livemode":true,"product":"prod_RY7tU82V18s3JB","unitAmount":1900,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnFIIMsTw08cudsxkSZ5qP":{"id":"price_1SMnFIIMsTw08cudsxkSZ5qP","active":true,"livemode":true,"product":"prod_R2G3FmpAgwyuIU","unitAmount":49900,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnFsIMsTw08cudl4ttXU7x":{"id":"price_1SMnFsIMsTw08cudl4ttXU7x","active":true,"livemode":true,"product":"prod_R9gxWBjCeinChu","unitAmount":5000,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnHuIMsTw08cudd8UkZlJG":{"id":"price_1SMnHuIMsTw08cudd8UkZlJG","active":true,"livemode":true,"product":"prod_TJQ8atW8LdoKfR","unitAmount":149700,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":3},"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnIRIMsTw08cudCIPHfKJ5":{"id":"price_1SMnIRIMsTw08cudCIPHfKJ5","active":true,"livemode":true,"product":"prod_TJQ8iHbHdsoyqt","unitAmount":4500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":3},"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMnJIIMsTw08cudPdHSrR2X":{"id":"price_1SMnJIIMsTw08cudPdHSrR2X","active":true,"livemode":true,"product":"prod_TJQ9XRxk8B7OpO","unitAmount":13500,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":3},"nickname":null,"lookupKey":null,"metadata":{}},"price_1SMpA1IMsTw08cudIzMYxEdc":{"id":"price_1SMpA1IMsTw08cudIzMYxEdc","active":true,"livemode":true,"product":"prod_TJS4K9qCLtmiTN","unitAmount":750000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":3},"nickname":null,"lookupKey":null,"metadata":{}},"price_1STOAQIMsTw08cudenJYn1dx":{"id":"price_1STOAQIMsTw08cudenJYn1dx","active":true,"livemode":true,"product":"prod_TJQ8atW8LdoKfR","unitAmount":149700,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1STONyIMsTw08cudBQywa4mu":{"id":"price_1STONyIMsTw08cudBQywa4mu","active":true,"livemode":true,"product":"prod_TJQ8iHbHdsoyqt","unitAmount":4500,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1STOOEIMsTw08cudx0mM1ayi":{"id":"price_1STOOEIMsTw08cudx0mM1ayi","active":true,"livemode":true,"product":"prod_TJQ9XRxk8B7OpO","unitAmount":13500,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1STOZIIMsTw08cud4ZufHA4q":{"id":"price_1STOZIIMsTw08cud4ZufHA4q","active":true,"livemode":true,"product":"prod_TQF3HuItbw0Dla","unitAmount":30000,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1SVWVOIMsTw08cud9l5rPfpQ":{"id":"price_1SVWVOIMsTw08cud9l5rPfpQ","active":true,"livemode":true,"product":"prod_TJS4K9qCLtmiTN","unitAmount":750000,"currency":"eur","type":"one_time","recurring":null,"nickname":null,"lookupKey":null,"metadata":{}},"price_1SwmECIMsTw08cudounfKzhE":{"id":"price_1SwmECIMsTw08cudounfKzhE","active":true,"livemode":true,"product":"prod_TubRb55wWdBld8","unitAmount":2900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1SyxCwIMsTw08cudPPOqniRl":{"id":"price_1SyxCwIMsTw08cudPPOqniRl","active":true,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":2900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth - EUR Monthly","lookupKey":"GROWTH_SEAT_EUR_MONTHLY","metadata":{}},"price_1SzO35IMsTw08cudeQVCGzHQ":{"id":"price_1SzO35IMsTw08cudeQVCGzHQ","active":true,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":32000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth - EUR Annual","lookupKey":"GROWTH_SEAT_EUR_ANNUAL","metadata":{}},"price_1SzP11IMsTw08cudRhGETYNa":{"id":"price_1SzP11IMsTw08cudRhGETYNa","active":true,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":3200,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth - USD Monthly","lookupKey":"GROWTH_SEAT_USD_MONTHLY","metadata":{}},"price_1SzP12IMsTw08cudD89W6g0v":{"id":"price_1SzP12IMsTw08cudD89W6g0v","active":false,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":35400,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth - USD Annual","lookupKey":null,"metadata":{}},"price_1T1wBAIMsTw08cudIw0KvQb8":{"id":"price_1T1wBAIMsTw08cudIw0KvQb8","active":true,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":35328,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth - USD Annual","lookupKey":"GROWTH_SEAT_USD_ANNUAL","metadata":{}},"price_1T1x3RIMsTw08cudcDltplhj":{"id":"price_1T1x3RIMsTw08cudcDltplhj","active":false,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":null,"metadata":{}},"price_1T1x3TIMsTw08cudIti61iiN":{"id":"price_1T1x3TIMsTw08cudIti61iiN","active":false,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":null,"metadata":{}},"price_1T1x3VIMsTw08cud85sJJiaU":{"id":"price_1T1x3VIMsTw08cud85sJJiaU","active":false,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":null,"metadata":{}},"price_1T1x3XIMsTw08cudO5d3b9wy":{"id":"price_1T1x3XIMsTw08cudO5d3b9wy","active":false,"livemode":false,"product":"prod_Twquw4VLPAoYC1","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":null,"metadata":{}},"price_1T1xjuIMsTw08cudagYgfcI6":{"id":"price_1T1xjuIMsTw08cudagYgfcI6","active":true,"livemode":false,"product":"prod_TzxeuOWe65M4HU","unitAmount":2900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":null,"lookupKey":null,"metadata":{}},"price_1T1xsvIMsTw08cuduq0DavPc":{"id":"price_1T1xsvIMsTw08cuduq0DavPc","active":true,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":2900,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth - EUR Monthly","lookupKey":"GROWTH_SEAT_EUR_MONTHLY","metadata":{}},"price_1T1xsxIMsTw08cudBeyYXEi2":{"id":"price_1T1xsxIMsTw08cudBeyYXEi2","active":true,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":32000,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth - EUR Annual","lookupKey":"GROWTH_SEAT_EUR_ANNUAL","metadata":{}},"price_1T1xsyIMsTw08cudW0OwlpzR":{"id":"price_1T1xsyIMsTw08cudW0OwlpzR","active":true,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":3400,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth - USD Monthly","lookupKey":"GROWTH_SEAT_USD_MONTHLY","metadata":{}},"price_1T1xt0IMsTw08cuddFmUchMv":{"id":"price_1T1xt0IMsTw08cuddFmUchMv","active":true,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":37536,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth - USD Annual","lookupKey":"GROWTH_SEAT_USD_ANNUAL","metadata":{}},"price_1T1xt4IMsTw08cudXgZytO75":{"id":"price_1T1xt4IMsTw08cudXgZytO75","active":false,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":null,"metadata":{}},"price_1T1xt6IMsTw08cudwOa7jzz8":{"id":"price_1T1xt6IMsTw08cudwOa7jzz8","active":false,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":null,"metadata":{}},"price_1T1xt9IMsTw08cudx6VGnQvS":{"id":"price_1T1xt9IMsTw08cudx6VGnQvS","active":false,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":null,"metadata":{}},"price_1T1xtBIMsTw08cudaHu01HNk":{"id":"price_1T1xtBIMsTw08cudaHu01HNk","active":false,"livemode":true,"product":"prod_TzxoIMJy1hzZc6","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":null,"metadata":{}},"price_1T291dIMsTw08cudihCUhsUX":{"id":"price_1T291dIMsTw08cudihCUhsUX","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":"GROWTH_EVENTS_EUR_ANNUAL_UNTIL_MAR_2026","metadata":{}},"price_1T291fIMsTw08cudzZ6ohXsq":{"id":"price_1T291fIMsTw08cudzZ6ohXsq","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":"GROWTH_EVENTS_USD_MONTHLY_UNTIL_MAR_2026","metadata":{}},"price_1T291iIMsTw08cudWlyDf1pH":{"id":"price_1T291iIMsTw08cudWlyDf1pH","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":"GROWTH_EVENTS_USD_ANNUAL_UNTIL_MAR_2026","metadata":{}},"price_1T291RIMsTw08cudnqymaTXk":{"id":"price_1T291RIMsTw08cudnqymaTXk","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":"GROWTH_EVENTS_EUR_MONTHLY_UNTIL_MAR_2026","metadata":{}},"price_1T2FSiIMsTw08cud5q01SFk9":{"id":"price_1T2FSiIMsTw08cud5q01SFk9","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":"GROWTH_EVENTS_EUR_MONTHLY_UNTIL_MAR_2026","metadata":{}},"price_1T2FSoIMsTw08cudCc7v2cVI":{"id":"price_1T2FSoIMsTw08cudCc7v2cVI","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":"GROWTH_EVENTS_EUR_ANNUAL_UNTIL_MAR_2026","metadata":{}},"price_1T2FSuIMsTw08cudD5hbFicc":{"id":"price_1T2FSuIMsTw08cudD5hbFicc","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":"GROWTH_EVENTS_USD_MONTHLY_UNTIL_MAR_2026","metadata":{}},"price_1T2FT0IMsTw08cudNjcizYxH":{"id":"price_1T2FT0IMsTw08cudNjcizYxH","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":"GROWTH_EVENTS_USD_ANNUAL_UNTIL_MAR_2026","metadata":{}},"price_1T8hNyIMsTw08cudUuNH8J83":{"id":"price_1T8hNyIMsTw08cudUuNH8J83","active":false,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly (wrong unit)","lookupKey":null,"metadata":{}},"price_1T8hOKIMsTw08cudsHn46XWL":{"id":"price_1T8hOKIMsTw08cudsHn46XWL","active":false,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly (wrong unit)","lookupKey":null,"metadata":{}},"price_1T8nfoIMsTw08cuddjqbqvLN":{"id":"price_1T8nfoIMsTw08cuddjqbqvLN","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":"GROWTH_EVENTS_EUR_MONTHLY","metadata":{}},"price_1T8nfuIMsTw08cudhCqeb82G":{"id":"price_1T8nfuIMsTw08cudhCqeb82G","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":"GROWTH_EVENTS_EUR_ANNUAL","metadata":{}},"price_1T8nfzIMsTw08cudahMR8H7U":{"id":"price_1T8nfzIMsTw08cudahMR8H7U","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":"GROWTH_EVENTS_USD_MONTHLY","metadata":{}},"price_1T8ng5IMsTw08cudrdc6jPa4":{"id":"price_1T8ng5IMsTw08cudrdc6jPa4","active":true,"livemode":false,"product":"prod_U09JyXm95Yad65","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":"GROWTH_EVENTS_USD_ANNUAL","metadata":{}},"price_1T8njlIMsTw08cudXUOpxP8S":{"id":"price_1T8njlIMsTw08cudXUOpxP8S","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - EUR Monthly","lookupKey":"GROWTH_EVENTS_EUR_MONTHLY","metadata":{}},"price_1T8nkBIMsTw08cuduDEScSeq":{"id":"price_1T8nkBIMsTw08cuduDEScSeq","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"eur","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - EUR Annual","lookupKey":"GROWTH_EVENTS_EUR_ANNUAL","metadata":{}},"price_1T8nkHIMsTw08cudTYAeGIeb":{"id":"price_1T8nkHIMsTw08cudTYAeGIeb","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"month","intervalCount":1},"nickname":"Growth Events - USD Monthly","lookupKey":"GROWTH_EVENTS_USD_MONTHLY","metadata":{}},"price_1T8nkMIMsTw08cudRVOzEObY":{"id":"price_1T8nkMIMsTw08cudRVOzEObY","active":true,"livemode":true,"product":"prod_U0FxIOn91twEaC","unitAmount":null,"currency":"usd","type":"recurring","recurring":{"interval":"year","intervalCount":1},"nickname":"Growth Events - USD Annual","lookupKey":"GROWTH_EVENTS_USD_ANNUAL","metadata":{}}}`)},f=`PRO.GROWTH.LAUNCH.LAUNCH_ANNUAL.ACCELERATE.ACCELERATE_ANNUAL.LAUNCH_USERS.ACCELERATE_USERS.LAUNCH_TRACES_10K.ACCELERATE_TRACES_100K.LAUNCH_ANNUAL_TRACES_10K.ACCELERATE_ANNUAL_TRACES_100K.LAUNCH_ANNUAL_USERS.ACCELERATE_ANNUAL_USERS.GROWTH_SEAT_EUR_MONTHLY.GROWTH_SEAT_EUR_ANNUAL.GROWTH_SEAT_USD_MONTHLY.GROWTH_SEAT_USD_ANNUAL.GROWTH_EVENTS_EUR_MONTHLY.GROWTH_EVENTS_EUR_ANNUAL.GROWTH_EVENTS_USD_MONTHLY.GROWTH_EVENTS_USD_ANNUAL.GROWTH_EVENTS_EUR_MONTHLY_UNTIL_MAR_2026.GROWTH_EVENTS_EUR_ANNUAL_UNTIL_MAR_2026.GROWTH_EVENTS_USD_MONTHLY_UNTIL_MAR_2026.GROWTH_EVENTS_USD_ANNUAL_UNTIL_MAR_2026`.split(`.`),p=[`BILLABLE_EVENTS`],m=i({interval:o([`day`,`week`,`month`,`year`]),intervalCount:a()}),h=i({id:c(),active:s(),livemode:s(),product:c().nullable(),unitAmount:a().nullable(),currency:c(),type:o([`one_time`,`recurring`]),recurring:m.nullable(),nickname:c().nullable(),lookupKey:c().nullable(),metadata:r(c(),c())}),g=i({test:c(),live:c()}),_=i(Object.fromEntries(f.map(e=>[e,g]))),v=i(Object.fromEntries(p.map(e=>[e,g]))),y=i({schemaVersion:a(),updatedAt:c(),mapping:_,meters:v,prices:r(c(),h)}),b=e=>y.parse(e),x=(e=`production`)=>e===`production`?`live`:`test`,S=(e,t)=>{let n={};for(let r of f){let i=e.mapping[r][t];if(!i)throw Error(`Missing mapped price for ${r} in ${t} mode`);n[r]=i}return n},C=b(d),w=S(C,x());((e,t)=>{let n={};for(let r of p){let i=e.meters?.[r]?.[t];if(!i)throw Error(`Missing mapped meter for ${r} in ${t} mode`);n[r]=i}return n})(C,x()),new Set([w.GROWTH_SEAT_EUR_MONTHLY,w.GROWTH_SEAT_EUR_ANNUAL,w.GROWTH_SEAT_USD_MONTHLY,w.GROWTH_SEAT_USD_ANNUAL]),new Set([w.GROWTH_EVENTS_EUR_MONTHLY,w.GROWTH_EVENTS_EUR_ANNUAL,w.GROWTH_EVENTS_USD_MONTHLY,w.GROWTH_EVENTS_USD_ANNUAL,w.GROWTH_EVENTS_EUR_MONTHLY_UNTIL_MAR_2026,w.GROWTH_EVENTS_EUR_ANNUAL_UNTIL_MAR_2026,w.GROWTH_EVENTS_USD_MONTHLY_UNTIL_MAR_2026,w.GROWTH_EVENTS_USD_ANNUAL_UNTIL_MAR_2026]);var T=[l.GROWTH_SEAT_EUR_MONTHLY,l.GROWTH_SEAT_EUR_ANNUAL,l.GROWTH_SEAT_USD_MONTHLY,l.GROWTH_SEAT_USD_ANNUAL],E=e=>T.includes(e),D=({currency:e,interval:t})=>`GROWTH_SEAT_${e}_${t.toUpperCase()}`,O=e=>{let t=e.match(/^GROWTH_SEAT_(EUR|USD)_(MONTHLY|ANNUAL)$/);return t?{currency:t[1],billingInterval:t[2].toLowerCase()}:null},k=999999999,A={maxWorkflows:9999,maxPrompts:9999,maxEvaluators:9999,maxScenarios:9999,maxExperiments:9999,maxOnlineEvaluations:9999,maxAgents:9999,maxTeams:9999,maxMembersLite:9999,maxDatasets:9999,maxDashboards:9999,maxCustomGraphs:9999,maxAutomations:9999,canPublish:!0},j=e=>({planSource:`subscription`,free:!1,...A,...e}),M=({basePlan:e,type:t,name:n,prices:r})=>({...e,type:t,name:n,prices:r}),N=j({type:l.LAUNCH,name:`Launch`,maxMembers:3,maxProjects:99,maxMessagesPerMonth:2e4,prices:{USD:59,EUR:59}}),P=j({type:l.ACCELERATE,name:`Accelerate`,maxMembers:5,maxProjects:99,maxMessagesPerMonth:2e4,prices:{USD:199,EUR:199}});l.FREE,l.FREE,l.PRO,j({type:l.PRO,name:`Pro`,maxMembers:5,maxProjects:9999,maxMessagesPerMonth:1e4,prices:{USD:99,EUR:99}}),l.LAUNCH,l.LAUNCH_ANNUAL,M({basePlan:N,type:l.LAUNCH_ANNUAL,name:`Launch Annual`,prices:{USD:649,EUR:649}}),l.ACCELERATE,l.ACCELERATE_ANNUAL,M({basePlan:P,type:l.ACCELERATE_ANNUAL,name:`Accelerate Annual`,prices:{USD:2199,EUR:2199}}),l.GROWTH,j({type:l.GROWTH,name:`Growth`,maxMembers:10,maxProjects:99,maxMessagesPerMonth:1e5,prices:{USD:399,EUR:399}}),{...Object.fromEntries(T.map(e=>[e,j({type:e,name:`Growth`,maxMembers:20,maxProjects:99,maxMessagesPerMonth:k,userPrice:{EUR:29,USD:32},prices:{USD:0,EUR:0}})]))},l.ENTERPRISE,j({type:l.ENTERPRISE,name:`Enterprise`,maxMembers:1e3,maxProjects:9999,maxMessagesPerMonth:1e6,prices:{USD:999,EUR:999}});var F=e(t());function I(e,t=`0,0`){return(0,F.default)(e).format(t)}function L(e){let t=w[e],n=C.prices[t];if(!n?.unitAmount)throw Error(`No unitAmount for ${e}`);return n.unitAmount}function R(){return{[u.Currency.EUR]:{monthly:L(`GROWTH_SEAT_EUR_MONTHLY`),annual:L(`GROWTH_SEAT_EUR_ANNUAL`)},[u.Currency.USD]:{monthly:L(`GROWTH_SEAT_USD_MONTHLY`),annual:L(`GROWTH_SEAT_USD_ANNUAL`)}}}function z(e){let t=R();return Math.round((1-t[e].annual/(t[e].monthly*12))*100)}function B({cents:e,currency:t}){let n=e/100;return new Intl.NumberFormat(t===u.Currency.EUR?`en-IE`:`en-US`,{style:`currency`,currency:t,minimumFractionDigits:Number.isInteger(n)?0:2,maximumFractionDigits:2}).format(n)}var V={[u.Currency.EUR]:`€`,[u.Currency.USD]:`$`},H=e=>e===u.Currency.EUR?`€5 per additional 100,000 events`:`$6 per additional 100,000 events`,U=e=>[`Up to 20 core users`,`200,000 events included`,H(e),`Unlimited lite users`,`30 days retention`,`Unlimited evals`,`Private Slack support`],W=[`All platform features`,`50,000 events included`,`14 days data retention`,`2 users`,`3 scenarios`,`3 simulations`,`3 custom evaluations`,`Community support`],G=e=>[`Everything in Free`,`200,000 events included`,H(e),`30 days retention (+ custom at $3/GB)`,`Up to 20 core users (volume discount available)`,`Unlimited lite users`,`Unlimited evals, simulations and prompts`,`Slack support`],K=[`Alternative hosting options`,`Custom data retention`,`Custom SSO / RBAC`,`Audit logs`,`Uptime & Support SLA`,`Compliance and legal reviews`,`Custom terms and DPA`,`Dedicated Solution Engineer`,`Slack / Teams support`,`AWS/Azure/GCP Marketplace`,`ISO27001 / SOC2 reports`];function q({maxMembers:e,maxMessagesPerMonth:t,maxProjects:n,maxMembersLite:r}){return[e>0?`Up to ${I(e)} core users`:`Custom core user limits`,t>=999999999?`Unlimited events`:t>0?`${I(t)} events included`:`Custom event limits`,n>=9999?`Unlimited projects`:n>0?`Up to ${I(n)} projects`:`Custom project limits`,r>=9999?`Unlimited lite users`:r>0?`Up to ${I(r)} lite users`:`Custom lite user limits`]}export{U as a,z as c,O as d,D as f,V as i,R as l,W as n,G as o,q as r,B as s,K as t,E as u};
|
|
2
|
+
//# sourceMappingURL=billing-plans-BUQp08MI.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{s as e}from"./chunk-Bj-mKKzh.js";import{t}from"./react-C7JcuhbW.js";import{$s as n,Bs as r,Do as i,Fa as a,Pr as o,Qs as s,Ra as c,Ss as l,Vs as u,Xa as d,Xr as f,Xs as p,Ys as m,Zs as h,_s as g,bs as _,do as v,gs as y,mn as b,qa as x,qi as S,vs as C,xs as w,ys as T,zs as ee}from"./command-bar-
|
|
1
|
+
import{s as e}from"./chunk-Bj-mKKzh.js";import{t}from"./react-C7JcuhbW.js";import{$s as n,Bs as r,Do as i,Fa as a,Pr as o,Qs as s,Ra as c,Ss as l,Vs as u,Xa as d,Xr as f,Xs as p,Ys as m,Zs as h,_s as g,bs as _,do as v,gs as y,mn as b,qa as x,qi as S,vs as C,xs as w,ys as T,zs as ee}from"./command-bar-DUK45yin.js";import{j as E,n as D,r as O}from"./stack-oJ9iWdbl.js";import{t as te}from"./box-BsM8YLGl.js";import{t as k}from"./tooltip-AEm0YeiF.js";import{n as A}from"./toaster-C_DYALhL.js";import{an as j}from"./dist-Cds4Mqhj.js";import{c as ne}from"./terminal-CfM0q99k.js";import{r as M,t as N}from"./native-select-B51i56CE.js";import{t as P}from"./text-CwTrMF8x.js";import{a as F,n as I,r as L}from"./field-CnUiixMS.js";import{t as R}from"./input-C7emsUCL.js";import{t as z}from"./h-stack-BKLDJ2vg.js";import{r as re,t as ie}from"./card-CMtKVPVl.js";import{t as B}from"./link-CwZhwOLq.js";import{t as V}from"./spacer-2LJJGbo8.js";import{t as H}from"./v-stack-EOPQ57OZ.js";import{s as U}from"./auth-client-D3UhxhQi.js";import{r as ae}from"./next-router-C6sliiV7.js";import{t as W}from"./useOrganizationTeamProject-DC0iozx2.js";import{t as G}from"./WithPermissionGuard-B4Jo8E5-.js";import{n as K,t as oe}from"./ConfirmDialog-M94yLNvP.js";import{t as se}from"./BudgetEditDrawer-CHEPz0hH.js";import{t as ce}from"./GatewayErrorPanel-BsaYQEie.js";import{t as le}from"./GatewayLayout-LvwwrwMf.js";var q=e(t()),J=E();function ue({open:e,onOpenChange:t,onCreated:n}){let{project:r,team:a,organization:o}=W(),[s,c]=(0,q.useState)(``),[l,u]=(0,q.useState)(``),[d,f]=(0,q.useState)(`PROJECT`),[p,m]=(0,q.useState)(`MONTH`),[h,g]=(0,q.useState)(``),[_,v]=(0,q.useState)(`BLOCK`),b=U.useContext(),x=U.gatewayBudgets.create.useMutation({onSuccess:async()=>{await Promise.all([o?b.gatewayBudgets.list.invalidate({organizationId:o.id}):Promise.resolve(),r?b.gatewayBudgets.listForProject.invalidate({projectId:r.id}):Promise.resolve()])}}),S=()=>{c(``),u(``),f(`PROJECT`),m(`MONTH`),g(``),v(`BLOCK`)},C=()=>{x.isPending||(S(),t(!1))};return(0,J.jsx)(i.Root,{open:e,onOpenChange:()=>C(),placement:`end`,size:`md`,children:(0,J.jsxs)(i.Content,{children:[(0,J.jsxs)(i.Header,{children:[(0,J.jsx)(i.Title,{children:`New budget`}),(0,J.jsx)(i.CloseTrigger,{})]}),(0,J.jsx)(i.Body,{children:(0,J.jsxs)(H,{align:`stretch`,gap:4,children:[(0,J.jsxs)(F,{required:!0,children:[(0,J.jsxs)(L,{children:[`Name`,(0,J.jsx)(K,{description:`Human-readable identifier shown in the list and audit log. Typical patterns: 'org monthly cap', 'acme-eng daily', 'prod-vk-burst'.`,docHref:`/ai-gateway/budgets#creating-a-budget`})]}),(0,J.jsx)(R,{value:s,onChange:e=>c(e.target.value),placeholder:`e.g. Engineering — monthly $1k cap`,autoFocus:!0})]}),(0,J.jsxs)(F,{children:[(0,J.jsx)(L,{children:`Description`}),(0,J.jsx)(y,{value:l,onChange:e=>u(e.target.value),placeholder:`Optional. Who owns this? What's the policy?`})]}),(0,J.jsxs)(F,{required:!0,children:[(0,J.jsxs)(L,{children:[`Scope`,(0,J.jsx)(K,{description:`Which resource the budget covers. Budgets are hierarchical — a request is checked against every budget that applies (org + team + project + virtual-key + principal). Any scope in breach blocks or warns per the on_breach action.`,docHref:`/ai-gateway/budgets#scopes`})]}),(0,J.jsx)(M,{size:`sm`,children:(0,J.jsxs)(N,{value:d,onChange:e=>f(e.target.value??`PROJECT`),children:[(0,J.jsx)(`option`,{value:`ORGANIZATION`,children:`Organization — all AI spend`}),(0,J.jsxs)(`option`,{value:`TEAM`,children:[`Team — `,a?.name??`current`]}),(0,J.jsxs)(`option`,{value:`PROJECT`,children:[`Project — `,r?.name??`current`]})]})}),(0,J.jsx)(I,{children:`Tighter scopes (virtual key, principal) are configured from their own detail pages.`})]}),(0,J.jsxs)(z,{gap:4,align:`flex-start`,children:[(0,J.jsxs)(F,{required:!0,flex:1,children:[(0,J.jsxs)(L,{children:[`Window`,(0,J.jsx)(K,{description:`Time window the limit applies to. Minute / hour / day / week / month reset on a rolling schedule in the budget's timezone. 'total' never resets — useful for burn-down budgets on a fixed-fund project.`,docHref:`/ai-gateway/budgets#windows`})]}),(0,J.jsx)(M,{size:`sm`,children:(0,J.jsxs)(N,{value:p,onChange:e=>m(e.target.value??`MONTH`),children:[(0,J.jsx)(`option`,{value:`MINUTE`,children:`Per minute`}),(0,J.jsx)(`option`,{value:`HOUR`,children:`Per hour`}),(0,J.jsx)(`option`,{value:`DAY`,children:`Per day`}),(0,J.jsx)(`option`,{value:`WEEK`,children:`Per week`}),(0,J.jsx)(`option`,{value:`MONTH`,children:`Per calendar month`}),(0,J.jsx)(`option`,{value:`TOTAL`,children:`Total (no reset)`})]})})]}),(0,J.jsxs)(F,{required:!0,flex:1,children:[(0,J.jsxs)(L,{children:[`Limit (USD)`,(0,J.jsx)(K,{description:`Spend ceiling per window in USD. Tracked against provider-computed token costs (summed post-response). Near-limit requests (≥90% of cap) trigger a live reconciliation on the gateway with a 200ms fail-open.`,docHref:`/ai-gateway/budgets#creating-a-budget`})]}),(0,J.jsx)(R,{value:h,onChange:e=>g(e.target.value),placeholder:`1000.00`,inputMode:`decimal`})]})]}),(0,J.jsxs)(F,{required:!0,children:[(0,J.jsxs)(L,{children:[`On breach`,(0,J.jsx)(K,{description:`BLOCK: reject new requests with 402 budget_exceeded. WARN: trace annotation only, no user-facing error — useful for soft budgets where ops monitors spend without enforcing a hard cap.`,docHref:`/ai-gateway/budgets#on_breach`})]}),(0,J.jsx)(M,{size:`sm`,children:(0,J.jsxs)(N,{value:_,onChange:e=>v(e.target.value??`BLOCK`),children:[(0,J.jsx)(`option`,{value:`BLOCK`,children:`Block — reject requests at limit`}),(0,J.jsx)(`option`,{value:`WARN`,children:`Warn — tag responses, keep serving`})]})})]})]})}),(0,J.jsx)(i.Footer,{children:(0,J.jsxs)(z,{width:`full`,children:[(0,J.jsx)(V,{}),(0,J.jsx)(D,{variant:`ghost`,onClick:C,disabled:x.isPending,children:`Cancel`}),(0,J.jsx)(D,{colorPalette:`orange`,onClick:async()=>{if(!o)return;if(!s||!h){A.create({title:`Name and limit are required`,type:`error`});return}let e=Number.parseFloat(h);if(!Number.isFinite(e)||e<=0){A.create({title:`Limit must be a positive number`,type:`error`});return}try{let e=d===`ORGANIZATION`?{kind:`ORGANIZATION`,organizationId:o.id}:d===`TEAM`?{kind:`TEAM`,teamId:a?.id??``}:{kind:`PROJECT`,projectId:r?.id??``};if(d===`TEAM`&&!a?.id){A.create({title:`Team scope requires a team`,type:`error`});return}if(d===`PROJECT`&&!r?.id){A.create({title:`Project scope requires a project`,type:`error`});return}await x.mutateAsync({organizationId:o.id,name:s,description:l||void 0,scope:e,window:p,limitUsd:h,onBreach:_}),n(),S(),t(!1)}catch(e){A.create({title:e instanceof Error?e.message:`Failed to create budget`,type:`error`})}},loading:x.isPending,disabled:!s||!h,children:`Create budget`})]})})]})})}function de(e){let t=U.gatewayBudgets.list.useQuery({organizationId:e??``},{enabled:!!e});return{rows:t.data??[],isLoading:t.isLoading,isError:t.isError,error:t.error,refetch:t.refetch}}function Y(){let{organization:e,project:t,hasPermission:i}=W(),y=i(`gatewayBudgets:create`),b=i(`gatewayBudgets:update`),E=i(`gatewayBudgets:delete`),M=ae(),{rows:N,isLoading:F,isError:I,error:L,refetch:R}=de(e?.id),G=U.useContext(),K=U.gatewayBudgets.archive.useMutation({onSuccess:async()=>{e?.id&&await G.gatewayBudgets.list.invalidate({organizationId:e.id})}}),[Y,X]=(0,q.useState)(!1),[pe,Z]=(0,q.useState)(null),[Q,$]=(0,q.useState)(null);return(0,J.jsxs)(le,{children:[(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(f.Header,{children:[(0,J.jsx)(f.Heading,{children:`Budgets`}),(0,J.jsx)(V,{}),y&&(0,J.jsxs)(D,{colorPalette:`orange`,size:`sm`,onClick:()=>X(!0),children:[(0,J.jsx)(a,{size:14}),` New budget`]})]}),(0,J.jsx)(te,{padding:6,width:`full`,maxWidth:`1600px`,marginX:`auto`,children:F?(0,J.jsx)(O,{}):I?(0,J.jsx)(ce,{title:`Failed to load budgets`,error:L,onRetry:()=>R()}):N.length===0?(0,J.jsx)(s,{children:(0,J.jsxs)(m,{children:[(0,J.jsx)(h,{children:(0,J.jsx)(x,{size:32})}),(0,J.jsx)(n,{children:`No budgets yet`}),(0,J.jsx)(p,{children:`Hierarchical budgets enforce a spend ceiling across organization, team, project, virtual-key, or principal. Create one to start governing cost.`}),y&&(0,J.jsxs)(D,{colorPalette:`orange`,onClick:()=>X(!0),mt:2,children:[(0,J.jsx)(a,{size:14}),` New budget`]})]})}):(0,J.jsx)(re,{width:`full`,overflow:`hidden`,children:(0,J.jsx)(ie,{paddingY:0,paddingX:0,children:(0,J.jsxs)(w,{variant:`line`,size:`md`,width:`full`,children:[(0,J.jsx)(_,{children:(0,J.jsxs)(l,{children:[(0,J.jsx)(T,{children:`Name`}),(0,J.jsx)(T,{children:`Scope`}),(0,J.jsx)(T,{children:`Window`}),(0,J.jsx)(T,{children:`Spent / Limit`}),(0,J.jsx)(T,{children:(0,J.jsx)(k,{content:(0,J.jsxs)(P,{fontSize:`xs`,children:[`WARN: emits 402-equivalent warning header + audit event, request proceeds.`,`
|
|
2
2
|
`,`BLOCK: the gateway returns HTTP 402 and refuses to dispatch once the limit is crossed.`]}),children:(0,J.jsx)(P,{as:`span`,children:`On breach`})})}),(0,J.jsx)(T,{children:`Resets`}),(0,J.jsx)(T,{})]})}),(0,J.jsx)(g,{children:N.map(e=>{let n=Number.parseFloat(e.spentUsd),i=Number.parseFloat(e.limitUsd),a=i>0?Math.min(100,n/i*100):0;return(0,J.jsxs)(l,{cursor:`pointer`,_hover:{bg:`bg.subtle`},onClick:()=>void M.push(`/${t?.slug}/gateway/budgets/${e.id}`),children:[(0,J.jsx)(C,{children:(0,J.jsxs)(H,{align:`start`,gap:0,children:[(0,J.jsx)(B,{href:`/${t?.slug}/gateway/budgets/${e.id}`,children:(0,J.jsx)(P,{fontWeight:`medium`,children:e.name})}),e.description&&(0,J.jsx)(P,{fontSize:`xs`,color:`fg.muted`,children:e.description})]})}),(0,J.jsx)(C,{children:(0,J.jsx)(fe,{scopeType:e.scopeType,scopeTarget:e.scopeTarget??null,projectSlug:t?.slug??null})}),(0,J.jsx)(C,{children:(0,J.jsx)(j,{variant:`subtle`,colorPalette:`gray`,children:e.window.toLowerCase()})}),(0,J.jsx)(C,{minWidth:`220px`,children:(0,J.jsxs)(H,{align:`stretch`,gap:1,children:[(0,J.jsxs)(z,{fontSize:`xs`,children:[(0,J.jsxs)(P,{fontWeight:`medium`,children:[`$`,n.toFixed(2)]}),(0,J.jsxs)(P,{color:`fg.muted`,children:[`/ $`,i.toFixed(2)]}),(0,J.jsx)(V,{}),(0,J.jsxs)(j,{variant:`outline`,colorPalette:a>=100?`red`:a>=80?`orange`:`green`,fontSize:`2xs`,children:[a.toFixed(0),`%`]})]}),(0,J.jsx)(r,{value:a,size:`xs`,colorPalette:a>=100?`red`:a>=80?`orange`:`green`,children:(0,J.jsx)(u,{children:(0,J.jsx)(ee,{})})})]})}),(0,J.jsx)(C,{children:(0,J.jsx)(j,{colorPalette:e.onBreach===`BLOCK`?`red`:`yellow`,children:e.onBreach.toLowerCase()})}),(0,J.jsx)(C,{children:e.window===`TOTAL`?(0,J.jsx)(P,{fontSize:`xs`,color:`fg.muted`,children:`never`}):(0,J.jsx)(k,{content:new Date(e.resetsAt).toLocaleString(),children:(0,J.jsx)(P,{fontSize:`xs`,children:o(new Date(e.resetsAt).getTime())})})}),(0,J.jsx)(C,{onClick:e=>e.stopPropagation(),cursor:`default`,children:(0,J.jsxs)(S.Root,{children:[(0,J.jsx)(S.Trigger,{asChild:!0,children:(0,J.jsx)(D,{variant:`ghost`,size:`xs`,"aria-label":`Actions`,children:(0,J.jsx)(d,{size:14})})}),(0,J.jsxs)(S.Content,{children:[(0,J.jsxs)(S.Item,{value:`details`,onClick:()=>void M.push(`/${t?.slug}/gateway/budgets/${e.id}`),children:[(0,J.jsx)(ne,{size:14}),` Details`]}),b&&(0,J.jsxs)(S.Item,{value:`edit`,onClick:()=>Z(e),children:[(0,J.jsx)(c,{size:14}),` Edit`]}),E&&(0,J.jsxs)(S.Item,{value:`archive`,onClick:()=>$(e),children:[(0,J.jsx)(v,{size:14}),` Archive`]})]})]})})]},e.id)})})]})})})})]}),t?.id&&(0,J.jsx)(ue,{open:Y,onOpenChange:X,onCreated:()=>{R()}}),(0,J.jsx)(se,{budget:pe,onOpenChange:e=>{e||Z(null)},onSaved:()=>{Z(null),R()}}),(0,J.jsx)(oe,{open:!!Q,onOpenChange:e=>{e||$(null)},title:`Archive ${Q?.name??`budget`}?`,message:`Debits against this budget stop counting. The historical ledger is preserved but new requests route as if the budget didn't exist.`,confirmLabel:`Archive`,tone:`warning`,loading:K.isPending,onConfirm:async()=>{if(!(!Q||!e))try{await K.mutateAsync({organizationId:e.id,id:Q.id}),$(null)}catch(e){A.create({title:e instanceof Error?e.message:`Failed to archive`,type:`error`})}}})]})}function fe({scopeType:e,scopeTarget:t,projectSlug:n}){let r=e.toLowerCase().replace(`_`,` `),i=t?.kind===`VIRTUAL_KEY`?`/${t.projectSlug??n??``}/gateway/virtual-keys/${t.id}`:null;return(0,J.jsxs)(H,{align:`start`,gap:.5,children:[(0,J.jsx)(j,{colorPalette:`gray`,children:r}),t&&(0,J.jsxs)(z,{gap:1,children:[i?(0,J.jsx)(B,{href:i,color:`orange.600`,fontSize:`xs`,children:t.name}):(0,J.jsx)(P,{fontSize:`xs`,fontWeight:`medium`,children:t.name}),t.secondary&&(0,J.jsxs)(P,{fontSize:`2xs`,color:`fg.muted`,children:[`(`,t.secondary,`)`]})]})]})}var X=G(`gatewayBudgets:view`,{layoutComponent:b})(Y);export{X as default};
|
|
3
|
-
//# sourceMappingURL=budgets-
|
|
3
|
+
//# sourceMappingURL=budgets-CdelE8Hv.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./chunk-Bj-mKKzh.js";import{t}from"./react-C7JcuhbW.js";import{$s as n,Do as r,Es as i,Fa as a,Qs as o,Ra as s,Ss as c,Ts as l,Xa as u,Xr as d,Xs as f,Ys as p,Zs as m,_s as h,bs as g,do as _,gs as v,mn as y,qi as b,va as ee,vs as x,ws as S,xs as C,ys as w}from"./command-bar-CaJygoez.js";import{j as T,n as E,r as D}from"./stack-oJ9iWdbl.js";import{t as O}from"./box-BsM8YLGl.js";import{n as k}from"./toaster-C_DYALhL.js";import{an as A}from"./dist-SwV3YZv3.js";import{r as j,t as M}from"./native-select-B51i56CE.js";import{t as N}from"./text-CwTrMF8x.js";import{a as P,n as F,r as I}from"./field-CnUiixMS.js";import{t as L}from"./input-C7emsUCL.js";import{t as R}from"./h-stack-BKLDJ2vg.js";import{r as z,t as B}from"./card-CMtKVPVl.js";import{t as V}from"./spacer-2LJJGbo8.js";import{t as H}from"./v-stack-EOPQ57OZ.js";import{s as U}from"./auth-client-D3UhxhQi.js";import{t as W}from"./useOrganizationTeamProject-DC0iozx2.js";import{t as G}from"./WithPermissionGuard-DD8uo3UK.js";import{n as K,t as q}from"./ConfirmDialog-CXIhncvW.js";import{t as te}from"./GatewayErrorPanel-DvE9U2dS.js";import{t as ne}from"./GatewayLayout-lv1p_6B5.js";var J=e(t()),Y=T();function X(){return{name:``,description:``,priority:100,enabled:!0,matchVkId:``,matchVkPrefix:``,matchVkTagsCsv:``,matchPrincipalId:``,matchModel:``,matchMetadataKey:``,matchMetadataValue:``,actionMode:`respect`,actionTtlSeconds:``,actionSalt:``}}function Z(e){if(!e.name.trim())return`Name is required`;if(e.priority<0||e.priority>1e3)return`Priority must be between 0 and 1000`;if(e.actionMode===`force`&&e.actionTtlSeconds.trim()){let t=Number(e.actionTtlSeconds);if(!Number.isFinite(t)||t<0||t>86400)return`TTL must be a number between 0 and 86400 seconds`}return!e.matchMetadataKey.trim()==!e.matchMetadataValue.trim()?!e.matchVkId&&!e.matchVkPrefix&&!e.matchVkTagsCsv.trim()&&!e.matchPrincipalId&&!e.matchModel&&!e.matchMetadataKey?`At least one matcher is required (rules matching 'every request' must be explicit — not supported in v1)`:null:`Request metadata needs both a key and a value`}function Q(e){let t={};e.matchVkId.trim()&&(t.vk_id=e.matchVkId.trim()),e.matchVkPrefix.trim()&&(t.vk_prefix=e.matchVkPrefix.trim()),e.matchVkTagsCsv.trim()&&(t.vk_tags=e.matchVkTagsCsv.split(`,`).map(e=>e.trim()).filter(Boolean)),e.matchPrincipalId.trim()&&(t.principal_id=e.matchPrincipalId.trim()),e.matchModel.trim()&&(t.model=e.matchModel.trim()),e.matchMetadataKey.trim()&&e.matchMetadataValue.trim()&&(t.request_metadata={[e.matchMetadataKey.trim()]:e.matchMetadataValue.trim()});let n={mode:e.actionMode};return e.actionMode===`force`&&e.actionTtlSeconds.trim()&&(n.ttl=Number(e.actionTtlSeconds)),e.actionSalt.trim()&&(n.salt=e.actionSalt.trim()),{name:e.name.trim(),description:e.description.trim()||null,priority:e.priority,enabled:e.enabled,matchers:t,action:n}}function re(e){let t=e.matchers??{},n=e.action??{},r=t.request_metadata&&typeof t.request_metadata==`object`?t.request_metadata:{},i=Object.keys(r)[0]??``;return{name:e.name,description:e.description??``,priority:e.priority,enabled:e.enabled,matchVkId:typeof t.vk_id==`string`?t.vk_id:``,matchVkPrefix:typeof t.vk_prefix==`string`?t.vk_prefix:``,matchVkTagsCsv:Array.isArray(t.vk_tags)?t.vk_tags.join(`,`):``,matchPrincipalId:typeof t.principal_id==`string`?t.principal_id:``,matchModel:typeof t.model==`string`?t.model:``,matchMetadataKey:i,matchMetadataValue:i?r[i]??``:``,actionMode:n.mode===`force`||n.mode===`disable`||n.mode===`respect`?n.mode:`respect`,actionTtlSeconds:typeof n.ttl==`number`?String(n.ttl):``,actionSalt:typeof n.salt==`string`?n.salt:``}}function $({state:e,onChange:t}){let n=(n,r)=>t({...e,[n]:r});return(0,Y.jsxs)(H,{align:`stretch`,gap:4,children:[(0,Y.jsxs)(P,{required:!0,children:[(0,Y.jsxs)(I,{children:[`Name`,(0,Y.jsx)(K,{description:`Shown in /gateway/cache-rules list + audit log. Must be unique within the org.`,docHref:`/ai-gateway/cache-control#cache-rules`})]}),(0,Y.jsx)(L,{value:e.name,onChange:e=>n(`name`,e.target.value),placeholder:`e.g. force-cache-on-enterprise`,maxLength:128})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsx)(I,{children:`Description`}),(0,Y.jsx)(v,{value:e.description,onChange:e=>n(`description`,e.target.value),placeholder:`Optional. Shown in the list and audit log.`,maxLength:512})]}),(0,Y.jsxs)(R,{align:`start`,gap:4,children:[(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Priority`,(0,Y.jsx)(K,{description:`Higher number wins first. Rules are evaluated priority DESC, first-match-wins. Ties break by createdAt ascending.`,docHref:`/ai-gateway/cache-control#cache-rules`})]}),(0,Y.jsx)(L,{type:`number`,min:0,max:1e3,value:e.priority,onChange:e=>n(`priority`,Number(e.target.value)||0)}),(0,Y.jsx)(F,{children:`Evaluated highest-first. Conflicting rules: higher number wins.`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsx)(I,{children:`Enabled`}),(0,Y.jsxs)(i,{checked:e.enabled,onCheckedChange:e=>n(`enabled`,e.checked),colorPalette:`orange`,children:[(0,Y.jsx)(l,{}),(0,Y.jsx)(S,{})]}),(0,Y.jsx)(F,{children:`Disabled rules stay in the list but never match.`})]})]}),(0,Y.jsxs)(O,{borderWidth:`1px`,borderColor:`border.subtle`,borderRadius:`md`,padding:4,children:[(0,Y.jsxs)(R,{mb:3,children:[(0,Y.jsx)(N,{fontSize:`sm`,fontWeight:`semibold`,children:`Match when`}),(0,Y.jsx)(A,{colorPalette:`gray`,fontSize:`2xs`,children:`AND across non-empty fields`})]}),(0,Y.jsxs)(H,{align:`stretch`,gap:3,children:[(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Virtual key id (exact)`,(0,Y.jsx)(K,{description:`Exact match against the VK's display prefix (e.g. lw_vk_live_01HZX9K3M...).`,docHref:`/ai-gateway/cache-control#matchers`})]}),(0,Y.jsx)(L,{value:e.matchVkId,onChange:e=>n(`matchVkId`,e.target.value),placeholder:`vk_01HZX9K3M...`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Virtual key display prefix (starts-with)`,(0,Y.jsx)(K,{description:`strings.HasPrefix against the VK's display prefix. Useful for bulk-matching by env/team convention (e.g. 'lw_vk_eval_' to match every eval-suite VK).`,docHref:`/ai-gateway/cache-control#matchers`})]}),(0,Y.jsx)(L,{value:e.matchVkPrefix,onChange:e=>n(`matchVkPrefix`,e.target.value),placeholder:`lw_vk_live_`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Virtual key tags (comma-separated)`,(0,Y.jsx)(K,{description:`AND-subset: VK must carry EVERY listed tag. Tag a VK in its edit drawer under 'Tags' (config.metadata.tags).`,docHref:`/ai-gateway/cache-control#matchers`})]}),(0,Y.jsx)(L,{value:e.matchVkTagsCsv,onChange:e=>n(`matchVkTagsCsv`,e.target.value),placeholder:`tier=enterprise, team=ml`}),(0,Y.jsx)(F,{children:`VK must carry ALL listed tags.`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsx)(I,{children:`Principal (user id)`}),(0,Y.jsx)(L,{value:e.matchPrincipalId,onChange:e=>n(`matchPrincipalId`,e.target.value),placeholder:`user_01HZX...`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Model`,(0,Y.jsx)(K,{description:`Exact match OR trailing-'*' glob against the resolved upstream model (e.g. 'claude-haiku-*'). No regex in v1. Fires on both /v1/messages + /v1/chat/completions.`,docHref:`/ai-gateway/cache-control#matchers`})]}),(0,Y.jsx)(L,{value:e.matchModel,onChange:e=>n(`matchModel`,e.target.value),placeholder:`e.g. gpt-5-mini or claude-3-5-sonnet-latest`})]}),(0,Y.jsxs)(R,{align:`start`,gap:2,children:[(0,Y.jsxs)(P,{children:[(0,Y.jsx)(I,{children:`Request metadata key`}),(0,Y.jsx)(L,{value:e.matchMetadataKey,onChange:e=>n(`matchMetadataKey`,e.target.value),placeholder:`X-Customer-Tier`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsx)(I,{children:`Value`}),(0,Y.jsx)(L,{value:e.matchMetadataValue,onChange:e=>n(`matchMetadataValue`,e.target.value),placeholder:`enterprise`})]})]})]})]}),(0,Y.jsxs)(O,{borderWidth:`1px`,borderColor:`border.subtle`,borderRadius:`md`,padding:4,children:[(0,Y.jsx)(N,{fontSize:`sm`,fontWeight:`semibold`,mb:3,children:`Then do`}),(0,Y.jsxs)(H,{align:`stretch`,gap:3,children:[(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Cache control mode`,(0,Y.jsx)(K,{description:`respect = passthrough. disable = strip provider cache markers (always-fresh). force = inject cache_control: ephemeral on Anthropic (no-op on OpenAI automatic, WARN+passthrough on Gemini v1).`,docHref:`/ai-gateway/cache-control#actions`})]}),(0,Y.jsx)(j,{size:`sm`,children:(0,Y.jsxs)(M,{value:e.actionMode,onChange:e=>n(`actionMode`,e.target.value),children:[(0,Y.jsx)(`option`,{value:`respect`,children:`respect — passthrough`}),(0,Y.jsx)(`option`,{value:`force`,children:`force — cache where supported`}),(0,Y.jsx)(`option`,{value:`disable`,children:`disable — strip cache hints`})]})}),(0,Y.jsx)(F,{children:`Force injects cache_control: ephemeral on Anthropic (system[-1] + messages[-1].content[-1], no-double-inject if already present). OpenAI/Azure caching is automatic — force is a wire no-op but still attributes + bumps the rule-hit counter. Gemini force WARNs + passes through today (v1.1 will wire /cachedContents).`})]}),e.actionMode===`force`&&(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`TTL (seconds, optional)`,(0,Y.jsx)(K,{description:`Clamped to [0, 86400]. Only meaningful on force. Anthropic supports TTL; OpenAI/Gemini treat as best-effort hint.`,docHref:`/ai-gateway/cache-control#actions`})]}),(0,Y.jsx)(L,{type:`number`,min:0,max:86400,value:e.actionTtlSeconds,onChange:e=>n(`actionTtlSeconds`,e.target.value),placeholder:`300`}),(0,Y.jsx)(F,{children:`Clamped to [0, 86400]. Providers without explicit TTL support treat this as a best-effort hint.`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Cache salt (optional)`,(0,Y.jsx)(K,{description:`Cache-bust tag — changing it forces regeneration on next hit. Max 64 chars. Useful after a prompt template change: update the salt to invalidate all cached responses tied to the old template.`,docHref:`/ai-gateway/cache-control#actions`})]}),(0,Y.jsx)(L,{value:e.actionSalt,onChange:e=>n(`actionSalt`,e.target.value),placeholder:`e.g. 2026Q1-rerun — forces cache regeneration when changed`,maxLength:64})]})]})]})]})}function ie({open:e,onOpenChange:t,onCreated:n}){let{organization:i}=W(),a=U.useContext(),o=U.gatewayCacheRules.create.useMutation({onSuccess:async()=>{i?.id&&await a.gatewayCacheRules.list.invalidate({organizationId:i.id})}}),[s,c]=(0,J.useState)(X()),l=()=>{o.isPending||(c(X()),t(!1))};return(0,Y.jsx)(r.Root,{open:e,onOpenChange:()=>l(),placement:`end`,size:`md`,children:(0,Y.jsxs)(r.Content,{children:[(0,Y.jsxs)(r.Header,{children:[(0,Y.jsx)(r.Title,{children:`New cache rule`}),(0,Y.jsx)(r.CloseTrigger,{})]}),(0,Y.jsx)(r.Body,{children:(0,Y.jsx)($,{state:s,onChange:c})}),(0,Y.jsx)(r.Footer,{children:(0,Y.jsxs)(R,{width:`full`,children:[(0,Y.jsx)(V,{}),(0,Y.jsx)(E,{variant:`ghost`,onClick:l,disabled:o.isPending,children:`Cancel`}),(0,Y.jsx)(E,{colorPalette:`orange`,onClick:async()=>{if(!i)return;let e=Z(s);if(e){k.create({title:e,type:`error`});return}try{await o.mutateAsync({organizationId:i.id,...Q(s)}),c(X()),t(!1),n?.()}catch(e){k.create({title:e instanceof Error?e.message:`Failed to create cache rule`,type:`error`})}},loading:o.isPending,disabled:!s.name.trim(),children:`Create rule`})]})})]})})}function ae({rule:e,onOpenChange:t,onSaved:n}){let{organization:i}=W(),a=U.useContext(),o=U.gatewayCacheRules.update.useMutation({onSuccess:async()=>{i?.id&&await a.gatewayCacheRules.list.invalidate({organizationId:i.id})}}),[s,c]=(0,J.useState)(X());(0,J.useEffect)(()=>{e&&c(re({name:e.name,description:e.description,priority:e.priority,enabled:e.enabled,matchers:e.matchers,action:e.action}))},[e]);let l=()=>{o.isPending||t(!1)};return(0,Y.jsx)(r.Root,{open:!!e,onOpenChange:()=>l(),placement:`end`,size:`md`,children:(0,Y.jsxs)(r.Content,{children:[(0,Y.jsxs)(r.Header,{children:[(0,Y.jsx)(r.Title,{children:`Edit cache rule`}),(0,Y.jsx)(r.CloseTrigger,{})]}),(0,Y.jsx)(r.Body,{children:(0,Y.jsx)($,{state:s,onChange:c})}),(0,Y.jsx)(r.Footer,{children:(0,Y.jsxs)(R,{width:`full`,children:[(0,Y.jsx)(V,{}),(0,Y.jsx)(E,{variant:`ghost`,onClick:l,disabled:o.isPending,children:`Cancel`}),(0,Y.jsx)(E,{colorPalette:`orange`,onClick:async()=>{if(!i||!e)return;let r=Z(s);if(r){k.create({title:r,type:`error`});return}try{await o.mutateAsync({organizationId:i.id,id:e.id,...Q(s)}),t(!1),n?.()}catch(e){k.create({title:e instanceof Error?e.message:`Failed to save cache rule`,type:`error`})}},loading:o.isPending,disabled:!s.name.trim(),children:`Save changes`})]})})]})})}function oe(){let{organization:e,hasPermission:t}=W(),r=t(`gatewayCacheRules:create`),v=t(`gatewayCacheRules:update`),y=t(`gatewayCacheRules:delete`),T=U.gatewayCacheRules.list.useQuery({organizationId:e?.id??``},{enabled:!!e?.id}),j=U.useContext(),M=U.gatewayCacheRules.archive.useMutation({onSuccess:async()=>{e?.id&&await j.gatewayCacheRules.list.invalidate({organizationId:e.id})}}),P=U.gatewayCacheRules.update.useMutation({onSuccess:async()=>{e?.id&&await j.gatewayCacheRules.list.invalidate({organizationId:e.id})}}),[F,I]=(0,J.useState)(!1),[L,R]=(0,J.useState)(null),[G,K]=(0,J.useState)(null),X=async()=>{if(!(!G||!e))try{await M.mutateAsync({organizationId:e.id,id:G.id}),K(null)}catch(e){k.create({title:e instanceof Error?e.message:`Failed to archive`,type:`error`})}},Z=async t=>{if(e)try{await P.mutateAsync({organizationId:e.id,id:t.id,enabled:!t.enabled})}catch(e){k.create({title:e instanceof Error?e.message:`Failed to toggle rule`,type:`error`})}},Q=T.data??[];return(0,Y.jsxs)(ne,{children:[(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(d.Header,{children:[(0,Y.jsx)(d.Heading,{children:`Cache Rules`}),(0,Y.jsx)(V,{}),r&&(0,Y.jsxs)(E,{colorPalette:`orange`,size:`sm`,onClick:()=>I(!0),children:[(0,Y.jsx)(a,{size:14}),` New rule`]})]}),(0,Y.jsxs)(O,{padding:6,width:`full`,maxWidth:`1600px`,marginX:`auto`,children:[(0,Y.jsxs)(N,{fontSize:`sm`,color:`fg.muted`,mb:4,children:[`Rules are evaluated first-match-wins by priority (highest first). A per-request `,(0,Y.jsx)(`code`,{children:`X-LangWatch-Cache`}),` header always wins over matching rules, and a matched rule always wins over the per-virtual-key default. Changes propagate to the gateway within 30 s via the /changes long-poll.`]}),T.isLoading?(0,Y.jsx)(D,{}):T.isError?(0,Y.jsx)(te,{title:`Failed to load cache rules`,error:T.error,onRetry:()=>T.refetch()}):Q.length===0?(0,Y.jsx)(o,{children:(0,Y.jsxs)(p,{children:[(0,Y.jsx)(m,{children:(0,Y.jsx)(ee,{size:32})}),(0,Y.jsx)(n,{children:`No cache rules yet`}),(0,Y.jsx)(f,{children:`Cache rules let operators force, disable, or override cache behaviour across virtual keys, models, principals, or custom request metadata — no client code changes required.`}),r&&(0,Y.jsxs)(E,{colorPalette:`orange`,onClick:()=>I(!0),mt:2,children:[(0,Y.jsx)(a,{size:14}),` New rule`]})]})}):(0,Y.jsx)(z,{width:`full`,overflow:`hidden`,children:(0,Y.jsx)(B,{paddingY:0,paddingX:0,children:(0,Y.jsxs)(C,{variant:`line`,size:`md`,width:`full`,children:[(0,Y.jsx)(g,{children:(0,Y.jsxs)(c,{children:[(0,Y.jsx)(w,{width:`60px`,children:`Priority`}),(0,Y.jsx)(w,{children:`Name`}),(0,Y.jsx)(w,{children:`Match`}),(0,Y.jsx)(w,{children:`Action`}),(0,Y.jsx)(w,{children:`Enabled`}),(0,Y.jsx)(w,{})]})}),(0,Y.jsx)(h,{children:Q.map(e=>(0,Y.jsxs)(c,{children:[(0,Y.jsx)(x,{children:(0,Y.jsx)(A,{colorPalette:`gray`,children:e.priority})}),(0,Y.jsx)(x,{children:(0,Y.jsxs)(H,{align:`start`,gap:0,children:[(0,Y.jsx)(N,{fontWeight:`medium`,children:e.name}),e.description&&(0,Y.jsx)(N,{fontSize:`xs`,color:`fg.muted`,children:e.description})]})}),(0,Y.jsx)(x,{children:(0,Y.jsx)(se,{matchers:e.matchers})}),(0,Y.jsx)(x,{children:(0,Y.jsx)(ce,{action:e.action,modeEnum:e.modeEnum})}),(0,Y.jsx)(x,{children:(0,Y.jsxs)(i,{checked:e.enabled,onCheckedChange:()=>void Z(e),disabled:!v,size:`sm`,colorPalette:`orange`,children:[(0,Y.jsx)(l,{}),(0,Y.jsx)(S,{})]})}),(0,Y.jsx)(x,{children:(v||y)&&(0,Y.jsxs)(b.Root,{children:[(0,Y.jsx)(b.Trigger,{asChild:!0,children:(0,Y.jsx)(E,{variant:`ghost`,size:`xs`,"aria-label":`Actions`,children:(0,Y.jsx)(u,{size:14})})}),(0,Y.jsxs)(b.Content,{children:[v&&(0,Y.jsxs)(b.Item,{value:`edit`,onClick:()=>R(e),children:[(0,Y.jsx)(s,{size:14}),` Edit`]}),y&&(0,Y.jsxs)(b.Item,{value:`archive`,onClick:()=>K(e),children:[(0,Y.jsx)(_,{size:14}),` Archive`]})]})]})})]},e.id))})]})})})]})]}),(0,Y.jsx)(ie,{open:F,onOpenChange:I,onCreated:()=>{T.refetch()}}),(0,Y.jsx)(ae,{rule:L,onOpenChange:e=>{e||R(null)},onSaved:()=>{R(null),T.refetch()}}),(0,Y.jsx)(q,{open:!!G,onOpenChange:e=>{e||K(null)},title:`Archive ${G?.name??`rule`}?`,message:`The rule stops applying to new requests. Historical traces stay attributed to their rule id; the rule itself remains visible in the audit log.`,confirmLabel:`Archive`,tone:`warning`,loading:M.isPending,onConfirm:X})]})}function se({matchers:e}){if(!e||typeof e!=`object`)return(0,Y.jsx)(N,{fontSize:`xs`,color:`fg.muted`,children:`any request`});let t=e,n=[];if(typeof t.vk_id==`string`&&n.push(`vk=${t.vk_id}`),typeof t.vk_prefix==`string`&&n.push(`vk~${t.vk_prefix}*`),Array.isArray(t.vk_tags)&&t.vk_tags.length>0&&n.push(`tags:[${t.vk_tags.join(`,`)}]`),typeof t.principal_id==`string`&&n.push(`user=${t.principal_id}`),typeof t.model==`string`&&n.push(`model=${t.model}`),t.request_metadata&&typeof t.request_metadata==`object`&&!Array.isArray(t.request_metadata)){let e=Object.keys(t.request_metadata);e.length>0&&n.push(`meta:${e.join(`,`)}`)}return n.length===0?(0,Y.jsx)(N,{fontSize:`xs`,color:`fg.muted`,children:`any request`}):(0,Y.jsx)(R,{gap:1,flexWrap:`wrap`,children:n.map(e=>(0,Y.jsx)(A,{colorPalette:`gray`,fontSize:`2xs`,variant:`subtle`,children:e},e))})}function ce({action:e,modeEnum:t}){let n=e??{};return(0,Y.jsxs)(R,{gap:1,children:[(0,Y.jsx)(A,{colorPalette:t===`FORCE`?`orange`:t===`DISABLE`?`red`:`green`,children:t.toLowerCase()}),typeof n.ttl==`number`&&(0,Y.jsxs)(N,{fontSize:`xs`,color:`fg.muted`,children:[`ttl `,n.ttl,`s`]}),typeof n.salt==`string`&&n.salt.length>0&&(0,Y.jsx)(N,{fontSize:`xs`,color:`fg.muted`,children:`salted`})]})}var le=G(`gatewayCacheRules:view`,{layoutComponent:y})(oe);export{le as default};
|
|
2
|
-
//# sourceMappingURL=cache-rules-
|
|
1
|
+
import{s as e}from"./chunk-Bj-mKKzh.js";import{t}from"./react-C7JcuhbW.js";import{$s as n,Do as r,Es as i,Fa as a,Qs as o,Ra as s,Ss as c,Ts as l,Xa as u,Xr as d,Xs as f,Ys as p,Zs as m,_s as h,bs as g,do as _,gs as v,mn as y,qi as b,va as ee,vs as x,ws as S,xs as C,ys as w}from"./command-bar-DUK45yin.js";import{j as T,n as E,r as D}from"./stack-oJ9iWdbl.js";import{t as O}from"./box-BsM8YLGl.js";import{n as k}from"./toaster-C_DYALhL.js";import{an as A}from"./dist-Cds4Mqhj.js";import{r as j,t as M}from"./native-select-B51i56CE.js";import{t as N}from"./text-CwTrMF8x.js";import{a as P,n as F,r as I}from"./field-CnUiixMS.js";import{t as L}from"./input-C7emsUCL.js";import{t as R}from"./h-stack-BKLDJ2vg.js";import{r as z,t as B}from"./card-CMtKVPVl.js";import{t as V}from"./spacer-2LJJGbo8.js";import{t as H}from"./v-stack-EOPQ57OZ.js";import{s as U}from"./auth-client-D3UhxhQi.js";import{t as W}from"./useOrganizationTeamProject-DC0iozx2.js";import{t as G}from"./WithPermissionGuard-B4Jo8E5-.js";import{n as K,t as q}from"./ConfirmDialog-M94yLNvP.js";import{t as te}from"./GatewayErrorPanel-BsaYQEie.js";import{t as ne}from"./GatewayLayout-LvwwrwMf.js";var J=e(t()),Y=T();function X(){return{name:``,description:``,priority:100,enabled:!0,matchVkId:``,matchVkPrefix:``,matchVkTagsCsv:``,matchPrincipalId:``,matchModel:``,matchMetadataKey:``,matchMetadataValue:``,actionMode:`respect`,actionTtlSeconds:``,actionSalt:``}}function Z(e){if(!e.name.trim())return`Name is required`;if(e.priority<0||e.priority>1e3)return`Priority must be between 0 and 1000`;if(e.actionMode===`force`&&e.actionTtlSeconds.trim()){let t=Number(e.actionTtlSeconds);if(!Number.isFinite(t)||t<0||t>86400)return`TTL must be a number between 0 and 86400 seconds`}return!e.matchMetadataKey.trim()==!e.matchMetadataValue.trim()?!e.matchVkId&&!e.matchVkPrefix&&!e.matchVkTagsCsv.trim()&&!e.matchPrincipalId&&!e.matchModel&&!e.matchMetadataKey?`At least one matcher is required (rules matching 'every request' must be explicit — not supported in v1)`:null:`Request metadata needs both a key and a value`}function Q(e){let t={};e.matchVkId.trim()&&(t.vk_id=e.matchVkId.trim()),e.matchVkPrefix.trim()&&(t.vk_prefix=e.matchVkPrefix.trim()),e.matchVkTagsCsv.trim()&&(t.vk_tags=e.matchVkTagsCsv.split(`,`).map(e=>e.trim()).filter(Boolean)),e.matchPrincipalId.trim()&&(t.principal_id=e.matchPrincipalId.trim()),e.matchModel.trim()&&(t.model=e.matchModel.trim()),e.matchMetadataKey.trim()&&e.matchMetadataValue.trim()&&(t.request_metadata={[e.matchMetadataKey.trim()]:e.matchMetadataValue.trim()});let n={mode:e.actionMode};return e.actionMode===`force`&&e.actionTtlSeconds.trim()&&(n.ttl=Number(e.actionTtlSeconds)),e.actionSalt.trim()&&(n.salt=e.actionSalt.trim()),{name:e.name.trim(),description:e.description.trim()||null,priority:e.priority,enabled:e.enabled,matchers:t,action:n}}function re(e){let t=e.matchers??{},n=e.action??{},r=t.request_metadata&&typeof t.request_metadata==`object`?t.request_metadata:{},i=Object.keys(r)[0]??``;return{name:e.name,description:e.description??``,priority:e.priority,enabled:e.enabled,matchVkId:typeof t.vk_id==`string`?t.vk_id:``,matchVkPrefix:typeof t.vk_prefix==`string`?t.vk_prefix:``,matchVkTagsCsv:Array.isArray(t.vk_tags)?t.vk_tags.join(`,`):``,matchPrincipalId:typeof t.principal_id==`string`?t.principal_id:``,matchModel:typeof t.model==`string`?t.model:``,matchMetadataKey:i,matchMetadataValue:i?r[i]??``:``,actionMode:n.mode===`force`||n.mode===`disable`||n.mode===`respect`?n.mode:`respect`,actionTtlSeconds:typeof n.ttl==`number`?String(n.ttl):``,actionSalt:typeof n.salt==`string`?n.salt:``}}function $({state:e,onChange:t}){let n=(n,r)=>t({...e,[n]:r});return(0,Y.jsxs)(H,{align:`stretch`,gap:4,children:[(0,Y.jsxs)(P,{required:!0,children:[(0,Y.jsxs)(I,{children:[`Name`,(0,Y.jsx)(K,{description:`Shown in /gateway/cache-rules list + audit log. Must be unique within the org.`,docHref:`/ai-gateway/cache-control#cache-rules`})]}),(0,Y.jsx)(L,{value:e.name,onChange:e=>n(`name`,e.target.value),placeholder:`e.g. force-cache-on-enterprise`,maxLength:128})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsx)(I,{children:`Description`}),(0,Y.jsx)(v,{value:e.description,onChange:e=>n(`description`,e.target.value),placeholder:`Optional. Shown in the list and audit log.`,maxLength:512})]}),(0,Y.jsxs)(R,{align:`start`,gap:4,children:[(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Priority`,(0,Y.jsx)(K,{description:`Higher number wins first. Rules are evaluated priority DESC, first-match-wins. Ties break by createdAt ascending.`,docHref:`/ai-gateway/cache-control#cache-rules`})]}),(0,Y.jsx)(L,{type:`number`,min:0,max:1e3,value:e.priority,onChange:e=>n(`priority`,Number(e.target.value)||0)}),(0,Y.jsx)(F,{children:`Evaluated highest-first. Conflicting rules: higher number wins.`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsx)(I,{children:`Enabled`}),(0,Y.jsxs)(i,{checked:e.enabled,onCheckedChange:e=>n(`enabled`,e.checked),colorPalette:`orange`,children:[(0,Y.jsx)(l,{}),(0,Y.jsx)(S,{})]}),(0,Y.jsx)(F,{children:`Disabled rules stay in the list but never match.`})]})]}),(0,Y.jsxs)(O,{borderWidth:`1px`,borderColor:`border.subtle`,borderRadius:`md`,padding:4,children:[(0,Y.jsxs)(R,{mb:3,children:[(0,Y.jsx)(N,{fontSize:`sm`,fontWeight:`semibold`,children:`Match when`}),(0,Y.jsx)(A,{colorPalette:`gray`,fontSize:`2xs`,children:`AND across non-empty fields`})]}),(0,Y.jsxs)(H,{align:`stretch`,gap:3,children:[(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Virtual key id (exact)`,(0,Y.jsx)(K,{description:`Exact match against the VK's display prefix (e.g. lw_vk_live_01HZX9K3M...).`,docHref:`/ai-gateway/cache-control#matchers`})]}),(0,Y.jsx)(L,{value:e.matchVkId,onChange:e=>n(`matchVkId`,e.target.value),placeholder:`vk_01HZX9K3M...`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Virtual key display prefix (starts-with)`,(0,Y.jsx)(K,{description:`strings.HasPrefix against the VK's display prefix. Useful for bulk-matching by env/team convention (e.g. 'lw_vk_eval_' to match every eval-suite VK).`,docHref:`/ai-gateway/cache-control#matchers`})]}),(0,Y.jsx)(L,{value:e.matchVkPrefix,onChange:e=>n(`matchVkPrefix`,e.target.value),placeholder:`lw_vk_live_`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Virtual key tags (comma-separated)`,(0,Y.jsx)(K,{description:`AND-subset: VK must carry EVERY listed tag. Tag a VK in its edit drawer under 'Tags' (config.metadata.tags).`,docHref:`/ai-gateway/cache-control#matchers`})]}),(0,Y.jsx)(L,{value:e.matchVkTagsCsv,onChange:e=>n(`matchVkTagsCsv`,e.target.value),placeholder:`tier=enterprise, team=ml`}),(0,Y.jsx)(F,{children:`VK must carry ALL listed tags.`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsx)(I,{children:`Principal (user id)`}),(0,Y.jsx)(L,{value:e.matchPrincipalId,onChange:e=>n(`matchPrincipalId`,e.target.value),placeholder:`user_01HZX...`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Model`,(0,Y.jsx)(K,{description:`Exact match OR trailing-'*' glob against the resolved upstream model (e.g. 'claude-haiku-*'). No regex in v1. Fires on both /v1/messages + /v1/chat/completions.`,docHref:`/ai-gateway/cache-control#matchers`})]}),(0,Y.jsx)(L,{value:e.matchModel,onChange:e=>n(`matchModel`,e.target.value),placeholder:`e.g. gpt-5-mini or claude-3-5-sonnet-latest`})]}),(0,Y.jsxs)(R,{align:`start`,gap:2,children:[(0,Y.jsxs)(P,{children:[(0,Y.jsx)(I,{children:`Request metadata key`}),(0,Y.jsx)(L,{value:e.matchMetadataKey,onChange:e=>n(`matchMetadataKey`,e.target.value),placeholder:`X-Customer-Tier`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsx)(I,{children:`Value`}),(0,Y.jsx)(L,{value:e.matchMetadataValue,onChange:e=>n(`matchMetadataValue`,e.target.value),placeholder:`enterprise`})]})]})]})]}),(0,Y.jsxs)(O,{borderWidth:`1px`,borderColor:`border.subtle`,borderRadius:`md`,padding:4,children:[(0,Y.jsx)(N,{fontSize:`sm`,fontWeight:`semibold`,mb:3,children:`Then do`}),(0,Y.jsxs)(H,{align:`stretch`,gap:3,children:[(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Cache control mode`,(0,Y.jsx)(K,{description:`respect = passthrough. disable = strip provider cache markers (always-fresh). force = inject cache_control: ephemeral on Anthropic (no-op on OpenAI automatic, WARN+passthrough on Gemini v1).`,docHref:`/ai-gateway/cache-control#actions`})]}),(0,Y.jsx)(j,{size:`sm`,children:(0,Y.jsxs)(M,{value:e.actionMode,onChange:e=>n(`actionMode`,e.target.value),children:[(0,Y.jsx)(`option`,{value:`respect`,children:`respect — passthrough`}),(0,Y.jsx)(`option`,{value:`force`,children:`force — cache where supported`}),(0,Y.jsx)(`option`,{value:`disable`,children:`disable — strip cache hints`})]})}),(0,Y.jsx)(F,{children:`Force injects cache_control: ephemeral on Anthropic (system[-1] + messages[-1].content[-1], no-double-inject if already present). OpenAI/Azure caching is automatic — force is a wire no-op but still attributes + bumps the rule-hit counter. Gemini force WARNs + passes through today (v1.1 will wire /cachedContents).`})]}),e.actionMode===`force`&&(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`TTL (seconds, optional)`,(0,Y.jsx)(K,{description:`Clamped to [0, 86400]. Only meaningful on force. Anthropic supports TTL; OpenAI/Gemini treat as best-effort hint.`,docHref:`/ai-gateway/cache-control#actions`})]}),(0,Y.jsx)(L,{type:`number`,min:0,max:86400,value:e.actionTtlSeconds,onChange:e=>n(`actionTtlSeconds`,e.target.value),placeholder:`300`}),(0,Y.jsx)(F,{children:`Clamped to [0, 86400]. Providers without explicit TTL support treat this as a best-effort hint.`})]}),(0,Y.jsxs)(P,{children:[(0,Y.jsxs)(I,{children:[`Cache salt (optional)`,(0,Y.jsx)(K,{description:`Cache-bust tag — changing it forces regeneration on next hit. Max 64 chars. Useful after a prompt template change: update the salt to invalidate all cached responses tied to the old template.`,docHref:`/ai-gateway/cache-control#actions`})]}),(0,Y.jsx)(L,{value:e.actionSalt,onChange:e=>n(`actionSalt`,e.target.value),placeholder:`e.g. 2026Q1-rerun — forces cache regeneration when changed`,maxLength:64})]})]})]})]})}function ie({open:e,onOpenChange:t,onCreated:n}){let{organization:i}=W(),a=U.useContext(),o=U.gatewayCacheRules.create.useMutation({onSuccess:async()=>{i?.id&&await a.gatewayCacheRules.list.invalidate({organizationId:i.id})}}),[s,c]=(0,J.useState)(X()),l=()=>{o.isPending||(c(X()),t(!1))};return(0,Y.jsx)(r.Root,{open:e,onOpenChange:()=>l(),placement:`end`,size:`md`,children:(0,Y.jsxs)(r.Content,{children:[(0,Y.jsxs)(r.Header,{children:[(0,Y.jsx)(r.Title,{children:`New cache rule`}),(0,Y.jsx)(r.CloseTrigger,{})]}),(0,Y.jsx)(r.Body,{children:(0,Y.jsx)($,{state:s,onChange:c})}),(0,Y.jsx)(r.Footer,{children:(0,Y.jsxs)(R,{width:`full`,children:[(0,Y.jsx)(V,{}),(0,Y.jsx)(E,{variant:`ghost`,onClick:l,disabled:o.isPending,children:`Cancel`}),(0,Y.jsx)(E,{colorPalette:`orange`,onClick:async()=>{if(!i)return;let e=Z(s);if(e){k.create({title:e,type:`error`});return}try{await o.mutateAsync({organizationId:i.id,...Q(s)}),c(X()),t(!1),n?.()}catch(e){k.create({title:e instanceof Error?e.message:`Failed to create cache rule`,type:`error`})}},loading:o.isPending,disabled:!s.name.trim(),children:`Create rule`})]})})]})})}function ae({rule:e,onOpenChange:t,onSaved:n}){let{organization:i}=W(),a=U.useContext(),o=U.gatewayCacheRules.update.useMutation({onSuccess:async()=>{i?.id&&await a.gatewayCacheRules.list.invalidate({organizationId:i.id})}}),[s,c]=(0,J.useState)(X());(0,J.useEffect)(()=>{e&&c(re({name:e.name,description:e.description,priority:e.priority,enabled:e.enabled,matchers:e.matchers,action:e.action}))},[e]);let l=()=>{o.isPending||t(!1)};return(0,Y.jsx)(r.Root,{open:!!e,onOpenChange:()=>l(),placement:`end`,size:`md`,children:(0,Y.jsxs)(r.Content,{children:[(0,Y.jsxs)(r.Header,{children:[(0,Y.jsx)(r.Title,{children:`Edit cache rule`}),(0,Y.jsx)(r.CloseTrigger,{})]}),(0,Y.jsx)(r.Body,{children:(0,Y.jsx)($,{state:s,onChange:c})}),(0,Y.jsx)(r.Footer,{children:(0,Y.jsxs)(R,{width:`full`,children:[(0,Y.jsx)(V,{}),(0,Y.jsx)(E,{variant:`ghost`,onClick:l,disabled:o.isPending,children:`Cancel`}),(0,Y.jsx)(E,{colorPalette:`orange`,onClick:async()=>{if(!i||!e)return;let r=Z(s);if(r){k.create({title:r,type:`error`});return}try{await o.mutateAsync({organizationId:i.id,id:e.id,...Q(s)}),t(!1),n?.()}catch(e){k.create({title:e instanceof Error?e.message:`Failed to save cache rule`,type:`error`})}},loading:o.isPending,disabled:!s.name.trim(),children:`Save changes`})]})})]})})}function oe(){let{organization:e,hasPermission:t}=W(),r=t(`gatewayCacheRules:create`),v=t(`gatewayCacheRules:update`),y=t(`gatewayCacheRules:delete`),T=U.gatewayCacheRules.list.useQuery({organizationId:e?.id??``},{enabled:!!e?.id}),j=U.useContext(),M=U.gatewayCacheRules.archive.useMutation({onSuccess:async()=>{e?.id&&await j.gatewayCacheRules.list.invalidate({organizationId:e.id})}}),P=U.gatewayCacheRules.update.useMutation({onSuccess:async()=>{e?.id&&await j.gatewayCacheRules.list.invalidate({organizationId:e.id})}}),[F,I]=(0,J.useState)(!1),[L,R]=(0,J.useState)(null),[G,K]=(0,J.useState)(null),X=async()=>{if(!(!G||!e))try{await M.mutateAsync({organizationId:e.id,id:G.id}),K(null)}catch(e){k.create({title:e instanceof Error?e.message:`Failed to archive`,type:`error`})}},Z=async t=>{if(e)try{await P.mutateAsync({organizationId:e.id,id:t.id,enabled:!t.enabled})}catch(e){k.create({title:e instanceof Error?e.message:`Failed to toggle rule`,type:`error`})}},Q=T.data??[];return(0,Y.jsxs)(ne,{children:[(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(d.Header,{children:[(0,Y.jsx)(d.Heading,{children:`Cache Rules`}),(0,Y.jsx)(V,{}),r&&(0,Y.jsxs)(E,{colorPalette:`orange`,size:`sm`,onClick:()=>I(!0),children:[(0,Y.jsx)(a,{size:14}),` New rule`]})]}),(0,Y.jsxs)(O,{padding:6,width:`full`,maxWidth:`1600px`,marginX:`auto`,children:[(0,Y.jsxs)(N,{fontSize:`sm`,color:`fg.muted`,mb:4,children:[`Rules are evaluated first-match-wins by priority (highest first). A per-request `,(0,Y.jsx)(`code`,{children:`X-LangWatch-Cache`}),` header always wins over matching rules, and a matched rule always wins over the per-virtual-key default. Changes propagate to the gateway within 30 s via the /changes long-poll.`]}),T.isLoading?(0,Y.jsx)(D,{}):T.isError?(0,Y.jsx)(te,{title:`Failed to load cache rules`,error:T.error,onRetry:()=>T.refetch()}):Q.length===0?(0,Y.jsx)(o,{children:(0,Y.jsxs)(p,{children:[(0,Y.jsx)(m,{children:(0,Y.jsx)(ee,{size:32})}),(0,Y.jsx)(n,{children:`No cache rules yet`}),(0,Y.jsx)(f,{children:`Cache rules let operators force, disable, or override cache behaviour across virtual keys, models, principals, or custom request metadata — no client code changes required.`}),r&&(0,Y.jsxs)(E,{colorPalette:`orange`,onClick:()=>I(!0),mt:2,children:[(0,Y.jsx)(a,{size:14}),` New rule`]})]})}):(0,Y.jsx)(z,{width:`full`,overflow:`hidden`,children:(0,Y.jsx)(B,{paddingY:0,paddingX:0,children:(0,Y.jsxs)(C,{variant:`line`,size:`md`,width:`full`,children:[(0,Y.jsx)(g,{children:(0,Y.jsxs)(c,{children:[(0,Y.jsx)(w,{width:`60px`,children:`Priority`}),(0,Y.jsx)(w,{children:`Name`}),(0,Y.jsx)(w,{children:`Match`}),(0,Y.jsx)(w,{children:`Action`}),(0,Y.jsx)(w,{children:`Enabled`}),(0,Y.jsx)(w,{})]})}),(0,Y.jsx)(h,{children:Q.map(e=>(0,Y.jsxs)(c,{children:[(0,Y.jsx)(x,{children:(0,Y.jsx)(A,{colorPalette:`gray`,children:e.priority})}),(0,Y.jsx)(x,{children:(0,Y.jsxs)(H,{align:`start`,gap:0,children:[(0,Y.jsx)(N,{fontWeight:`medium`,children:e.name}),e.description&&(0,Y.jsx)(N,{fontSize:`xs`,color:`fg.muted`,children:e.description})]})}),(0,Y.jsx)(x,{children:(0,Y.jsx)(se,{matchers:e.matchers})}),(0,Y.jsx)(x,{children:(0,Y.jsx)(ce,{action:e.action,modeEnum:e.modeEnum})}),(0,Y.jsx)(x,{children:(0,Y.jsxs)(i,{checked:e.enabled,onCheckedChange:()=>void Z(e),disabled:!v,size:`sm`,colorPalette:`orange`,children:[(0,Y.jsx)(l,{}),(0,Y.jsx)(S,{})]})}),(0,Y.jsx)(x,{children:(v||y)&&(0,Y.jsxs)(b.Root,{children:[(0,Y.jsx)(b.Trigger,{asChild:!0,children:(0,Y.jsx)(E,{variant:`ghost`,size:`xs`,"aria-label":`Actions`,children:(0,Y.jsx)(u,{size:14})})}),(0,Y.jsxs)(b.Content,{children:[v&&(0,Y.jsxs)(b.Item,{value:`edit`,onClick:()=>R(e),children:[(0,Y.jsx)(s,{size:14}),` Edit`]}),y&&(0,Y.jsxs)(b.Item,{value:`archive`,onClick:()=>K(e),children:[(0,Y.jsx)(_,{size:14}),` Archive`]})]})]})})]},e.id))})]})})})]})]}),(0,Y.jsx)(ie,{open:F,onOpenChange:I,onCreated:()=>{T.refetch()}}),(0,Y.jsx)(ae,{rule:L,onOpenChange:e=>{e||R(null)},onSaved:()=>{R(null),T.refetch()}}),(0,Y.jsx)(q,{open:!!G,onOpenChange:e=>{e||K(null)},title:`Archive ${G?.name??`rule`}?`,message:`The rule stops applying to new requests. Historical traces stay attributed to their rule id; the rule itself remains visible in the audit log.`,confirmLabel:`Archive`,tone:`warning`,loading:M.isPending,onConfirm:X})]})}function se({matchers:e}){if(!e||typeof e!=`object`)return(0,Y.jsx)(N,{fontSize:`xs`,color:`fg.muted`,children:`any request`});let t=e,n=[];if(typeof t.vk_id==`string`&&n.push(`vk=${t.vk_id}`),typeof t.vk_prefix==`string`&&n.push(`vk~${t.vk_prefix}*`),Array.isArray(t.vk_tags)&&t.vk_tags.length>0&&n.push(`tags:[${t.vk_tags.join(`,`)}]`),typeof t.principal_id==`string`&&n.push(`user=${t.principal_id}`),typeof t.model==`string`&&n.push(`model=${t.model}`),t.request_metadata&&typeof t.request_metadata==`object`&&!Array.isArray(t.request_metadata)){let e=Object.keys(t.request_metadata);e.length>0&&n.push(`meta:${e.join(`,`)}`)}return n.length===0?(0,Y.jsx)(N,{fontSize:`xs`,color:`fg.muted`,children:`any request`}):(0,Y.jsx)(R,{gap:1,flexWrap:`wrap`,children:n.map(e=>(0,Y.jsx)(A,{colorPalette:`gray`,fontSize:`2xs`,variant:`subtle`,children:e},e))})}function ce({action:e,modeEnum:t}){let n=e??{};return(0,Y.jsxs)(R,{gap:1,children:[(0,Y.jsx)(A,{colorPalette:t===`FORCE`?`orange`:t===`DISABLE`?`red`:`green`,children:t.toLowerCase()}),typeof n.ttl==`number`&&(0,Y.jsxs)(N,{fontSize:`xs`,color:`fg.muted`,children:[`ttl `,n.ttl,`s`]}),typeof n.salt==`string`&&n.salt.length>0&&(0,Y.jsx)(N,{fontSize:`xs`,color:`fg.muted`,children:`salted`})]})}var le=G(`gatewayCacheRules:view`,{layoutComponent:y})(oe);export{le as default};
|
|
2
|
+
//# sourceMappingURL=cache-rules-D2m1QlNJ.js.map
|