Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(ai-gateway): show developer mode team usage and token budget left (#122735)

Brandon15e57451ee50
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 48494e3b341d..69c304780f21 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -2605,9 +2605,9 @@ snapshots:
components-search--product-recents-and-starred--light:
hash: v1.k794b7964.de38039f5c4dd76a9caf4c523b664147d93a5920443ff6afa6353227e58ef2e6.NsoucGXVlw4tPpndBq9jFa-71CN-nHMr1VhLxOoPNUM
components-search--searching--dark:
- hash: v1.k794b7964.4876b7eb9be38867981cb775fb84f75f9ccf1d5638203f81be9c3e058eb62446.4s3Zy0VeZxNoAny9paspwjFJ6WNRyFvEVII6oj2Jlh8
+ hash: v1.k794b7964.540c3b411dcdc40efae84e1216ddd7141d7117b7f22d93e92a371088c9b09a0b.cwzm-HgzqeaVBtL5IAi9TF0qkbcGcDiCHHO-C-fLEzA
components-search--searching--light:
- hash: v1.k794b7964.f412be0e3c1c9d0c9e60b1607bc4ad3b229fbc55edacb37be6633401654d4dcd.EKt8wvyXXBhMLk_dTvmFTVjs0bSVcdtBYUHT_b5WH88
+ hash: v1.k794b7964.8fd6dbd53ec06e6f99d381db4f94c98a54d8ff07f61fead821ec24f8eceda5d3.z7jsIuRFgNczx2BgEhSWd0PpkOdVqoQ6wF9lcwzfhWI
components-sentencelist--full-sentence--dark:
hash: v1.k794b7964.7e8e5dd2e09d246cc3668f362f2391fe67618bd1143aa393832297f5dc30e558.yptEWKc5RAUY613Fwd5cQ0VIinMvpdoI6cuKgagAGxk
components-sentencelist--full-sentence--light:
@@ -14905,161 +14905,161 @@ snapshots:
scenes-app-sessionattributionexplorer--session-attribution-explorer--light:
hash: v1.k794b7964.001061d4b295c8f6027e5e0a7316a65883e6c0e08277ae097d3a38d64338795d.CGXqBM7ryEQypLc9SCN1GLFuIXXf0AnFxiwLLaXeFhY
scenes-app-settings-authentication-domains--boost-needs-upgrade--dark:
- hash: v1.k794b7964.2bd6e01c81b4951279ffccfeffe2719feceec4c22e94a7fc6338f35387567027.TGGoxbBTjf88Tq4TWUFhYDlX4djXu299n-N9iyTZGJM
+ hash: v1.k794b7964.d78f789a67d899660b408731aa84d500350712a2b62df0dcfd68dc406c4d45af.dt-DTY1eOIHa8KhzcqeUNaoSsOWDjKoPj40f8YzcnSg
scenes-app-settings-authentication-domains--boost-needs-upgrade--light:
- hash: v1.k794b7964.aa3be8875df4f6b235edc865bb023d7527e28110b0f6116c7dfbd9fb7be83340.FArIeeZkX1ZymdczfdE6UEHUPHj1H043skcvrRKn9ac
+ hash: v1.k794b7964.83df43f07e869d08199f4222c8d0f130746f9b8887957a1ad0f870c17ab2bbb6.OyHNfDfRynC0Ohsd8DPKz_UNr_Dy5CO2QQt7mth9usE
scenes-app-settings-authentication-domains--enterprise-mixed--dark:
- hash: v1.k794b7964.6e3684700984aa93c525c0d579f8be92cd7397e9b0dd927845429d81352dcdeb._pAl5oj18LPEsjonrS9z5zELZgBGLAp1ub8DAtrbFGs
+ hash: v1.k794b7964.7a825ca7a5b0543ccccdf0093fec449667cfb0b459fd1287e7d35c5918674024.fN08v4StdsjyHWTxDgGPvnA6OCUPMeWAl6gJ40JIzoE
scenes-app-settings-authentication-domains--enterprise-mixed--light:
- hash: v1.k794b7964.15a92ada6e426d094c2ce8db6d6b2798b4ab5e9a264e14c235e1b581c8047ccd.oO68qWVhhCVBkJ7RVBJ_Qycy0Np8r4B4YeQuwoVwYpU
+ hash: v1.k794b7964.1ee7c0fef0b2c5581021e1ce65ebbf88ed0138a94af2f7df38d7ddd6173f2ed8.Vth1HPoP6kpUc4mo0pKFIDEBUjfgJctLWABObCKYEDo
scenes-app-settings-authentication-domains--enterprise-redesigned--dark:
- hash: v1.k794b7964.a9af4055a6ff33536e2a4bcf4bf2572b7523d16fc381f8d11c05d1a154c039f6.bomBat-rwgytXzAgz5CLmwzftoj8U2d--7G7VPctoxk
+ hash: v1.k794b7964.ab9c261935b8a5fea07327cd7ccbf67e06c4958ab907e31c2e74a12d27851e15.dslpEsOTNyQ8IOOUyiSy-JEY6voHeTGRj6L-UU_9sxs
scenes-app-settings-authentication-domains--enterprise-redesigned--light:
- hash: v1.k794b7964.1f04b726542fcdf0b6f24fc4ed9287e2ccb45aae903a4ff29cf2d047057714fa.AVsuO9ZYQMMDdbMY3mMsnhTJIBN8XzHc-AkprCWf6ic
+ hash: v1.k794b7964.771ddae6458f69a06450482c80eb6335be7dc18db79939fa0204a649061c092d.tkBp6cmjot00Mn8rmOM2_NEAxJlgHuqxD1TxiwvGcIE
scenes-app-settings-authentication-domains--enterprise-redesigned-not-configured--dark:
- hash: v1.k794b7964.0b7728d1632cb88c96554c34079bea366b73b0eaf524689066f9b1b1126459ff.gpxhQd8QiiJOqdiy4qyPqm1-a9zEgPZUTTVPm_2eI30
+ hash: v1.k794b7964.a826fd082f265621b6a35b3e8ce6dbb6b2819f4221f3a59c0a3a48d4ba554fc1.9DVZPxsE-RkaZ6YMoi4oV5V9PkSEpyEJW17C4EKtToA
scenes-app-settings-authentication-domains--enterprise-redesigned-not-configured--light:
- hash: v1.k794b7964.3ca9f0ad9334c4e5e92764f95ae2efdc90f4eac36b3c1bb8c4c03b9ba0c53a81.vTrj49Vd9BePzb751bZYJ3zVE4c0x6YOGyGDUSoavfE
+ hash: v1.k794b7964.7e1a7de13e1767d26a91d6ffcff5ab379d2706833ad4395ed8015f074abb5c46.A_5uSk6S14qXkMgyHyu-ECRrcHu4x5Sky7vYx_PSKkA
scenes-app-settings-authentication-domains--enterprise-redesigned-partially-configured--dark:
- hash: v1.k794b7964.7edc6dc214823cc6911d3309ff46bdf176df947b56514c88c82e928ce82f9eeb.5TvoR-5DsCV9_vsA-dnK3Ve7F6wm97PhWZRTLKhG5Qw
+ hash: v1.k794b7964.29869ab2c38c49c0eeee214d0fabaa857ae75e1b85089a06a53c41fa128ec392.zHNvs7gHuzjIX4c4oxTwC2Qh5tvYjb0j_XRcLgFxx6c
scenes-app-settings-authentication-domains--enterprise-redesigned-partially-configured--light:
- hash: v1.k794b7964.175526e4dcd2e1029557a4d0d97c4e32b33d47a4ca517d47b905adb9a8707700.eJtJcXMRzYKahdqS1T1_JNZNqKSFaFxaGsMFwjRUlrE
+ hash: v1.k794b7964.dd562bbfe57510effba5b723e3360de69f6f64171766a2062107bbf930aeaa4b.db3zXgrC6sPfN-f04DVEJayfWD8RptirgfjIJPBe-dc
scenes-app-settings-authentication-domains--no-domains--dark:
- hash: v1.k794b7964.65369fc7255a72273ca04423517866d83e96bf65670bc13cbf668e89590bea8d.FGWt35v1qx8dahWDI_QvUjyzVNzkT64zsgE7ORavVTU
+ hash: v1.k794b7964.9b387e33ac714c1022ecb25c14f4c27a6322d1ce06b5eefe97ee7b2ca4152270.jNDgZAZaw-CbpvrzfjcawZzBH48x8A7hjoiWl0P1QGQ
scenes-app-settings-authentication-domains--no-domains--light:
- hash: v1.k794b7964.c34c206923d0323754f8990e7b3feaed5842a0f245ea8b3bdd1ddcdb88a8695e.fhRZV2hOAAK9qrArTjPlqRg3MVsqFBWuYede1jXOKy8
+ hash: v1.k794b7964.874d1c010e8d3ac0ee8365bbbe62690d9b5b38c904c67d5ab2405ab8591d0a20.iqt7xD_6rKkC698a8vVQBufRsTF2INLL0TN4AjxAJMo
scenes-app-settings-authentication-domains--one-unverified-domain--dark:
- hash: v1.k794b7964.b3617827d4202dd3cfa6752c9a41d92d45ae2c972258ba8fbb37ac6b3bca8756.zq3nenikdhILuSIUTN8p6pmlMV82wbf_SYNwbU1Yf4I
+ hash: v1.k794b7964.df2a2f97067f4b1b93d77b6e14ca00e2a6d159ce3ee45889b7262290a24f7c3d.ei5sIBib62pB9TjwQrbujZ2fcV_jUgHPE2pVRtThr7M
scenes-app-settings-authentication-domains--one-unverified-domain--light:
- hash: v1.k794b7964.979fe906792fa6eaeb7fe20d7784552094ea109045401cb9fc6dd2bf683df851.7T06T648JpNpDQ2qMEMQwCD0YjKdL6ZqRJxpz4eipn8
+ hash: v1.k794b7964.c4c93e148ba37765c7ddec2df4af4ee754e29cfeb838d368872000c44fa87c42.07YNlu7neNFZnUtq4Ab4ZQwfv_OdqoLcYL3clXrNIRU
scenes-app-settings-authentication-domains--redesigned-needs-upgrade--dark:
- hash: v1.k794b7964.21d4ee2e9bf508523b8b0f2a15a646973806196afa24c0928998f0be7508544f.vFw4ZR_0AW8RQ8ryGVbaE0T4yP7Us7MEEdNQNfemsxc
+ hash: v1.k794b7964.c93a6b0b6fb56f22911b8c6f8e48ba2a956d53241f07cdd7c2548560b59665de.v9QiVnH3zj0mMUgzctSzKTErc1Ay5Mn1ooZKYlT6L1I
scenes-app-settings-authentication-domains--redesigned-needs-upgrade--light:
- hash: v1.k794b7964.c3c8ccbe71294f6967fb7a24b8ee2eb44920167dfb6bb48884b7fe1144f46943.0j8mqbRxxTV8C1nAZmhq0KHjoqcV8kopHlIB-mCKwk0
+ hash: v1.k794b7964.f395a7d506b5cf5720728881ee9cfb100548e824fe4dc6cd2dbcd3781f1f7a2c._C4PfqjO_GbsDI6xtIQmmKzrMsnvWR-r7kGCnR8rZE4
scenes-app-settings-environment--settings-environment-access-control--dark:
hash: v1.k794b7964.5d0771b46de9a55a9741a2efb7b28ccc21f62f9658dfb8946deb63efeb8c4cf8.2EXyngsVLFVhWMEoZis_fVvzRAGpR3BSDfMXn3ngBbo
scenes-app-settings-environment--settings-environment-access-control--light:
hash: v1.k794b7964.fc0e0f399960a95c4b91fe86019daf99040ea87fea3224475861d28b7e831241.ekJN2R8grjTm8lFb41G00oRlNNwYLunnvlSDtGTg-So
scenes-app-settings-environment--settings-environment-activity-logs--dark:
- hash: v1.k794b7964.125ad1c1630230bab4a373c730a616006912266bb9a0da9286cb829969f5cd2c.l-kH1l3Ne_6HgN_DvclUIYqOxQG5IOfSJh8j8BRJQtA
+ hash: v1.k794b7964.8575a8735ea3be3fcc292bdd55ffe856563799579b57a8ce860fd01fb14b5322.KlK2JNUssGtoCo4pnps9NRwZM0LJjp2yCkox9PilYY0
scenes-app-settings-environment--settings-environment-activity-logs--light:
- hash: v1.k794b7964.de8dbf30bb81f750a69b2defaa2bd2b3a4220aabf8a61a7a2398649692153059.NUqLmVSIt8TCiWzubIwEDrdObbZR8wrD3acZTxCeiFg
+ hash: v1.k794b7964.72f8747082761ff334d0aef5a0d2f814b737b12db31c78c25e310e6b174e50d1.lYy4I8Xb6uRXftyVwwaPegpkv9gTLQaTg1ZCQaTUYCw
scenes-app-settings-environment--settings-environment-agent-instructions--dark:
- hash: v1.k794b7964.cc500a6329ddf9175271350ba4b2d2e336bd93d9e09243e9dd2cc9fbba2baf87.9HdYpurrKQAjghcgG2Xm9v5mHpxeHqonGHM4w3TGqMI
+ hash: v1.k794b7964.5225e6c2be31f23af61d600e99e2e3fa2c7f9ae26e60f58b8fe341274ceb849c.0llwfMe85dNkqPElcsxXR06WoXmodfKyEXn5s5TOWko
scenes-app-settings-environment--settings-environment-agent-instructions--light:
- hash: v1.k794b7964.f5b9c4bd2219dd2ea9871bbd718f54c83f8565e839fdac7e7d61e0d2838fea5c.u5fQ60DQeJYk1P-Xjjg3RDSH4W3yZKCu_1kesA7v-ew
+ hash: v1.k794b7964.939a0ec5184403df28db906375cd3bed930ba77ddfc3bae633ad5c3711ea2e76.rz6TPnas5B9MnWOhx5hkT_kPuTDckxcQFkFB_hzGs4M
scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-connect-modal--dark:
hash: v1.k794b7964.a736395d4f5e26d3df100c0620467dcf3d0f4d8c68e009238e19f96ca0ded1c2.oKore0IeXbtNi-INrktyldmjfaDYFu3qoykEMwtweUk
scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-connect-modal--light:
hash: v1.k794b7964.cebb2c0841f4e4e37d2ea1df6e0104ded1eb59190a5c4ac0b69627f8fa8e3c6e.XAjjATZlE8eh-QyykaJWux_ZL3vwbQa4pwIV508e_yc
scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-connected--dark:
- hash: v1.k794b7964.e3aeaf3da1b9c480a41b82ea9c5157b7612e4c9034ff2cd1f31036b581e02ac2.9VnB2k_cG76wEY8xepek2hU9OLMHUZ7J4YGuZCnYbiY
+ hash: v1.k794b7964.08f09a92adf553b70bc324ca4809cd3dfb54f388a829097c1ed1a27abd954c84.L5tx8t6jZPomemTG_K8Rbu-ARqNXpEl-q_reNM7y4oM
scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-connected--light:
- hash: v1.k794b7964.c66ae4d0737912448a0cea139d928f41af172312bd81eeac4e2456856acec31b.b4WvSIa9mbqOXvws-2pzA0qZ-TBCXzFG78_nv7cN4ts
+ hash: v1.k794b7964.bb93ff8d09c1503986e25b853e118a33dbfdc1fa3f1e2f7915ddedffc7ee7dfe.0dxSm28ztKM-i8nCS0erjFRGipoCiJIYVKA85Ewm-8Y
scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-reauth-required--dark:
- hash: v1.k794b7964.cbe1b47af340d7d8ae070af6e86f60defdaa486c496a8605bef763bf68e27832.52UH7WzW3PAki4STI61EbAnpkA-nxF11CX5WIt8oZMo
+ hash: v1.k794b7964.8ee385121e353f61d0bb703d7c7853436736a48ca422e33626ab030654a1d5f8.-FkcjQ8o4NwnXTV5mPpUByzJWS8z7GRHboR_69e-YDc
scenes-app-settings-environment--settings-environment-ai-subscriptions-codex-reauth-required--light:
- hash: v1.k794b7964.cabca5185dc7eb2aae018c3aa67db904e688fa107a4eac3690a76f2a4d2bd844.2nNrqM4A5U4i_ILB7yoeoJUBqMRkPxiKnZKzQ90B6es
+ hash: v1.k794b7964.931c6017abad7c503f7b89c06013d223ff5684313f7d23c1b91a495ab97a0028.EYFwROwpv-FFpD82a3ZP2nWhmQGMSwB2-4qalbUsTEU
scenes-app-settings-environment--settings-environment-autocapture--dark:
- hash: v1.k794b7964.c782025d3e166ffa59fbdedc4dd8bed4c70f79e1e200a9eb517d698056290c35.2npcpqZ5oBUR40c78uhJGEMQBDTOyfOteXuXv0cglYg
+ hash: v1.k794b7964.61718ccfe7dabd861074bd1e9f0c0d44f9e9d34e14d479e73dff1424677b3d7a.H41r2lGvGQiTEcAVLktiN8y69eJU-yoWsp2l_NG3ilo
scenes-app-settings-environment--settings-environment-autocapture--light:
- hash: v1.k794b7964.49c898ef4846589e3d6ad1425769953f59683ead6194e12f4cc7686eed47dfbf.BUzXbc6MtYGssUcbFU1mZzAQjgEA3MxImjoY0yMWra0
+ hash: v1.k794b7964.43e1ac49d53e4a7cd9e5bba06aa31b4555b7f3e10a07a5f52267dad5bbbec620.aBNlBBYECi6IENWwb7ZrA_Hx9X24hhX6FE8N13VctOY
scenes-app-settings-environment--settings-environment-business-knowledge--dark:
- hash: v1.k794b7964.95462899e9ceb5c5d2e852aa21f3a5e6cf7a18a21bfb3882c4a49f79e40c37d5.GoZpXzLG7gXdGL2ifl6r_eCkTC24tnovEYs-cVz7CiQ
+ hash: v1.k794b7964.39b6c69fc41ef520175f40ca239773dba3457b5d0c3ec5b6a897f75a8059577d.qDHHcm28b4nlP4ujj3OMu66zSguoPjq-8q8Le-_-u8g
scenes-app-settings-environment--settings-environment-business-knowledge--light:
- hash: v1.k794b7964.a15f6fb9a8eb2d2b5317269bdc1e2e66dc6728a8e979fe8eb839832d0dbda88e.uLIAEi2yK6Qegm02Hg8a4Yao6Ek5JYvd8_48F3g3EAI
+ hash: v1.k794b7964.397def700712688887aeea7409b08c455d9a6e7289e0aebd65d0b4903286eb20.WrBFBDJXt2APcYL0Wa8Yr-j4PQCIC76fCEWeN7piBUY
scenes-app-settings-environment--settings-environment-business-knowledge-learning-on-support-off--dark:
- hash: v1.k794b7964.390018677471f1292173f2bf1378cb706b8075818b4876cf81f13ca27afe4ce3.DR0hRHpQieNDBtny60cRdBSIyE5gP9tKxYdxSbNaPjM
+ hash: v1.k794b7964.d1eee15ccade419de09192b21760cc27ef15adccb180f0af374a51cad613818f.XjyKPhYxdO4SwyVWXv9reVrYqP1qiUCQwH0R26RxPHM
scenes-app-settings-environment--settings-environment-business-knowledge-learning-on-support-off--light:
- hash: v1.k794b7964.735122cdd18adedc5436af61f66489b21ea48ce5a14195c4bc2953a7f28586fa.CTgceKYyLIQ7CAe5fbRNINzWLCRNu4J4jstk8lWKoxA
+ hash: v1.k794b7964.12b58a0c92b4b16f37e79ffcb77d828b3491e476032112e1ea585b3f9dc7d631.SHLVYkfpdIBUzwtHOvMIF5J-ecDCo7z8GICVymEerAs
scenes-app-settings-environment--settings-environment-business-knowledge-support-off--dark:
- hash: v1.k794b7964.838781dd6b720315dcfa508b4c21512f18d3c869b4ee4bd781d2cc831a10ddb9.EIcp8zQ-VFO2o4R5SN963vdNc3Tcov4DCyeSO43fBqY
+ hash: v1.k794b7964.d13fdf926e2c31d6b8c5634e321a404567154a0bc1921f5bb0f6513f552e279a.7ys4rmgnsW86Z6mp4X8ar-pKFRf30vrea2uJzxv9X90
scenes-app-settings-environment--settings-environment-business-knowledge-support-off--light:
- hash: v1.k794b7964.1bb172fd2fde0414eda8b2ddc6b37f9784db7a77fe5104f903b45c776e6872f7.DJX5WBZnENXd8K_rrjL-qr2niWNxL9OTEVtJISPi5iw
+ hash: v1.k794b7964.f280471359ee4c1c189a4fa14fd851b9e44fbf399df0309a03a81e1111748700.2KjmPYyDg28tHSrbR2DJZGc0opZeHQ2223kHLTT3MeU
scenes-app-settings-environment--settings-environment-csp-reporting--dark:
- hash: v1.k794b7964.1ed0dcb9c5ba81f1235c982b9f0b022d9eac7f2114576aafe6eb91e700418d54.8QC_TefldwrKBwBAcT3Eo1XM81L97nKuL9h-_fQvfL4
+ hash: v1.k794b7964.f4130d62e5a1c5b36195dd5a385c21ce2a3e2393dd6433a47cd9a63cc442aebd.yqAfOtmiNR03sFk6E7Y0lNXgQMaiNYO32yNyc1_xZQo
scenes-app-settings-environment--settings-environment-csp-reporting--light:
- hash: v1.k794b7964.1646f3afd63d8d505447395a2c6e6529787c1838844af526160ab244cc9405cd.BIByLvztkTxYaSlgHGzrSMYnnzPDd-rJyKNb1p-ZGQI
+ hash: v1.k794b7964.60cebef7cdaeb60b2fbf115f13858c9144d75c498a177cc789350913ee7c7710.bwa4NACpsXgidoBZYVFx9kTk-zmZISxzlgz5qV-yo0I
scenes-app-settings-environment--settings-environment-customization--dark:
- hash: v1.k794b7964.be0bee8d0c9b9cde01e8c84d26c968b1a3a73f1daab7fcb1bf59e279e76e52ff.M0DitNAop19AScQodmRaVuJE7kkPz19dt48qypHPp_8
+ hash: v1.k794b7964.868400b8cf58b5ed3d8b9909da7e5ed44d0a4207b7491fb4d9d3a701509a06e2.mHkMCK6SipbR1y9NdvFg-rrf7K6aQ1L2xVFwmJRbVOY
scenes-app-settings-environment--settings-environment-customization--light:
- hash: v1.k794b7964.bc9d6b9357797f4e31793b72347fa99bb82311e8b478d7b755095834fd9ae5ed.dMj9Qe90VQii_NvD97yAbV9c7S1BG8mdyPiToZT5tWo
+ hash: v1.k794b7964.faa041a7b5d472db94614ae75dd953ef6bdecda5889aa128a68e40f5cd8b6341.A_P_C2H7iPO5Sp-bZ8siiIxNxoi-0ZN4LFuRpAf44RQ
scenes-app-settings-environment--settings-environment-danger-zone--dark:
- hash: v1.k794b7964.84e3a358a899bc5f13f4685cf4db1bfaa95d59cf95ec4763fbedcbff55171693.7TJPAEgua5huT0mRCjjjEgAPqeoveWSs7k3Oyq-cnPQ
+ hash: v1.k794b7964.4aa8732c5bf12ac181bd07a2873ecc5c4700a72bc3829238bc0882dacc9a9ffb.FuO553LiyM4buYY0qth40vc_TH1Sr9TZEm7Ld9iiMvg
scenes-app-settings-environment--settings-environment-danger-zone--light:
- hash: v1.k794b7964.952f65db5704153b03ca70ff467ed0d5b45e27afe35f30491be5238ce9ddd1b3.9cdqNX6jnsQ5EikDiHGmRanLKmIqctdZE9TwgyTpN4g
+ hash: v1.k794b7964.6090a4ecd87046135d251b886324ecbe152effc733dce0bb2a8411a3b876ea59.fXkZZGMACk_eEcIgdkq3229PwX7GuebGAwesGxZbrZ4
scenes-app-settings-environment--settings-environment-data-quality--dark:
- hash: v1.k794b7964.8910086d27c139f5addc2053d71c8752f45e892a51214d0838401ae413198610.o63OHdp9RDNzCjn8_bmcBHYWbSCXjcyCs9WBxTKDqnU
+ hash: v1.k794b7964.c76d9c54916c6dff28cbe6468fb5c0ac905adafbeeab0c415f63f99a0312ac7a.kH4vCIt0mLWen5v7BJRCujT4dL_yZMwneR6-mXBA4Xo
scenes-app-settings-environment--settings-environment-data-quality--light:
- hash: v1.k794b7964.437cc76a95cde30106c561e851e79c5a3a22972db69849b6cf164e92ccf3251c.vnMJ4OZCcUYztk4f2gAo7hNZv8DhjJpSIcp8FIIjgzw
+ hash: v1.k794b7964.a1101b786517a50ff882286632f4ec0cdfe8a1230967ead386b65fc4bc43ac24.jdGz3iEL-XWRF2IoKgwhE1LLM-KOpoyVG4QVeKweyMk
scenes-app-settings-environment--settings-environment-details--dark:
- hash: v1.k794b7964.84e3a358a899bc5f13f4685cf4db1bfaa95d59cf95ec4763fbedcbff55171693.0o-OsnV2tckG6UOqd9jxCFMAA68OAyaa2nClTG7_8TE
+ hash: v1.k794b7964.4aa8732c5bf12ac181bd07a2873ecc5c4700a72bc3829238bc0882dacc9a9ffb.iZta_1ucIsZJYzz0wGX4FKsQHFMevYG-CPKpGn2h5ts
scenes-app-settings-environment--settings-environment-details--light:
- hash: v1.k794b7964.952f65db5704153b03ca70ff467ed0d5b45e27afe35f30491be5238ce9ddd1b3.K4jmjjnqXleRGqxIdBtZIfpB6kgUYO62HGR3yckPYJ0
+ hash: v1.k794b7964.6090a4ecd87046135d251b886324ecbe152effc733dce0bb2a8411a3b876ea59.jNzRUhHU4PRNOr0acvK8qpdkaGbLkdNUfbnlileSQ6I
scenes-app-settings-environment--settings-environment-error-tracking--dark:
- hash: v1.k794b7964.505fab23436d053ad5994fa438fe353ea49dd97411295463eb56a55a43150c75.Fq-kuUsED5Ll70tsM1QGJQP8iwFfoR1XBkdGkzQT71Q
+ hash: v1.k794b7964.a2ad11c04e832b42672c961240cbaa37a55d3257fd66fde9e186f8094eb78949.34qLdPvBNJzB4YLQbLNvcn4UCRm5k95ytw4qNXQJsYU
scenes-app-settings-environment--settings-environment-error-tracking--light:
- hash: v1.k794b7964.7baf31fb40ebf76e0e1f78944ee52497a5ce7282e71ccb98c216613a4cf66cfe.HSxHr43aCAiaNFGX86sg7jQAy6PrRbCtmaHhlUXa0-Q
+ hash: v1.k794b7964.adb6fd411ffdc03ea8e1b9a29f01536d41a5af4b6224c37881d7ad6b06630f84.WGucFxYafyt1RqQ5e0M6MzvBxP4nGZseNtgVciGxRWc
scenes-app-settings-environment--settings-environment-error-tracking-configuration--dark:
hash: v1.k794b7964.b9f9247aed6011b34d8de55a815a1076ef1264d4006e9abbe916ee28d38665f2.-DWM-Caji60kW793I3Uk4xpU9I2V4TMWOpdpUoOALXE
scenes-app-settings-environment--settings-environment-error-tracking-configuration--light:
hash: v1.k794b7964.8c207be636962ff664e59aa0ef01c4f036c721f77b370498a97df74558e6099d.cGjBPc2rJtnAGLrx1IjS9uYSycan4jjtoW4Mf9RLZlo
scenes-app-settings-environment--settings-environment-experiments--dark:
- hash: v1.k794b7964.cb46f6c539a5249ba2b3137fe1be76a6a69d1d3ad15709e1ae0c214a57cd3761.gtUrp7uXpZBe7c3YTaQHp_kG7Q7LflK05Y3vv4TKcbI
+ hash: v1.k794b7964.97267477544077ef369227235fde9b1c9380237167be329954cf2f4ce360283e.NgTCKnQHKhLyLWyje5QLi6KyJlx3k5fnuF9ODDZ9BFY
scenes-app-settings-environment--settings-environment-experiments--light:
- hash: v1.k794b7964.6818dbe4c8623ea85ee9d144912dd4207b252239b516809f8ca7564505b4141b.Vwi33yLY6yi-p2U6Rc_ZwVeHrm4YBb-gECOv6DLuFV8
+ hash: v1.k794b7964.c4e290095aeb4ce3d346a90f753d0acc0a409b9f8c921676aca87d558af905a9.F6t_NU234i69IOtIHXWw1DAH4wnSvadYQOhxFKtwDMQ
scenes-app-settings-environment--settings-environment-experiments-multiple-recalculation-times--dark:
- hash: v1.k794b7964.fac2e345bfdd371057272d0aee12ad1d3049163eda9ad40e387884a6ea317c9c.5sr9Uy6wK-ps6KfRFyPKaHPco9OF5pB6YlrcuCDT9JM
+ hash: v1.k794b7964.693937e1d68f2d23af6aa3bc3bd70074af2934829822bcc6d0c5984d9a13ebde.VhNSpqN_D12hRaktMgVVY9lNkKxILYPdyCsuXxRQeZ8
scenes-app-settings-environment--settings-environment-experiments-multiple-recalculation-times--light:
- hash: v1.k794b7964.ff48bed8cb8350868f3bd77af8af2cf45da473fe84c8b574d8faf6ca3521d090.afs9wELOxl2LLBAmZwMdj3s-C--EEqfdcxhdUrxzsfU
+ hash: v1.k794b7964.b4fc2da7f83bed627c7c299e12be0aeeb748caa68c52936cf68eb1c953ce99b1.aE-j5iUFcAPTMKDrjvl-8oTIG-JulsSZVpoXetf7t6c
scenes-app-settings-environment--settings-environment-feature-flags--dark:
- hash: v1.k794b7964.e5c085f7f0323816ed588a7fd1fdd9d25e5e6d96d7511fafc7c0fb3a566a66be.F_QAvbVrbbiXgFfpTGJqXsWiuUx4Lbs5c860w51sEFA
+ hash: v1.k794b7964.eb377d1f88a90916e32276cdad75b2d0c26bb20903ff48d1ef026976cf953466.T2zk-XaF_PYF1JRBHWuzFeO732CBEyCK6uJMO7ZJJtw
scenes-app-settings-environment--settings-environment-feature-flags--light:
- hash: v1.k794b7964.cb395a734a7117302053f1abdb3aa190b1088133a56c7ec74a7658da04686288.0PI01EYUiPZOrmG9CnO_51HgfXePQdnWu05BXJsc8t4
+ hash: v1.k794b7964.d84178c3dc11a6532bf084fd187b33fca01ec3e0816155c2ea5a1c6ee6d81a27.AUj_yq16NyztGQ6apE0udpGUByM3-1xO6Ty7LSbQdVY
scenes-app-settings-environment--settings-environment-heatmaps--dark:
- hash: v1.k794b7964.7a8f5b6f73dc422d48a78f86e8dcf9a6f5eeaf1926619afbed61c24ca28ddd9a.QM5WqLm2aH0HgxDxkHNgRA6i8Eqgk_3GeHhFMr3qTZs
+ hash: v1.k794b7964.ed41ee7503a63db6830c53aeaea3bb2088f7074e697724a321151e4cc286153b.bYh3Ex9SrtYiQMyl4rj_bdZ-UDUw-5PRn99YxVuFczA
scenes-app-settings-environment--settings-environment-heatmaps--light:
- hash: v1.k794b7964.5e3bec92b4b07a925f1272ee3ccfc6f5e2deb7986ff8082bb7e9147a5cf01a0b.BkuPfqq-eawQ8DOjPqzxeTH8J0juh_NztaCma9_37oM
+ hash: v1.k794b7964.a0bf4f3eff7c493a10ac46a938d3e6af7395789114788c2a7f900c7c4b95852a.fs4_TIvF2NOuLScA338IrbUnWWl4y_O8BohyNJyj40w
scenes-app-settings-environment--settings-environment-heatmaps-screenshot-cookie--dark:
- hash: v1.k794b7964.d43505ed8d27748c5e460814e9eceabb4b0a405e2cf2b19e9b61f3e7b61eff8e.CGseUUhCmEIyqK2fSAikjJxxXYsQikdxJHAIweenqNQ
+ hash: v1.k794b7964.d677f48f0b79ee3b4e76088d3704c0d5781a4967cae172d5f9e6194718fdca59.vZoL6rVZLO7sH2aKjfpMgW0cDLLBS5AHqtoSX1_Ox1k
scenes-app-settings-environment--settings-environment-heatmaps-screenshot-cookie--light:
- hash: v1.k794b7964.64b1ac85ec95eee6c521ffa2cb3259841569ca9c43c547c883c6dc9fd86017b6.2ATe_78AfPLXf6c4ovGyi4FVXz9JQDmc0CahqWO3BQ8
+ hash: v1.k794b7964.142fea22f2fabc96771d8ab6cdb580e1184e78307e7f3f4c1f4bdfc8879ecd7c.bRI6OiTETtFBYKd16LPYjx5VzJIicT-eXu1K7-oIxGw
scenes-app-settings-environment--settings-environment-integrations--dark:
- hash: v1.k794b7964.8484a0bbba6aa377a653cc15fbd239ec0619b7ec33ed93a6a3e2e8774be597cd.AU2hT3_wPhDPEH-MObZFFUm_lJrysTzra7SfzEjiCXg
+ hash: v1.k794b7964.565d5f83c001599955d25d0e128746a1918084c02f6c29a91256f4a90be3c5de.m2rLR5aMLBmmz2pBjvj7nfbLh7EYal3U5By3pspVbJU
scenes-app-settings-environment--settings-environment-integrations--light:
- hash: v1.k794b7964.98146ce80a066574a5ea83c147e21f09fdeeb7e71ee0db415d8a845829cfaa94.LCHR_53ynoQn68gzNzE0Bf3Yvcb8twmX_yVWC5GxhDI
+ hash: v1.k794b7964.ab7a3ae6cbe4ddb335253ece6e80470bc283eb4ed71ee56aaf2b8c667b18c239.CfypuTbgHwifSyGIcYq-HkcBWI6M-FU2dCzV5sWYRTA
scenes-app-settings-environment--settings-environment-marketing-analytics--dark:
- hash: v1.k794b7964.0edc7f1b8bc41df5583f30aa47311bd19a09aff067ab1f4c9fb836673752cd8e.9Bwq3kzYLq14yjZKYW9GsKUldgp0CzPhgApwR9fg3UM
+ hash: v1.k794b7964.1bd68af79ea1b0dbe82db17728b958142b7ad1b7ff91bfb27f07b2289dd25b91.v4FjvTaZbc_lghR2hdO2DXNo10kFeFrlfCykxQjliP4
scenes-app-settings-environment--settings-environment-marketing-analytics--light:
- hash: v1.k794b7964.c89a491e4027d8b9071f8a66fc8d28c1153fdef64d7e90c23eca88530c68fc79.--aop9iPaDAE1R8rvQ4MN38sFhp2jpBSbOh6RZolWr0
+ hash: v1.k794b7964.267767dbdcc3883a3721deb8a664ffc7b3b669e2d85eb035509b92ff9c708ca6.T-bsgJqwbny7yAiT4Zb9kD3YC5pfzCSCRXUjf8JhXew
scenes-app-settings-environment--settings-environment-max--dark:
- hash: v1.k794b7964.97918ce62e9af4b42dd6b77e041f5c121dc2a81967c04d49cbf17714c18b430c.4-WzG-C4VYIL_zegG_oRysfRfThJzn5xMyez-NqF3uI
+ hash: v1.k794b7964.f0bcc66a652a00e679f20b50565903fabbcabde18223bf06ac859b7a8375bf00.Xx-JFTzTB05gUyZOJ33xBPB6ovm99vFgfDTcHb2Xr7w
scenes-app-settings-environment--settings-environment-max--light:
- hash: v1.k794b7964.a4d2ea34c354bceb148724761d8379c605787a7ecf236569a99246bf351c65d4.ZUGYihCgLrdibbXSHgz-wgaISL0lPRmjQROk4oAdsts
+ hash: v1.k794b7964.ed58b5260eedc4d528b2cd81a64d946eb1d4892c8e93b01c91a3902519c0debc.uP05kHBTLY_TBNc4b6oWNZQNgk2zeJi9npKh-wZf3Jg
scenes-app-settings-environment--settings-environment-privacy--dark:
- hash: v1.k794b7964.ae95792390e9e8e9320eac56819c085fbf927805dd1a69e22dc93eb7ac025f5e.7Q1XBswNQPjk-gojM3qetpIC0uuvnda4Gy7nPLtGEP4
+ hash: v1.k794b7964.4bae67054ccdbd20aacc8ac6796a7ca1413fb85b82a43040f3cd0dc00474d735.U2gmWiWYGK5aWJWK5YI-JplyZRJM6zi1mm6rUJ1E7T0
scenes-app-settings-environment--settings-environment-privacy--light:
- hash: v1.k794b7964.35ddb00627027f0fa538a44c6a0ac391262271b58c2aa1051a5fb075cb5d153b.TRooZhqb2WOAGMoPdBfB45S5SPrqyA-V7KMP96hGa64
+ hash: v1.k794b7964.e1c7844809613d3fe37e3e3d4d46fc2e9efa7ab0bbd170a3c981295129b089c8.SY2vq7tzOv8Jw0PMzFNoraGb8cphm66m69_hQy4IVPw
scenes-app-settings-environment--settings-environment-product-analytics--dark:
- hash: v1.k794b7964.475775fb928503a39e11f96e46a3159f361b26eb99d224d75bfbcf43aeada0e4.yH2qIhCdxHQyzmXz7PpQfVOqlrehSgohNe5u9BSSnbg
+ hash: v1.k794b7964.f62dae4445da300fa3979596decf449fb3abd5e02ccbe9f36debe98295465da1.9lh-azJ0s62MU-I1WYgw1jYHPOnXXbUX7kypaJFt_7I
scenes-app-settings-environment--settings-environment-product-analytics--light:
hash: v1.k794b7964.dd07ab91a688091e7e5d6e220333985666c22685aeb699993ba1dcf77e02b550.3L1R_lE5gIqwQE_wT3oUEaybpxehFmeBFjRTdPu85EE
scenes-app-settings-environment--settings-environment-replay--dark:
- hash: v1.k794b7964.46e71f8f768b229cb464190c47f3eb987022aaf0447d61d6a1e9ad4bf6b7a7b2.Ifq331Ron9UQtA1vswfhvyAOxN6kJjZeecwfsD9V4qU
+ hash: v1.k794b7964.75a2bd5b932d561b14f51c304c6ffaa20099c8231d70e98a66c42b3db1944c5c.iDVxspFr0p6xcUytwbMaWOkXRbeRDWhqLkC9FLab9z4
scenes-app-settings-environment--settings-environment-replay--light:
- hash: v1.k794b7964.c2d19996dd7bf22058247cdef9493bda2c8a9bc755507291562f73c9789c9243.zuvEhJLpSA1Vrgl3Apw-09y2UnpBFtipgNSvLaMsrUo
+ hash: v1.k794b7964.a49ec374d510ce9a48177afb9708b20feb1bc1f1dfc7ec9a0e5e9489438fb89f.JaiJt-N1LDKkBKz2izRiJ465RBfqXW1LlCK8UECOQwY
scenes-app-settings-environment--settings-environment-revenue-analytics--dark:
- hash: v1.k794b7964.013cf0689eb41ded15d50f8f8c35b5f36c9126c8347a0b367cdaa938da92a6fb.ZB9c0YxJTJaNEke0rv2dos5fxHRAf9pJE19Er2nQh5k
+ hash: v1.k794b7964.b338a656aea7422a3299b01e32af110939a93e3f320db81248c21cc15da45855.5TdcgbjtSmavMxG7jX4QE6TeMHOz62Vm3Aj85Cxwstg
scenes-app-settings-environment--settings-environment-revenue-analytics--light:
- hash: v1.k794b7964.5369ad3b6d46941a42b03d7e2da9d4c870d5c62b952e9a0f8f796ae3f6168651.vWAik_2QzKO9oYvxCuY6iFu2llmagzq2cPGKdtms6xE
+ hash: v1.k794b7964.6848879e717f1f8d9d614efcd584d71f5d7f6d9dca56ac0917d45066a8adc346.8DNXjO2fP4gt4H-sI5M3-qAdpx71VXzJ3puwH6R2RTc
scenes-app-settings-environment--settings-environment-surveys--dark:
- hash: v1.k794b7964.b19482cbcdc5034bac5ddd7bf668a221d075e816b2b2a47c52c16d8572b2d6c6.Lc0MmkE1FChYB1LG1epoY9wwS2qoc7Z28Np3KJD4jX0
+ hash: v1.k794b7964.4e56df5d2042579e36c9d72c81dd5d3d2a9335edb26ef89f83e458293ca1be95.njm21Fs6JqoUhu6qs_Iq56zVDda1n09PSZDzjDrbEhk
scenes-app-settings-environment--settings-environment-surveys--light:
hash: v1.k794b7964.207944bd75ef551a13937ebd442aa7a3efbe6ad6370f75b36188955b0aacd487.mgWOBNeJkX87Y3SdH0dH8R7ff71klfkhbdNhDD0WFC4
scenes-app-settings-environment--settings-environment-web-analytics--dark:
- hash: v1.k794b7964.fe19fb69a98d2ab0172d211e0757142bf5fa816cd6da152590d3b5892b430f9b.LeCsObl-OgjexeFS5vfF6cujexXKuGDOgmzDR_0kNuc
+ hash: v1.k794b7964.dfaec7406aaa0bf55cf59b389b41a167cdf2fe3e090ecb2b1afd84c6be07affb.4LG7d0X6LMp1TMccke9WIMH7Jfy5gMcnytaH1iarfRA
scenes-app-settings-environment--settings-environment-web-analytics--light:
- hash: v1.k794b7964.2d7c5efd6988d5fc968f263b5f49259841d44cc69c9607e25059789976582448.QwZG-i7TTw2Z5BipD7w0kZK95GNkdtuWpT6jirLQgFo
+ hash: v1.k794b7964.b4553dbb84a15391496c2edb32b37890962415241c5e65720176f96aaf9a6c79.e3XURvfm-ojSu2iaXmrhEHQPltapWYsUAWZQktCPSpk
scenes-app-settings-identity-provider-configuration--oidc--dark:
hash: v1.k794b7964.1177527533a6ec000b396e1ee39627722226aed5cbab11759198dbbc2d72dcb3.NqKVUNSdSz-yE-r1M5EiEIaPRbQwBbyjCAf7rSSi9Do
scenes-app-settings-identity-provider-configuration--oidc--light:
@@ -15089,21 +15089,21 @@ snapshots:
scenes-app-settings-identity-provider-configuration--xaa-needs-upgrade--light:
hash: v1.k794b7964.9d93b0682bf14e191da3fa9614a1500ec01fbe7a9c313680c5fa2d776ae65806.KFggaDLcSJvceGa1JimS0m5ayPo6m_OtoH7_tzeqR-8
scenes-app-settings-organization--settings-organization-authentication--dark:
- hash: v1.k794b7964.227994eab3e38d7fa0709fcc5cd1cf8ea8d926cdf41cb54ade9c17695e7e7e1c.nJhcZ0fCoyknldP05_OkwqVtOSEIUfqC5GQrnOj-z6M
+ hash: v1.k794b7964.fb4fdf7c5ffff296cb74c13c2104e73611d25ede49d1d86891c1f589d8ce0884.n4LOQ1bNp0EjJycDEtys-oUvdIMaArmYRathbw-0fPk
scenes-app-settings-organization--settings-organization-authentication--light:
hash: v1.k794b7964.c28379c526c9ccbd355d4204d0aafb7b8c3aaa6c48ee152fc5eb75a29852fe3b.lJKUnsm2B6FmH_FWE-WX1f2ZvUimJb3t-g9hK4j4X1g
scenes-app-settings-organization--settings-organization-billing--dark:
- hash: v1.k794b7964.84e3a358a899bc5f13f4685cf4db1bfaa95d59cf95ec4763fbedcbff55171693.fb1A4YGiFNX7wn3LU1kHEq6VzQ6UgyVEazmZFm4hnfo
+ hash: v1.k794b7964.4aa8732c5bf12ac181bd07a2873ecc5c4700a72bc3829238bc0882dacc9a9ffb.4nUL9pTmY4mgAovKPz8xU354d6i04uV1n-vszqm2oKA
scenes-app-settings-organization--settings-organization-billing--light:
- hash: v1.k794b7964.952f65db5704153b03ca70ff467ed0d5b45e27afe35f30491be5238ce9ddd1b3.hX-ST1YBbPgT0ciZK37-B806aiRHw6gcU9IKSmUOEn0
+ hash: v1.k794b7964.6090a4ecd87046135d251b886324ecbe152effc733dce0bb2a8411a3b876ea59.r-L1IsiySB0FNi6IuwA2iFZElckXP_1JGvC8rEk41JQ
scenes-app-settings-organization--settings-organization-cimd-verification-tokens--dark:
- hash: v1.k794b7964.ef0f47e2bfb022514af043db1ad4872a4b064cea2b3f916c351b8c28387ea66d.6FZfAxy8eg-jmEKacgUjaxReF5i4Xh6mT9Z4Fw0He0Q
+ hash: v1.k794b7964.d3c4f8f4e0c5264e0ca1780b9c0bcea1bda577f5508a46f799c4a4dfd2d4027b.zGK5-x9qdfUVASbm2IYBggIBPvPl-qWLUBpHbyYmHhc
scenes-app-settings-organization--settings-organization-cimd-verification-tokens--light:
- hash: v1.k794b7964.b2f0a75cec17a685034291c5c461951bc41592aec13809ac53fbae9a82e3ae48.fUsDrCv_J_BtMMQiSfVgjKQv4HNqAciMLkbvciG28qQ
+ hash: v1.k794b7964.c1968f9966e4f4a79ac4fcc73c1c9b3fbd0306fe2aee1ec1e62bea973b9e160a.9gRs0qtnZAktmudgBHBNM2789RW0UuGIyRieE17yz7U
scenes-app-settings-organization--settings-organization-danger-zone--dark:
- hash: v1.k794b7964.ccd3360fda55cb977cbe41b2e9d4661290c4eb13a05fbb0c572d701966020309.IZCosm0PZqV1k4k4vSInE3K8BF5qN3qBeR5DBncqTTk
+ hash: v1.k794b7964.6f64c94a922d7ca1017cea9fe208f08072b149a33769fa857eb19e0c57b0db81.CLmrW7VIp6lIEHJgJxM-UOvSp6phnoLGudXn7BQGSU0
scenes-app-settings-organization--settings-organization-danger-zone--light:
- hash: v1.k794b7964.085db228e99cf19bcd07b8bf524d50f44afa7ca799700b14d17ad71fa6a815a0.lADRjrc_-6Ki4bYbHLqjqwqHDA8WBtZA68zPPgdY1bM
+ hash: v1.k794b7964.ec8a0cdfdb2ca359ac431b9ecdcde4b10253077c1193816d2f8754f32501c2c7.oUWhWgl8T0sa5sjqOJulNyPzepG-NB7pNf29UC8k-Vw
scenes-app-settings-organization--settings-organization-details--dark:
hash: v1.k794b7964.2a394715ace756bd71b576c33b9978f7be37553244ba87530cc1b8705e279194.O75eDbI7GY6b2GM5NZ3UNTPuXQiIyJ3byBmWotKxvj8
scenes-app-settings-organization--settings-organization-details--light:
@@ -15113,75 +15113,75 @@ snapshots:
scenes-app-settings-organization--settings-organization-details-with-member-notice--light:
hash: v1.k794b7964.c167baba9508e3089ae3f67589950dffe3b87215c9a90be69716ef9ae5b1c241.B-2KlHDDXhevGdch1piUVt5eChxpRoFtqZR_oN7n4gc
scenes-app-settings-organization--settings-organization-members--dark:
- hash: v1.k794b7964.3702a23a792ff71f857932ef5c23274387e00a963ac685e91cafa79d4af91bc4.NQGitL3q-pKHkk6vaxZ7QntEoBZcPXEvQk6pyyHbUZc
+ hash: v1.k794b7964.59fbd54b1fc509d09ebe1dd12c0b35fc5c6a108bd43ea15558433efcfdca3069.eVLGy89l4vFSN0SwtUjoWF-DM2mCTg1thvM1mIGMHxo
scenes-app-settings-organization--settings-organization-members--light:
- hash: v1.k794b7964.fe89250c5e28f900ba6718c3f22fd6c80932f721f6efe0b5d1d9f018b3b956ca.urb3oFZVtoFHy9sZhYzshagV32QjUgayYe81LPdoOIA
+ hash: v1.k794b7964.3ec53106f0048ef743a65be91b9f45d3403b547426f707e780aa365b26aee164.4P5c71M_KkCAmnsfBL3CQWgEur5F_wjSNdD3usSXb94
scenes-app-settings-organization--settings-organization-proxy--dark:
- hash: v1.k794b7964.54abb5fe880c7f49863a2c38d540fe166c6293e3c221ffb3fad1a555796c945b.LmBrV5nN-SqoVRK0iaPKsjcAJITIv-hvXoGUu7XTQAI
+ hash: v1.k794b7964.7a447c4130138393d8869c27316a546046da5ab2124bb04a984b8efd00e26434.Teu3ijULDNi_LMYP--3Ock9_bPMlkoh1Y3F41yxiO5g
scenes-app-settings-organization--settings-organization-proxy--light:
- hash: v1.k794b7964.9200830cb28da6e7d0783c6d27d9d13af2e0d3a0bbf4f65f6447a135877a7e0e.RnQvMBmtCBLOnTt3_fqAoTIdRtIWbhV42sTcZ9x3ZI8
+ hash: v1.k794b7964.99af432f417db592c76c240f352d327daa69fcb5d266a6a871f02bf3f2f7570d.hHlfYjm8Q47INJrm2mRqW8LecmfGn_YpQDx7V4mXEs4
scenes-app-settings-organization--settings-organization-roles--dark:
- hash: v1.k794b7964.b6d0a713d33ce82e921ea83a534b8f272dcb18d02a3341fc19918dc13e3691e7.ET-niUYu2AWcW4pPbRQZddkjpniLXZmNHKwz2bUR-SM
+ hash: v1.k794b7964.37230f77a19956277e5e815109d12f8ccd92a284189e3f4f15c40048a4a73009.-4ftILNBYBGJnLiulGLXN4fpydwiUpcKZjL1UGkwLJA
scenes-app-settings-organization--settings-organization-roles--light:
- hash: v1.k794b7964.665b66c7584287ba8ead9bd43ac9d783e2a1aba4ff2ee05f1434b729111385db.WRs-YOMTfO_a4UMzRivS0tM2jPWM2eRnryvG6jD2wk8
+ hash: v1.k794b7964.eb6154914bacb83e89fc2341d5d942169a8349c59788d50667fc1e6350b90bf6._JNHGEvkY2UBaDRvW6F6WrcPHRuYIxROXax7DT7zWhM
scenes-app-settings-organization--settings-organization-startup-program--dark:
- hash: v1.k794b7964.7f289ac5f2bb0287b165dd172461e768aa107493e4876f172d713bd64d1ffe9c.kyBCWqVXQTTbtWEq6snhnGMMMnyCDgFaDRnenAJyR1Q
+ hash: v1.k794b7964.125683bfe67f38e8705abf402d5dc17fa355dcde157e710e6daad85fcb20c02e.tbzNEa9x9B-PU_UNEPOo_dbiVJhxDnFAwzBgH3ka36g
scenes-app-settings-organization--settings-organization-startup-program--light:
- hash: v1.k794b7964.702c344da40128c59e8afbad64b2b2baf77b92edb4356fa1328283d4d1bc60a9.TiwKch2JnnAkhxYF9llWUjr2EJ9jeEtLHQh0mgrHNSc
+ hash: v1.k794b7964.a7050dc508b37c55eba7ba4cb783a4567e0fff3cab6924ce3ca79ebb07664e79.moDmbGJ1e6J9sEvpXxnMKAsIi8rTMxsH9b_IWAaWCWE
scenes-app-settings-project--settings-project-access-control--dark:
- hash: v1.k794b7964.3b1a2701249fda14cefc20536c9f3f5b04775e4768bb5cb7b896b34f0bb1c53d.-ioJ_fxIpth-T9rEzWPLK7dple-5Xkum5U26bdMBpnE
+ hash: v1.k794b7964.7554b77bd6b1d3fdc411385eff866e2fb0e442e33459268f37d116561aaa50c0.tNvJl7_UinwSpilEuRCVIkSFxqIAQY4x5_6QfXAm0hM
scenes-app-settings-project--settings-project-access-control--light:
- hash: v1.k794b7964.f3a3d95463b44e206c1044d4e0115fe93667d9c10f411ef485df41c522edd294.296h2ZD4NeYR1XF1IEGHg-dAca0HdYezAcDErU39eIM
+ hash: v1.k794b7964.65e63abe0d995446fd5df5ccc83ceaacbbd470ce441573d005a8a74974364233.g7LKgspQomqror0-jQyLW8tyvu_z9liN-qWkiMZZ7ZE
scenes-app-settings-project--settings-project-autocapture--dark:
- hash: v1.k794b7964.c782025d3e166ffa59fbdedc4dd8bed4c70f79e1e200a9eb517d698056290c35.xNcOxRvpt25a7t6RG9MvM-uL-BwxrMrqWsNKoisipD8
+ hash: v1.k794b7964.61718ccfe7dabd861074bd1e9f0c0d44f9e9d34e14d479e73dff1424677b3d7a.hngh95f7AvXHFS3L4R-F-2KP0ii-MQYJ79U-4PhgvjY
scenes-app-settings-project--settings-project-autocapture--light:
- hash: v1.k794b7964.49c898ef4846589e3d6ad1425769953f59683ead6194e12f4cc7686eed47dfbf.IVt6KRNxxhx0sPjmvtM727zulmaaNCF0TywtrSugnpc
+ hash: v1.k794b7964.43e1ac49d53e4a7cd9e5bba06aa31b4555b7f3e10a07a5f52267dad5bbbec620.0VLWAy1Aw7iw_zxgE9rUn1Z_2HSPBDieLouE-io7ebo
scenes-app-settings-project--settings-project-customization--dark:
- hash: v1.k794b7964.be0bee8d0c9b9cde01e8c84d26c968b1a3a73f1daab7fcb1bf59e279e76e52ff._ijym-h3JBCkD9lY_fDXGL-a0AaEvof28NuiHeaHo-0
+ hash: v1.k794b7964.868400b8cf58b5ed3d8b9909da7e5ed44d0a4207b7491fb4d9d3a701509a06e2.M5fpwv39LahAoTBvtZc9WNavWVmbLylJ2NYiZq-A6xo
scenes-app-settings-project--settings-project-customization--light:
- hash: v1.k794b7964.bc9d6b9357797f4e31793b72347fa99bb82311e8b478d7b755095834fd9ae5ed.cdfvFDGTsulAySN4RPxTtAU4CzlKUlps6lKvgKmUTqM
+ hash: v1.k794b7964.faa041a7b5d472db94614ae75dd953ef6bdecda5889aa128a68e40f5cd8b6341.wsNn13OvcA6KwLQu3yOC6w_x7CuTRlXmCe713PeURBU
scenes-app-settings-project--settings-project-danger-zone--dark:
- hash: v1.k794b7964.50b22c572c7cb5f542900de9d60d5b1524be7c0087fa45e439ef9a1b920ddb8a.F34aW_MO5u9SwCivXSrG1MgLv6KwU0LFM0JnrDlFjms
+ hash: v1.k794b7964.3078d83624c938b1fbff0c794364ae0bacfad1119c6ba8a16d6eb948e5c7d915.EyXOL9lXJSUIUrtaVyya2zhjobrFZHo7GLnyhamq2-g
scenes-app-settings-project--settings-project-danger-zone--light:
- hash: v1.k794b7964.139c7e66330e547058a1c64dbcab85b8849c60a8ecef92823e600369216c7c30.0JE2ROCYs2rEkHgVJ9gDD1qQebHXqF_nwBmS66Xe1os
+ hash: v1.k794b7964.99f3cd6b4c87943f77982093ed07c7fe0056d6a7878f74c5bd1037fb57ea15c5.kctQgISAV0d33qRTS3sEUDZaocZl6TMJd-Ii6mTFXH4
scenes-app-settings-project--settings-project-details--dark:
- hash: v1.k794b7964.24881e37cbb08176dbe57595e396fe32fc4021a8443e71978854ca80452ed535.WCdGX2oXWX_a4Wdr2eFUC_E71Oc09Sxc3HW6GPOAlLM
+ hash: v1.k794b7964.ef516e8e3d3dce0990a932818a6b336296c55e1286631be55bcd56317f1933cf.TTrWoPP7f1Xgh1P6tUM5IkzeAMEmXQoAwbi2T7Y58mY
scenes-app-settings-project--settings-project-details--light:
- hash: v1.k794b7964.dbfa1851be9b9f45b38d566b5f4c527c3ca6511c341c20e4c85aed36f9d31b34.a8sI2y1DTMUUtIiG4xIJLBkddAGgFPnEJsQhDncMY_w
+ hash: v1.k794b7964.12ba33a1d3982fecf277dc6ac984e280bf54b694e04c535e71b2550037ebc43b.5qRQ77slU-1PztTAnTMpOwZgoyZJGVt84yVff-52zF8
scenes-app-settings-project--settings-project-integrations--dark:
- hash: v1.k794b7964.8484a0bbba6aa377a653cc15fbd239ec0619b7ec33ed93a6a3e2e8774be597cd.A-JZy9ip0RW3SgvL4go3QCGy8B_nS-qDAqPFNZ91FHY
+ hash: v1.k794b7964.565d5f83c001599955d25d0e128746a1918084c02f6c29a91256f4a90be3c5de.9Ebe6Z2Wfi7DaIzVu-VBnAaLYiFFpKGwZzI2W38N2rc
scenes-app-settings-project--settings-project-integrations--light:
- hash: v1.k794b7964.98146ce80a066574a5ea83c147e21f09fdeeb7e71ee0db415d8a845829cfaa94.kkMfkl4dzHnJSwuHHkVz9qivYiWkwLE9Tj2yMHvfMIk
+ hash: v1.k794b7964.ab7a3ae6cbe4ddb335253ece6e80470bc283eb4ed71ee56aaf2b8c667b18c239.FogOof88si9iasUVVEfJIE_wXQdI_qFSz6ivc2Z2WFI
scenes-app-settings-project--settings-project-logs--dark:
- hash: v1.k794b7964.693610357c1b3bd152b22170ece448169918c36a73d7adaae1ca277ee163da3a.gu6UNk23HDx8ll-NlHjUIZR0F2g9KxwfXRRGG-_JmQQ
+ hash: v1.k794b7964.be5f3a70914a2b8e981be709c7c47d09546edf6e9b7396be2dd14c8edac85a7a.TInYc4-kuVKTgdEqYZQyYlIwNHR6taRwYn1274wz_FA
scenes-app-settings-project--settings-project-logs--light:
- hash: v1.k794b7964.6eadc2a950fe670406ae8ce06f7c092dc53bf5a2490f2b49bf2df320a8a3014d.790D99oEjg59Zjsq1ELGPGQfJMUbFPmaCWw2yd5WQq0
+ hash: v1.k794b7964.ec6a14dc01c96dd77acb7d4782715c024f40f9fbb556546afa7895929eb87afb.gqvjnyneVaHELMa2JCNNUBtV4CjsIkyKvJTG4Tzk8pM
scenes-app-settings-project--settings-project-logs-json-parsing--dark:
- hash: v1.k794b7964.61d5bca72b4d3d0a067d6d59bf1d0ec29c53898d7dad7d67273078b7cfc2c306.MI71MDotjjBE9th1xud-3aG3NA414iB_t-Ow0Uy1hes
+ hash: v1.k794b7964.96b60f05851fd873268568904b0edac65e42b8dbf7b3914bedbcf05e6dc20462.BaLN9ca4gtHOLa8MGa8_9suczpI2_ijpha8USy-8qW0
scenes-app-settings-project--settings-project-logs-json-parsing--light:
- hash: v1.k794b7964.6daa7b17ab20b01915196c4076281172558bf997ff672c5511d75eccf8fa3bec.l-pNcjMndL4frSrqyWcbjfNfoDGoRGsf8hdaxl2e0vs
+ hash: v1.k794b7964.9a7ca15a76bae18985351de38664487b5bee621764cb8e1082eacdb2b63098db.33xd3cHUVKUqiBLdvBWkn-ImNvd_UIs_GJ4ycZQQ3M4
scenes-app-settings-project--settings-project-logs-json-parsing-flag-off--dark:
- hash: v1.k794b7964.8d65d556611a1e713f0699c420212036f2e6c8341d87fa58a737e101b46db8ec.DqwjwsRcPqnl50hjF11IdEkioBAPd5hi0w3mpIvJC7k
+ hash: v1.k794b7964.e549a25312299300447048a3fb8d006c4a1f0ac369c479695491a97c80813037.rDHIWMxlwRe1DUknydtoLM-Unf__3_rISkgyRw5TtQU
scenes-app-settings-project--settings-project-logs-json-parsing-flag-off--light:
- hash: v1.k794b7964.3a52c5962e872eee625e5bc5d5d6ab821ece37644058a9d7ef71aff222984eaf.6fO610p5IJjbPQeZE1BfnZWL_Zs9MdwDHMp1JtLscU0
+ hash: v1.k794b7964.76d3897555db719026db766bb9b043ec595cdec60e17609df2a202ef07ee38d2.lg1o1EPujRF_don9ACZFUY2bkjj6e6Z2pKUHiLD_T1Y
scenes-app-settings-project--settings-project-logs-json-parsing-read-only--dark:
- hash: v1.k794b7964.be3f9d9c97911cc6222a040f9df0411a3fcafc0e0ee159556a5a3eec643d2d67.kaaBBwFibJYn-GitqtZG_GcTb5u3U59JTCtRN8Mtalg
+ hash: v1.k794b7964.c05c7aa56c9181303da5e13385ec0b45e9130dfe7241b681479416edaef2de8b.ukrH2M-2AA1_INiZY6kxiJyvibjGcfK-gbFDOgWna5A
scenes-app-settings-project--settings-project-logs-json-parsing-read-only--light:
- hash: v1.k794b7964.6c1c6bfc7984af7b666061b26bdddd5999c9f99987686becd280816e5dbf1686._8bRARGAdptHsHPNQx-x_W667S7I0yhVTAcxuBbeJJk
+ hash: v1.k794b7964.73664384f751ebb238ebfe5610a08863a5dbef4101674b3e5e2c411bdeb382c1.tczWw9PuQzaHKD1eTfw9zpnJPvCLKldp6vmqch6SUxw
scenes-app-settings-project--settings-project-logs-read-only--dark:
- hash: v1.k794b7964.f699e32054bb4571a2b93c28f6bb50bc5d91bb5081e8991237ce70936b391dd3.zZqvrzekvCrGhDh4374JZl3I-S7doWk1QMXkP4CyKlU
+ hash: v1.k794b7964.41027a77b0e1380fbbab88dafec5c232d56e560abe41bc09d2542d46212f5b13.MuI5ocT8y7NmTtl7F_x9XPsa-sQ7UiXy1ITqnQ7z3mw
scenes-app-settings-project--settings-project-logs-read-only--light:
- hash: v1.k794b7964.07c47c5849ffeef0868ab904418e6d4cb6c41490136d53ca0458395dda0e9674.vYf5wT4WzirB6yaYFEu9CT2nKYHuiYgIrj4OxastMZ4
+ hash: v1.k794b7964.e234f3e555bcb083ca96f00005f91ccccf94941d371c71497162169077ec1022.jNkdKOK2KaEq2T2jksEoVtN5Nupa3FuJLTe-npm0RIM
scenes-app-settings-project--settings-project-product-analytics--dark:
- hash: v1.k794b7964.d9d0888da7413fe42e1a23f872f614ab6c16f3e23b78c2cca1e4a1a2683fa5fd.IizzLyZ3SllPpT4wF0BiyWsjglx9U8JUN3vDLoXBiTs
+ hash: v1.k794b7964.55a2942fe5990ba6522fc4a1247be7e2025c8b2cff730931763f75d082ca479c.h271dk04z5sJeX_KS51-X6r--1aWgtaKibQoWKZyWho
scenes-app-settings-project--settings-project-product-analytics--light:
- hash: v1.k794b7964.44400b29a255b8243b0c521cef271faf9cb85381a00dab4ea5fd002b8a959c82.gnoevFVb9fGADjL7vwfocOmC4yz_bc1Rc7Vzd17_5uc
+ hash: v1.k794b7964.b3e77f33f6e21c42bb1a621cfd531d2c951cd253728dd3655ac9c14b4805ed09.ubyz0IIOOPANbWUssQENGtPOIJB71tchxVw8FqgGIuw
scenes-app-settings-project--settings-project-replay--dark:
- hash: v1.k794b7964.46e71f8f768b229cb464190c47f3eb987022aaf0447d61d6a1e9ad4bf6b7a7b2.3slvFilCrdixoTarNjtZSKA4mZE-NJbNMX7YRs1rGOE
+ hash: v1.k794b7964.75a2bd5b932d561b14f51c304c6ffaa20099c8231d70e98a66c42b3db1944c5c.hFKhHnq_0DJCTSK279p74iDSdix-fCrR2AhDTM19ft8
scenes-app-settings-project--settings-project-replay--light:
- hash: v1.k794b7964.c2d19996dd7bf22058247cdef9493bda2c8a9bc755507291562f73c9789c9243.ppNqL-PEGujNRhdULXnTZzUE3F3MFlgE9BGZ3ktGtfM
+ hash: v1.k794b7964.51f08571502e054c21c557f266a3b7005965c1e8e233f41b3abaad56a285476c.kZgUWLd2dXULorCjJSV8zuuRyXMrWlBTAXcp5nuRBZU
scenes-app-settings-project--settings-project-surveys--dark:
- hash: v1.k794b7964.bc125ee627485f8b38fc9a29699d0812e5ed5e280920510dda36850922fe5a1b.WbAfWz_IcS4ElTZxEpFPp29qOaGbRO5wGB-flS13FlQ
+ hash: v1.k794b7964.d30cef45b69061eee25babe22fcbc6f8612c2e8219415c9c0174f53dbb8cd5cb.s1erFBLT78LEAiCJ_zgyF9xjWiEaCGGPq7aJaV9yhGM
scenes-app-settings-project--settings-project-surveys--light:
hash: v1.k794b7964.ad03ddefeeae6a8660e7644d1bf3020ce50945c84981432456b5ec08a55b2900.nFmLJ5mG6jkRe2oaLYt-94yrAyO1oVjFiAhYwGqVJVw
scenes-app-settings-settingsectionunavailable--admin-only--dark:
@@ -15193,9 +15193,9 @@ snapshots:
scenes-app-settings-settingsectionunavailable--not-enabled--light:
hash: v1.k794b7964.06e88a65c54124deb1ddd8236f4473695e5a87d5360ae5ab266779e9fc118f0b.m-LRG6zgQ_Ci4Y8_7H8N1OSIa2-GAzu9ZogXu0IDCdk
scenes-app-settings-user--settings-user-api-keys--dark:
- hash: v1.k794b7964.f9f332af2baa376223fe5b7875e803c28faf8de2e137d1d6b7d3a8ef60e12b31.bN1I8GZnrDnxX3zKi_i33CjuElXBVwUReXIYqIo9_nM
+ hash: v1.k794b7964.5241b6416c0c11cef3dd3d0ae99e53e72e85a658f18ccb4e68b271e80cddbf31.vtpbFjww5iF-T5MTJ67BOcarKFP_MPgnO6tWp5WtOd8
scenes-app-settings-user--settings-user-api-keys--light:
- hash: v1.k794b7964.c56cd95732f9e4355cc2b62b37ae9c36394637d232ea0d75cfaa63ede57205f5.ZgEv-Uxm9273XkhrJDzf9Cj_DESxhuf6OO_1o_fTd4k
+ hash: v1.k794b7964.0a013e036d1c6385e65590f11d5dda485b99e781ccd6ad738d91a9d16d8b56d9.nwvHTnPrUYt966E8SJP27RVM2Na9L2cgyX_yWwZnaIw
scenes-app-settings-user--settings-user-api-keys-create-modal--dark:
hash: v1.k794b7964.d68355857ceb67b500d63f93828eccda3be3b77c07e69be6320dc3943ae94fc1.OcuYkwdoiVWiZ_POzAQAu4-xxPxIuVMj7dsL7_G6jCQ
scenes-app-settings-user--settings-user-api-keys-create-modal--light:
@@ -15209,19 +15209,19 @@ snapshots:
scenes-app-settings-user--settings-user-backup-codes-modal-generated--light:
hash: v1.k794b7964.9c51bd1bd794659c4b6fdf9a5612dbf375e08f30375778c77cd79caff47c5aa7.s_2QKaTg7Wc2fBiUbAXjD4TG43A37T9Bpbrj3XFCN_Q
scenes-app-settings-user--settings-user-customization--dark:
- hash: v1.k794b7964.3881305558c92b6fb43c0130eec972934330069157aa88730e02ce334d019378.bVrF1N8-VPVFjiFKta4MaUn6NOyFm2Bon8Gh0HpgRfY
+ hash: v1.k794b7964.5743c52d7fadd21bf31be7114afc2d7da3fff81288a5b9a362c1b763d3de35ed.47s1n1sjFApOcdPAVSY5UwcRXxyRKkmLGuIrm-uixzY
scenes-app-settings-user--settings-user-customization--light:
hash: v1.k794b7964.7dd3a0e1ed8d43adc48d896e39767f217cdde8c6de106730b2a584cae5c8f360.uhLhBiVfiGwjx6-Wj3O0ni5l7jVsSbdYOFeOGeoccJ8
scenes-app-settings-user--settings-user-danger-zone--dark:
- hash: v1.k794b7964.199bdfbeb1306a1136590674838b1ace855bdf727ed269fb303d6c9c3c8c13d3.ahpMr0R7FDPjv2mclgIztiqNOOUN5LcmTtFceGyAFRw
+ hash: v1.k794b7964.9b19421f97914940bbab1117ecb5124a77cb377f83ca8b047e05bfa2753b534f.hFkY05bHn1hbboeS-M0yZ5BBVvSqrEviyY6vIvK93Xk
scenes-app-settings-user--settings-user-danger-zone--light:
- hash: v1.k794b7964.aa21e966bebeddda6d5e572e2fbdd55c3700d74dccd9afca5124b099324dd6d7.27weAmO2tDo7xcy2EBk7B6i0Y5v4Z18ab5CQ1hKKHys
+ hash: v1.k794b7964.b411e00d7bd019d0dca7ce92d334b960fd71630c8077e4d51d6c6c780173b452.7PWtlTHE6qmfKYsocHQaNTlH3Gvp2XGh_xgkTlkq-80
scenes-app-settings-user--settings-user-notifications--dark:
- hash: v1.k794b7964.7ff881d5b3744cbe47fb402143301668b5fb624da10619a6b4c47eedf8c548b9.s75CAbF-SofJ_Af38F2iWb2VNc6XC73HtkIywqwqqHU
+ hash: v1.k794b7964.1b8380e9d2718a1ea625eb62c6b64374fecd64be88433ab4b94c71e957769594.VI5f0t3AITiZlCYSJCpkgcUqnHTjAx4xilwPhl2RiAs
scenes-app-settings-user--settings-user-notifications--light:
- hash: v1.k794b7964.feb24cb91db6c323d5a8c9345968902be65a5cb6402b1882f655bac4e686632a.R-oUf-04-vBEEfIfdQlD641zJ23aBwDb2k12ETd-HV4
+ hash: v1.k794b7964.d1b857d5ecc039331fc326a325c4af53d6f633822b67eeb21de12cb5d9c9b427.sVZEU1b2uglcDzToamZMcXA8hWaS3vTrxdRAFXs2clM
scenes-app-settings-user--settings-user-profile--dark:
- hash: v1.k794b7964.e6aaa0fcadda4d366236c5c09d88fbcd6c5265ece7e0c24ec20227fbf42255cd.N5Vql8vhkVuOvXkNPT7nBCKGz-87ty2a-cu9Vwrfdqw
+ hash: v1.k794b7964.2532a8c11857d269cc4034cf23c0ac4e4a49bb6e37c7c2b150bb6ea3d86dca60.sI06ITPGLCD6tW7ymcSaZ_QSodiTl-jb_EU6hSypCQU
scenes-app-settings-user--settings-user-profile--light:
hash: v1.k794b7964.91946c86b8e4cb640cd3a82687c92324278855930f40c551f14ab045ad0b780c.Y_Y7zOjlLL4stXGNSOKPHPExzkbxp9yjV8yfCaW2Kvs
scenes-app-settings-user--settings-user-profile-hedgehog-avatar--dark:
@@ -15229,13 +15229,13 @@ snapshots:
scenes-app-settings-user--settings-user-profile-hedgehog-avatar--light:
hash: v1.k794b7964.c131b27e4589355965f4a8d1a46a7ac0f9a78bf2a59104223281afcedd2adfe4.QY_Lbs1rIAmTLGvrldGAiKO6dVoM4qnStyYhA_MvTP0
scenes-app-settings-user--settings-user-profile-stale-session--dark:
- hash: v1.k794b7964.e6aaa0fcadda4d366236c5c09d88fbcd6c5265ece7e0c24ec20227fbf42255cd.oc0ldQTQltzYUPU9g-pociXy3HRQcWdKhbPTPMLVWic
+ hash: v1.k794b7964.2532a8c11857d269cc4034cf23c0ac4e4a49bb6e37c7c2b150bb6ea3d86dca60.T0Q5ov9Y8PVJtC4P_AOBhfdFZaZ3KxHQnV4wi8eQik0
scenes-app-settings-user--settings-user-profile-stale-session--light:
hash: v1.k794b7964.91946c86b8e4cb640cd3a82687c92324278855930f40c551f14ab045ad0b780c.dn7lHcgLzLr1_dQ8vRiZTtiXqexBXXR3q4USce-jklQ
scenes-app-settings-user--settings-user-reminders-modal--dark:
- hash: v1.k794b7964.0bb2f9159b990abdb332dbc8c9741c500a0f2df29a8f9afeed6c7bdc454109a8.ymDoJoTSy1YpWEzXG2jmpT7Ur9-7c7fqou5F2qgGc18
+ hash: v1.k794b7964.359a67bc113200983635be29a6d3b4b75c0123ecf0da395605c3471627267b48.NprrbIQ_UsWNDcngWmjKbWwmFkPUQzN9vVHrpgZZNJk
scenes-app-settings-user--settings-user-reminders-modal--light:
- hash: v1.k794b7964.c380a3a96ed2ad37cc6034993b714bb928f90324e0b5ca719be7577beb5a1aa7.BS9c-d0xxlqhEujX62hbuX4cWwwNVde5IlrlKxn6V-A
+ hash: v1.k794b7964.3d8bf44ad4f4a5a4114d9402ea392a146796a3af79cfe2b709b4c9f4de1c3b5d.c-shqEOnK1NDc86TFAO42Ke628PoHkBP3303jopzJAM
scenes-app-sidepanels--side-panel-access-control--dark:
hash: v1.k794b7964.d260eec9f61fba1a7a085c209102199c9cf9049328b1c1c3c29fbca33fcc1f07.ty8VuRHijfClENMg0QtYDAXkdtuXe5OZFWB2ftwDhKw
scenes-app-sidepanels--side-panel-access-control--light:
@@ -16353,17 +16353,17 @@ snapshots:
scenes-other-onboarding-welcome--product-needs-setup--light:
hash: v1.k794b7964.bf819b1764e1984a9a6524819eb4a91f0849e928812fea0bbc709a2d0a554503.T7RXaktaCJTdvW36dpgd8ckZXDl37fbbiktBeT6zt8w
scenes-other-org-member-invites--current-user-is-admin--dark:
- hash: v1.k794b7964.d615a6a86b8ee4b0b6d8a9a53e60c31d160def88fa9d1c9f6f38297fd3db29c9.TpUXfUFjMmXs3_sBuN8Cq1WKXBEre3YcdAyK9xJ_xLk
+ hash: v1.k794b7964.fd8ea50dc9758ae44a3c01a008ac1accf9576fcf93be6a57864b7d1d8f1de9ce.eBpa2pJoPITTTTiORPAYBsw4zVEblBZsDHAbtJU56IU
scenes-other-org-member-invites--current-user-is-admin--light:
- hash: v1.k794b7964.2be77fb602e8f9f1a9ae53872746668fc56299274566f153143b906d642a92eb.Nq87UiCedFCGznfL1nDpPIrybZO66QgXR07W9hvgTpw
+ hash: v1.k794b7964.78950b146e3dc119ecd15b8e6f047345f19578c6d86ccc28a988e8e531709294.8m_tuS0LEumEz_9Mvs5YRfukuyiQFISHoZsYxwEAPiw
scenes-other-org-member-invites--current-user-is-member--dark:
- hash: v1.k794b7964.90e568f96e10aeda6b06b39c01e2f324c5ed130dee0fb5706603301589a156d1.oc-mQ9663TpHPtinGiNxB_MOL0MFHsoFlRfi22ZmNqI
+ hash: v1.k794b7964.b600b6290ced30c3ed1e5d591688a4dee7ac0e9aaf91fdee80ea5501d4fe8ac1.dfOpSWbK1dbxSY3l-_d9k2CVViSKqXAYnn82yGaJzQA
scenes-other-org-member-invites--current-user-is-member--light:
- hash: v1.k794b7964.2062db053137db2859e63d76a0ba187a3698f7bb06e3030a02fcd8cafaf0f823.qdMGvp1wLsy7L5qKUApce--YbuBUdxdQC4R-1mVYdes
+ hash: v1.k794b7964.bb96b5a0c2d5c5dd8b96a5232bd1f58b747a7a7cff7f60f76c0bd3427f56a794.LibdGsr_xMLTKdQA8mEdFbsaz5tmVJGUommiIshcVJw
scenes-other-org-member-invites--current-user-is-owner--dark:
- hash: v1.k794b7964.d615a6a86b8ee4b0b6d8a9a53e60c31d160def88fa9d1c9f6f38297fd3db29c9.yA0wZjcyCGHZtKoOLoL9B3-hWYd_rtdG-WFzkboF8bs
+ hash: v1.k794b7964.fd8ea50dc9758ae44a3c01a008ac1accf9576fcf93be6a57864b7d1d8f1de9ce.ywJUn6zKfWtknEmNFZfwUZU0LD9P6euJ4g1FJkEIokc
scenes-other-org-member-invites--current-user-is-owner--light:
- hash: v1.k794b7964.2be77fb602e8f9f1a9ae53872746668fc56299274566f153143b906d642a92eb.N3r4_sD-pnJxYqNdHsL3t7-mJ7jy3BmUD5rtxuxhewE
+ hash: v1.k794b7964.78950b146e3dc119ecd15b8e6f047345f19578c6d86ccc28a988e8e531709294.6wZwp-Kq32mGLlYZx1Fw78MlcGDdR59I23KmAmXRTJA
scenes-other-organization-deactivated--deactivated--dark:
hash: v1.k794b7964.c97f1ed943259f5567c27813c96bbb0566aca0adbf84459ee7d56b2ebea36b57.SgcQHuoYp4dLjnk797pwVsGonoLU6rH2XdLf0lrzefk
scenes-other-organization-deactivated--deactivated--light:
diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsx
index 0c89594fa451..ec1984a0f81f 100644
--- a/frontend/src/scenes/settings/SettingsMap.tsx
+++ b/frontend/src/scenes/settings/SettingsMap.tsx
@@ -53,6 +53,7 @@ import {
import { AccessControlLevel, AccessControlResourceType, AvailableFeature, Realm } from '~/types'
import { DevModeSetting } from 'products/ai_gateway/frontend/components/DevModeSetting'
+import { DevModeTeamUsage } from 'products/ai_gateway/frontend/components/DevModeTeamUsage'
import { GithubReposSetting } from 'products/business_knowledge/frontend/scenes/settings/GithubReposSetting'
import { LearnFromSupportSetting } from 'products/business_knowledge/frontend/scenes/settings/LearnFromSupportSetting'
import { AISection } from 'products/conversations/frontend/scenes/settings/AISection'
@@ -705,6 +706,22 @@ export const SETTINGS_MAP: SettingSection[] = [
},
],
},
+ {
+ level: 'environment',
+ id: 'environment-ai-gateway-dev-mode',
+ title: 'AI gateway developer mode',
+ group: 'Products',
+ settings: [
+ {
+ id: 'ai-gateway-dev-mode-team-usage',
+ title: 'Team usage',
+ description: 'Developer mode minting, spend, and activity per user over the last 30 days.',
+ component: <DevModeTeamUsage />,
+ staffOnly: true,
+ keywords: ['ai gateway', 'llm gateway', 'developer mode', 'phe_', 'spend', 'audit'],
+ },
+ ],
+ },
{
level: 'environment',
id: 'environment-csp-reporting',
diff --git a/frontend/src/scenes/settings/types.ts b/frontend/src/scenes/settings/types.ts
index 81cb1b1fe73a..65b7f8637717 100644
--- a/frontend/src/scenes/settings/types.ts
+++ b/frontend/src/scenes/settings/types.ts
@@ -35,6 +35,7 @@ export type SettingSectionId =
| 'environment-details'
| 'environment-access-control'
| 'environment-activity-logs'
+ | 'environment-ai-gateway-dev-mode'
| 'environment-ai-observability'
| 'environment-approvals'
| 'environment-autocapture'
@@ -139,6 +140,7 @@ export type SettingId =
| 'channel-type'
| 'connected-apps'
| 'ai-gateway-dev-mode'
+ | 'ai-gateway-dev-mode-team-usage'
| 'conversations-ai'
| 'conversations-channels'
| 'conversations-general'
diff --git a/hogli.yaml b/hogli.yaml
index 981c9f0d0afc..b88866169bf6 100644
--- a/hogli.yaml
+++ b/hogli.yaml
@@ -922,6 +922,9 @@ auth:
gateway:token:
click: hogli_commands.gateway:gateway_token
description: Get a short-lived AI gateway token for PostHog staff, approved in your browser
+ gateway:status:
+ click: hogli_commands.gateway:gateway_status
+ description: Show how much budget a developer mode token has left (reads the token from stdin or env)
tools:
metabase:databases:
click: hogli_commands.metabase:metabase_databases
diff --git a/posthog/clickhouse/query_tagging.py b/posthog/clickhouse/query_tagging.py
index bf1432236164..1127e8aa889a 100644
--- a/posthog/clickhouse/query_tagging.py
+++ b/posthog/clickhouse/query_tagging.py
@@ -150,6 +150,7 @@ class Feature(StrEnum):
# A 30 day aggregate that runs on every AI observability dashboard mount and trace view, so its
# load is worth attributing separately from the tab queries it sits alongside.
INSTRUMENTATION_CHECKLIST = "instrumentation_checklist"
+ AI_GATEWAY_DEV_USAGE = "ai_gateway_dev_usage"
class FallbackTags(TypedDict):
diff --git a/products/ai_gateway/backend/facade/api.py b/products/ai_gateway/backend/facade/api.py
index ee53124a1d5a..b6a7cb61de89 100644
--- a/products/ai_gateway/backend/facade/api.py
+++ b/products/ai_gateway/backend/facade/api.py
@@ -27,6 +27,14 @@ def dev_token_usage(user: User) -> contracts.DevTokenUsage:
return logic.usage(user)
+def dev_team_usage(user: User) -> contracts.DevTeamUsage:
+ return logic.team_usage(user)
+
+
+def dev_token_status(token: str) -> contracts.DevToken:
+ return logic.token_status(token)
+
+
def revoke_dev_tokens(user: User, token_id: str | None) -> int:
return logic.revoke(user, token_id)
diff --git a/products/ai_gateway/backend/facade/contracts.py b/products/ai_gateway/backend/facade/contracts.py
index 89f2b4362a47..8861532bfc1b 100644
--- a/products/ai_gateway/backend/facade/contracts.py
+++ b/products/ai_gateway/backend/facade/contracts.py
@@ -23,6 +23,8 @@ class DevToken:
expires_at: datetime | None
revoked_at: datetime | None
status: DevTokenStatus
+ # None when the token is not live or the gateway did not answer.
+ remaining_usd: Decimal | None = None
@dataclass(frozen=True)
@@ -44,6 +46,39 @@ class DevTokenUsage:
tokens: list[DevToken]
+@dataclass(frozen=True)
+class DevUserUsage:
+ user_id: int | None
+ email: str | None
+ distinct_id: str
+ tokens_minted_24h: int
+ tokens_minted_30d: int
+ live_tokens: int
+ revoked_30d: int
+ reserved_usd_24h: Decimal
+ spend_usd_24h: Decimal
+ spend_usd_7d: Decimal
+ spend_usd_30d: Decimal
+ last_minted_at: datetime | None
+
+
+@dataclass(frozen=True)
+class DevTokenActivity:
+ at: datetime
+ activity: str
+ actor_email: str | None
+ owner_email: str | None
+ client: DevTokenClient | None
+ cap_usd: Decimal | None
+
+
+@dataclass(frozen=True)
+class DevTeamUsage:
+ paying_team_id: int
+ users: list[DevUserUsage]
+ activity: list[DevTokenActivity]
+
+
class DevTokenRefused(Exception):
"""A mint, exchange or revoke the caller cannot have. `code` is stable for clients."""
diff --git a/products/ai_gateway/backend/logic.py b/products/ai_gateway/backend/logic.py
index e648331c7814..06dae3cbc398 100644
--- a/products/ai_gateway/backend/logic.py
+++ b/products/ai_gateway/backend/logic.py
@@ -23,13 +23,27 @@ import requests
import structlog
from urllib3.exceptions import NewConnectionError
-from posthog.models.activity_logging.activity_log import Change, Detail, log_activity
+from posthog.hogql import ast
+from posthog.hogql.query import execute_hogql_query
+
+from posthog.clickhouse.query_tagging import Feature, Product, tags_context
+from posthog.dataclasses import frozen
+from posthog.models.activity_logging.activity_log import ActivityLog, Change, Detail, log_activity
+from posthog.models.organization import OrganizationMembership
from posthog.models.scoping import team_scope
from posthog.models.team import Team
from posthog.models.user import User
from posthog.redis import get_client
-from .facade.contracts import DevToken, DevTokenRefused, DevTokenUsage, MintedDevToken
+from .facade.contracts import (
+ DevTeamUsage,
+ DevToken,
+ DevTokenActivity,
+ DevTokenRefused,
+ DevTokenUsage,
+ DevUserUsage,
+ MintedDevToken,
+)
from .facade.enums import DevTokenClient, DevTokenStatus
from .models import DevGatewayToken
@@ -85,7 +99,7 @@ def _used_usd(user_id: int) -> Decimal:
return used or Decimal("0")
-def _to_dto(row: DevGatewayToken) -> DevToken:
+def _to_dto(row: DevGatewayToken, remaining: dict[str, Decimal] | None = None) -> DevToken:
return DevToken(
id=row.id,
client=DevTokenClient(row.client),
@@ -100,6 +114,7 @@ def _to_dto(row: DevGatewayToken) -> DevToken:
if row.expires_at and row.expires_at <= timezone.now()
else DevTokenStatus.LIVE
),
+ remaining_usd=(remaining or {}).get(row.token_hash or ""),
)
@@ -232,13 +247,38 @@ def mint(user: User, client: DevTokenClient) -> MintedDevToken:
)
+def _remaining_by_hash(hashes: list[str]) -> dict[str, Decimal]:
+ """Best effort: the settings table still renders without remaining amounts."""
+ if not hashes:
+ return {}
+ try:
+ response = _gateway_post("/v1/tokens/status", {"token_hashes": hashes})
+ except requests.RequestException:
+ logger.warning("ai_gateway_dev_status_unreachable", exc_info=True)
+ return {}
+ if response.status_code != 200:
+ logger.warning("ai_gateway_dev_status_refused", status=response.status_code)
+ return {}
+ try:
+ return {item["token_hash"]: Decimal(item["remaining_usd"]) for item in response.json()["tokens"]}
+ except (ValueError, KeyError, TypeError, ArithmeticError):
+ logger.warning("ai_gateway_dev_status_unreadable")
+ return {}
+
+
def usage(user: User) -> DevTokenUsage:
with team_scope(settings.DEV_GATEWAY_TEAM_ID):
# Every token that counts against the daily limit, including revoked and expired ones.
recent = DevGatewayToken.objects.filter(
user_id=user.pk, token_hash__isnull=False, created_at__gte=_window_start()
).order_by("-created_at")
- tokens = [_to_dto(row) for row in recent]
+ live_hashes = [
+ row.token_hash
+ for row in recent
+ if row.token_hash and not row.revoked_at and row.expires_at and row.expires_at > timezone.now()
+ ]
+ remaining = _remaining_by_hash(live_hashes)
+ tokens = [_to_dto(row, remaining) for row in recent]
used = _used_usd(user.pk)
return DevTokenUsage(
daily_cap_usd=daily_cap_usd(),
@@ -249,6 +289,156 @@ def usage(user: User) -> DevTokenUsage:
)
+def token_status(token: str) -> DevToken:
+ """Holding the bearer is the credential, so this reveals only what its holder can already spend."""
+ if not configured():
+ raise DevTokenRefused("unconfigured", "Developer mode is not configured on this instance.", 503)
+ token_hash = hashlib.sha256(token.encode()).hexdigest()
+ with team_scope(settings.DEV_GATEWAY_TEAM_ID):
+ row = DevGatewayToken.objects.filter(token_hash=token_hash).first()
+ if row is None:
+ raise DevTokenRefused("not_found", "token is not a developer mode token", 404)
+ live = not row.revoked_at and row.expires_at is not None and row.expires_at > timezone.now()
+ return _to_dto(row, _remaining_by_hash([token_hash]) if live else None)
+
+
+TEAM_USAGE_DAYS = 30
+TEAM_ACTIVITY_LIMIT = 1000
+
+# `$ai_product_source = 'pinned'` keeps out calls that only set an X-PostHog-Product header.
+_SPEND_QUERY = """
+SELECT
+ properties.$ai_user AS ai_user,
+ sumIf(toFloat(properties.$ai_total_cost_usd), timestamp > now() - INTERVAL 1 DAY),
+ sumIf(toFloat(properties.$ai_total_cost_usd), timestamp > now() - INTERVAL 7 DAY),
+ sum(toFloat(properties.$ai_total_cost_usd))
+FROM events
+WHERE event = '$ai_generation'
+ AND timestamp > now() - INTERVAL 30 DAY
+ AND properties.$ai_product = {product}
+ AND properties.$ai_product_source = 'pinned'
+GROUP BY ai_user
+LIMIT 1000
+"""
+
+
+def team_usage_refusal(user: User) -> DevTokenRefused | None:
+ refusal = eligibility_refusal(user)
+ if refusal is not None:
+ return refusal
+ team = Team.objects.only("organization_id").get(pk=settings.DEV_GATEWAY_TEAM_ID)
+ if not OrganizationMembership.objects.filter(user=user, organization_id=team.organization_id).exists():
+ return DevTokenRefused("not_member", "Team usage is only shown to members of the paying project.", 403)
+ return None
+
+
+@frozen
+class _Spend:
+ day: Decimal = Decimal("0")
+ week: Decimal = Decimal("0")
+ month: Decimal = Decimal("0")
+
+
+def _spend_by_distinct_id(team: Team) -> dict[str, _Spend]:
+ with tags_context(product=Product.LLM_ANALYTICS, feature=Feature.AI_GATEWAY_DEV_USAGE):
+ response = execute_hogql_query(
+ _SPEND_QUERY,
+ placeholders={"product": ast.Constant(value=DEV_PRODUCT)},
+ team=team,
+ query_type="ai_gateway_dev_team_spend",
+ )
+ return {
+ str(distinct_id): _Spend(
+ day=Decimal(str(day or 0)), week=Decimal(str(week or 0)), month=Decimal(str(month or 0))
+ )
+ for distinct_id, day, week, month in response.results or []
+ if distinct_id
+ }
+
+
+def _activity(team_id: int, since: datetime, rows: list[DevGatewayToken]) -> list[DevTokenActivity]:
+ """A revoke entry records no owner, client or cap, so those come from the token row."""
+ by_id = {str(row.id): row for row in rows}
+ entries = (
+ ActivityLog.objects.filter(team_id=team_id, scope="DevGatewayToken", created_at__gte=since)
+ .select_related("user")
+ .order_by("-created_at")[:TEAM_ACTIVITY_LIMIT]
+ )
+ result: list[DevTokenActivity] = []
+ for entry in entries:
+ row = by_id.get(entry.item_id or "")
+ result.append(
+ DevTokenActivity(
+ at=entry.created_at,
+ activity=entry.activity,
+ actor_email=entry.user.email if entry.user else None,
+ owner_email=row.user.email if row else None,
+ client=DevTokenClient(row.client) if row else None,
+ cap_usd=row.cap_usd if row else None,
+ )
+ )
+ return result
+
+
+def team_usage(viewer: User) -> DevTeamUsage:
+ refusal = team_usage_refusal(viewer)
+ if refusal is not None:
+ raise refusal
+ now = timezone.now()
+ day_ago = now - timedelta(days=1)
+ team = Team.objects.get(pk=settings.DEV_GATEWAY_TEAM_ID)
+ with team_scope(team.pk):
+ since = now - timedelta(days=TEAM_USAGE_DAYS)
+ rows = list(
+ DevGatewayToken.objects.filter(token_hash__isnull=False, created_at__gte=since).select_related("user")
+ )
+ spend = _spend_by_distinct_id(team)
+ users = {row.user_id: row.user for row in rows}
+ known_distinct_ids = {user.distinct_id for user in users.values() if user.distinct_id}
+ for user in User.objects.filter(distinct_id__in=set(spend) - known_distinct_ids):
+ users[user.pk] = user
+ result: list[DevUserUsage] = []
+ for user in users.values():
+ mine = [row for row in rows if row.user_id == user.pk]
+ spent = spend.pop(user.distinct_id or "", _Spend())
+ result.append(
+ DevUserUsage(
+ user_id=user.pk,
+ email=user.email,
+ distinct_id=user.distinct_id or "",
+ tokens_minted_24h=sum(1 for row in mine if row.created_at >= day_ago),
+ tokens_minted_30d=len(mine),
+ live_tokens=sum(1 for row in mine if not row.revoked_at and row.expires_at and row.expires_at > now),
+ revoked_30d=sum(1 for row in mine if row.revoked_at),
+ reserved_usd_24h=sum((row.cap_usd for row in mine if row.created_at >= day_ago), Decimal("0")),
+ spend_usd_24h=spent.day,
+ spend_usd_7d=spent.week,
+ spend_usd_30d=spent.month,
+ last_minted_at=max((row.created_at for row in mine), default=None),
+ )
+ )
+ # Spend whose $ai_user matches no PostHog user still shows, so totals reconcile.
+ for distinct_id, spent in spend.items():
+ result.append(
+ DevUserUsage(
+ user_id=None,
+ email=None,
+ distinct_id=distinct_id,
+ tokens_minted_24h=0,
+ tokens_minted_30d=0,
+ live_tokens=0,
+ revoked_30d=0,
+ reserved_usd_24h=Decimal("0"),
+ spend_usd_24h=spent.day,
+ spend_usd_7d=spent.week,
+ spend_usd_30d=spent.month,
+ last_minted_at=None,
+ )
+ )
+ result.sort(key=lambda u: (u.spend_usd_30d, u.tokens_minted_30d), reverse=True)
+ return DevTeamUsage(paying_team_id=team.pk, users=result, activity=_activity(team.pk, since, rows))
+
+
def revoke(user: User, token_id: str | None) -> int:
"""Returns the gateway's revoked count. Rows are marked revoked only after the gateway confirms."""
with team_scope(settings.DEV_GATEWAY_TEAM_ID):
diff --git a/products/ai_gateway/backend/presentation/serializers.py b/products/ai_gateway/backend/presentation/serializers.py
index 0674b7625bc0..ab9770893f7c 100644
--- a/products/ai_gateway/backend/presentation/serializers.py
+++ b/products/ai_gateway/backend/presentation/serializers.py
@@ -16,6 +16,12 @@ class DevTokenSerializer(serializers.Serializer):
status = serializers.ChoiceField(
choices=DevTokenStatus.choices, help_text="Whether the token still works: live, revoked or expired."
)
+ remaining_usd = serializers.DecimalField(
+ max_digits=12,
+ decimal_places=6,
+ allow_null=True,
+ help_text="Budget left on a live token, net of in-flight requests, in USD. Null when not live or unknown.",
+ )
class DevTokenUsageSerializer(serializers.Serializer):
@@ -35,6 +41,56 @@ class DevTokenUsageSerializer(serializers.Serializer):
)
+class DevUserUsageSerializer(serializers.Serializer):
+ user_id = serializers.IntegerField(
+ allow_null=True, help_text="PostHog user id. Null when no user has this distinct_id."
+ )
+ email = serializers.CharField(
+ allow_null=True, help_text="The user's email. Null when no user has this distinct_id."
+ )
+ distinct_id = serializers.CharField(help_text="distinct_id pinned on the user's tokens as $ai_user.")
+ tokens_minted_24h = serializers.IntegerField(help_text="Tokens minted in the last 24 hours.")
+ tokens_minted_30d = serializers.IntegerField(help_text="Tokens minted in the last 30 days.")
+ live_tokens = serializers.IntegerField(help_text="Tokens that are neither revoked nor expired.")
+ revoked_30d = serializers.IntegerField(help_text="Tokens minted in the last 30 days that were revoked.")
+ reserved_usd_24h = serializers.DecimalField(
+ max_digits=10, decimal_places=2, help_text="Token caps minted in the last 24 hours, in USD."
+ )
+ spend_usd_24h = serializers.DecimalField(
+ max_digits=12, decimal_places=6, help_text="Settled gateway spend in the last 24 hours, in USD."
+ )
+ spend_usd_7d = serializers.DecimalField(
+ max_digits=12, decimal_places=6, help_text="Settled gateway spend in the last 7 days, in USD."
+ )
+ spend_usd_30d = serializers.DecimalField(
+ max_digits=12, decimal_places=6, help_text="Settled gateway spend in the last 30 days, in USD."
+ )
+ last_minted_at = serializers.DateTimeField(allow_null=True, help_text="When the user last minted a token.")
+
+
+class DevTokenActivitySerializer(serializers.Serializer):
+ at = serializers.DateTimeField(help_text="When the action happened.")
+ activity = serializers.CharField(help_text="What happened to the token: minted or revoked.")
+ actor_email = serializers.CharField(allow_null=True, help_text="Who did it. Null when the user was deleted.")
+ owner_email = serializers.CharField(
+ allow_null=True, help_text="Whose token it is. Null when the token row is gone, e.g. a refused mint."
+ )
+ client = serializers.ChoiceField(
+ choices=DevTokenClient.choices, allow_null=True, help_text="Where the token was minted."
+ )
+ cap_usd = serializers.DecimalField(
+ max_digits=10, decimal_places=2, allow_null=True, help_text="Most the token can spend, in USD."
+ )
+
+
+class DevTeamUsageSerializer(serializers.Serializer):
+ paying_team_id = serializers.IntegerField(help_text="Project whose wallet pays for developer mode tokens.")
+ users = DevUserUsageSerializer(many=True, help_text="One row per user with tokens or spend, highest spend first.")
+ activity = DevTokenActivitySerializer(
+ many=True, help_text="Mints and revokes in the last 30 days, newest first, at most 1000."
+ )
+
+
class MintedDevTokenSerializer(serializers.Serializer):
id = serializers.UUIDField(help_text="Token id, used to revoke it.")
token = serializers.CharField(help_text="The phe_ bearer. Shown once; only its hash is stored.")
@@ -71,6 +127,12 @@ class CliExchangeSerializer(serializers.Serializer):
)
+class DevTokenStatusRequestSerializer(serializers.Serializer):
+ token = serializers.RegexField(
+ r"^phe_[A-Za-z0-9_-]{1,252}$", help_text="The phe_ bearer to look up. Only its sha256 is compared."
+ )
+
+
class DevTokenRefusalSerializer(serializers.Serializer):
code = serializers.CharField(help_text="Stable refusal code, for example daily_limit or not_staff.")
detail = serializers.CharField(help_text="Human-readable reason.")
diff --git a/products/ai_gateway/backend/presentation/views.py b/products/ai_gateway/backend/presentation/views.py
index 9c95d8657bf3..42955d929e0b 100644
--- a/products/ai_gateway/backend/presentation/views.py
+++ b/products/ai_gateway/backend/presentation/views.py
@@ -30,9 +30,12 @@ from .serializers import (
CliAuthorizedSerializer,
CliAuthorizeSerializer,
CliExchangeSerializer,
+ DevTeamUsageSerializer,
DevTokenRefusalSerializer,
DevTokenRevokedSerializer,
DevTokenRevokeSerializer,
+ DevTokenSerializer,
+ DevTokenStatusRequestSerializer,
DevTokenUsageSerializer,
MintedDevTokenSerializer,
)
@@ -64,25 +67,25 @@ def _refusal(refused: DevTokenRefused) -> Response:
class DevGatewayTokenViewSet(viewsets.ViewSet):
authentication_classes = [SessionAuthentication]
permission_classes = [permissions.IsAuthenticated, TimeSensitiveActionPermission]
- time_sensitive_exclude_actions = ["revoke", "usage"]
+ time_sensitive_exclude_actions = ["revoke", "usage", "team_usage"]
scope_object = "INTERNAL"
def get_throttles(self) -> list[BaseThrottle]:
if self.action in ("create", "authorize_cli"):
return [DevTokenMintThrottle()]
- if self.action == "exchange_cli":
+ if self.action in ("exchange_cli", "token_status"):
return [DevTokenExchangeIPThrottle()]
return super().get_throttles()
def get_authenticators(self) -> list[BaseAuthentication]:
- # The exchange is authenticated by the PKCE verifier, not a session; DRF resolves
- # authenticators before `self.action` is set, so match on the path.
- if self.request is not None and self.request.path.rstrip("/").endswith("/cli_exchange"):
+ # The PKCE verifier or the bearer authenticates these; DRF resolves authenticators before
+ # `self.action` is set, so match on the path.
+ if self.request is not None and self.request.path.rstrip("/").endswith(("/cli_exchange", "/token_status")):
return []
return super().get_authenticators()
def get_permissions(self) -> Sequence["_SupportsHasPermission"]:
- if self.action == "exchange_cli":
+ if self.action in ("exchange_cli", "token_status"):
return [permissions.AllowAny()]
return super().get_permissions()
@@ -102,6 +105,22 @@ class DevGatewayTokenViewSet(viewsets.ViewSet):
return _refusal(refused)
return Response(DevTokenUsageSerializer(api.dev_token_usage(cast(User, request.user))).data)
+ @validated_request(
+ responses={200: OpenApiResponse(response=DevTeamUsageSerializer), 403: _REFUSAL, 503: _REFUSAL},
+ summary="Developer mode minting and spend per user over the last 30 days",
+ )
+ @action(detail=False, methods=["get"], url_path="team_usage")
+ def team_usage(self, request: Request) -> Response:
+ if is_impersonated(request):
+ return _refusal(
+ DevTokenRefused("impersonated", "Developer mode isn't available while impersonating a user.", 403)
+ )
+ try:
+ usage = api.dev_team_usage(cast(User, request.user))
+ except DevTokenRefused as e:
+ return _refusal(e)
+ return Response(DevTeamUsageSerializer(usage).data)
+
@validated_request(
responses={
201: OpenApiResponse(response=MintedDevTokenSerializer),
@@ -174,3 +193,16 @@ class DevGatewayTokenViewSet(viewsets.ViewSet):
except DevTokenRefused as e:
return _refusal(e)
return Response(MintedDevTokenSerializer(minted).data, status=status.HTTP_201_CREATED)
+
+ @validated_request(
+ request_serializer=DevTokenStatusRequestSerializer,
+ responses={200: OpenApiResponse(response=DevTokenSerializer), 404: _REFUSAL, 503: _REFUSAL},
+ summary="Look up a developer mode token's status and budget left by its bearer",
+ )
+ @action(detail=False, methods=["post"], url_path="token_status")
+ def token_status(self, request: Request) -> Response:
+ try:
+ token = api.dev_token_status(request.validated_data["token"])
+ except DevTokenRefused as e:
+ return _refusal(e)
+ return Response(DevTokenSerializer(token).data)
diff --git a/products/ai_gateway/backend/tests/test_dev_tokens.py b/products/ai_gateway/backend/tests/test_dev_tokens.py
index e8da02677db1..58be5aebce6f 100644
--- a/products/ai_gateway/backend/tests/test_dev_tokens.py
+++ b/products/ai_gateway/backend/tests/test_dev_tokens.py
@@ -4,7 +4,7 @@ import hashlib
from datetime import timedelta
from decimal import Decimal
-from posthog.test.base import APIBaseTest
+from posthog.test.base import APIBaseTest, ClickhouseTestMixin, _create_event, flush_persons_and_events
from unittest.mock import MagicMock, patch
from django.conf import settings
@@ -23,6 +23,7 @@ from urllib3 import HTTPConnectionPool
from urllib3.exceptions import MaxRetryError, NewConnectionError, ProtocolError
from posthog.models.activity_logging.activity_log import ActivityLog
+from posthog.models.organization import Organization
from posthog.models.user import User
from products.ai_gateway.backend.models import DevGatewayToken
@@ -44,7 +45,7 @@ def _minted(token: str = "phe_new") -> MagicMock:
return _response(201, {"token": token, "expires_at": "2099-01-01T00:00:00Z", "cap_usd": "25"})
-class TestDevTokens(APIBaseTest):
+class _DevGatewaySettings(APIBaseTest):
def setUp(self) -> None:
super().setUp()
override = override_settings(
@@ -59,6 +60,8 @@ class TestDevTokens(APIBaseTest):
self.user.is_staff = True
self.user.save()
+
+class TestDevTokens(_DevGatewaySettings):
def _rows(self, **filters):
return DevGatewayToken.objects.unscoped().filter(**filters)
@@ -113,6 +116,7 @@ class TestDevTokens(APIBaseTest):
@parameterized.expand(
[
("usage", "get", "usage/", {}),
+ ("team_usage", "get", "team_usage/", {}),
("create", "post", "", {}),
("revoke", "post", "revoke/", {}),
("cli_authorize", "post", "cli_authorize/", {"code_challenge": CHALLENGE}),
@@ -131,6 +135,7 @@ class TestDevTokens(APIBaseTest):
[
# GET passes the middleware, so the view guard is the only refusal.
("usage", "get", "usage/", {}, "impersonated"),
+ ("team_usage", "get", "team_usage/", {}, "impersonated"),
("create", "post", "", {}, "impersonation_path_blocked"),
("revoke", "post", "revoke/", {}, "impersonation_path_blocked"),
(
@@ -174,9 +179,16 @@ class TestDevTokens(APIBaseTest):
assert "$50.00 limit" in response.json()["detail"]
post.assert_not_called()
- usage = self.client.get(f"{URL}usage/").json()
+ status = _response(
+ 200, {"tokens": [{"token_hash": hashlib.sha256(b"phe_1").hexdigest(), "remaining_usd": "21.5"}]}
+ )
+ with patch(_POST, return_value=status) as post:
+ usage = self.client.get(f"{URL}usage/").json()
+ assert post.call_args.args[0] == "https://ai-gateway.test/v1/tokens/status"
assert Decimal(usage["used_usd"]) == Decimal("50")
assert [t["status"] for t in usage["tokens"]] == ["live", "live"]
+ # Newest first; the gateway omitted phe_0, so its remaining is unknown.
+ assert [t["remaining_usd"] for t in usage["tokens"]] == ["21.500000", None]
def test_reserve_locks_the_user_row_before_summing_the_window(self):
with patch(_POST, return_value=_minted()), CaptureQueriesContext(connection) as queries:
@@ -239,6 +251,48 @@ class TestDevTokens(APIBaseTest):
post.assert_not_called()
assert self.client.post(f"{URL}revoke/", {}).status_code == 200
+ @parameterized.expand(
+ [
+ ("endpoint_not_deployed", {"return_value": _response(404)}),
+ ("unreachable", {"side_effect": requests.ConnectionError("refused")}),
+ ("unreadable", {"return_value": _response(200, {"tokens": [{"token_hash": "a"}]})}),
+ ]
+ )
+ def test_usage_renders_without_remaining_when_status_fails(self, _name, post_kwargs):
+ with patch(_POST, return_value=_minted()):
+ self.client.post(URL)
+ with patch(_POST, **post_kwargs):
+ response = self.client.get(f"{URL}usage/")
+ assert response.status_code == 200
+ assert response.json()["tokens"][0]["remaining_usd"] is None
+
+ def test_token_status_is_authenticated_by_the_bearer_alone(self):
+ with patch(_POST, return_value=_minted("phe_held")):
+ self.client.post(URL)
+ self.client.logout()
+
+ status = _response(
+ 200, {"tokens": [{"token_hash": hashlib.sha256(b"phe_held").hexdigest(), "remaining_usd": "3"}]}
+ )
+ with patch(_POST, return_value=status):
+ held = self.client.post(f"{URL}token_status/", {"token": "phe_held"})
+ assert held.status_code == 200, held.json()
+ assert (held.json()["status"], held.json()["remaining_usd"]) == ("live", "3.000000")
+
+ with patch(_POST) as post:
+ unknown = self.client.post(f"{URL}token_status/", {"token": "phe_guessed"})
+ assert unknown.status_code == 404
+ post.assert_not_called()
+
+ def test_team_usage_refuses_staff_outside_the_paying_organization(self):
+ outsider = User.objects.create_and_join(
+ Organization.objects.create(name="Elsewhere"), "[email protected]", None, is_staff=True
+ )
+ self.client.force_login(outsider)
+ response = self.client.get(f"{URL}team_usage/")
+ assert response.status_code == 403
+ assert response.json()["code"] == "not_member"
+
def test_revoke_sends_only_the_callers_hashes(self):
other = User.objects.create_and_join(self.organization, "[email protected]", None, is_staff=True)
others = DevGatewayToken.objects.unscoped().create(
@@ -322,3 +376,74 @@ class TestDevTokens(APIBaseTest):
code = self.client.post(f"{URL}cli_authorize/", {"code_challenge": CHALLENGE}).json()["code"]
self.client.logout()
return code
+
+
+class TestDevTeamUsage(ClickhouseTestMixin, _DevGatewaySettings):
+ def _generation(self, distinct_id: str | None, cost: str, days_ago: float, source: str = "pinned") -> None:
+ assert distinct_id is not None
+ _create_event(
+ team=self.team,
+ event="$ai_generation",
+ distinct_id=distinct_id,
+ timestamp=timezone.now() - timedelta(days=days_ago),
+ properties={
+ "$ai_product": "dev",
+ "$ai_product_source": source,
+ "$ai_user": distinct_id,
+ "$ai_total_cost_usd": cost,
+ },
+ )
+
+ def test_team_usage_sums_pinned_spend_per_user_by_window(self):
+ other = User.objects.create_and_join(self.organization, "[email protected]", None, is_staff=True)
+ DevGatewayToken.objects.unscoped().create(
+ team=self.team,
+ user=self.user,
+ client="web",
+ cap_usd=Decimal("25"),
+ token_hash="a" * 64,
+ expires_at=timezone.now() + timedelta(hours=1),
+ )
+ self._generation(self.user.distinct_id, "1.5", days_ago=0.1)
+ self._generation(self.user.distinct_id, "2", days_ago=3)
+ self._generation(self.user.distinct_id, "4", days_ago=10)
+ # A phs_ caller can claim the product by header; only pinned spend counts.
+ self._generation(self.user.distinct_id, "100", days_ago=0.1, source="header")
+ self._generation(other.distinct_id, "0.25", days_ago=0.1)
+ self._generation("orphan-distinct-id", "0.5", days_ago=0.1)
+ flush_persons_and_events()
+
+ response = self.client.get(f"{URL}team_usage/")
+
+ assert response.status_code == 200, response.json()
+ body = response.json()
+ assert body["paying_team_id"] == self.team.id
+ rows = {row["distinct_id"]: row for row in body["users"]}
+ mine = rows[self.user.distinct_id]
+ assert [Decimal(mine[k]) for k in ("spend_usd_24h", "spend_usd_7d", "spend_usd_30d")] == [
+ Decimal("1.5"),
+ Decimal("3.5"),
+ Decimal("7.5"),
+ ]
+ assert (mine["tokens_minted_24h"], mine["live_tokens"], Decimal(mine["reserved_usd_24h"])) == (
+ 1,
+ 1,
+ Decimal("25"),
+ )
+ assert rows[other.distinct_id]["email"] == "[email protected]"
+ assert rows[other.distinct_id]["tokens_minted_30d"] == 0
+ assert rows["orphan-distinct-id"]["user_id"] is None
+ assert body["users"][0]["distinct_id"] == self.user.distinct_id
+
+ def test_team_usage_lists_mint_and_revoke_activity_newest_first(self):
+ with patch(_POST, return_value=_minted("phe_audit")):
+ self.client.post(URL)
+ with patch(_POST, return_value=_response(200, {"revoked": True, "revoked_count": 1})):
+ self.client.post(f"{URL}revoke/", {})
+
+ activity = self.client.get(f"{URL}team_usage/").json()["activity"]
+
+ assert [(a["activity"], a["actor_email"], a["owner_email"], a["client"], a["cap_usd"]) for a in activity] == [
+ ("revoked", self.user.email, self.user.email, "web", "25.00"),
+ ("minted", self.user.email, self.user.email, "web", "25.00"),
+ ]
diff --git a/products/ai_gateway/frontend/components/DevModeSetting.tsx b/products/ai_gateway/frontend/components/DevModeSetting.tsx
index bd61569ee55c..ca872ae8095a 100644
--- a/products/ai_gateway/frontend/components/DevModeSetting.tsx
+++ b/products/ai_gateway/frontend/components/DevModeSetting.tsx
@@ -126,6 +126,17 @@ export function DevModeSetting(): JSX.Element {
key: 'cap_usd',
render: (_, token) => <span translate="no">${token.cap_usd}</span>,
},
+ {
+ title: 'Left',
+ key: 'remaining_usd',
+ tooltip: 'Budget left on a live token, net of requests still in flight.',
+ render: (_, token) =>
+ token.status !== 'live' ? null : token.remaining_usd != null ? (
+ <span translate="no">${Number(token.remaining_usd).toFixed(4)}</span>
+ ) : (
+ <span className="text-secondary">Unknown</span>
+ ),
+ },
{
key: 'actions',
width: 0,
diff --git a/products/ai_gateway/frontend/components/DevModeTeamUsage.tsx b/products/ai_gateway/frontend/components/DevModeTeamUsage.tsx
new file mode 100644
index 000000000000..a6ccba7459b3
--- /dev/null
+++ b/products/ai_gateway/frontend/components/DevModeTeamUsage.tsx
@@ -0,0 +1,163 @@
+import { useActions, useValues } from 'kea'
+
+import { LemonBanner, LemonInput, LemonSelect, LemonTable, LemonTag } from '@posthog/lemon-ui'
+
+import { TZLabel } from 'lib/components/TZLabel'
+
+import type { DevTokenActivityApi, DevUserUsageApi } from '../generated/api.schemas'
+import { PAGE_SIZE_OPTIONS, devModeTeamUsageLogic } from '../logics/devModeTeamUsageLogic'
+
+// Four places, because single calls cost fractions of a cent.
+function usd(value: string): JSX.Element {
+ return <span translate="no">${Number(value).toFixed(4)}</span>
+}
+
+const ACTIVITY_TAG: Record<string, { label: string; type: 'success' | 'danger' | 'default' }> = {
+ minted: { label: 'Minted', type: 'success' },
+ revoked: { label: 'Revoked', type: 'danger' },
+}
+
+export function DevModeTeamUsage(): JSX.Element {
+ const { teamUsageLoading, teamUsage, refusal, isPayingTeam, search, pageSize, filteredUsers, filteredActivity } =
+ useValues(devModeTeamUsageLogic)
+ const { setSearch, setPageSize } = useActions(devModeTeamUsageLogic)
+
+ if (refusal && !teamUsage) {
+ return <LemonBanner type="warning">{refusal}</LemonBanner>
+ }
+ if (teamUsage && !isPayingTeam) {
+ return (
+ <LemonBanner type="info">
+ Developer mode is billed to project {teamUsage.paying_team_id}. Switch to that project to see team usage
+ and activity.
+ </LemonBanner>
+ )
+ }
+
+ return (
+ <div className="flex flex-col gap-4">
+ <p className="mb-0">
+ Spend is settled gateway cost for calls made with developer mode tokens. Reserved is the sum of token
+ caps minted in the last 24 hours, which counts against each user's daily limit.
+ </p>
+ <div className="flex flex-wrap items-center justify-between gap-2">
+ <LemonInput type="search" placeholder="Search by email" value={search} onChange={setSearch} />
+ <LemonSelect
+ value={pageSize}
+ onChange={(value) => setPageSize(value)}
+ options={PAGE_SIZE_OPTIONS.map((size) => ({ value: size, label: `Show ${size}` }))}
+ size="small"
+ />
+ </div>
+ <LemonTable<DevUserUsageApi>
+ dataSource={filteredUsers}
+ loading={teamUsageLoading}
+ pagination={{ pageSize }}
+ emptyState={
+ search ? 'No users match this search' : 'No developer mode tokens or spend in the last 30 days'
+ }
+ rowKey="distinct_id"
+ columns={[
+ {
+ title: 'User',
+ key: 'email',
+ render: (_, row) =>
+ row.email ?? (
+ <span className="text-secondary" translate="no">
+ Unknown user ({row.distinct_id})
+ </span>
+ ),
+ },
+ {
+ title: 'Spend 24h',
+ key: 'spend_usd_24h',
+ render: (_, row) => usd(row.spend_usd_24h),
+ sorter: (a, b) => Number(a.spend_usd_24h) - Number(b.spend_usd_24h),
+ },
+ {
+ title: 'Spend 7d',
+ key: 'spend_usd_7d',
+ render: (_, row) => usd(row.spend_usd_7d),
+ sorter: (a, b) => Number(a.spend_usd_7d) - Number(b.spend_usd_7d),
+ },
+ {
+ title: 'Spend 30d',
+ key: 'spend_usd_30d',
+ render: (_, row) => usd(row.spend_usd_30d),
+ sorter: (a, b) => Number(a.spend_usd_30d) - Number(b.spend_usd_30d),
+ },
+ {
+ title: 'Reserved 24h',
+ key: 'reserved_usd_24h',
+ render: (_, row) => usd(row.reserved_usd_24h),
+ },
+ {
+ title: 'Tokens 24h / 30d',
+ key: 'tokens_minted_30d',
+ render: (_, row) => (
+ <span translate="no">
+ {row.tokens_minted_24h} / {row.tokens_minted_30d}
+ </span>
+ ),
+ sorter: (a, b) => a.tokens_minted_30d - b.tokens_minted_30d,
+ },
+ { title: 'Live', key: 'live_tokens', dataIndex: 'live_tokens' },
+ { title: 'Revoked 30d', key: 'revoked_30d', dataIndex: 'revoked_30d' },
+ {
+ title: 'Last minted',
+ key: 'last_minted_at',
+ render: (_, row) => (row.last_minted_at ? <TZLabel time={row.last_minted_at} /> : null),
+ },
+ ]}
+ />
+ <h3 className="mb-0">Activity</h3>
+ <LemonTable<DevTokenActivityApi>
+ dataSource={filteredActivity}
+ loading={teamUsageLoading}
+ pagination={{ pageSize }}
+ emptyState={search ? 'No activity matches this search' : 'No mints or revokes in the last 30 days'}
+ columns={[
+ {
+ title: 'When',
+ key: 'at',
+ render: (_, entry) => <TZLabel time={entry.at} />,
+ },
+ {
+ title: 'Action',
+ key: 'activity',
+ render: (_, entry) => {
+ const tag = ACTIVITY_TAG[entry.activity] ?? { label: entry.activity, type: 'default' }
+ return <LemonTag type={tag.type}>{tag.label}</LemonTag>
+ },
+ },
+ {
+ title: 'Token owner',
+ key: 'owner_email',
+ render: (_, entry) => entry.owner_email ?? <span className="text-secondary">Unknown</span>,
+ },
+ {
+ title: 'By',
+ key: 'actor_email',
+ render: (_, entry) =>
+ entry.actor_email && entry.actor_email !== entry.owner_email ? (
+ entry.actor_email
+ ) : (
+ <span className="text-secondary">Owner</span>
+ ),
+ },
+ {
+ title: 'Source',
+ key: 'client',
+ render: (_, entry) =>
+ entry.client ? <LemonTag>{entry.client === 'cli' ? 'CLI' : 'Web'}</LemonTag> : null,
+ },
+ {
+ title: 'Spend limit',
+ key: 'cap_usd',
+ render: (_, entry) => (entry.cap_usd ? <span translate="no">${entry.cap_usd}</span> : null),
+ },
+ ]}
+ />
+ </div>
+ )
+}
diff --git a/products/ai_gateway/frontend/generated/api.schemas.ts b/products/ai_gateway/frontend/generated/api.schemas.ts
index 28bce3a41f9c..7d42f2a0fc12 100644
--- a/products/ai_gateway/frontend/generated/api.schemas.ts
+++ b/products/ai_gateway/frontend/generated/api.schemas.ts
@@ -71,6 +71,54 @@ export interface DevTokenRevokedApi {
revoked_count: number
}
+export interface DevUserUsageApi {
+ /**
+ * PostHog user id. Null when no user has this distinct_id.
+ * @nullable
+ */
+ user_id: number | null
+ /**
+ * The user's email. Null when no user has this distinct_id.
+ * @nullable
+ */
+ email: string | null
+ /** distinct_id pinned on the user's tokens as $ai_user. */
+ distinct_id: string
+ /** Tokens minted in the last 24 hours. */
+ tokens_minted_24h: number
+ /** Tokens minted in the last 30 days. */
+ tokens_minted_30d: number
+ /** Tokens that are neither revoked nor expired. */
+ live_tokens: number
+ /** Tokens minted in the last 30 days that were revoked. */
+ revoked_30d: number
+ /**
+ * Token caps minted in the last 24 hours, in USD.
+ * @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
+ */
+ reserved_usd_24h: string
+ /**
+ * Settled gateway spend in the last 24 hours, in USD.
+ * @pattern ^-?\d{0,6}(?:\.\d{0,6})?$
+ */
+ spend_usd_24h: string
+ /**
+ * Settled gateway spend in the last 7 days, in USD.
+ * @pattern ^-?\d{0,6}(?:\.\d{0,6})?$
+ */
+ spend_usd_7d: string
+ /**
+ * Settled gateway spend in the last 30 days, in USD.
+ * @pattern ^-?\d{0,6}(?:\.\d{0,6})?$
+ */
+ spend_usd_30d: string
+ /**
+ * When the user last minted a token.
+ * @nullable
+ */
+ last_minted_at: string | null
+}
+
/**
* * `web` - Web
* * `cli` - CLI
@@ -82,6 +130,51 @@ export const DevTokenClientEnumApi = {
Cli: 'cli',
} as const
+export interface DevTokenActivityApi {
+ /** When the action happened. */
+ at: string
+ /** What happened to the token: minted or revoked. */
+ activity: string
+ /**
+ * Who did it. Null when the user was deleted.
+ * @nullable
+ */
+ actor_email: string | null
+ /**
+ * Whose token it is. Null when the token row is gone, e.g. a refused mint.
+ * @nullable
+ */
+ owner_email: string | null
+ /** Where the token was minted.
+ *
+ * * `web` - Web
+ * * `cli` - CLI */
+ client: DevTokenClientEnumApi | null
+ /**
+ * Most the token can spend, in USD.
+ * @nullable
+ * @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
+ */
+ cap_usd: string | null
+}
+
+export interface DevTeamUsageApi {
+ /** Project whose wallet pays for developer mode tokens. */
+ paying_team_id: number
+ /** One row per user with tokens or spend, highest spend first. */
+ users: DevUserUsageApi[]
+ /** Mints and revokes in the last 30 days, newest first, at most 1000. */
+ activity: DevTokenActivityApi[]
+}
+
+export interface DevTokenStatusRequestApi {
+ /**
+ * The phe_ bearer to look up. Only its sha256 is compared.
+ * @pattern ^phe_[A-Za-z0-9_-]{1,252}$
+ */
+ token: string
+}
+
/**
* * `live` - Live
* * `revoked` - Revoked
@@ -126,6 +219,12 @@ export interface DevTokenApi {
* * `revoked` - Revoked
* * `expired` - Expired */
status: DevTokenStatusEnumApi
+ /**
+ * Budget left on a live token, net of in-flight requests, in USD. Null when not live or unknown.
+ * @nullable
+ * @pattern ^-?\d{0,6}(?:\.\d{0,6})?$
+ */
+ remaining_usd: string | null
}
export interface DevTokenUsageApi {
diff --git a/products/ai_gateway/frontend/generated/api.ts b/products/ai_gateway/frontend/generated/api.ts
index 730e8a8893a3..8bb2735f7715 100644
--- a/products/ai_gateway/frontend/generated/api.ts
+++ b/products/ai_gateway/frontend/generated/api.ts
@@ -12,8 +12,11 @@ import type {
CliAuthorizeApi,
CliAuthorizedApi,
CliExchangeApi,
+ DevTeamUsageApi,
+ DevTokenApi,
DevTokenRevokeApi,
DevTokenRevokedApi,
+ DevTokenStatusRequestApi,
DevTokenUsageApi,
MintedDevTokenApi,
} from './api.schemas'
@@ -89,6 +92,39 @@ export const aiGatewayDevTokensRevokeCreate = async (
})
}
+export const getAiGatewayDevTokensTeamUsageRetrieveUrl = () => {
+ return `/api/ai_gateway/dev_tokens/team_usage/`
+}
+
+/**
+ * @summary Developer mode minting and spend per user over the last 30 days
+ */
+export const aiGatewayDevTokensTeamUsageRetrieve = async (options?: RequestInit): Promise<DevTeamUsageApi> => {
+ return apiMutator<DevTeamUsageApi>(getAiGatewayDevTokensTeamUsageRetrieveUrl(), {
+ ...options,
+ method: 'GET',
+ })
+}
+
+export const getAiGatewayDevTokensTokenStatusCreateUrl = () => {
+ return `/api/ai_gateway/dev_tokens/token_status/`
+}
+
+/**
+ * @summary Look up a developer mode token's status and budget left by its bearer
+ */
+export const aiGatewayDevTokensTokenStatusCreate = async (
+ devTokenStatusRequestApi: DevTokenStatusRequestApi,
+ options?: RequestInit
+): Promise<DevTokenApi> => {
+ return apiMutator<DevTokenApi>(getAiGatewayDevTokensTokenStatusCreateUrl(), {
+ ...options,
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
+ body: JSON.stringify(devTokenStatusRequestApi),
+ })
+}
+
export const getAiGatewayDevTokensUsageRetrieveUrl = () => {
return `/api/ai_gateway/dev_tokens/usage/`
}
diff --git a/products/ai_gateway/frontend/generated/api.zod.ts b/products/ai_gateway/frontend/generated/api.zod.ts
index e630cee4b5d8..c3b5321e86df 100644
--- a/products/ai_gateway/frontend/generated/api.zod.ts
+++ b/products/ai_gateway/frontend/generated/api.zod.ts
@@ -42,3 +42,15 @@ export const AiGatewayDevTokensCliExchangeCreateBody = /* @__PURE__ */ zod.objec
export const AiGatewayDevTokensRevokeCreateBody = /* @__PURE__ */ zod.object({
id: zod.uuid().nullish().describe("Token to revoke. Omit to revoke all of the user's live tokens."),
})
+
+/**
+ * @summary Look up a developer mode token's status and budget left by its bearer
+ */
+export const aiGatewayDevTokensTokenStatusCreateBodyTokenRegExp = new RegExp('^phe_[A-Za-z0-9_-]{1,252}$')
+
+export const AiGatewayDevTokensTokenStatusCreateBody = /* @__PURE__ */ zod.object({
+ token: zod
+ .string()
+ .regex(aiGatewayDevTokensTokenStatusCreateBodyTokenRegExp)
+ .describe('The phe_ bearer to look up. Only its sha256 is compared.'),
+})
diff --git a/products/ai_gateway/frontend/logics/devModeTeamUsageLogic.ts b/products/ai_gateway/frontend/logics/devModeTeamUsageLogic.ts
new file mode 100644
index 000000000000..64471b8c0255
--- /dev/null
+++ b/products/ai_gateway/frontend/logics/devModeTeamUsageLogic.ts
@@ -0,0 +1,130 @@
+import { MakeLogicType, actions, afterMount, connect, kea, path, reducers, selectors } from 'kea'
+import { loaders } from 'kea-loaders'
+
+import { teamLogic } from 'scenes/teamLogic'
+
+import { aiGatewayDevTokensTeamUsageRetrieve } from '../generated/api'
+import type { DevTeamUsageApi, DevTokenActivityApi, DevUserUsageApi } from '../generated/api.schemas'
+
+export const PAGE_SIZE_OPTIONS = [10, 25, 50, 100]
+
+function matches(search: string, ...values: (string | null | undefined)[]): boolean {
+ return values.some((value) => value?.toLowerCase().includes(search))
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface devModeTeamUsageLogicValues {
+ // teamLogic
+ currentTeamId: number | null
+ filteredActivity: DevTokenActivityApi[]
+ filteredUsers: DevUserUsageApi[]
+ isPayingTeam: boolean
+ pageSize: number
+ refusal: string | null
+ search: string
+ teamUsage: DevTeamUsageApi | null
+ teamUsageLoading: boolean
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface devModeTeamUsageLogicActions {
+ loadTeamUsage: () => any
+ loadTeamUsageFailure: (
+ error: string,
+ errorObject?: any
+ ) => {
+ error: string
+ errorObject?: any
+ }
+ loadTeamUsageSuccess: (
+ teamUsage: DevTeamUsageApi,
+ payload?: any
+ ) => {
+ teamUsage: DevTeamUsageApi
+ payload?: any
+ }
+ setPageSize: (pageSize: number) => {
+ pageSize: number
+ }
+ setSearch: (search: string) => {
+ search: string
+ }
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface devModeTeamUsageLogicMeta {
+ __keaTypeGenInternalSelectorTypes: {
+ isPayingTeam: (teamUsage: DevTeamUsageApi | null, currentTeamId: number | null) => boolean
+ filteredUsers: (teamUsage: DevTeamUsageApi | null, search: string) => DevUserUsageApi[]
+ filteredActivity: (teamUsage: DevTeamUsageApi | null, search: string) => DevTokenActivityApi[]
+ }
+}
+
+export type devModeTeamUsageLogicType = MakeLogicType<
+ devModeTeamUsageLogicValues,
+ devModeTeamUsageLogicActions,
+ Record<string, any>,
+ devModeTeamUsageLogicMeta
+>
+
+export const devModeTeamUsageLogic = kea<devModeTeamUsageLogicType>([
+ path(['products', 'ai_gateway', 'frontend', 'logics', 'devModeTeamUsageLogic']),
+ connect(() => ({ values: [teamLogic, ['currentTeamId']] })),
+ actions({
+ setSearch: (search: string) => ({ search }),
+ setPageSize: (pageSize: number) => ({ pageSize }),
+ }),
+ loaders({
+ teamUsage: [
+ null as DevTeamUsageApi | null,
+ {
+ loadTeamUsage: async () => {
+ try {
+ return await aiGatewayDevTokensTeamUsageRetrieve()
+ } catch (error: any) {
+ throw new Error(error?.detail || error?.message || "Couldn't load team usage.")
+ }
+ },
+ },
+ ],
+ }),
+ reducers({
+ refusal: [
+ null as string | null,
+ {
+ loadTeamUsageFailure: (_, { error }) => error ?? null,
+ loadTeamUsageSuccess: () => null,
+ },
+ ],
+ search: ['', { setSearch: (_, { search }) => search }],
+ pageSize: [PAGE_SIZE_OPTIONS[0], { setPageSize: (_, { pageSize }) => pageSize }],
+ }),
+ selectors({
+ isPayingTeam: [
+ (s) => [s.teamUsage, s.currentTeamId],
+ (teamUsage: DevTeamUsageApi | null, currentTeamId: number | null): boolean =>
+ !!teamUsage && teamUsage.paying_team_id === currentTeamId,
+ ],
+ filteredUsers: [
+ (s) => [s.teamUsage, s.search],
+ (teamUsage: DevTeamUsageApi | null, search: string): DevUserUsageApi[] => {
+ const needle = search.trim().toLowerCase()
+ const users = teamUsage?.users ?? []
+ return needle ? users.filter((user) => matches(needle, user.email, user.distinct_id)) : users
+ },
+ ],
+ filteredActivity: [
+ (s) => [s.teamUsage, s.search],
+ (teamUsage: DevTeamUsageApi | null, search: string): DevTokenActivityApi[] => {
+ const needle = search.trim().toLowerCase()
+ const activity = teamUsage?.activity ?? []
+ return needle
+ ? activity.filter((entry) => matches(needle, entry.owner_email, entry.actor_email))
+ : activity
+ },
+ ],
+ }),
+ afterMount(({ actions }) => {
+ actions.loadTeamUsage()
+ }),
+])
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index a4b03e648a39..1b5252ceb0ae 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -36801,6 +36801,54 @@ export namespace Schemas {
steps: DestinationConnectionTestStep[];
}
+ export interface DevUserUsage {
+ /**
+ * PostHog user id. Null when no user has this distinct_id.
+ * @nullable
+ */
+ user_id: number | null;
+ /**
+ * The user's email. Null when no user has this distinct_id.
+ * @nullable
+ */
+ email: string | null;
+ /** distinct_id pinned on the user's tokens as $ai_user. */
+ distinct_id: string;
+ /** Tokens minted in the last 24 hours. */
+ tokens_minted_24h: number;
+ /** Tokens minted in the last 30 days. */
+ tokens_minted_30d: number;
+ /** Tokens that are neither revoked nor expired. */
+ live_tokens: number;
+ /** Tokens minted in the last 30 days that were revoked. */
+ revoked_30d: number;
+ /**
+ * Token caps minted in the last 24 hours, in USD.
+ * @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
+ */
+ reserved_usd_24h: string;
+ /**
+ * Settled gateway spend in the last 24 hours, in USD.
+ * @pattern ^-?\d{0,6}(?:\.\d{0,6})?$
+ */
+ spend_usd_24h: string;
+ /**
+ * Settled gateway spend in the last 7 days, in USD.
+ * @pattern ^-?\d{0,6}(?:\.\d{0,6})?$
+ */
+ spend_usd_7d: string;
+ /**
+ * Settled gateway spend in the last 30 days, in USD.
+ * @pattern ^-?\d{0,6}(?:\.\d{0,6})?$
+ */
+ spend_usd_30d: string;
+ /**
+ * When the user last minted a token.
+ * @nullable
+ */
+ last_minted_at: string | null;
+ }
+
/**
* * `web` - Web
* * `cli` - CLI
@@ -36813,6 +36861,43 @@ export namespace Schemas {
Cli: 'cli',
} as const;
+ export interface DevTokenActivity {
+ /** When the action happened. */
+ at: string;
+ /** What happened to the token: minted or revoked. */
+ activity: string;
+ /**
+ * Who did it. Null when the user was deleted.
+ * @nullable
+ */
+ actor_email: string | null;
+ /**
+ * Whose token it is. Null when the token row is gone, e.g. a refused mint.
+ * @nullable
+ */
+ owner_email: string | null;
+ /** Where the token was minted.
+ *
+ * * `web` - Web
+ * * `cli` - CLI */
+ client: DevTokenClientEnum | null;
+ /**
+ * Most the token can spend, in USD.
+ * @nullable
+ * @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
+ */
+ cap_usd: string | null;
+ }
+
+ export interface DevTeamUsage {
+ /** Project whose wallet pays for developer mode tokens. */
+ paying_team_id: number;
+ /** One row per user with tokens or spend, highest spend first. */
+ users: DevUserUsage[];
+ /** Mints and revokes in the last 30 days, newest first, at most 1000. */
+ activity: DevTokenActivity[];
+ }
+
/**
* * `live` - Live
* * `revoked` - Revoked
@@ -36858,6 +36943,12 @@ export namespace Schemas {
* * `revoked` - Revoked
* * `expired` - Expired */
status: DevTokenStatusEnum;
+ /**
+ * Budget left on a live token, net of in-flight requests, in USD. Null when not live or unknown.
+ * @nullable
+ * @pattern ^-?\d{0,6}(?:\.\d{0,6})?$
+ */
+ remaining_usd: string | null;
}
export interface DevTokenRefusal {
@@ -36880,6 +36971,14 @@ export namespace Schemas {
revoked_count: number;
}
+ export interface DevTokenStatusRequest {
+ /**
+ * The phe_ bearer to look up. Only its sha256 is compared.
+ * @pattern ^phe_[A-Za-z0-9_-]{1,252}$
+ */
+ token: string;
+ }
+
export interface DevTokenUsage {
/**
* Most token caps one user can mint in 24 hours, in USD.
diff --git a/tools/hogli-commands/hogli_commands/gateway.py b/tools/hogli-commands/hogli_commands/gateway.py
index 8b52680ea78d..0e3edaabc615 100644
--- a/tools/hogli-commands/hogli_commands/gateway.py
+++ b/tools/hogli-commands/hogli_commands/gateway.py
@@ -1,4 +1,5 @@
-"""`hogli gateway:token`, a short-lived AI gateway token for PostHog staff.
+"""`hogli gateway:token`, a short-lived AI gateway token for PostHog staff, and
+`hogli gateway:status`, which reports how much of one is left.
hogli holds no PostHog credential for this. The staff member approves a PKCE challenge on the
developer mode settings page, the page hands a one-time code to a loopback port, and hogli
@@ -7,6 +8,8 @@ exchanges the code and its verifier for a token attributed to that staff member.
from __future__ import annotations
+import os
+import sys
import json
import base64
import hashlib
@@ -21,6 +24,9 @@ from hogli_commands import posthog_auth
_SETTINGS_PATH = "/settings/user-ai-gateway-dev-mode"
_EXCHANGE_PATH = "/api/ai_gateway/dev_tokens/cli_exchange/"
+_STATUS_PATH = "/api/ai_gateway/dev_tokens/token_status/"
+# Checked in order; the first value that is a phe_ token wins, so a real provider key is skipped.
+_TOKEN_ENV_VARS = ("POSTHOG_GATEWAY_TOKEN", "ANTHROPIC_API_KEY", "OPENAI_API_KEY")
_HTTP_TIMEOUT_SECONDS = 30.0
# An approved code plus its verifier is a token, so the CLI only sends them to hosts staff
# actually approve on. Local dev hosts match on any port.
@@ -70,6 +76,54 @@ def gateway_token(host: str, allow_any_host: bool, as_json: bool) -> None:
)
[email protected](name="gateway:status", help="Show how much budget a developer mode token has left.")
+ "--host",
+ default=posthog_auth.DEFAULT_HOST,
+ show_default=True,
+ help="PostHog host that minted the token (e.g. https://eu.posthog.com).",
+)
+ "--allow-any-host",
+ is_flag=True,
+ help="Skip the --host allowlist. Only use this for a host you run yourself.",
+)
[email protected]("--json", "as_json", is_flag=True, help="Print the full status response as JSON.")
+def gateway_status(host: str, allow_any_host: bool, as_json: bool) -> None:
+ host = host.rstrip("/") if allow_any_host else _allowed_host(host)
+ token = _find_token()
+ status = _post(host, _STATUS_PATH, {"token": token}, expected=200, action="token status lookup")
+ if as_json:
+ click.echo(json.dumps(status))
+ return
+ if status["status"] != "live":
+ click.echo(f"The token is {status['status']}.")
+ return
+ if status.get("remaining_usd") is None:
+ click.echo(f"The token is live, with a ${status['cap_usd']} cap. The gateway did not report what is left.")
+ else:
+ # Four places, because single calls cost fractions of a cent and two would show an untouched cap.
+ remaining = float(status["remaining_usd"])
+ spent = float(status["cap_usd"]) - remaining
+ click.echo(f"${remaining:.4f} of ${status['cap_usd']} left (${spent:.4f} spent).")
+ click.echo(f"The token expires at {status['expires_at']}.")
+
+
+def _find_token() -> str:
+ """Reads the token from stdin or the environment, never argv, so it stays out of shell history."""
+ if not sys.stdin.isatty():
+ piped = sys.stdin.read().strip()
+ if piped:
+ if not piped.startswith("phe_"):
+ raise click.UsageError("stdin does not hold a phe_ token.")
+ return piped
+ for name in _TOKEN_ENV_VARS:
+ value = os.environ.get(name, "").strip()
+ if value.startswith("phe_"):
+ return value
+ raise click.UsageError(f"No phe_ token found. Pipe one on stdin or set one of {', '.join(_TOKEN_ENV_VARS)}.")
+
+
def _allowed_host(host: str) -> str:
try:
parts = urlsplit(host.strip())
@@ -92,10 +146,14 @@ def _allowed_host(host: str) -> str:
def _exchange(host: str, *, code: str, verifier: str) -> dict[str, Any]:
+ return _post(host, _EXCHANGE_PATH, {"code": code, "code_verifier": verifier}, expected=201, action="token exchange")
+
+
+def _post(host: str, path: str, payload: dict[str, str], *, expected: int, action: str) -> dict[str, Any]:
try:
response = requests.post(
- f"{host}{_EXCHANGE_PATH}",
- json={"code": code, "code_verifier": verifier},
+ f"{host}{path}",
+ json=payload,
timeout=_HTTP_TIMEOUT_SECONDS,
allow_redirects=False,
)
@@ -105,9 +163,7 @@ def _exchange(host: str, *, code: str, verifier: str) -> dict[str, Any]:
body = response.json()
except ValueError:
body = None
- if response.status_code != 201 or not isinstance(body, dict):
+ if response.status_code != expected or not isinstance(body, dict):
detail = body.get("detail") if isinstance(body, dict) else None
- raise click.ClickException(
- f"{host} refused the token exchange ({response.status_code}): {detail or response.text}"
- )
+ raise click.ClickException(f"{host} refused the {action} ({response.status_code}): {detail or response.text}")
return body
diff --git a/tools/hogli-commands/hogli_commands/tests/test_gateway.py b/tools/hogli-commands/hogli_commands/tests/test_gateway.py
index 0db89de2f9aa..d03602082abf 100644
--- a/tools/hogli-commands/hogli_commands/tests/test_gateway.py
+++ b/tools/hogli-commands/hogli_commands/tests/test_gateway.py
@@ -104,3 +104,41 @@ def test_host_allowlist(host: str, args: tuple[str, ...], expected_origin: str |
assert opened[0].startswith(f"{expected_origin}/settings/")
assert post.call_args.args[0].startswith(f"{expected_origin}/api/")
assert post.call_args.kwargs["allow_redirects"] is False
+
+
+ "stdin,env,sent",
+ [
+ ("phe_piped\n", {"POSTHOG_GATEWAY_TOKEN": "phe_env"}, "phe_piped"),
+ # A real provider key in ANTHROPIC_API_KEY is skipped, never sent to PostHog.
+ ("", {"ANTHROPIC_API_KEY": "sk-ant-real", "OPENAI_API_KEY": "phe_openai"}, "phe_openai"),
+ ],
+)
+def test_status_sends_only_a_phe_token(
+ stdin: str, env: dict[str, str], sent: str, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ for name in gateway._TOKEN_ENV_VARS:
+ monkeypatch.delenv(name, raising=False)
+ status = {"status": "live", "cap_usd": "25.00", "remaining_usd": "24.999343", "expires_at": "2026-10-23T22:00:00Z"}
+ post = MagicMock(return_value=_response(200, status))
+
+ with patch.object(gateway.requests, "post", post):
+ result = CliRunner(mix_stderr=False).invoke(gateway.gateway_status, [], input=stdin, env=env)
+
+ assert result.exit_code == 0, result.output
+ assert post.call_args.kwargs["json"] == {"token": sent}
+ assert "$24.9993 of $25.00 left ($0.0007 spent)." in result.output
+
+
+def test_status_refuses_without_a_phe_token(monkeypatch: pytest.MonkeyPatch) -> None:
+ for name in gateway._TOKEN_ENV_VARS:
+ monkeypatch.delenv(name, raising=False)
+ post = MagicMock()
+
+ with patch.object(gateway.requests, "post", post):
+ result = CliRunner(mix_stderr=False).invoke(
+ gateway.gateway_status, [], env={"ANTHROPIC_API_KEY": "sk-ant-real"}
+ )
+
+ assert result.exit_code != 0
+ post.assert_not_called()