@raystack/frontier 0.115.0 → 0.116.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -355,8 +355,8 @@ import {
355
355
  } from "@raystack/apsara";
356
356
  import "react-image-crop/dist/ReactCrop.css";
357
357
 
358
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-SjM5hcjIOtL3/sdk/client/components/image-upload/image-upload.module.css.js
359
- var digest = "0e8e5424a2064adfd762a4255b9a5f06bc15581df441d15a0df1d1640c550962";
358
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-uPJRGLh3aYgM/sdk/client/components/image-upload/image-upload.module.css.js
359
+ var digest = "f91291c313194e4a5aecd50a77154e52d8d30e6ec1669e3e4040ad8c5b940946";
360
360
  var css = `._iconButton_1ifr2_1 {
361
361
  position: relative;
362
362
  width: var(--rs-space-14);
@@ -667,8 +667,8 @@ function ImageUpload(_a) {
667
667
  // client/components/view-container/view-container.tsx
668
668
  import { Flex as Flex2 } from "@raystack/apsara";
669
669
 
670
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-Wwx3xCLOZlVv/sdk/client/components/view-container/view-container.module.css.js
671
- var digest2 = "6acdaf3929102c90245bfb348f1f49a0121e5f23df5825c61644bf3fc6c189e3";
670
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-5zrVC5XbTSC1/sdk/client/components/view-container/view-container.module.css.js
671
+ var digest2 = "0646d0abfd3980f52300f89e755ebc4334f4d7fb2939fec016c332372058940d";
672
672
  var css2 = `._container_13qo0_1 {
673
673
  background-color: var(--rs-color-background-base-primary);
674
674
  width: 100%;
@@ -730,8 +730,8 @@ function ViewHeader(_a) {
730
730
  import { Flex as Flex4 } from "@raystack/apsara";
731
731
  import { cx as cx2 } from "class-variance-authority";
732
732
 
733
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-aTAHMELghCWa/sdk/client/components/auth-container/auth-container.module.css.js
734
- var digest3 = "3333346d8221b9a598da1c5e3a44ac866618739fe27a8f06d73ab7446c16352f";
733
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-62yfhF4evh3q/sdk/client/components/auth-container/auth-container.module.css.js
734
+ var digest3 = "affc8d8a750f90a1f0fd900bfe9d580cb4907b16e375ce5225d1a54dd1061393";
735
735
  var css3 = `._container_1088g_1 {
736
736
  min-width: 220px;
737
737
  max-width: 480px;
@@ -778,8 +778,8 @@ import { Flex as Flex5, Headline as Headline2 } from "@raystack/apsara";
778
778
  // client/assets/logo.png
779
779
  var logo_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAABZvElEQVR4nNS9CZAeR3Ymlq/67xt9X2igL6DRQIMASIInyAHBIXjNDGdGszMaWdbE2pJshxW2YqW1HCGtHCs55JD2sLwrybK1G7JXVnjlWB07M9JoODMYDs8BSfAACeJGA+gD3Y1G3/f9/+n4qyoz38t8WX/9ALWxW0Gi68/KyvPl9773Misz83Nf/4GQUkohpRBCivy/Ivyp7tX/IKI4IgoF4VzhUxDSCoku4ALd38DHccMleNNg85JJiTsh+fSZQF9knC4U/y4TH7hyqmaXbra+7jCp0UAnPtNr4BYpugETEt5DFKLvAUQmEqBIqvL/KpGSOgMZyp2AnBIrkG7lTMbxy2CXL07QCVfSDLHscpUFq94yKoU06ThNzXZMPlxKOz36Ixo/KIa0ZEW6tXYSYwuARibTi5J2pJS0iVA4I0P2CEItg1IjIfQPoF7Sf6Ulkbo0IAKI65cvD+gRFd7LfBtnsFSFgoXESxjcEiqAKSVt8XhISTZceMNFTsGl6hIw/0qn/UBIKazGEJxYGKxC4Xa/kh7VHSFJv5KyodgRkgM44c6IlyyoC52fCQVrDKrBYNfXh9PR21K67anHLu27OH8X2HAfhZFCcJIyF4ZGiCWVSOWbIZQrAMjE7SiN+pNKthRuKYmStBnI2KDVk5KODdUoXEM4SCbj0kradtLtfiHZcHe0qTZ2lbBHNJkudGMKJCg+oHUvI9ysWEhSOx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QCQZSjIu/Kp55XgnrP6SB0jEt05js6CsuMEQk8Grt4zphLdrj0qXkP6/FuEMWNSLaYjBVWQOIlGUUFc49pid7w1JiXdl5I67Ep2pYQIu+Ogna4v1UgO1Bat7aESzpBDEozgiAnM6qt6yPJyxjvsZCBwKfTak9DiFXYYpJq57tAILsXJOcXAKdi3vlOd/9tz7oIcLWbxm0LOSQnr9JpMKTO/NpQulhbAIRUukiR2ak73W93M5kCpoIYl8bmcPR7Y4YDEHe2b6qa7yMwOcT3QSxoWqqihxlNd9UeSGZuEAzNUX4+dUCWqRKYsRQkrI9xvSZWlIQpbRdCHD9QQnMAG87ybtY35jInIOE4kCZoOtbOSDhpCi0iQB6h3CVWmlLrQUZjsinoSvJD3WpP87Iuj+1FdXSikao8xxKaHwcgc1I/iI4LQNPHxvhXWQZqAQTDHjzQ7acFBg7dZpe2B5ByGrAbWc+ggev4JvGdnrB2uETd6WyQJR1EICIo3ZUlYFULX3FaYC/jQXW0pNN1BrrlVzGxvrH1SiLxwlZkIHQbm7N/MGHHJwyJDOBzSAPAQyH2yEfrZdjVJQD27gX+hoj+cKe/JAxoif4aafLJpZqORXIHHuXLZQnC8drrqRK7MyTil4bTkL28SbmwXEpGCIBUk7zsQiYZgkg7gwg8KI6KauKzGpCGEzaCNDoiUPrAIkBqGOD/DwAA//8N10+QXsh1VAAAAABJRU5ErkJggg==";
780
780
 
781
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-RbRT27UgPeAq/sdk/client/components/auth-header/auth-header.module.css.js
782
- var digest4 = "985e91e102da063fadcde8125250b5b4702699185fe8d97daab18ceda16a2267";
781
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-XWaB8Q7Kvklp/sdk/client/components/auth-header/auth-header.module.css.js
782
+ var digest4 = "0c3a9a9b85d2caff39ed309f34998508066c6f8befb5850e222c16b38b0c5a60";
783
783
  var css4 = `._container_15i8g_1 {
784
784
  min-width: 220px;
785
785
  max-width: 100%;
@@ -1428,8 +1428,8 @@ var shouldShowComponent = (permissions = {}, permisionsRequired) => {
1428
1428
  return permissions[permisionsRequired] === true;
1429
1429
  };
1430
1430
 
1431
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-1e2bA9wSVWra/sdk/client/components/auth-oidc-button/auth-oidc-button.module.css.js
1432
- var digest5 = "b780e4d3bc5ad3d5b49d850e4e1638921897dcb55d9ca3fe30a51c05e34ec0c4";
1431
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-kzGlSSfid7Mp/sdk/client/components/auth-oidc-button/auth-oidc-button.module.css.js
1432
+ var digest5 = "12aa8b31f0f953a6f78eabbfa3e5887ee909d2a306506bc6a5e304c7d62b0d24";
1433
1433
  var css5 = `._button_wx9jp_1 {
1434
1434
  width: 100%;
1435
1435
  }
@@ -1488,8 +1488,8 @@ import isEmail from "validator/lib/isEmail";
1488
1488
  import { useMutation as useMutation2 } from "@connectrpc/connect-query";
1489
1489
  import { FrontierServiceQueries as FrontierServiceQueries3 } from "@raystack/proton/frontier";
1490
1490
 
1491
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-kYTD06va0XNh/sdk/client/views/auth/magic-link/magic-link-view.module.css.js
1492
- var digest6 = "b6be0d71ca33d8287293505ebccacc261fa3c3c0aa28458401f6f6c33b88758b";
1491
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-IaJkPmoyecGy/sdk/client/views/auth/magic-link/magic-link-view.module.css.js
1492
+ var digest6 = "baed6b3028006ebed372711456bd26fe6fc37c8b95d8426bff56c29fd0355adb";
1493
1493
  var css6 = `._form_f3bzk_1 {
1494
1494
  width: 100%;
1495
1495
  display: flex;
@@ -1631,8 +1631,8 @@ var MagicLinkView = (_a) => {
1631
1631
  ] }));
1632
1632
  };
1633
1633
 
1634
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-537cyWbpjkZU/sdk/client/views/auth/sign-in/sign-in-view.module.css.js
1635
- var digest7 = "6893732c1739ea0f15330ea6743b886acb69502f28c4641750c6226b8fd6aedf";
1634
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-vRFBp5Ckkyaj/sdk/client/views/auth/sign-in/sign-in-view.module.css.js
1635
+ var digest7 = "b5b358c64526cd17eefc13f56f8726725a1a4bb9bd234bf286611313266a0aa9";
1636
1636
  var css7 = `._redirectLink_jq3hl_1 {
1637
1637
  color: var(--rs-color-foreground-accent-primary);
1638
1638
  }
@@ -1733,8 +1733,8 @@ import { useCallback as useCallback4 } from "react";
1733
1733
  import { useMutation as useMutation4, useQuery as useQuery4 } from "@connectrpc/connect-query";
1734
1734
  import { FrontierServiceQueries as FrontierServiceQueries5 } from "@raystack/proton/frontier";
1735
1735
 
1736
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-5744Pep7AF1m/sdk/client/views/auth/sign-up/sign-up-view.module.css.js
1737
- var digest8 = "623034730225f55f2a9ef9ce9e74f64b1302bd6c745bbe29c33f8c99a416c9d1";
1736
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-mhTJZYHfYjgk/sdk/client/views/auth/sign-up/sign-up-view.module.css.js
1737
+ var digest8 = "32185c4f9f97fc25a510a31e0bcc3e980bcc382e4f0f44032e84ff4e107edad0";
1738
1738
  var css8 = `._redirectLink_jq3hl_1 {
1739
1739
  color: var(--rs-color-foreground-accent-primary);
1740
1740
  }
@@ -1838,8 +1838,8 @@ import {
1838
1838
  import { useMutation as useMutation5 } from "@connectrpc/connect-query";
1839
1839
  import { FrontierServiceQueries as FrontierServiceQueries6 } from "@raystack/proton/frontier";
1840
1840
 
1841
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-ES7PxJnBe12Y/sdk/client/views/auth/magic-link-verify/magic-link-verify-view.module.css.js
1842
- var digest9 = "f94cea2866c36fc1aacdb41bffbc3aee411955afa1517513a1fc8e64a1cfe117";
1841
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-QPynPyAgag3t/sdk/client/views/auth/magic-link-verify/magic-link-verify-view.module.css.js
1842
+ var digest9 = "6bbaff5b2b3b89ec3123f93c1f9267ef1f0c493b0ccc492d82c1fa41a00c7876";
1843
1843
  var css9 = `._button_1oqz9_1 {
1844
1844
  width: 100%;
1845
1845
  }
@@ -2004,8 +2004,8 @@ import { create as create4 } from "@bufbuild/protobuf";
2004
2004
  // client/assets/check-circle.svg
2005
2005
  var check_circle_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <g id="Check circle">%0A <path id="Vector" fill-rule="evenodd" clip-rule="evenodd"%0A d="M1.5 8C1.5 4.41 4.41 1.5 8 1.5C11.59 1.5 14.5 4.41 14.5 8C14.5 11.59 11.59 14.5 8 14.5C4.41 14.5 1.5 11.59 1.5 8ZM10.4067 6.79067C10.4467 6.73737 10.4756 6.67661 10.4918 6.61197C10.508 6.54732 10.5111 6.48009 10.5009 6.41424C10.4907 6.34838 10.4675 6.28522 10.4326 6.22847C10.3976 6.17171 10.3517 6.12252 10.2975 6.08377C10.2433 6.04502 10.1819 6.0175 10.1169 6.00282C10.0519 5.98814 9.98459 5.98661 9.91899 5.99831C9.85338 6.01001 9.79078 6.0347 9.73485 6.07094C9.67893 6.10718 9.63081 6.15423 9.59333 6.20933L7.436 9.22933L6.35333 8.14667C6.25855 8.05835 6.13319 8.01026 6.00365 8.01255C5.87412 8.01484 5.75053 8.06731 5.65892 8.15892C5.56731 8.25053 5.51484 8.37412 5.51255 8.50365C5.51026 8.63319 5.55835 8.75855 5.64667 8.85333L7.14667 10.3533C7.19799 10.4046 7.25987 10.4441 7.32799 10.4691C7.39612 10.4941 7.46886 10.5039 7.54118 10.498C7.61349 10.492 7.68364 10.4704 7.74675 10.4346C7.80987 10.3988 7.86443 10.3497 7.90667 10.2907L10.4067 6.79067Z"%0A fill="%2330A46C" />%0A </g>%0A</svg>';
2006
2006
 
2007
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-kSbe5ZUl73dv/sdk/client/views/auth/subscribe/subscribe-view.module.css.js
2008
- var digest10 = "bdaac257d1cbd775dd9048267f2e5e20eabebe16f65ac6896ddba5f17d671fae";
2007
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-1O7sjhTL4Ihr/sdk/client/views/auth/subscribe/subscribe-view.module.css.js
2008
+ var digest10 = "8b4dfb04602a64c40eab7cede687ff9d674899a2e858c3032777723ad73a12b2";
2009
2009
  var css10 = `._button_10v8x_1 {
2010
2010
  width: 100%;
2011
2011
  }
@@ -2346,8 +2346,8 @@ function usePreferences({
2346
2346
  };
2347
2347
  }
2348
2348
 
2349
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-FpNGBu42x1f1/sdk/client/views/auth/updates/updates-view.module.css.js
2350
- var digest11 = "76fa6366e72bb7751d1af5176a643c72ea2a4b9250d574acc9ada89452128deb";
2349
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-HTDJlW86srVp/sdk/client/views/auth/updates/updates-view.module.css.js
2350
+ var digest11 = "3fbc1c3b36eb635bef632e6291f9dbc34e987497ab0f920d06f31727dcfb36c1";
2351
2351
  var css11 = `._button_zt41c_1 {
2352
2352
  width: 100%;
2353
2353
  }
@@ -2454,20 +2454,22 @@ var UpdatesView = ({
2454
2454
  };
2455
2455
 
2456
2456
  // client/views/general/general-view.tsx
2457
- import { useEffect as useEffect3, useMemo as useMemo5, useState as useState8 } from "react";
2457
+ import { useEffect as useEffect4, useMemo as useMemo6, useState as useState8 } from "react";
2458
2458
  import { yupResolver as yupResolver5 } from "@hookform/resolvers/yup";
2459
2459
  import { useForm as useForm5 } from "react-hook-form";
2460
2460
  import * as yup5 from "yup";
2461
- import { create as create8 } from "@bufbuild/protobuf";
2461
+ import { create as create9 } from "@bufbuild/protobuf";
2462
2462
  import {
2463
2463
  createConnectQueryKey as createConnectQueryKey3,
2464
2464
  useMutation as useMutation9,
2465
+ useQuery as useQuery8,
2465
2466
  useTransport as useTransport3
2466
2467
  } from "@connectrpc/connect-query";
2467
2468
  import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
2468
2469
  import {
2469
- FrontierServiceQueries as FrontierServiceQueries11,
2470
- UpdateOrganizationRequestSchema
2470
+ FrontierServiceQueries as FrontierServiceQueries12,
2471
+ UpdateOrganizationRequestSchema,
2472
+ CheckOrganizationDeleteRequestSchema
2471
2473
  } from "@raystack/proton/frontier";
2472
2474
  import {
2473
2475
  Button as Button8,
@@ -2477,7 +2479,7 @@ import {
2477
2479
  Flex as Flex13,
2478
2480
  Field as Field3,
2479
2481
  Input as Input5,
2480
- toastManager as toastManager3
2482
+ toastManager as toastManager4
2481
2483
  } from "@raystack/apsara";
2482
2484
 
2483
2485
  // client/hooks/usePermissions.ts
@@ -2597,15 +2599,70 @@ var useTerminology = () => {
2597
2599
  return useContext2(TerminologyContext);
2598
2600
  };
2599
2601
 
2602
+ // client/utils/delete-blockers.ts
2603
+ var DEFAULT_WORDING = {
2604
+ organizationLabel: "organization"
2605
+ };
2606
+ var BLOCKER_INSTRUCTIONS = {
2607
+ ACTIVE_SUBSCRIPTION: (_, { organizationLabel, basePlanTitle }) => `Downgrade your current subscription and switch to the ${basePlanTitle || "standard plan"} before deleting this ${organizationLabel}.`,
2608
+ UNPAID_INVOICE: (count, { organizationLabel }) => count > 1 ? `Please pay your ${count} outstanding invoices before deleting this ${organizationLabel}.` : `Please pay your outstanding invoice before deleting this ${organizationLabel}.`,
2609
+ NEGATIVE_TOKEN_BALANCE: (_, { organizationLabel }) => `Please purchase enough tokens to clear your outstanding token balance before deleting this ${organizationLabel}.`
2610
+ };
2611
+ var GENERIC_DELETE_BLOCKED_MESSAGE = "Something is blocking the delete right now. Please try again later or contact support.";
2612
+ function instructionLines(blockers, wording = DEFAULT_WORDING) {
2613
+ var _a;
2614
+ const counts2 = /* @__PURE__ */ new Map();
2615
+ for (const blocker of blockers) {
2616
+ counts2.set(blocker.type, ((_a = counts2.get(blocker.type)) != null ? _a : 0) + 1);
2617
+ }
2618
+ const lines = [];
2619
+ let hasUnknown = false;
2620
+ for (const [type, count] of counts2) {
2621
+ const instruction = BLOCKER_INSTRUCTIONS[type];
2622
+ if (instruction) {
2623
+ lines.push(instruction(count, wording));
2624
+ } else {
2625
+ hasUnknown = true;
2626
+ }
2627
+ }
2628
+ if (hasUnknown) {
2629
+ lines.push(GENERIC_DELETE_BLOCKED_MESSAGE);
2630
+ }
2631
+ return lines;
2632
+ }
2633
+ function deleteBlockedDescription(err, wording = DEFAULT_WORDING) {
2634
+ for (const detail of err.details) {
2635
+ if (!("type" in detail) || detail.type !== "google.rpc.PreconditionFailure") {
2636
+ continue;
2637
+ }
2638
+ const debug = detail.debug;
2639
+ if (typeof debug !== "object" || debug === null) {
2640
+ continue;
2641
+ }
2642
+ const violations = debug.violations;
2643
+ if (!Array.isArray(violations)) {
2644
+ continue;
2645
+ }
2646
+ const blockers = violations.filter(
2647
+ (violation) => typeof violation === "object" && violation !== null && typeof violation.type === "string"
2648
+ );
2649
+ const lines = instructionLines(blockers, wording);
2650
+ if (lines.length > 0) {
2651
+ return lines.join(" ");
2652
+ }
2653
+ }
2654
+ return GENERIC_DELETE_BLOCKED_MESSAGE;
2655
+ }
2656
+
2600
2657
  // client/views/general/components/delete-organization-dialog.tsx
2601
2658
  import { useState as useState7 } from "react";
2602
2659
  import { yupResolver as yupResolver4 } from "@hookform/resolvers/yup";
2603
2660
  import { useForm as useForm4 } from "react-hook-form";
2604
2661
  import * as yup4 from "yup";
2605
- import { create as create7 } from "@bufbuild/protobuf";
2662
+ import { create as create8 } from "@bufbuild/protobuf";
2606
2663
  import { useMutation as useMutation8 } from "@connectrpc/connect-query";
2607
2664
  import {
2608
- FrontierServiceQueries as FrontierServiceQueries10,
2665
+ FrontierServiceQueries as FrontierServiceQueries11,
2609
2666
  DeleteOrganizationRequestSchema
2610
2667
  } from "@raystack/proton/frontier";
2611
2668
  import {
@@ -2616,8 +2673,59 @@ import {
2616
2673
  Flex as Flex12,
2617
2674
  Input as Input4,
2618
2675
  Text as Text9,
2619
- toastManager as toastManager2
2676
+ toastManager as toastManager3
2620
2677
  } from "@raystack/apsara";
2678
+
2679
+ // client/hooks/useTokens.ts
2680
+ import { useMemo as useMemo5, useEffect as useEffect3 } from "react";
2681
+ import { useQuery as useQuery7 } from "@connectrpc/connect-query";
2682
+ import { create as create7 } from "@bufbuild/protobuf";
2683
+ import { FrontierServiceQueries as FrontierServiceQueries10, GetBillingBalanceRequestSchema } from "@raystack/proton/frontier";
2684
+ import { toastManager as toastManager2 } from "@raystack/apsara";
2685
+ var useTokens = (options = {}) => {
2686
+ var _a, _b, _c;
2687
+ const { billingAccount } = useFrontier();
2688
+ const {
2689
+ data,
2690
+ isLoading: isTokensLoading,
2691
+ isFetching: isTokensFetching,
2692
+ error,
2693
+ refetch
2694
+ } = useQuery7(
2695
+ FrontierServiceQueries10.getBillingBalance,
2696
+ create7(GetBillingBalanceRequestSchema, {
2697
+ id: (_a = billingAccount == null ? void 0 : billingAccount.id) != null ? _a : ""
2698
+ }),
2699
+ {
2700
+ enabled: !!(billingAccount == null ? void 0 : billingAccount.id) && ((_b = options.enabled) != null ? _b : true),
2701
+ retry: false
2702
+ }
2703
+ );
2704
+ useEffect3(() => {
2705
+ if (error) {
2706
+ console.error(error);
2707
+ toastManager2.add({
2708
+ title: "Unable to fetch balance",
2709
+ type: "error"
2710
+ });
2711
+ }
2712
+ }, [error]);
2713
+ const tokenBalance = useMemo5(
2714
+ () => {
2715
+ var _a2;
2716
+ return BigInt(((_a2 = data == null ? void 0 : data.balance) == null ? void 0 : _a2.amount) || "0");
2717
+ },
2718
+ [(_c = data == null ? void 0 : data.balance) == null ? void 0 : _c.amount]
2719
+ );
2720
+ return {
2721
+ tokenBalance,
2722
+ isTokensLoading,
2723
+ isTokensFetching,
2724
+ fetchTokenBalance: refetch
2725
+ };
2726
+ };
2727
+
2728
+ // client/views/general/components/delete-organization-dialog.tsx
2621
2729
  import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
2622
2730
  var deleteOrgSchema = yup4.object({
2623
2731
  title: yup4.string()
@@ -2629,12 +2737,13 @@ var DeleteOrganizationDialog = ({
2629
2737
  }) => {
2630
2738
  var _a;
2631
2739
  const t = useTerminology();
2632
- const { activeOrganization: organization } = useFrontier();
2740
+ const { activeOrganization: organization, basePlan } = useFrontier();
2633
2741
  const orgLabel = t.organization({ case: "capital" });
2634
2742
  const orgLabelLower = t.organization({ case: "lower" });
2635
2743
  const [isAcknowledged, setIsAcknowledged] = useState7(false);
2744
+ const { tokenBalance, isTokensFetching } = useTokens({ enabled: open });
2636
2745
  const { mutateAsync: deleteOrganization } = useMutation8(
2637
- FrontierServiceQueries10.deleteOrganization
2746
+ FrontierServiceQueries11.deleteOrganization
2638
2747
  );
2639
2748
  const {
2640
2749
  register,
@@ -2657,20 +2766,28 @@ var DeleteOrganizationDialog = ({
2657
2766
  return;
2658
2767
  }
2659
2768
  try {
2660
- const req = create7(DeleteOrganizationRequestSchema, {
2769
+ const req = create8(DeleteOrganizationRequestSchema, {
2661
2770
  id: organization.id
2662
2771
  });
2663
2772
  yield deleteOrganization(req);
2664
- toastManager2.add({
2773
+ toastManager3.add({
2665
2774
  title: `${orgLabel} deleted`,
2666
2775
  type: "success"
2667
2776
  });
2668
2777
  onDeleteSuccess == null ? void 0 : onDeleteSuccess();
2669
2778
  } catch (error) {
2670
2779
  handleConnectError(error, {
2671
- PermissionDenied: () => toastManager2.add({ title: "You don't have permission to perform this action", type: "error" }),
2672
- NotFound: (err) => toastManager2.add({ title: "Not found", description: err.message, type: "error" }),
2673
- Default: (err) => toastManager2.add({ title: "Something went wrong", description: err.message, type: "error" })
2780
+ PermissionDenied: () => toastManager3.add({ title: "You don't have permission to perform this action", type: "error" }),
2781
+ FailedPrecondition: (err) => toastManager3.add({
2782
+ title: `Cannot delete this ${orgLabelLower} yet`,
2783
+ description: deleteBlockedDescription(err, {
2784
+ organizationLabel: orgLabelLower,
2785
+ basePlanTitle: basePlan == null ? void 0 : basePlan.title
2786
+ }),
2787
+ type: "error"
2788
+ }),
2789
+ NotFound: () => toastManager3.add({ title: "Not found", description: `This ${orgLabelLower} no longer exists.`, type: "error" }),
2790
+ Default: () => toastManager3.add({ title: "Something went wrong", description: "Please try again later or contact support.", type: "error" })
2674
2791
  });
2675
2792
  }
2676
2793
  });
@@ -2686,6 +2803,11 @@ var DeleteOrganizationDialog = ({
2686
2803
  organization == null ? void 0 : organization.title,
2687
2804
  "."
2688
2805
  ] }),
2806
+ tokenBalance > 0 ? /* @__PURE__ */ jsxs11(Text9, { size: "small", variant: "danger", children: [
2807
+ "This ",
2808
+ orgLabelLower,
2809
+ " still has unused tokens, and deleting it forfeits them. If any of them were purchased, our support team will reach out to you to settle them."
2810
+ ] }) : null,
2689
2811
  /* @__PURE__ */ jsx15(
2690
2812
  Field2,
2691
2813
  {
@@ -2740,7 +2862,7 @@ var DeleteOrganizationDialog = ({
2740
2862
  variant: "solid",
2741
2863
  color: "danger",
2742
2864
  type: "submit",
2743
- disabled: !deleteTitle || !isAcknowledged,
2865
+ disabled: !deleteTitle || !isAcknowledged || isSubmitting || isTokensFetching,
2744
2866
  "data-test-id": "frontier-sdk-delete-organization-btn",
2745
2867
  loading: isSubmitting,
2746
2868
  loaderText: "Deleting...",
@@ -2751,8 +2873,8 @@ var DeleteOrganizationDialog = ({
2751
2873
  ] }) }) });
2752
2874
  };
2753
2875
 
2754
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-mbbIc9e3QPNR/sdk/client/views/general/general-view.module.css.js
2755
- var digest12 = "58d9550826e3d2a8ab696b27316789c877219f1c0b14969bff3f2d620b714174";
2876
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-Kn3ooLXGTs6r/sdk/client/views/general/general-view.module.css.js
2877
+ var digest12 = "328235e6a625d8f2d35567793a41eab2b288f7538a32021505ad6841cf7cd5d0";
2756
2878
  var css12 = `._section_29fut_1 {
2757
2879
  padding: var(--rs-space-9) 0;
2758
2880
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2791,17 +2913,18 @@ var generalSchema = yup5.object({
2791
2913
  name: yup5.string().required("URL is a required field")
2792
2914
  }).required();
2793
2915
  function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
2794
- var _a, _b, _c;
2916
+ var _a, _b, _c, _d;
2795
2917
  const t = useTerminology();
2796
2918
  const {
2797
2919
  activeOrganization: organization,
2798
2920
  isActiveOrganizationLoading,
2799
- setActiveOrganization
2921
+ setActiveOrganization,
2922
+ basePlan
2800
2923
  } = useFrontier();
2801
2924
  const queryClient2 = useQueryClient3();
2802
2925
  const transport = useTransport3();
2803
2926
  const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
2804
- const listOfPermissionsToCheck = useMemo5(() => {
2927
+ const listOfPermissionsToCheck = useMemo6(() => {
2805
2928
  return [
2806
2929
  {
2807
2930
  permission: PERMISSIONS.UpdatePermission,
@@ -2817,7 +2940,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
2817
2940
  listOfPermissionsToCheck,
2818
2941
  !!(organization == null ? void 0 : organization.id)
2819
2942
  );
2820
- const { canUpdateWorkspace, canDeleteWorkspace } = useMemo5(() => {
2943
+ const { canUpdateWorkspace, canDeleteWorkspace } = useMemo6(() => {
2821
2944
  return {
2822
2945
  canUpdateWorkspace: shouldShowComponent(
2823
2946
  permissions,
@@ -2830,22 +2953,43 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
2830
2953
  };
2831
2954
  }, [permissions, resource]);
2832
2955
  const isLoading = !(organization == null ? void 0 : organization.id) || isActiveOrganizationLoading || isPermissionsFetching;
2956
+ const { data: deleteCheck, isLoading: isDeleteCheckLoading } = useQuery8(
2957
+ FrontierServiceQueries12.checkOrganizationDelete,
2958
+ create9(CheckOrganizationDeleteRequestSchema, {
2959
+ id: (_a = organization == null ? void 0 : organization.id) != null ? _a : ""
2960
+ }),
2961
+ {
2962
+ enabled: canDeleteWorkspace && !!(organization == null ? void 0 : organization.id),
2963
+ retry: false
2964
+ }
2965
+ );
2966
+ const isDeleteBlocked = !!deleteCheck && !deleteCheck.canDelete;
2967
+ const blockerLines = useMemo6(
2968
+ () => {
2969
+ var _a2;
2970
+ return instructionLines((_a2 = deleteCheck == null ? void 0 : deleteCheck.blockers) != null ? _a2 : [], {
2971
+ organizationLabel: t.organization({ case: "lower" }),
2972
+ basePlanTitle: basePlan == null ? void 0 : basePlan.title
2973
+ });
2974
+ },
2975
+ [deleteCheck, t, basePlan]
2976
+ );
2833
2977
  const { mutateAsync: updateOrganization } = useMutation9(
2834
- FrontierServiceQueries11.updateOrganization,
2978
+ FrontierServiceQueries12.updateOrganization,
2835
2979
  {
2836
2980
  onSuccess: (data) => {
2837
2981
  if (data.organization) {
2838
2982
  setActiveOrganization(data.organization);
2839
2983
  queryClient2.invalidateQueries({
2840
2984
  queryKey: createConnectQueryKey3({
2841
- schema: FrontierServiceQueries11.getOrganization,
2985
+ schema: FrontierServiceQueries12.getOrganization,
2842
2986
  transport,
2843
2987
  input: { id: (organization == null ? void 0 : organization.id) || "" },
2844
2988
  cardinality: "finite"
2845
2989
  })
2846
2990
  });
2847
2991
  }
2848
- toastManager3.add({
2992
+ toastManager4.add({
2849
2993
  title: `Updated ${t.organization({ case: "lower" })}`,
2850
2994
  type: "success"
2851
2995
  });
@@ -2862,8 +3006,8 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
2862
3006
  } = useForm5({
2863
3007
  resolver: yupResolver5(generalSchema)
2864
3008
  });
2865
- const URL_PREFIX = urlPrefix != null ? urlPrefix : ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.host) + "/";
2866
- useEffect3(() => {
3009
+ const URL_PREFIX = urlPrefix != null ? urlPrefix : ((_b = window == null ? void 0 : window.location) == null ? void 0 : _b.host) + "/";
3010
+ useEffect4(() => {
2867
3011
  reset(organization);
2868
3012
  }, [organization, reset]);
2869
3013
  function onUpdateSubmit(data) {
@@ -2871,7 +3015,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
2871
3015
  if (!(organization == null ? void 0 : organization.id))
2872
3016
  return;
2873
3017
  try {
2874
- const req = create8(UpdateOrganizationRequestSchema, {
3018
+ const req = create9(UpdateOrganizationRequestSchema, {
2875
3019
  id: organization.id,
2876
3020
  body: {
2877
3021
  title: data.title,
@@ -2882,11 +3026,11 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
2882
3026
  yield updateOrganization(req);
2883
3027
  } catch (error) {
2884
3028
  handleConnectError(error, {
2885
- AlreadyExists: () => toastManager3.add({ title: `${t.organization({ case: "capital" })} already exists`, type: "error" }),
2886
- InvalidArgument: (err) => toastManager3.add({ title: "Invalid input", description: err.message, type: "error" }),
2887
- PermissionDenied: () => toastManager3.add({ title: "You don't have permission to perform this action", type: "error" }),
2888
- NotFound: (err) => toastManager3.add({ title: "Not found", description: err.message, type: "error" }),
2889
- Default: (err) => toastManager3.add({ title: "Something went wrong", description: err.message, type: "error" })
3029
+ AlreadyExists: () => toastManager4.add({ title: `${t.organization({ case: "capital" })} already exists`, type: "error" }),
3030
+ InvalidArgument: (err) => toastManager4.add({ title: "Invalid input", description: err.message, type: "error" }),
3031
+ PermissionDenied: () => toastManager4.add({ title: "You don't have permission to perform this action", type: "error" }),
3032
+ NotFound: (err) => toastManager4.add({ title: "Not found", description: err.message, type: "error" }),
3033
+ Default: (err) => toastManager4.add({ title: "Something went wrong", description: err.message, type: "error" })
2890
3034
  });
2891
3035
  }
2892
3036
  });
@@ -2931,7 +3075,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
2931
3075
  Field3,
2932
3076
  {
2933
3077
  label: `${orgLabel} name`,
2934
- error: errors.title && String((_b = errors.title) == null ? void 0 : _b.message),
3078
+ error: errors.title && String((_c = errors.title) == null ? void 0 : _c.message),
2935
3079
  children: /* @__PURE__ */ jsx16(
2936
3080
  Input5,
2937
3081
  __spreadValues({
@@ -2947,7 +3091,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
2947
3091
  Field3,
2948
3092
  {
2949
3093
  label: `${orgLabel} URL`,
2950
- error: errors.name && String((_c = errors.name) == null ? void 0 : _c.message),
3094
+ error: errors.name && String((_d = errors.name) == null ? void 0 : _d.message),
2951
3095
  children: /* @__PURE__ */ jsx16(
2952
3096
  Input5,
2953
3097
  __spreadValues({
@@ -3000,7 +3144,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
3000
3144
  /* @__PURE__ */ jsx16(
3001
3145
  Tooltip.Trigger,
3002
3146
  {
3003
- disabled: canDeleteWorkspace,
3147
+ disabled: canDeleteWorkspace && !isDeleteBlocked,
3004
3148
  render: /* @__PURE__ */ jsx16("span", { className: general_view_module_css_default.fitContent }),
3005
3149
  children: /* @__PURE__ */ jsxs12(
3006
3150
  Button8,
@@ -3008,7 +3152,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
3008
3152
  variant: "solid",
3009
3153
  color: "danger",
3010
3154
  onClick: () => setShowDeleteDialog(true),
3011
- disabled: !canDeleteWorkspace,
3155
+ disabled: !canDeleteWorkspace || isDeleteBlocked || isDeleteCheckLoading,
3012
3156
  "data-test-id": "frontier-sdk-delete-organization-btn",
3013
3157
  children: [
3014
3158
  "Delete ",
@@ -3018,7 +3162,7 @@ function GeneralView({ onDeleteSuccess, urlPrefix } = {}) {
3018
3162
  )
3019
3163
  }
3020
3164
  ),
3021
- !canDeleteWorkspace && /* @__PURE__ */ jsx16(Tooltip.Content, { children: AuthTooltipMessage })
3165
+ !canDeleteWorkspace ? /* @__PURE__ */ jsx16(Tooltip.Content, { children: AuthTooltipMessage }) : isDeleteBlocked ? /* @__PURE__ */ jsx16(Tooltip.Content, { children: /* @__PURE__ */ jsx16(Flex13, { direction: "column", gap: 2, children: blockerLines.map((line) => /* @__PURE__ */ jsx16(Text10, { children: line }, line)) }) }) : null
3022
3166
  ] })
3023
3167
  ] }) })
3024
3168
  ] }) }),
@@ -3040,8 +3184,8 @@ import { BellIcon, BellSlashIcon } from "@raystack/apsara/icons";
3040
3184
  // client/views/preferences/components/preference-row.tsx
3041
3185
  import { Flex as Flex14, Text as Text11, Skeleton as Skeleton3 } from "@raystack/apsara";
3042
3186
 
3043
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-XcKIq3EJqWm2/sdk/client/views/preferences/components/preferences-row.module.css.js
3044
- var digest13 = "e31ea92dbfd1ba47e745ca133f1590fb9f8b5802f37a252c52715e2f4e1500ed";
3187
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-7poxcLSNBc52/sdk/client/views/preferences/components/preferences-row.module.css.js
3188
+ var digest13 = "c6aad28ffe02973f07006332b095cb78f724a4d1bc6ff0a3ae81acd13d6cfb68";
3045
3189
  var css13 = `._row_6r013_1 {
3046
3190
  padding: var(--rs-space-7) 0;
3047
3191
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3104,8 +3248,8 @@ function PreferenceRow(_a) {
3104
3248
  // client/views/preferences/preferences-view.tsx
3105
3249
  import { useTheme } from "@raystack/apsara";
3106
3250
 
3107
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-X8oscPo6jraD/sdk/client/views/preferences/preferences-view.module.css.js
3108
- var digest14 = "5c54e6b45d71802a20bcd94902d083a649c3c633bd6566cc1c9db15a3f381fc3";
3251
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-BO51pyZy0aDd/sdk/client/views/preferences/preferences-view.module.css.js
3252
+ var digest14 = "d2b99de577d9ec29b63ab5fb8c7a1dfcf69bf5d26b9e9e2377cc3cfe91df3360";
3109
3253
  var css14 = `._selectTrigger_rur1t_1 {
3110
3254
  width: 100%;
3111
3255
  }
@@ -3205,7 +3349,7 @@ function PreferencesView({ children, theme: providedTheme, onThemeChange }) {
3205
3349
  }
3206
3350
 
3207
3351
  // client/views/profile/profile-view.tsx
3208
- import { useEffect as useEffect4 } from "react";
3352
+ import { useEffect as useEffect5 } from "react";
3209
3353
  import { yupResolver as yupResolver6 } from "@hookform/resolvers/yup";
3210
3354
  import { useForm as useForm6 } from "react-hook-form";
3211
3355
  import * as yup6 from "yup";
@@ -3213,7 +3357,7 @@ import {
3213
3357
  createConnectQueryKey as createConnectQueryKey4,
3214
3358
  useMutation as useMutation10
3215
3359
  } from "@connectrpc/connect-query";
3216
- import { FrontierServiceQueries as FrontierServiceQueries12 } from "@raystack/proton/frontier";
3360
+ import { FrontierServiceQueries as FrontierServiceQueries13 } from "@raystack/proton/frontier";
3217
3361
  import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
3218
3362
  import {
3219
3363
  Button as Button9,
@@ -3221,11 +3365,11 @@ import {
3221
3365
  Field as Field4,
3222
3366
  Input as Input6,
3223
3367
  Skeleton as Skeleton4,
3224
- toastManager as toastManager4
3368
+ toastManager as toastManager5
3225
3369
  } from "@raystack/apsara";
3226
3370
 
3227
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-Z5U6R1YDlycB/sdk/client/views/profile/profile-view.module.css.js
3228
- var digest15 = "fe4b308427a30f5d89742c50dd2f4af6a5eb953faedf85381cbd4e9f2b75b41e";
3371
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-mQtq2UG5Aodk/sdk/client/views/profile/profile-view.module.css.js
3372
+ var digest15 = "ebcd10ef80a7def5e1a84033a8f6e18eeb811fe9d9b7e610474b66a474b780b3";
3229
3373
  var css15 = `._section_1rcsm_1 {
3230
3374
  padding: var(--rs-space-9) 0;
3231
3375
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3273,12 +3417,12 @@ function ProfileView() {
3273
3417
  const { user, isUserLoading: isLoading } = useFrontier();
3274
3418
  const queryClient2 = useQueryClient4();
3275
3419
  const { mutateAsync: updateCurrentUser } = useMutation10(
3276
- FrontierServiceQueries12.updateCurrentUser,
3420
+ FrontierServiceQueries13.updateCurrentUser,
3277
3421
  {
3278
3422
  onSuccess: () => {
3279
3423
  queryClient2.invalidateQueries({
3280
3424
  queryKey: createConnectQueryKey4({
3281
- schema: FrontierServiceQueries12.getCurrentUser,
3425
+ schema: FrontierServiceQueries13.getCurrentUser,
3282
3426
  cardinality: "finite"
3283
3427
  })
3284
3428
  });
@@ -3295,7 +3439,7 @@ function ProfileView() {
3295
3439
  } = useForm6({
3296
3440
  resolver: yupResolver6(profileSchema)
3297
3441
  });
3298
- useEffect4(() => {
3442
+ useEffect5(() => {
3299
3443
  reset(user, { keepDirtyValues: true });
3300
3444
  }, [user, reset]);
3301
3445
  function onSubmit(data) {
@@ -3304,13 +3448,13 @@ function ProfileView() {
3304
3448
  if (!(user == null ? void 0 : user.id))
3305
3449
  return;
3306
3450
  yield updateCurrentUser({ body: data });
3307
- toastManager4.add({ title: "Updated user", type: "success" });
3451
+ toastManager5.add({ title: "Updated user", type: "success" });
3308
3452
  } catch (err) {
3309
3453
  handleConnectError(err, {
3310
- InvalidArgument: (e) => toastManager4.add({ title: "Invalid input", description: e.message, type: "error" }),
3311
- PermissionDenied: () => toastManager4.add({ title: "You don't have permission to perform this action", type: "error" }),
3312
- NotFound: (e) => toastManager4.add({ title: "Not found", description: e.message, type: "error" }),
3313
- Default: (e) => toastManager4.add({ title: "Something went wrong", description: e.message, type: "error" })
3454
+ InvalidArgument: (e) => toastManager5.add({ title: "Invalid input", description: e.message, type: "error" }),
3455
+ PermissionDenied: () => toastManager5.add({ title: "You don't have permission to perform this action", type: "error" }),
3456
+ NotFound: (e) => toastManager5.add({ title: "Not found", description: e.message, type: "error" }),
3457
+ Default: (e) => toastManager5.add({ title: "Something went wrong", description: e.message, type: "error" })
3314
3458
  });
3315
3459
  }
3316
3460
  });
@@ -3402,16 +3546,16 @@ import { useState as useState10 } from "react";
3402
3546
  import { Button as Button12, Flex as Flex18, Skeleton as Skeleton6, Text as Text13 } from "@raystack/apsara";
3403
3547
 
3404
3548
  // client/hooks/useSessions.ts
3405
- import { useMemo as useMemo6 } from "react";
3549
+ import { useMemo as useMemo7 } from "react";
3406
3550
  import {
3407
- useQuery as useQuery7,
3551
+ useQuery as useQuery9,
3408
3552
  useMutation as useMutation11,
3409
3553
  createConnectQueryKey as createConnectQueryKey5,
3410
3554
  useTransport as useTransport4
3411
3555
  } from "@connectrpc/connect-query";
3412
3556
  import { useQueryClient as useQueryClient5 } from "@tanstack/react-query";
3413
- import { FrontierServiceQueries as FrontierServiceQueries13 } from "@raystack/proton/frontier";
3414
- import { toastManager as toastManager5 } from "@raystack/apsara";
3557
+ import { FrontierServiceQueries as FrontierServiceQueries14 } from "@raystack/proton/frontier";
3558
+ import { toastManager as toastManager6 } from "@raystack/apsara";
3415
3559
  import dayjs2 from "dayjs";
3416
3560
  import relativeTime from "dayjs/plugin/relativeTime";
3417
3561
  dayjs2.extend(relativeTime);
@@ -3431,12 +3575,12 @@ var useSessions = () => {
3431
3575
  data: sessionsData,
3432
3576
  isLoading,
3433
3577
  error
3434
- } = useQuery7(FrontierServiceQueries13.listSessions, {});
3578
+ } = useQuery9(FrontierServiceQueries14.listSessions, {});
3435
3579
  const formatLastActive = (updatedAt) => {
3436
3580
  const d = timestampToDayjs(updatedAt);
3437
3581
  return d ? d.fromNow() : "Unknown";
3438
3582
  };
3439
- const sessions = useMemo6(
3583
+ const sessions = useMemo7(
3440
3584
  () => ((sessionsData == null ? void 0 : sessionsData.sessions) || []).map((session) => {
3441
3585
  var _a, _b, _c, _d;
3442
3586
  return {
@@ -3458,24 +3602,24 @@ var useSessions = () => {
3458
3602
  [sessionsData == null ? void 0 : sessionsData.sessions]
3459
3603
  );
3460
3604
  const { mutate: revokeSession, isPending: isRevokingSession } = useMutation11(
3461
- FrontierServiceQueries13.revokeSession,
3605
+ FrontierServiceQueries14.revokeSession,
3462
3606
  {
3463
3607
  onSuccess: () => {
3464
3608
  queryClient2.invalidateQueries({
3465
3609
  queryKey: createConnectQueryKey5({
3466
- schema: FrontierServiceQueries13.listSessions,
3610
+ schema: FrontierServiceQueries14.listSessions,
3467
3611
  transport,
3468
3612
  input: {},
3469
3613
  cardinality: "finite"
3470
3614
  })
3471
3615
  });
3472
- toastManager5.add({
3616
+ toastManager6.add({
3473
3617
  title: "Session revoked successfully",
3474
3618
  type: "success"
3475
3619
  });
3476
3620
  },
3477
3621
  onError: (error2) => {
3478
- toastManager5.add({
3622
+ toastManager6.add({
3479
3623
  title: "Failed to revoke session",
3480
3624
  description: getErrorMessage(error2),
3481
3625
  type: "error"
@@ -3498,9 +3642,9 @@ var useSessions = () => {
3498
3642
  };
3499
3643
 
3500
3644
  // client/views/sessions/components/revoke-session-dialog.tsx
3501
- import { useState as useState9, useMemo as useMemo7 } from "react";
3645
+ import { useState as useState9, useMemo as useMemo8 } from "react";
3502
3646
  import { useMutation as useMutation12 } from "@connectrpc/connect-query";
3503
- import { FrontierServiceQueries as FrontierServiceQueries14 } from "@raystack/proton/frontier";
3647
+ import { FrontierServiceQueries as FrontierServiceQueries15 } from "@raystack/proton/frontier";
3504
3648
  import { AlertDialog as AlertDialog3, Button as Button11, Flex as Flex17, Skeleton as Skeleton5, Text as Text12 } from "@raystack/apsara";
3505
3649
 
3506
3650
  // client/views/sessions/components/revoke-session-confirm-dialog.tsx
@@ -3554,8 +3698,8 @@ var RevokeSessionConfirmDialog = ({
3554
3698
  ] }) });
3555
3699
  };
3556
3700
 
3557
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-UUk1dPXlmrLZ/sdk/client/views/sessions/components/revoke-session-dialog.module.css.js
3558
- var digest16 = "dc2d778c84e135a3f2e41a0403642d785f2ddb638545139b2360aa75db66b3f2";
3701
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-uDHDelJohWRp/sdk/client/views/sessions/components/revoke-session-dialog.module.css.js
3702
+ var digest16 = "e51dca0c1ef3cf682948db6847649fbca3111537d63b4ed3221d9acfbc391ee7";
3559
3703
  var css16 = `._detailRow_12thi_1 {
3560
3704
  padding: var(--rs-space-5) 0;
3561
3705
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3594,7 +3738,7 @@ var RevokeSessionDialog = ({
3594
3738
  const { sessions, revokeSession, isRevokingSession } = useSessions();
3595
3739
  const [isConfirmOpen, setIsConfirmOpen] = useState9(false);
3596
3740
  const handleClose = () => onOpenChange(false);
3597
- const { mutate: logout } = useMutation12(FrontierServiceQueries14.authLogout, {
3741
+ const { mutate: logout } = useMutation12(FrontierServiceQueries15.authLogout, {
3598
3742
  onSuccess: () => {
3599
3743
  onLogout == null ? void 0 : onLogout();
3600
3744
  },
@@ -3606,7 +3750,7 @@ var RevokeSessionDialog = ({
3606
3750
  }
3607
3751
  }
3608
3752
  });
3609
- const sessionData = useMemo7(() => {
3753
+ const sessionData = useMemo8(() => {
3610
3754
  var _a;
3611
3755
  if (!sessionId || sessions.length === 0)
3612
3756
  return null;
@@ -3692,8 +3836,8 @@ var RevokeSessionDialog = ({
3692
3836
  ] });
3693
3837
  };
3694
3838
 
3695
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-0j8a1tRXF3EC/sdk/client/views/sessions/sessions-view.module.css.js
3696
- var digest17 = "2351d56593b15483d384fe9efbcf731c9e16f621c3fb3ce3dcc64ddc18ee5def";
3839
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-VBF1B3GdtkFE/sdk/client/views/sessions/sessions-view.module.css.js
3840
+ var digest17 = "0cb07a9391d5b25fb75c8abc5c2c70a8072ad24ffa5d53b58d6ac04136306699";
3697
3841
  var css17 = `._sessionRow_1qg03_1 {
3698
3842
  padding: var(--rs-space-7) 0;
3699
3843
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3800,7 +3944,7 @@ function SessionsView({ onLogout, onRevoke } = {}) {
3800
3944
  }
3801
3945
 
3802
3946
  // client/views/members/members-view.tsx
3803
- import { useMemo as useMemo10, useState as useState14 } from "react";
3947
+ import { useMemo as useMemo11, useState as useState14 } from "react";
3804
3948
  import {
3805
3949
  AlertDialog as AlertDialog6,
3806
3950
  Button as Button16,
@@ -3819,25 +3963,25 @@ import {
3819
3963
  var delete_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">%0A <path d="M9.82667 6.00035L9.596 12.0003M6.404 12.0003L6.17333 6.00035M12.8187 3.86035C13.0467 3.89501 13.2733 3.93168 13.5 3.97101M12.8187 3.86035L12.1067 13.1157C12.0776 13.4925 11.9074 13.8445 11.63 14.1012C11.3527 14.3579 10.9886 14.5005 10.6107 14.5003H5.38933C5.0114 14.5005 4.64735 14.3579 4.36999 14.1012C4.09262 13.8445 3.92239 13.4925 3.89333 13.1157L3.18133 3.86035M12.8187 3.86035C12.0492 3.74403 11.2758 3.65574 10.5 3.59568M3.18133 3.86035C2.95333 3.89435 2.72667 3.93101 2.5 3.97035M3.18133 3.86035C3.95076 3.74403 4.72416 3.65575 5.5 3.59568M10.5 3.59568V2.98501C10.5 2.19835 9.89333 1.54235 9.10667 1.51768C8.36908 1.49411 7.63092 1.49411 6.89333 1.51768C6.10667 1.54235 5.5 2.19901 5.5 2.98501V3.59568M10.5 3.59568C8.83581 3.46707 7.16419 3.46707 5.5 3.59568" stroke="%23E5484D" stroke-linecap="round" stroke-linejoin="round"/>%0A</svg>';
3820
3964
 
3821
3965
  // client/hooks/useOrganizationMembers.ts
3822
- import { useCallback as useCallback7, useEffect as useEffect5, useState as useState11, useMemo as useMemo8 } from "react";
3823
- import { useQuery as useQuery8 } from "@connectrpc/connect-query";
3824
- import { FrontierServiceQueries as FrontierServiceQueries15, ListOrganizationUsersRequestSchema, ListRolesRequestSchema, ListOrganizationInvitationsRequestSchema } from "@raystack/proton/frontier";
3825
- import { create as create9 } from "@bufbuild/protobuf";
3966
+ import { useCallback as useCallback7, useEffect as useEffect6, useState as useState11, useMemo as useMemo9 } from "react";
3967
+ import { useQuery as useQuery10 } from "@connectrpc/connect-query";
3968
+ import { FrontierServiceQueries as FrontierServiceQueries16, ListOrganizationUsersRequestSchema, ListRolesRequestSchema, ListOrganizationInvitationsRequestSchema } from "@raystack/proton/frontier";
3969
+ import { create as create10 } from "@bufbuild/protobuf";
3826
3970
  var useOrganizationMembers = ({
3827
3971
  showInvitations = false
3828
3972
  }) => {
3829
3973
  const [users, setUsers] = useState11([]);
3830
3974
  const [memberRoles, setMemberRoles] = useState11({});
3831
3975
  const { activeOrganization: organization } = useFrontier();
3832
- const { data: organizationUsersData, isLoading: isUsersLoading, error: usersError, refetch: refetchUsers } = useQuery8(
3833
- FrontierServiceQueries15.listOrganizationUsers,
3834
- create9(ListOrganizationUsersRequestSchema, {
3976
+ const { data: organizationUsersData, isLoading: isUsersLoading, error: usersError, refetch: refetchUsers } = useQuery10(
3977
+ FrontierServiceQueries16.listOrganizationUsers,
3978
+ create10(ListOrganizationUsersRequestSchema, {
3835
3979
  id: (organization == null ? void 0 : organization.id) || "",
3836
3980
  withRoles: true
3837
3981
  }),
3838
3982
  { enabled: !!(organization == null ? void 0 : organization.id) }
3839
3983
  );
3840
- useEffect5(() => {
3984
+ useEffect6(() => {
3841
3985
  if (organizationUsersData) {
3842
3986
  const { users: users2, rolePairs } = organizationUsersData;
3843
3987
  setUsers(users2 || []);
@@ -3851,9 +3995,9 @@ var useOrganizationMembers = ({
3851
3995
  );
3852
3996
  }
3853
3997
  }, [organizationUsersData]);
3854
- const { data: rolesData, isLoading: isRolesLoading, error: rolesError, refetch: refetchRoles } = useQuery8(
3855
- FrontierServiceQueries15.listRoles,
3856
- create9(ListRolesRequestSchema, {
3998
+ const { data: rolesData, isLoading: isRolesLoading, error: rolesError, refetch: refetchRoles } = useQuery10(
3999
+ FrontierServiceQueries16.listRoles,
4000
+ create10(ListRolesRequestSchema, {
3857
4001
  state: "enabled",
3858
4002
  scopes: [PERMISSIONS.OrganizationNamespace]
3859
4003
  }),
@@ -3861,17 +4005,17 @@ var useOrganizationMembers = ({
3861
4005
  enabled: !!(organization == null ? void 0 : organization.id)
3862
4006
  }
3863
4007
  );
3864
- const roles = useMemo8(() => (rolesData == null ? void 0 : rolesData.roles) || [], [rolesData]);
3865
- const { data: invitationsData, isLoading: isInvitationsLoading, error: invitationsError, refetch: refetchInvitations } = useQuery8(
3866
- FrontierServiceQueries15.listOrganizationInvitations,
3867
- create9(ListOrganizationInvitationsRequestSchema, {
4008
+ const roles = useMemo9(() => (rolesData == null ? void 0 : rolesData.roles) || [], [rolesData]);
4009
+ const { data: invitationsData, isLoading: isInvitationsLoading, error: invitationsError, refetch: refetchInvitations } = useQuery10(
4010
+ FrontierServiceQueries16.listOrganizationInvitations,
4011
+ create10(ListOrganizationInvitationsRequestSchema, {
3868
4012
  orgId: (organization == null ? void 0 : organization.id) || ""
3869
4013
  }),
3870
4014
  { enabled: !!(organization == null ? void 0 : organization.id) && showInvitations }
3871
4015
  );
3872
4016
  const isFetching = isUsersLoading || isInvitationsLoading || isRolesLoading;
3873
4017
  const hasError = usersError || rolesError || invitationsError;
3874
- const updatedUsers = useMemo8(() => {
4018
+ const updatedUsers = useMemo9(() => {
3875
4019
  const invitations = ((invitationsData == null ? void 0 : invitationsData.invitations) || []).map((user) => {
3876
4020
  return __spreadProps(__spreadValues({}, user), {
3877
4021
  email: user.userId,
@@ -3905,8 +4049,8 @@ import {
3905
4049
  IconButton as IconButton2
3906
4050
  } from "@raystack/apsara";
3907
4051
 
3908
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-N4b2xban3NTn/sdk/client/views/members/components/member-columns.module.css.js
3909
- var digest18 = "410e86845c7af65ad958312c0df2c0fdf68a71a1e53a2afeed18230c1e068e83";
4052
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-C3Xm2SkUBzXC/sdk/client/views/members/components/member-columns.module.css.js
4053
+ var digest18 = "cd410819d3f5837f53eed8b81b70c41a31daf8ebc9653207c2dfdfdfa5a9f836";
3910
4054
  var css18 = `._pendingText_p6jus_1 {
3911
4055
  color: var(--rs-color-foreground-base-tertiary);
3912
4056
  }
@@ -4042,14 +4186,14 @@ var getColumns = ({
4042
4186
  ];
4043
4187
 
4044
4188
  // client/views/members/components/invite-member-dialog.tsx
4045
- import { useCallback as useCallback8, useMemo as useMemo9 } from "react";
4189
+ import { useCallback as useCallback8, useMemo as useMemo10 } from "react";
4046
4190
  import { yupResolver as yupResolver7 } from "@hookform/resolvers/yup";
4047
4191
  import { Controller as Controller2, useForm as useForm7 } from "react-hook-form";
4048
4192
  import * as yup7 from "yup";
4049
- import { create as create10 } from "@bufbuild/protobuf";
4050
- import { useMutation as useMutation13, useQuery as useQuery9 } from "@connectrpc/connect-query";
4193
+ import { create as create11 } from "@bufbuild/protobuf";
4194
+ import { useMutation as useMutation13, useQuery as useQuery11 } from "@connectrpc/connect-query";
4051
4195
  import {
4052
- FrontierServiceQueries as FrontierServiceQueries16,
4196
+ FrontierServiceQueries as FrontierServiceQueries17,
4053
4197
  CreateOrganizationInvitationRequestSchema,
4054
4198
  ListOrganizationRolesRequestSchema,
4055
4199
  ListRolesRequestSchema as ListRolesRequestSchema2,
@@ -4064,7 +4208,7 @@ import {
4064
4208
  Dialog as Dialog2,
4065
4209
  Field as Field5,
4066
4210
  TextArea,
4067
- toastManager as toastManager6
4211
+ toastManager as toastManager7
4068
4212
  } from "@raystack/apsara";
4069
4213
  import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
4070
4214
  var inviteSchema = yup7.object({
@@ -4093,44 +4237,44 @@ function InviteMemberDialog({ handle, showTeamField = true, refetch }) {
4093
4237
  refetch();
4094
4238
  }
4095
4239
  };
4096
- const { data: orgRolesData, isLoading: isOrgRolesLoading } = useQuery9(
4097
- FrontierServiceQueries16.listOrganizationRoles,
4098
- create10(ListOrganizationRolesRequestSchema, {
4240
+ const { data: orgRolesData, isLoading: isOrgRolesLoading } = useQuery11(
4241
+ FrontierServiceQueries17.listOrganizationRoles,
4242
+ create11(ListOrganizationRolesRequestSchema, {
4099
4243
  orgId: (organization == null ? void 0 : organization.id) || "",
4100
4244
  scopes: [PERMISSIONS.OrganizationNamespace]
4101
4245
  }),
4102
4246
  { enabled: !!(organization == null ? void 0 : organization.id) }
4103
4247
  );
4104
- const orgRoles = useMemo9(() => (orgRolesData == null ? void 0 : orgRolesData.roles) || [], [orgRolesData]);
4105
- const { data: globalRolesData, isLoading: isGlobalRolesLoading } = useQuery9(
4106
- FrontierServiceQueries16.listRoles,
4107
- create10(ListRolesRequestSchema2, {
4248
+ const orgRoles = useMemo10(() => (orgRolesData == null ? void 0 : orgRolesData.roles) || [], [orgRolesData]);
4249
+ const { data: globalRolesData, isLoading: isGlobalRolesLoading } = useQuery11(
4250
+ FrontierServiceQueries17.listRoles,
4251
+ create11(ListRolesRequestSchema2, {
4108
4252
  scopes: [PERMISSIONS.OrganizationNamespace]
4109
4253
  }),
4110
4254
  { enabled: !!(organization == null ? void 0 : organization.id) }
4111
4255
  );
4112
- const globalRoles = useMemo9(
4256
+ const globalRoles = useMemo10(
4113
4257
  () => (globalRolesData == null ? void 0 : globalRolesData.roles) || [],
4114
4258
  [globalRolesData]
4115
4259
  );
4116
- const { data: teamsData, isLoading: isGroupsLoading } = useQuery9(
4117
- FrontierServiceQueries16.listOrganizationGroups,
4118
- create10(ListOrganizationGroupsRequestSchema, {
4260
+ const { data: teamsData, isLoading: isGroupsLoading } = useQuery11(
4261
+ FrontierServiceQueries17.listOrganizationGroups,
4262
+ create11(ListOrganizationGroupsRequestSchema, {
4119
4263
  orgId: (organization == null ? void 0 : organization.id) || ""
4120
4264
  }),
4121
4265
  { enabled: !!(organization == null ? void 0 : organization.id) && showTeamField }
4122
4266
  );
4123
- const teams = useMemo9(() => (teamsData == null ? void 0 : teamsData.groups) || [], [teamsData]);
4267
+ const teams = useMemo10(() => (teamsData == null ? void 0 : teamsData.groups) || [], [teamsData]);
4124
4268
  const isLoading = isOrgRolesLoading || isGlobalRolesLoading || showTeamField && isGroupsLoading;
4125
- const roles = useMemo9(
4269
+ const roles = useMemo10(
4126
4270
  () => [...globalRoles || [], ...orgRoles || []],
4127
4271
  [globalRoles, orgRoles]
4128
4272
  );
4129
4273
  const { mutateAsync: createInvitation } = useMutation13(
4130
- FrontierServiceQueries16.createOrganizationInvitation,
4274
+ FrontierServiceQueries17.createOrganizationInvitation,
4131
4275
  {
4132
4276
  onSuccess: () => {
4133
- toastManager6.add({ title: "User(s) invited", type: "success" });
4277
+ toastManager7.add({ title: "User(s) invited", type: "success" });
4134
4278
  handle.close();
4135
4279
  }
4136
4280
  }
@@ -4145,7 +4289,7 @@ function InviteMemberDialog({ handle, showTeamField = true, refetch }) {
4145
4289
  if (!type)
4146
4290
  return;
4147
4291
  try {
4148
- const req = create10(CreateOrganizationInvitationRequestSchema, {
4292
+ const req = create11(CreateOrganizationInvitationRequestSchema, {
4149
4293
  orgId: organization.id,
4150
4294
  userIds: emailList,
4151
4295
  groupIds: showTeamField && team ? [team] : void 0,
@@ -4154,10 +4298,10 @@ function InviteMemberDialog({ handle, showTeamField = true, refetch }) {
4154
4298
  yield createInvitation(req);
4155
4299
  } catch (error) {
4156
4300
  handleConnectError(error, {
4157
- AlreadyExists: () => toastManager6.add({ title: "Invitation already exists", type: "error" }),
4158
- InvalidArgument: (err) => toastManager6.add({ title: "Invalid input", description: err.message, type: "error" }),
4159
- PermissionDenied: () => toastManager6.add({ title: "You don't have permission to perform this action", type: "error" }),
4160
- Default: (err) => toastManager6.add({ title: "Something went wrong", description: err.message, type: "error" })
4301
+ AlreadyExists: () => toastManager7.add({ title: "Invitation already exists", type: "error" }),
4302
+ InvalidArgument: (err) => toastManager7.add({ title: "Invalid input", description: err.message, type: "error" }),
4303
+ PermissionDenied: () => toastManager7.add({ title: "You don't have permission to perform this action", type: "error" }),
4304
+ Default: (err) => toastManager7.add({ title: "Something went wrong", description: err.message, type: "error" })
4161
4305
  });
4162
4306
  }
4163
4307
  }),
@@ -4246,17 +4390,17 @@ function InviteMemberDialog({ handle, showTeamField = true, refetch }) {
4246
4390
 
4247
4391
  // client/views/members/components/remove-member-dialog.tsx
4248
4392
  import { useState as useState12 } from "react";
4249
- import { create as create11 } from "@bufbuild/protobuf";
4393
+ import { create as create12 } from "@bufbuild/protobuf";
4250
4394
  import { useMutation as useMutation14 } from "@connectrpc/connect-query";
4251
4395
  import {
4252
- FrontierServiceQueries as FrontierServiceQueries17,
4396
+ FrontierServiceQueries as FrontierServiceQueries18,
4253
4397
  DeleteOrganizationInvitationRequestSchema,
4254
4398
  RemoveOrganizationMemberRequestSchema
4255
4399
  } from "@raystack/proton/frontier";
4256
4400
  import {
4257
4401
  AlertDialog as AlertDialog4,
4258
4402
  Button as Button14,
4259
- toastManager as toastManager7
4403
+ toastManager as toastManager8
4260
4404
  } from "@raystack/apsara";
4261
4405
  import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
4262
4406
  function RemoveMemberDialog({ handle, refetch }) {
@@ -4266,22 +4410,22 @@ function RemoveMemberDialog({ handle, refetch }) {
4266
4410
  const [isLoading, setIsLoading] = useState12(false);
4267
4411
  const t = useTerminology();
4268
4412
  const { mutateAsync: deleteInvitation } = useMutation14(
4269
- FrontierServiceQueries17.deleteOrganizationInvitation,
4413
+ FrontierServiceQueries18.deleteOrganizationInvitation,
4270
4414
  {
4271
4415
  onSuccess: () => {
4272
4416
  handle.close();
4273
4417
  refetch();
4274
- toastManager7.add({ title: "Invitation deleted", type: "success" });
4418
+ toastManager8.add({ title: "Invitation deleted", type: "success" });
4275
4419
  }
4276
4420
  }
4277
4421
  );
4278
4422
  const { mutateAsync: removeMember } = useMutation14(
4279
- FrontierServiceQueries17.removeOrganizationMember,
4423
+ FrontierServiceQueries18.removeOrganizationMember,
4280
4424
  {
4281
4425
  onSuccess: () => {
4282
4426
  handle.close();
4283
4427
  refetch();
4284
- toastManager7.add({ title: "User removed", type: "success" });
4428
+ toastManager8.add({ title: "User removed", type: "success" });
4285
4429
  }
4286
4430
  }
4287
4431
  );
@@ -4289,13 +4433,13 @@ function RemoveMemberDialog({ handle, refetch }) {
4289
4433
  setIsLoading(true);
4290
4434
  try {
4291
4435
  if (invited === "true") {
4292
- const req = create11(DeleteOrganizationInvitationRequestSchema, {
4436
+ const req = create12(DeleteOrganizationInvitationRequestSchema, {
4293
4437
  orgId: organizationId,
4294
4438
  id: memberId
4295
4439
  });
4296
4440
  yield deleteInvitation(req);
4297
4441
  } else {
4298
- const req = create11(RemoveOrganizationMemberRequestSchema, {
4442
+ const req = create12(RemoveOrganizationMemberRequestSchema, {
4299
4443
  orgId: organizationId,
4300
4444
  principalId: memberId,
4301
4445
  principalType: "app/user"
@@ -4305,10 +4449,10 @@ function RemoveMemberDialog({ handle, refetch }) {
4305
4449
  handle.close();
4306
4450
  } catch (error) {
4307
4451
  handleConnectError(error, {
4308
- NotFound: (err) => toastManager7.add({ title: "Not found", description: err.message, type: "error" }),
4309
- PermissionDenied: () => toastManager7.add({ title: "You don't have permission to perform this action", type: "error" }),
4310
- FailedPrecondition: (err) => toastManager7.add({ title: "Cannot remove user", description: err.message, type: "error" }),
4311
- Default: (err) => toastManager7.add({ title: "Something went wrong", description: err.message, type: "error" })
4452
+ NotFound: (err) => toastManager8.add({ title: "Not found", description: err.message, type: "error" }),
4453
+ PermissionDenied: () => toastManager8.add({ title: "You don't have permission to perform this action", type: "error" }),
4454
+ FailedPrecondition: (err) => toastManager8.add({ title: "Cannot remove user", description: err.message, type: "error" }),
4455
+ Default: (err) => toastManager8.add({ title: "Something went wrong", description: err.message, type: "error" })
4312
4456
  });
4313
4457
  } finally {
4314
4458
  setIsLoading(false);
@@ -4358,16 +4502,16 @@ function RemoveMemberDialog({ handle, refetch }) {
4358
4502
 
4359
4503
  // client/views/members/components/update-role-dialog.tsx
4360
4504
  import { useState as useState13 } from "react";
4361
- import { create as create12 } from "@bufbuild/protobuf";
4505
+ import { create as create13 } from "@bufbuild/protobuf";
4362
4506
  import { useMutation as useMutation15 } from "@connectrpc/connect-query";
4363
4507
  import {
4364
- FrontierServiceQueries as FrontierServiceQueries18,
4508
+ FrontierServiceQueries as FrontierServiceQueries19,
4365
4509
  SetOrganizationMemberRoleRequestSchema
4366
4510
  } from "@raystack/proton/frontier";
4367
4511
  import {
4368
4512
  AlertDialog as AlertDialog5,
4369
4513
  Button as Button15,
4370
- toastManager as toastManager8
4514
+ toastManager as toastManager9
4371
4515
  } from "@raystack/apsara";
4372
4516
  import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
4373
4517
  function UpdateRoleDialog({ handle, organizationId, refetch }) {
@@ -4392,25 +4536,25 @@ function UpdateRoleContent({
4392
4536
  }) {
4393
4537
  const [isLoading, setIsLoading] = useState13(false);
4394
4538
  const { mutateAsync: setMemberRole } = useMutation15(
4395
- FrontierServiceQueries18.setOrganizationMemberRole
4539
+ FrontierServiceQueries19.setOrganizationMemberRole
4396
4540
  );
4397
4541
  const handleUpdate = () => __async(this, null, function* () {
4398
4542
  setIsLoading(true);
4399
4543
  try {
4400
- const req = create12(SetOrganizationMemberRoleRequestSchema, {
4544
+ const req = create13(SetOrganizationMemberRoleRequestSchema, {
4401
4545
  orgId: organizationId,
4402
4546
  userId: payload.memberId,
4403
4547
  roleId: payload.role.id
4404
4548
  });
4405
4549
  yield setMemberRole(req);
4406
- toastManager8.add({ title: "Member role updated", type: "success" });
4550
+ toastManager9.add({ title: "Member role updated", type: "success" });
4407
4551
  refetch();
4408
4552
  onClose();
4409
4553
  } catch (error) {
4410
4554
  handleConnectError(error, {
4411
- PermissionDenied: () => toastManager8.add({ title: "You don't have permission to perform this action", type: "error" }),
4412
- NotFound: (err) => toastManager8.add({ title: "Not found", description: err.message, type: "error" }),
4413
- Default: (err) => toastManager8.add({ title: "Something went wrong", description: err.message, type: "error" })
4555
+ PermissionDenied: () => toastManager9.add({ title: "You don't have permission to perform this action", type: "error" }),
4556
+ NotFound: (err) => toastManager9.add({ title: "Not found", description: err.message, type: "error" }),
4557
+ Default: (err) => toastManager9.add({ title: "Something went wrong", description: err.message, type: "error" })
4414
4558
  });
4415
4559
  } finally {
4416
4560
  setIsLoading(false);
@@ -4450,8 +4594,8 @@ function UpdateRoleContent({
4450
4594
  ] });
4451
4595
  }
4452
4596
 
4453
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-frSw0e8ePIS4/sdk/client/views/members/members-view.module.css.js
4454
- var digest19 = "e3317412ac231a55d5e34f999840baf7d1c1de90b0baa82950bbac0f2b05a8a0";
4597
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-0vd5fRmftktr/sdk/client/views/members/members-view.module.css.js
4598
+ var digest19 = "580af7b24c8ec9f7cd8caef883c9ec5436f1181ac156bfacd6b3791c6bb8295f";
4455
4599
  var css19 = `._roleFilter_1fmrt_1 {
4456
4600
  width: auto;
4457
4601
  min-width: 80px;
@@ -4497,7 +4641,7 @@ function MembersView({ showTeamField = true }) {
4497
4641
  var _a;
4498
4642
  const { activeOrganization: organization } = useFrontier();
4499
4643
  const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
4500
- const listOfPermissionsToCheck = useMemo10(
4644
+ const listOfPermissionsToCheck = useMemo11(
4501
4645
  () => [
4502
4646
  {
4503
4647
  permission: PERMISSIONS.InvitationCreatePermission,
@@ -4514,7 +4658,7 @@ function MembersView({ showTeamField = true }) {
4514
4658
  listOfPermissionsToCheck,
4515
4659
  !!(organization == null ? void 0 : organization.id)
4516
4660
  );
4517
- const { canCreateInvite, canDeleteUser } = useMemo10(() => {
4661
+ const { canCreateInvite, canDeleteUser } = useMemo11(() => {
4518
4662
  return {
4519
4663
  canCreateInvite: shouldShowComponent(
4520
4664
  permissions,
@@ -4537,7 +4681,7 @@ function MembersView({ showTeamField = true }) {
4537
4681
  });
4538
4682
  const isLoading = !(organization == null ? void 0 : organization.id) || isOrgMembersLoading || isPermissionsFetching;
4539
4683
  const [roleFilter, setRoleFilter] = useState14("all");
4540
- const filteredMembers = useMemo10(() => {
4684
+ const filteredMembers = useMemo11(() => {
4541
4685
  if (roleFilter === "all")
4542
4686
  return members;
4543
4687
  return members.filter((member) => {
@@ -4549,7 +4693,7 @@ function MembersView({ showTeamField = true }) {
4549
4693
  return userRoles == null ? void 0 : userRoles.some((r) => r.id === roleFilter);
4550
4694
  }) || [];
4551
4695
  }, [members, roleFilter, memberRoles]);
4552
- const columns = useMemo10(
4696
+ const columns = useMemo11(
4553
4697
  () => getColumns({
4554
4698
  memberRoles,
4555
4699
  roles,
@@ -4718,7 +4862,7 @@ function MembersView({ showTeamField = true }) {
4718
4862
  }
4719
4863
 
4720
4864
  // client/views/security/security-view.tsx
4721
- import { useEffect as useEffect6, useMemo as useMemo12 } from "react";
4865
+ import { useEffect as useEffect7, useMemo as useMemo13 } from "react";
4722
4866
  import {
4723
4867
  AlertDialog as AlertDialog8,
4724
4868
  Button as Button20,
@@ -4728,14 +4872,14 @@ import {
4728
4872
  Image as Image3,
4729
4873
  Skeleton as Skeleton11,
4730
4874
  Text as Text19,
4731
- toastManager as toastManager12
4875
+ toastManager as toastManager13
4732
4876
  } from "@raystack/apsara";
4733
4877
 
4734
4878
  // client/hooks/useOrganizationDomains.ts
4735
- import { useQuery as useQuery10 } from "@connectrpc/connect-query";
4736
- import { FrontierServiceQueries as FrontierServiceQueries19, ListOrganizationDomainsRequestSchema } from "@raystack/proton/frontier";
4737
- import { create as create13 } from "@bufbuild/protobuf";
4738
- import { useMemo as useMemo11 } from "react";
4879
+ import { useQuery as useQuery12 } from "@connectrpc/connect-query";
4880
+ import { FrontierServiceQueries as FrontierServiceQueries20, ListOrganizationDomainsRequestSchema } from "@raystack/proton/frontier";
4881
+ import { create as create14 } from "@bufbuild/protobuf";
4882
+ import { useMemo as useMemo12 } from "react";
4739
4883
  var useOrganizationDomains = () => {
4740
4884
  const { activeOrganization: organization } = useFrontier();
4741
4885
  const {
@@ -4743,16 +4887,16 @@ var useOrganizationDomains = () => {
4743
4887
  isLoading: isDomainsLoading,
4744
4888
  error: domainsError,
4745
4889
  refetch: refetchDomains
4746
- } = useQuery10(
4747
- FrontierServiceQueries19.listOrganizationDomains,
4748
- create13(ListOrganizationDomainsRequestSchema, {
4890
+ } = useQuery12(
4891
+ FrontierServiceQueries20.listOrganizationDomains,
4892
+ create14(ListOrganizationDomainsRequestSchema, {
4749
4893
  orgId: (organization == null ? void 0 : organization.id) || ""
4750
4894
  }),
4751
4895
  {
4752
4896
  enabled: !!(organization == null ? void 0 : organization.id)
4753
4897
  }
4754
4898
  );
4755
- const domains = useMemo11(() => {
4899
+ const domains = useMemo12(() => {
4756
4900
  var _a;
4757
4901
  return (_a = domainsData == null ? void 0 : domainsData.domains) != null ? _a : [];
4758
4902
  }, [domainsData]);
@@ -4768,11 +4912,11 @@ var useOrganizationDomains = () => {
4768
4912
  import { useForm as useForm8 } from "react-hook-form";
4769
4913
  import { yupResolver as yupResolver8 } from "@hookform/resolvers/yup";
4770
4914
  import * as yup8 from "yup";
4771
- import { create as create14 } from "@bufbuild/protobuf";
4915
+ import { create as create15 } from "@bufbuild/protobuf";
4772
4916
  import { useMutation as useMutation16, createConnectQueryKey as createConnectQueryKey6, useTransport as useTransport5 } from "@connectrpc/connect-query";
4773
4917
  import { useQueryClient as useQueryClient6 } from "@tanstack/react-query";
4774
4918
  import {
4775
- FrontierServiceQueries as FrontierServiceQueries20,
4919
+ FrontierServiceQueries as FrontierServiceQueries21,
4776
4920
  CreateOrganizationDomainRequestSchema,
4777
4921
  ListOrganizationDomainsRequestSchema as ListOrganizationDomainsRequestSchema2
4778
4922
  } from "@raystack/proton/frontier";
@@ -4783,7 +4927,7 @@ import {
4783
4927
  Dialog as Dialog4,
4784
4928
  Field as Field6,
4785
4929
  Input as Input7,
4786
- toastManager as toastManager9
4930
+ toastManager as toastManager10
4787
4931
  } from "@raystack/apsara";
4788
4932
  import { jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
4789
4933
  var domainSchema = yup8.object({
@@ -4809,17 +4953,17 @@ function AddDomainDialog({
4809
4953
  resolver: yupResolver8(domainSchema)
4810
4954
  });
4811
4955
  const { mutateAsync: createOrganizationDomain } = useMutation16(
4812
- FrontierServiceQueries20.createOrganizationDomain,
4956
+ FrontierServiceQueries21.createOrganizationDomain,
4813
4957
  {
4814
4958
  onSuccess: (data) => __async(this, null, function* () {
4815
4959
  var _a2, _b;
4816
- toastManager9.add({ title: "Domain successfully added", type: "success" });
4960
+ toastManager10.add({ title: "Domain successfully added", type: "success" });
4817
4961
  if (organization == null ? void 0 : organization.id) {
4818
4962
  yield queryClient2.invalidateQueries({
4819
4963
  queryKey: createConnectQueryKey6({
4820
- schema: FrontierServiceQueries20.listOrganizationDomains,
4964
+ schema: FrontierServiceQueries21.listOrganizationDomains,
4821
4965
  transport,
4822
- input: create14(ListOrganizationDomainsRequestSchema2, {
4966
+ input: create15(ListOrganizationDomainsRequestSchema2, {
4823
4967
  orgId: organization.id
4824
4968
  }),
4825
4969
  cardinality: "finite"
@@ -4836,17 +4980,17 @@ function AddDomainDialog({
4836
4980
  return;
4837
4981
  try {
4838
4982
  yield createOrganizationDomain(
4839
- create14(CreateOrganizationDomainRequestSchema, {
4983
+ create15(CreateOrganizationDomainRequestSchema, {
4840
4984
  orgId: organization.id,
4841
4985
  domain: data.domain
4842
4986
  })
4843
4987
  );
4844
4988
  } catch (error) {
4845
4989
  handleConnectError(error, {
4846
- AlreadyExists: () => toastManager9.add({ title: "Domain already exists", type: "error" }),
4847
- InvalidArgument: (err) => toastManager9.add({ title: "Invalid input", description: err.message, type: "error" }),
4848
- PermissionDenied: () => toastManager9.add({ title: "You don't have permission to perform this action", type: "error" }),
4849
- Default: (err) => toastManager9.add({ title: "Something went wrong", description: err.message, type: "error" })
4990
+ AlreadyExists: () => toastManager10.add({ title: "Domain already exists", type: "error" }),
4991
+ InvalidArgument: (err) => toastManager10.add({ title: "Invalid input", description: err.message, type: "error" }),
4992
+ PermissionDenied: () => toastManager10.add({ title: "You don't have permission to perform this action", type: "error" }),
4993
+ Default: (err) => toastManager10.add({ title: "Something went wrong", description: err.message, type: "error" })
4850
4994
  });
4851
4995
  }
4852
4996
  });
@@ -4895,11 +5039,11 @@ function AddDomainDialog({
4895
5039
  }
4896
5040
 
4897
5041
  // client/views/security/components/verify-domain-dialog.tsx
4898
- import { create as create16 } from "@bufbuild/protobuf";
5042
+ import { create as create17 } from "@bufbuild/protobuf";
4899
5043
  import { useMutation as useMutation17, createConnectQueryKey as createConnectQueryKey7, useTransport as useTransport6 } from "@connectrpc/connect-query";
4900
5044
  import { useQueryClient as useQueryClient7 } from "@tanstack/react-query";
4901
5045
  import {
4902
- FrontierServiceQueries as FrontierServiceQueries22,
5046
+ FrontierServiceQueries as FrontierServiceQueries23,
4903
5047
  VerifyOrganizationDomainRequestSchema,
4904
5048
  ListOrganizationDomainsRequestSchema as ListOrganizationDomainsRequestSchema3
4905
5049
  } from "@raystack/proton/frontier";
@@ -4911,22 +5055,22 @@ import {
4911
5055
  Dialog as Dialog5,
4912
5056
  Input as Input8,
4913
5057
  Skeleton as Skeleton9,
4914
- toastManager as toastManager10
5058
+ toastManager as toastManager11
4915
5059
  } from "@raystack/apsara";
4916
5060
 
4917
5061
  // client/hooks/useOrganizationDomain.ts
4918
- import { useQuery as useQuery11 } from "@connectrpc/connect-query";
4919
- import { create as create15 } from "@bufbuild/protobuf";
4920
- import { FrontierServiceQueries as FrontierServiceQueries21, GetOrganizationDomainRequestSchema } from "@raystack/proton/frontier";
5062
+ import { useQuery as useQuery13 } from "@connectrpc/connect-query";
5063
+ import { create as create16 } from "@bufbuild/protobuf";
5064
+ import { FrontierServiceQueries as FrontierServiceQueries22, GetOrganizationDomainRequestSchema } from "@raystack/proton/frontier";
4921
5065
  var useOrganizationDomain = (domainId) => {
4922
5066
  const { activeOrganization: organization } = useFrontier();
4923
5067
  const {
4924
5068
  data: domain,
4925
5069
  isLoading,
4926
5070
  error: domainError
4927
- } = useQuery11(
4928
- FrontierServiceQueries21.getOrganizationDomain,
4929
- create15(GetOrganizationDomainRequestSchema, {
5071
+ } = useQuery13(
5072
+ FrontierServiceQueries22.getOrganizationDomain,
5073
+ create16(GetOrganizationDomainRequestSchema, {
4930
5074
  id: domainId || "",
4931
5075
  orgId: (organization == null ? void 0 : organization.id) || ""
4932
5076
  }),
@@ -4977,15 +5121,15 @@ function VerifyDomainContent({
4977
5121
  transport
4978
5122
  }) {
4979
5123
  const { domain, isLoading: isDomainLoading } = useOrganizationDomain(domainId);
4980
- const { mutateAsync: verifyOrganizationDomain, isPending: isVerifying } = useMutation17(FrontierServiceQueries22.verifyOrganizationDomain, {
5124
+ const { mutateAsync: verifyOrganizationDomain, isPending: isVerifying } = useMutation17(FrontierServiceQueries23.verifyOrganizationDomain, {
4981
5125
  onSuccess: () => __async(this, null, function* () {
4982
- toastManager10.add({ title: "Domain verified", type: "success" });
5126
+ toastManager11.add({ title: "Domain verified", type: "success" });
4983
5127
  if (organization == null ? void 0 : organization.id) {
4984
5128
  yield queryClient2.invalidateQueries({
4985
5129
  queryKey: createConnectQueryKey7({
4986
- schema: FrontierServiceQueries22.listOrganizationDomains,
5130
+ schema: FrontierServiceQueries23.listOrganizationDomains,
4987
5131
  transport,
4988
- input: create16(ListOrganizationDomainsRequestSchema3, {
5132
+ input: create17(ListOrganizationDomainsRequestSchema3, {
4989
5133
  orgId: organization.id
4990
5134
  }),
4991
5135
  cardinality: "finite"
@@ -5001,17 +5145,17 @@ function VerifyDomainContent({
5001
5145
  return;
5002
5146
  try {
5003
5147
  yield verifyOrganizationDomain(
5004
- create16(VerifyOrganizationDomainRequestSchema, {
5148
+ create17(VerifyOrganizationDomainRequestSchema, {
5005
5149
  orgId: organization.id,
5006
5150
  id: domainId
5007
5151
  })
5008
5152
  );
5009
5153
  } catch (error) {
5010
5154
  handleConnectError(error, {
5011
- NotFound: (err) => toastManager10.add({ title: "Not found", description: err.message, type: "error" }),
5012
- PermissionDenied: () => toastManager10.add({ title: "You don't have permission to perform this action", type: "error" }),
5013
- InvalidArgument: (err) => toastManager10.add({ title: "Invalid input", description: err.message, type: "error" }),
5014
- Default: (err) => toastManager10.add({ title: "Something went wrong", description: err.message, type: "error" })
5155
+ NotFound: (err) => toastManager11.add({ title: "Not found", description: err.message, type: "error" }),
5156
+ PermissionDenied: () => toastManager11.add({ title: "You don't have permission to perform this action", type: "error" }),
5157
+ InvalidArgument: (err) => toastManager11.add({ title: "Invalid input", description: err.message, type: "error" }),
5158
+ Default: (err) => toastManager11.add({ title: "Something went wrong", description: err.message, type: "error" })
5015
5159
  });
5016
5160
  }
5017
5161
  });
@@ -5067,11 +5211,11 @@ import { useState as useState15 } from "react";
5067
5211
  import { useForm as useForm9 } from "react-hook-form";
5068
5212
  import { yupResolver as yupResolver9 } from "@hookform/resolvers/yup";
5069
5213
  import * as yup9 from "yup";
5070
- import { create as create17 } from "@bufbuild/protobuf";
5214
+ import { create as create18 } from "@bufbuild/protobuf";
5071
5215
  import { useMutation as useMutation18, createConnectQueryKey as createConnectQueryKey8, useTransport as useTransport7 } from "@connectrpc/connect-query";
5072
5216
  import { useQueryClient as useQueryClient8 } from "@tanstack/react-query";
5073
5217
  import {
5074
- FrontierServiceQueries as FrontierServiceQueries23,
5218
+ FrontierServiceQueries as FrontierServiceQueries24,
5075
5219
  DeleteOrganizationDomainRequestSchema,
5076
5220
  ListOrganizationDomainsRequestSchema as ListOrganizationDomainsRequestSchema4
5077
5221
  } from "@raystack/proton/frontier";
@@ -5084,7 +5228,7 @@ import {
5084
5228
  Field as Field7,
5085
5229
  Input as Input9,
5086
5230
  Skeleton as Skeleton10,
5087
- toastManager as toastManager11
5231
+ toastManager as toastManager12
5088
5232
  } from "@raystack/apsara";
5089
5233
  import { Fragment as Fragment8, jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
5090
5234
  var domainSchema2 = yup9.object({
@@ -5130,16 +5274,16 @@ function DeleteDomainContent({
5130
5274
  resolver: yupResolver9(domainSchema2)
5131
5275
  });
5132
5276
  const { mutateAsync: deleteOrganizationDomain, isPending } = useMutation18(
5133
- FrontierServiceQueries23.deleteOrganizationDomain,
5277
+ FrontierServiceQueries24.deleteOrganizationDomain,
5134
5278
  {
5135
5279
  onSuccess: () => __async(this, null, function* () {
5136
- toastManager11.add({ title: "Domain successfully deleted", type: "success" });
5280
+ toastManager12.add({ title: "Domain successfully deleted", type: "success" });
5137
5281
  if (organization == null ? void 0 : organization.id) {
5138
5282
  yield queryClient2.invalidateQueries({
5139
5283
  queryKey: createConnectQueryKey8({
5140
- schema: FrontierServiceQueries23.listOrganizationDomains,
5284
+ schema: FrontierServiceQueries24.listOrganizationDomains,
5141
5285
  transport,
5142
- input: create17(ListOrganizationDomainsRequestSchema4, {
5286
+ input: create18(ListOrganizationDomainsRequestSchema4, {
5143
5287
  orgId: organization.id
5144
5288
  }),
5145
5289
  cardinality: "finite"
@@ -5159,16 +5303,16 @@ function DeleteDomainContent({
5159
5303
  }
5160
5304
  try {
5161
5305
  yield deleteOrganizationDomain(
5162
- create17(DeleteOrganizationDomainRequestSchema, {
5306
+ create18(DeleteOrganizationDomainRequestSchema, {
5163
5307
  id: domain.id,
5164
5308
  orgId: organization.id
5165
5309
  })
5166
5310
  );
5167
5311
  } catch (error) {
5168
5312
  handleConnectError(error, {
5169
- NotFound: (err) => toastManager11.add({ title: "Not found", description: err.message, type: "error" }),
5170
- PermissionDenied: () => toastManager11.add({ title: "You don't have permission to perform this action", type: "error" }),
5171
- Default: (err) => toastManager11.add({ title: "Something went wrong", description: err.message, type: "error" })
5313
+ NotFound: (err) => toastManager12.add({ title: "Not found", description: err.message, type: "error" }),
5314
+ PermissionDenied: () => toastManager12.add({ title: "You don't have permission to perform this action", type: "error" }),
5315
+ Default: (err) => toastManager12.add({ title: "Something went wrong", description: err.message, type: "error" })
5172
5316
  });
5173
5317
  }
5174
5318
  });
@@ -5232,8 +5376,8 @@ function DeleteDomainContent({
5232
5376
  ] }) });
5233
5377
  }
5234
5378
 
5235
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-0Wfui37cUZj6/sdk/client/views/security/security-view.module.css.js
5236
- var digest20 = "22f4c55da1af253d2c409dea16f40e682910e00452107ee7b747825a384aebf5";
5379
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-6Dic5U7zUk1J/sdk/client/views/security/security-view.module.css.js
5380
+ var digest20 = "4cc32453852a1329b5b28e8ef863309ad94d9a62f391550bd4e62926e01b8ac8";
5237
5381
  var css20 = `._section_xhxms_1 {
5238
5382
  padding: var(--rs-space-9) 0;
5239
5383
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -5278,9 +5422,9 @@ var deleteDomainDialogHandle = AlertDialog8.createHandle();
5278
5422
  function SecurityView({ children }) {
5279
5423
  const { activeOrganization: organization } = useFrontier();
5280
5424
  const { isFetching, domains, refetch, error: domainsError } = useOrganizationDomains();
5281
- useEffect6(() => {
5425
+ useEffect7(() => {
5282
5426
  if (domainsError) {
5283
- toastManager12.add({
5427
+ toastManager13.add({
5284
5428
  title: "Something went wrong",
5285
5429
  description: domainsError.message,
5286
5430
  type: "error"
@@ -5288,7 +5432,7 @@ function SecurityView({ children }) {
5288
5432
  }
5289
5433
  }, [domainsError]);
5290
5434
  const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
5291
- const listOfPermissionsToCheck = useMemo12(
5435
+ const listOfPermissionsToCheck = useMemo13(
5292
5436
  () => [
5293
5437
  {
5294
5438
  permission: PERMISSIONS.UpdatePermission,
@@ -5408,7 +5552,7 @@ function DomainCard({ domain, canUpdateOrg, onVerify, onDelete }) {
5408
5552
  }
5409
5553
 
5410
5554
  // client/views/projects/projects-view.tsx
5411
- import { useCallback as useCallback12, useEffect as useEffect10, useMemo as useMemo16, useState as useState19 } from "react";
5555
+ import { useCallback as useCallback12, useEffect as useEffect11, useMemo as useMemo17, useState as useState19 } from "react";
5412
5556
  import {
5413
5557
  Button as Button25,
5414
5558
  Tooltip as Tooltip4,
@@ -5427,13 +5571,13 @@ import {
5427
5571
  var inbox_stack_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none">%0A <path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 16.3872V19.375C2.5 21.1009 3.89911 22.5 5.625 22.5H34.375C36.1009 22.5 37.5 21.1009 37.5 19.375V16.3872C37.5 15.1937 37.073 14.0395 36.2963 13.1333L30.8215 6.74604C29.8716 5.63781 28.4849 5 27.0252 5H12.9748C11.5151 5 10.1284 5.63781 9.17847 6.74604L3.70372 13.1333C2.92696 14.0395 2.5 15.1937 2.5 16.3872ZM12.9748 7.5C12.2449 7.5 11.5516 7.81891 11.0766 8.37302L6.46778 13.75H11.7431C13.4148 13.75 14.976 14.5855 15.9033 15.9765L16.1768 16.3868C16.6405 17.0822 17.4211 17.5 18.2569 17.5H21.7431C22.5789 17.5 23.3595 17.0822 23.8232 16.3868L24.0967 15.9765C25.024 14.5855 26.5852 13.75 28.2569 13.75H33.5322L28.9234 8.37302C28.4484 7.81891 27.7551 7.5 27.0252 7.5H12.9748Z" fill="%23646464"/>%0A <path d="M4.6875 25C3.47938 25 2.5 25.9794 2.5 27.1875V30C2.5 32.7614 4.73858 35 7.5 35H32.5C35.2614 35 37.5 32.7614 37.5 30V27.1875C37.5 25.9794 36.5206 25 35.3125 25H28.2569C26.5852 25 25.024 25.8355 24.0967 27.2265L23.8232 27.6368C23.3595 28.3322 22.5789 28.75 21.7431 28.75H18.2569C17.4211 28.75 16.6405 28.3322 16.1768 27.6367L15.9033 27.2265C14.976 25.8355 13.4148 25 11.7431 25H4.6875Z" fill="%23646464"/>%0A</svg>';
5428
5572
 
5429
5573
  // client/views/projects/projects-view.tsx
5430
- import { toastManager as toastManager17 } from "@raystack/apsara";
5574
+ import { toastManager as toastManager18 } from "@raystack/apsara";
5431
5575
 
5432
5576
  // client/hooks/useOrganizationProjects.ts
5433
- import { useCallback as useCallback9, useMemo as useMemo13 } from "react";
5434
- import { useQuery as useQuery12 } from "@connectrpc/connect-query";
5435
- import { FrontierServiceQueries as FrontierServiceQueries24, ListOrganizationProjectsRequestSchema, ListProjectsByCurrentUserRequestSchema } from "@raystack/proton/frontier";
5436
- import { create as create18 } from "@bufbuild/protobuf";
5577
+ import { useCallback as useCallback9, useMemo as useMemo14 } from "react";
5578
+ import { useQuery as useQuery14 } from "@connectrpc/connect-query";
5579
+ import { FrontierServiceQueries as FrontierServiceQueries25, ListOrganizationProjectsRequestSchema, ListProjectsByCurrentUserRequestSchema } from "@raystack/proton/frontier";
5580
+ import { create as create19 } from "@bufbuild/protobuf";
5437
5581
  var useOrganizationProjects = ({
5438
5582
  withMemberCount = false,
5439
5583
  allProjects = false
@@ -5445,9 +5589,9 @@ var useOrganizationProjects = ({
5445
5589
  isFetched: isOrgProjectsFetched,
5446
5590
  error: orgProjectsError,
5447
5591
  refetch: refetchOrgProjects
5448
- } = useQuery12(
5449
- FrontierServiceQueries24.listOrganizationProjects,
5450
- create18(ListOrganizationProjectsRequestSchema, {
5592
+ } = useQuery14(
5593
+ FrontierServiceQueries25.listOrganizationProjects,
5594
+ create19(ListOrganizationProjectsRequestSchema, {
5451
5595
  id: (organization == null ? void 0 : organization.id) || "",
5452
5596
  withMemberCount
5453
5597
  }),
@@ -5459,9 +5603,9 @@ var useOrganizationProjects = ({
5459
5603
  isFetched: isUserProjectsFetched,
5460
5604
  error: userProjectsError,
5461
5605
  refetch: refetchUserProjects
5462
- } = useQuery12(
5463
- FrontierServiceQueries24.listProjectsByCurrentUser,
5464
- create18(ListProjectsByCurrentUserRequestSchema, {
5606
+ } = useQuery14(
5607
+ FrontierServiceQueries25.listProjectsByCurrentUser,
5608
+ create19(ListProjectsByCurrentUserRequestSchema, {
5465
5609
  orgId: (organization == null ? void 0 : organization.id) || "",
5466
5610
  withPermissions: ["update", "delete"],
5467
5611
  nonInherited: true,
@@ -5476,13 +5620,13 @@ var useOrganizationProjects = ({
5476
5620
  refetchUserProjects();
5477
5621
  }
5478
5622
  }, [allProjects, refetchOrgProjects, refetchUserProjects]);
5479
- const projects = useMemo13(() => {
5623
+ const projects = useMemo14(() => {
5480
5624
  return allProjects ? (orgProjectsData == null ? void 0 : orgProjectsData.projects) || [] : (userProjectsData == null ? void 0 : userProjectsData.projects) || [];
5481
5625
  }, [allProjects, orgProjectsData == null ? void 0 : orgProjectsData.projects, userProjectsData == null ? void 0 : userProjectsData.projects]);
5482
- const accessPairs = useMemo13(() => {
5626
+ const accessPairs = useMemo14(() => {
5483
5627
  return allProjects ? [] : (userProjectsData == null ? void 0 : userProjectsData.accessPairs) || [];
5484
5628
  }, [allProjects, userProjectsData == null ? void 0 : userProjectsData.accessPairs]);
5485
- const userAccessOnProject = useMemo13(() => {
5629
+ const userAccessOnProject = useMemo14(() => {
5486
5630
  return accessPairs.reduce((acc, p) => {
5487
5631
  const { projectId, permissions } = p;
5488
5632
  acc[projectId] = permissions;
@@ -5517,15 +5661,15 @@ import {
5517
5661
  Text as Text20,
5518
5662
  getAvatarColor as getAvatarColor2
5519
5663
  } from "@raystack/apsara";
5520
- import { useQuery as useQuery13 } from "@connectrpc/connect-query";
5664
+ import { useQuery as useQuery15 } from "@connectrpc/connect-query";
5521
5665
  import {
5522
- FrontierServiceQueries as FrontierServiceQueries25,
5666
+ FrontierServiceQueries as FrontierServiceQueries26,
5523
5667
  ListProjectUsersRequestSchema
5524
5668
  } from "@raystack/proton/frontier";
5525
- import { create as create19 } from "@bufbuild/protobuf";
5669
+ import { create as create20 } from "@bufbuild/protobuf";
5526
5670
 
5527
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-mKbBy34s3GzD/sdk/client/views/projects/components/members-cell.module.css.js
5528
- var digest21 = "6211b55d89f1cbaa4dc492fa3450707a5ad3f6e03f6384d6c75002d63ea0926f";
5671
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-sdPnocry1uZI/sdk/client/views/projects/components/members-cell.module.css.js
5672
+ var digest21 = "43fee1c9c15c1c6ad69e1465e4c10ca71065d824e158f5e6c4242bc0c372c675";
5529
5673
  var css21 = `._avatar_1t3nx_1 {
5530
5674
  border: none;
5531
5675
  outline: 1px solid var(--rs-color-background-base-primary);
@@ -5553,9 +5697,9 @@ var members_cell_module_css_default = { "avatar": "_avatar_1t3nx_1" };
5553
5697
  import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
5554
5698
  var MAX_AVATARS = 4;
5555
5699
  function MembersCell({ projectId }) {
5556
- const { data: users = [], isLoading } = useQuery13(
5557
- FrontierServiceQueries25.listProjectUsers,
5558
- create19(ListProjectUsersRequestSchema, { id: projectId }),
5700
+ const { data: users = [], isLoading } = useQuery15(
5701
+ FrontierServiceQueries26.listProjectUsers,
5702
+ create20(ListProjectUsersRequestSchema, { id: projectId }),
5559
5703
  {
5560
5704
  enabled: !!projectId,
5561
5705
  select: (d) => {
@@ -5588,8 +5732,8 @@ function MembersCell({ projectId }) {
5588
5732
  ] });
5589
5733
  }
5590
5734
 
5591
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-ZVXazqwJY2Bk/sdk/client/views/projects/components/project-columns.module.css.js
5592
- var digest22 = "4bc0d6f5e8ec27e00b6403d483eafdbe4685f23f0f16be50945e43fbb2f0ec27";
5735
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-xc5xTmtsmJoF/sdk/client/views/projects/components/project-columns.module.css.js
5736
+ var digest22 = "1ccb1ebd89fa11d9d9f36c84d8280cecf3ac3ecb0bb268f9f608369aee72dc5f";
5593
5737
  var css22 = `._actionsCell_elyi1_1 {
5594
5738
  visibility: hidden;
5595
5739
  }
@@ -5689,16 +5833,16 @@ import {
5689
5833
  Field as Field8,
5690
5834
  Input as Input10
5691
5835
  } from "@raystack/apsara";
5692
- import { toastManager as toastManager13 } from "@raystack/apsara";
5836
+ import { toastManager as toastManager14 } from "@raystack/apsara";
5693
5837
  import * as yup10 from "yup";
5694
5838
  import { yupResolver as yupResolver10 } from "@hookform/resolvers/yup";
5695
5839
  import { useForm as useForm10 } from "react-hook-form";
5696
5840
  import { useMutation as useMutation19 } from "@connectrpc/connect-query";
5697
5841
  import {
5698
- FrontierServiceQueries as FrontierServiceQueries26,
5842
+ FrontierServiceQueries as FrontierServiceQueries27,
5699
5843
  CreateProjectRequestSchema
5700
5844
  } from "@raystack/proton/frontier";
5701
- import { create as create20 } from "@bufbuild/protobuf";
5845
+ import { create as create21 } from "@bufbuild/protobuf";
5702
5846
  import slugify2 from "slugify";
5703
5847
  import { jsx as jsx34, jsxs as jsxs29 } from "react/jsx-runtime";
5704
5848
  var projectSchema = yup10.object({
@@ -5717,7 +5861,7 @@ function AddProjectDialog({ handle, refetch }) {
5717
5861
  });
5718
5862
  const { activeOrganization: organization } = useFrontier();
5719
5863
  const { mutateAsync: createProject } = useMutation19(
5720
- FrontierServiceQueries26.createProject
5864
+ FrontierServiceQueries27.createProject
5721
5865
  );
5722
5866
  const handleOpenChange = (open) => {
5723
5867
  if (!open)
@@ -5732,7 +5876,7 @@ function AddProjectDialog({ handle, refetch }) {
5732
5876
  const name = `${slug}-${suffix}`;
5733
5877
  try {
5734
5878
  yield createProject(
5735
- create20(CreateProjectRequestSchema, {
5879
+ create21(CreateProjectRequestSchema, {
5736
5880
  body: {
5737
5881
  title: data.title,
5738
5882
  name,
@@ -5740,7 +5884,7 @@ function AddProjectDialog({ handle, refetch }) {
5740
5884
  }
5741
5885
  })
5742
5886
  );
5743
- toastManager13.add({ title: "Project added", type: "success" });
5887
+ toastManager14.add({ title: "Project added", type: "success" });
5744
5888
  refetch();
5745
5889
  handle.close();
5746
5890
  } catch (error) {
@@ -5748,9 +5892,9 @@ function AddProjectDialog({ handle, refetch }) {
5748
5892
  AlreadyExists: () => setError("title", {
5749
5893
  message: "A project with a similar title already exists. Please tweak the title and try again."
5750
5894
  }),
5751
- InvalidArgument: (err) => toastManager13.add({ title: "Invalid input", description: err.message, type: "error" }),
5752
- PermissionDenied: () => toastManager13.add({ title: "You don't have permission to perform this action", type: "error" }),
5753
- Default: (err) => toastManager13.add({ title: "Something went wrong", description: err.message, type: "error" })
5895
+ InvalidArgument: (err) => toastManager14.add({ title: "Invalid input", description: err.message, type: "error" }),
5896
+ PermissionDenied: () => toastManager14.add({ title: "You don't have permission to perform this action", type: "error" }),
5897
+ Default: (err) => toastManager14.add({ title: "Something went wrong", description: err.message, type: "error" })
5754
5898
  });
5755
5899
  }
5756
5900
  });
@@ -5803,7 +5947,7 @@ function AddProjectDialog({ handle, refetch }) {
5803
5947
  }
5804
5948
 
5805
5949
  // client/views/projects/components/edit-project-dialog.tsx
5806
- import { useEffect as useEffect7 } from "react";
5950
+ import { useEffect as useEffect8 } from "react";
5807
5951
  import {
5808
5952
  Button as Button22,
5809
5953
  Flex as Flex29,
@@ -5811,16 +5955,16 @@ import {
5811
5955
  Field as Field9,
5812
5956
  Input as Input11
5813
5957
  } from "@raystack/apsara";
5814
- import { toastManager as toastManager14 } from "@raystack/apsara";
5958
+ import { toastManager as toastManager15 } from "@raystack/apsara";
5815
5959
  import * as yup11 from "yup";
5816
5960
  import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
5817
5961
  import { useForm as useForm11 } from "react-hook-form";
5818
5962
  import { useMutation as useMutation20 } from "@connectrpc/connect-query";
5819
5963
  import {
5820
- FrontierServiceQueries as FrontierServiceQueries27,
5964
+ FrontierServiceQueries as FrontierServiceQueries28,
5821
5965
  UpdateProjectRequestSchema
5822
5966
  } from "@raystack/proton/frontier";
5823
- import { create as create21 } from "@bufbuild/protobuf";
5967
+ import { create as create22 } from "@bufbuild/protobuf";
5824
5968
  import { jsx as jsx35, jsxs as jsxs30 } from "react/jsx-runtime";
5825
5969
  var editProjectSchema = yup11.object({
5826
5970
  title: yup11.string().required("Project name is required")
@@ -5852,9 +5996,9 @@ function EditProjectForm({ payload, handle, refetch }) {
5852
5996
  }
5853
5997
  });
5854
5998
  const { mutateAsync: updateProject } = useMutation20(
5855
- FrontierServiceQueries27.updateProject
5999
+ FrontierServiceQueries28.updateProject
5856
6000
  );
5857
- useEffect7(() => {
6001
+ useEffect8(() => {
5858
6002
  reset({
5859
6003
  title: payload.title
5860
6004
  });
@@ -5865,7 +6009,7 @@ function EditProjectForm({ payload, handle, refetch }) {
5865
6009
  return;
5866
6010
  try {
5867
6011
  yield updateProject(
5868
- create21(UpdateProjectRequestSchema, {
6012
+ create22(UpdateProjectRequestSchema, {
5869
6013
  id: payload.projectId,
5870
6014
  body: {
5871
6015
  name: payload.name,
@@ -5873,16 +6017,16 @@ function EditProjectForm({ payload, handle, refetch }) {
5873
6017
  }
5874
6018
  })
5875
6019
  );
5876
- toastManager14.add({ title: "Project updated", type: "success" });
6020
+ toastManager15.add({ title: "Project updated", type: "success" });
5877
6021
  refetch();
5878
6022
  handle.close();
5879
6023
  } catch (error) {
5880
6024
  handleConnectError(error, {
5881
- AlreadyExists: () => toastManager14.add({ title: "Project already exists", type: "error" }),
5882
- InvalidArgument: (err) => toastManager14.add({ title: "Invalid input", description: err.message, type: "error" }),
5883
- PermissionDenied: () => toastManager14.add({ title: "You don't have permission to perform this action", type: "error" }),
5884
- NotFound: (err) => toastManager14.add({ title: "Not found", description: err.message, type: "error" }),
5885
- Default: (err) => toastManager14.add({ title: "Something went wrong", description: err.message, type: "error" })
6025
+ AlreadyExists: () => toastManager15.add({ title: "Project already exists", type: "error" }),
6026
+ InvalidArgument: (err) => toastManager15.add({ title: "Invalid input", description: err.message, type: "error" }),
6027
+ PermissionDenied: () => toastManager15.add({ title: "You don't have permission to perform this action", type: "error" }),
6028
+ NotFound: (err) => toastManager15.add({ title: "Not found", description: err.message, type: "error" }),
6029
+ Default: (err) => toastManager15.add({ title: "Something went wrong", description: err.message, type: "error" })
5886
6030
  });
5887
6031
  }
5888
6032
  });
@@ -5940,19 +6084,19 @@ import {
5940
6084
  Text as Text22,
5941
6085
  AlertDialog as AlertDialog9
5942
6086
  } from "@raystack/apsara";
5943
- import { toastManager as toastManager15 } from "@raystack/apsara";
6087
+ import { toastManager as toastManager16 } from "@raystack/apsara";
5944
6088
  import { useMutation as useMutation21 } from "@connectrpc/connect-query";
5945
6089
  import {
5946
- FrontierServiceQueries as FrontierServiceQueries28,
6090
+ FrontierServiceQueries as FrontierServiceQueries29,
5947
6091
  DeleteProjectRequestSchema
5948
6092
  } from "@raystack/proton/frontier";
5949
- import { create as create22 } from "@bufbuild/protobuf";
6093
+ import { create as create23 } from "@bufbuild/protobuf";
5950
6094
  import { jsx as jsx36, jsxs as jsxs31 } from "react/jsx-runtime";
5951
6095
  function DeleteProjectDialog({ handle, refetch }) {
5952
6096
  const { activeOrganization: organization } = useFrontier();
5953
6097
  const [isLoading, setIsLoading] = useState16(false);
5954
6098
  const { mutateAsync: deleteProject } = useMutation21(
5955
- FrontierServiceQueries28.deleteProject
6099
+ FrontierServiceQueries29.deleteProject
5956
6100
  );
5957
6101
  const handleDelete = (projectId) => __async(this, null, function* () {
5958
6102
  if (!(organization == null ? void 0 : organization.id) || !projectId)
@@ -5960,16 +6104,16 @@ function DeleteProjectDialog({ handle, refetch }) {
5960
6104
  setIsLoading(true);
5961
6105
  try {
5962
6106
  yield deleteProject(
5963
- create22(DeleteProjectRequestSchema, { id: projectId })
6107
+ create23(DeleteProjectRequestSchema, { id: projectId })
5964
6108
  );
5965
- toastManager15.add({ title: "Project deleted", type: "success" });
6109
+ toastManager16.add({ title: "Project deleted", type: "success" });
5966
6110
  refetch();
5967
6111
  handle.close();
5968
6112
  } catch (error) {
5969
6113
  handleConnectError(error, {
5970
- PermissionDenied: () => toastManager15.add({ title: "You don't have permission to perform this action", type: "error" }),
5971
- NotFound: (err) => toastManager15.add({ title: "Not found", description: err.message, type: "error" }),
5972
- Default: (err) => toastManager15.add({ title: "Something went wrong", description: err.message, type: "error" })
6114
+ PermissionDenied: () => toastManager16.add({ title: "You don't have permission to perform this action", type: "error" }),
6115
+ NotFound: (err) => toastManager16.add({ title: "Not found", description: err.message, type: "error" }),
6116
+ Default: (err) => toastManager16.add({ title: "Something went wrong", description: err.message, type: "error" })
5973
6117
  });
5974
6118
  } finally {
5975
6119
  setIsLoading(false);
@@ -6015,7 +6159,7 @@ function DeleteProjectDialog({ handle, refetch }) {
6015
6159
  }
6016
6160
 
6017
6161
  // client/views/projects/components/add-member-menu.tsx
6018
- import { useCallback as useCallback11, useEffect as useEffect9, useMemo as useMemo15, useState as useState18 } from "react";
6162
+ import { useCallback as useCallback11, useEffect as useEffect10, useMemo as useMemo16, useState as useState18 } from "react";
6019
6163
  import {
6020
6164
  Avatar as Avatar4,
6021
6165
  Button as Button24,
@@ -6025,21 +6169,21 @@ import {
6025
6169
  Skeleton as Skeleton13,
6026
6170
  Tooltip as Tooltip3
6027
6171
  } from "@raystack/apsara";
6028
- import { toastManager as toastManager16 } from "@raystack/apsara";
6029
- import { useQuery as useQuery15, useMutation as useMutation22 } from "@connectrpc/connect-query";
6172
+ import { toastManager as toastManager17 } from "@raystack/apsara";
6173
+ import { useQuery as useQuery17, useMutation as useMutation22 } from "@connectrpc/connect-query";
6030
6174
  import {
6031
- FrontierServiceQueries as FrontierServiceQueries30,
6175
+ FrontierServiceQueries as FrontierServiceQueries31,
6032
6176
  ListOrganizationUsersRequestSchema as ListOrganizationUsersRequestSchema2,
6033
6177
  ListRolesRequestSchema as ListRolesRequestSchema3,
6034
6178
  SetProjectMemberRoleRequestSchema
6035
6179
  } from "@raystack/proton/frontier";
6036
- import { create as create24 } from "@bufbuild/protobuf";
6180
+ import { create as create25 } from "@bufbuild/protobuf";
6037
6181
 
6038
6182
  // client/hooks/useOrganizationTeams.ts
6039
- import { useCallback as useCallback10, useEffect as useEffect8, useMemo as useMemo14, useState as useState17 } from "react";
6040
- import { useQuery as useQuery14 } from "@connectrpc/connect-query";
6041
- import { FrontierServiceQueries as FrontierServiceQueries29, ListOrganizationGroupsRequestSchema as ListOrganizationGroupsRequestSchema2, ListCurrentUserGroupsRequestSchema } from "@raystack/proton/frontier";
6042
- import { create as create23 } from "@bufbuild/protobuf";
6183
+ import { useCallback as useCallback10, useEffect as useEffect9, useMemo as useMemo15, useState as useState17 } from "react";
6184
+ import { useQuery as useQuery16 } from "@connectrpc/connect-query";
6185
+ import { FrontierServiceQueries as FrontierServiceQueries30, ListOrganizationGroupsRequestSchema as ListOrganizationGroupsRequestSchema2, ListCurrentUserGroupsRequestSchema } from "@raystack/proton/frontier";
6186
+ import { create as create24 } from "@bufbuild/protobuf";
6043
6187
  var useOrganizationTeams = ({
6044
6188
  withPermissions = [],
6045
6189
  showOrgTeams = false,
@@ -6048,19 +6192,19 @@ var useOrganizationTeams = ({
6048
6192
  const [teams, setTeams] = useState17([]);
6049
6193
  const [accessPairs, setAccessPairs] = useState17([]);
6050
6194
  const { activeOrganization: organization } = useFrontier();
6051
- const { data: orgTeamsData, isLoading: isOrgTeamsLoading, isFetched: isOrgTeamsFetched, error: orgTeamsError, refetch: refetchOrgTeams } = useQuery14(
6052
- FrontierServiceQueries29.listOrganizationGroups,
6053
- create23(ListOrganizationGroupsRequestSchema2, { orgId: (organization == null ? void 0 : organization.id) || "", withMemberCount }),
6195
+ const { data: orgTeamsData, isLoading: isOrgTeamsLoading, isFetched: isOrgTeamsFetched, error: orgTeamsError, refetch: refetchOrgTeams } = useQuery16(
6196
+ FrontierServiceQueries30.listOrganizationGroups,
6197
+ create24(ListOrganizationGroupsRequestSchema2, { orgId: (organization == null ? void 0 : organization.id) || "", withMemberCount }),
6054
6198
  { enabled: !!(organization == null ? void 0 : organization.id) && showOrgTeams }
6055
6199
  );
6056
- const { data: userTeamsData, isLoading: isUserTeamsLoading, isFetched: isUserTeamsFetched, error: userTeamsError, refetch: refetchUserTeams } = useQuery14(
6057
- FrontierServiceQueries29.listCurrentUserGroups,
6058
- create23(ListCurrentUserGroupsRequestSchema, { orgId: (organization == null ? void 0 : organization.id) || "", withPermissions, withMemberCount }),
6200
+ const { data: userTeamsData, isLoading: isUserTeamsLoading, isFetched: isUserTeamsFetched, error: userTeamsError, refetch: refetchUserTeams } = useQuery16(
6201
+ FrontierServiceQueries30.listCurrentUserGroups,
6202
+ create24(ListCurrentUserGroupsRequestSchema, { orgId: (organization == null ? void 0 : organization.id) || "", withPermissions, withMemberCount }),
6059
6203
  { enabled: !!(organization == null ? void 0 : organization.id) && !showOrgTeams }
6060
6204
  );
6061
6205
  const isTeamsLoading = showOrgTeams ? isOrgTeamsLoading : isUserTeamsLoading;
6062
6206
  const teamsData = showOrgTeams ? orgTeamsData : userTeamsData;
6063
- useEffect8(() => {
6207
+ useEffect9(() => {
6064
6208
  if (teamsData) {
6065
6209
  const { groups = [] } = teamsData;
6066
6210
  setTeams(groups);
@@ -6071,7 +6215,7 @@ var useOrganizationTeams = ({
6071
6215
  }
6072
6216
  }
6073
6217
  }, [teamsData, showOrgTeams]);
6074
- const userAccessOnTeam = useMemo14(() => {
6218
+ const userAccessOnTeam = useMemo15(() => {
6075
6219
  return accessPairs.reduce((acc, p) => {
6076
6220
  const { groupId, permissions } = p;
6077
6221
  acc[groupId] = permissions;
@@ -6095,8 +6239,8 @@ var useOrganizationTeams = ({
6095
6239
  };
6096
6240
  };
6097
6241
 
6098
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-2gDmhrVzDZhR/sdk/client/views/projects/project-details-view.module.css.js
6099
- var digest23 = "a7dd6b87101e5c6ad3ead1bf20cdbdeee91fcfeba82331f25e7c37d4c7eb653b";
6242
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-hp0kb9Tc4mDA/sdk/client/views/projects/project-details-view.module.css.js
6243
+ var digest23 = "36a5735e3d66996074058024e2cdf51de4bb98edf64b404e94fe2d9125b4e33d";
6100
6244
  var css23 = `._roleFilter_1dxgv_1 {
6101
6245
  width: auto;
6102
6246
  min-width: 80px;
@@ -6188,42 +6332,42 @@ function AddMemberMenuContent({
6188
6332
  data: orgUsersData,
6189
6333
  isLoading: isOrgUsersLoading,
6190
6334
  error: orgUsersError
6191
- } = useQuery15(
6192
- FrontierServiceQueries30.listOrganizationUsers,
6193
- create24(ListOrganizationUsersRequestSchema2, {
6335
+ } = useQuery17(
6336
+ FrontierServiceQueries31.listOrganizationUsers,
6337
+ create25(ListOrganizationUsersRequestSchema2, {
6194
6338
  id: (organization == null ? void 0 : organization.id) || ""
6195
6339
  }),
6196
6340
  { enabled: !!(organization == null ? void 0 : organization.id) && canUpdateProject }
6197
6341
  );
6198
- const orgUsers = useMemo15(
6342
+ const orgUsers = useMemo16(
6199
6343
  () => {
6200
6344
  var _a;
6201
6345
  return (_a = orgUsersData == null ? void 0 : orgUsersData.users) != null ? _a : [];
6202
6346
  },
6203
6347
  [orgUsersData]
6204
6348
  );
6205
- useEffect9(() => {
6349
+ useEffect10(() => {
6206
6350
  if (orgUsersError) {
6207
- toastManager16.add({
6351
+ toastManager17.add({
6208
6352
  title: "Something went wrong",
6209
6353
  description: orgUsersError.message,
6210
6354
  type: "error"
6211
6355
  });
6212
6356
  }
6213
6357
  }, [orgUsersError]);
6214
- const invitableUsers = useMemo15(
6358
+ const invitableUsers = useMemo16(
6215
6359
  () => filterUsersfromUsers(orgUsers, members),
6216
6360
  [orgUsers, members]
6217
6361
  );
6218
- const { data: rolesData } = useQuery15(
6219
- FrontierServiceQueries30.listRoles,
6220
- create24(ListRolesRequestSchema3, {
6362
+ const { data: rolesData } = useQuery17(
6363
+ FrontierServiceQueries31.listRoles,
6364
+ create25(ListRolesRequestSchema3, {
6221
6365
  state: "enabled",
6222
6366
  scopes: [PERMISSIONS.ProjectNamespace]
6223
6367
  }),
6224
6368
  { enabled: !!projectId }
6225
6369
  );
6226
- const viewerRole = useMemo15(
6370
+ const viewerRole = useMemo16(
6227
6371
  () => {
6228
6372
  var _a;
6229
6373
  return ((_a = rolesData == null ? void 0 : rolesData.roles) != null ? _a : []).find(
@@ -6233,17 +6377,17 @@ function AddMemberMenuContent({
6233
6377
  [rolesData]
6234
6378
  );
6235
6379
  const { mutate: setProjectMemberRole } = useMutation22(
6236
- FrontierServiceQueries30.setProjectMemberRole,
6380
+ FrontierServiceQueries31.setProjectMemberRole,
6237
6381
  {
6238
6382
  onSuccess: () => {
6239
- toastManager16.add({
6383
+ toastManager17.add({
6240
6384
  title: "Member added",
6241
6385
  type: "success"
6242
6386
  });
6243
6387
  refetch();
6244
6388
  },
6245
6389
  onError: (err) => {
6246
- toastManager16.add({
6390
+ toastManager17.add({
6247
6391
  title: "Something went wrong",
6248
6392
  description: err.message,
6249
6393
  type: "error"
@@ -6256,7 +6400,7 @@ function AddMemberMenuContent({
6256
6400
  if (!userId || !(organization == null ? void 0 : organization.id) || !projectId || !(viewerRole == null ? void 0 : viewerRole.id))
6257
6401
  return;
6258
6402
  setProjectMemberRole(
6259
- create24(SetProjectMemberRoleRequestSchema, {
6403
+ create25(SetProjectMemberRoleRequestSchema, {
6260
6404
  projectId,
6261
6405
  principalId: userId,
6262
6406
  principalType: PERMISSIONS.UserNamespace,
@@ -6271,7 +6415,7 @@ function AddMemberMenuContent({
6271
6415
  if (!teamId || !(organization == null ? void 0 : organization.id) || !projectId || !(viewerRole == null ? void 0 : viewerRole.id))
6272
6416
  return;
6273
6417
  setProjectMemberRole(
6274
- create24(SetProjectMemberRoleRequestSchema, {
6418
+ create25(SetProjectMemberRoleRequestSchema, {
6275
6419
  projectId,
6276
6420
  principalId: teamId,
6277
6421
  principalType: PERMISSIONS.GroupNamespace,
@@ -6401,8 +6545,8 @@ function AddMemberMenu({
6401
6545
  ] });
6402
6546
  }
6403
6547
 
6404
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-SJnZpskp8Hli/sdk/client/views/projects/projects-view.module.css.js
6405
- var digest24 = "046d26ce6116559781c1a7ccf5b2a9d4673d81e4cda2ed4f762ed9f3209d9bd6";
6548
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-D1wDo71kRvB6/sdk/client/views/projects/projects-view.module.css.js
6549
+ var digest24 = "19ef1f810f12bb73bc663c9e8d68847bff64ec074240160607df6125f2e324b9";
6406
6550
  var css24 = `._tableRoot_1tj9z_1 {
6407
6551
  border: none;
6408
6552
  }
@@ -6475,7 +6619,7 @@ function ProjectsView({
6475
6619
  const { activeOrganization: organization } = useFrontier();
6476
6620
  const t = useTerminology();
6477
6621
  const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
6478
- const listOfPermissionsToCheck = useMemo16(
6622
+ const listOfPermissionsToCheck = useMemo17(
6479
6623
  () => [
6480
6624
  {
6481
6625
  permission: PERMISSIONS.ProjectCreatePermission,
@@ -6492,7 +6636,7 @@ function ProjectsView({
6492
6636
  listOfPermissionsToCheck,
6493
6637
  !!(organization == null ? void 0 : organization.id)
6494
6638
  );
6495
- const { canCreateProject, canListOrgProjects } = useMemo16(() => {
6639
+ const { canCreateProject, canListOrgProjects } = useMemo17(() => {
6496
6640
  return {
6497
6641
  canCreateProject: shouldShowComponent(
6498
6642
  permissions,
@@ -6507,9 +6651,9 @@ function ProjectsView({
6507
6651
  const onFilterChange = useCallback12((value) => {
6508
6652
  setShowOrgProjects(value === "all-projects");
6509
6653
  }, []);
6510
- useEffect10(() => {
6654
+ useEffect11(() => {
6511
6655
  if (projectsError) {
6512
- toastManager17.add({
6656
+ toastManager18.add({
6513
6657
  title: "Something went wrong",
6514
6658
  description: projectsError instanceof Error ? projectsError.message : "Failed to load projects",
6515
6659
  type: "error"
@@ -6520,7 +6664,7 @@ function ProjectsView({
6520
6664
  const showInitialSkeleton = isLoading && !isProjectsFetched;
6521
6665
  const filterValue = showOrgProjects ? "all-projects" : "my-projects";
6522
6666
  const hasNoProjects = !isLoading && ((_a = projects == null ? void 0 : projects.length) != null ? _a : 0) === 0;
6523
- const columns = useMemo16(
6667
+ const columns = useMemo17(
6524
6668
  () => getColumns2({
6525
6669
  userAccessOnProject,
6526
6670
  menuHandle: projectMenuHandle
@@ -6703,7 +6847,7 @@ function ProjectsView({
6703
6847
  }
6704
6848
 
6705
6849
  // client/views/projects/project-details-view.tsx
6706
- import { useCallback as useCallback13, useEffect as useEffect11, useMemo as useMemo17, useState as useState22 } from "react";
6850
+ import { useCallback as useCallback13, useEffect as useEffect12, useMemo as useMemo18, useState as useState22 } from "react";
6707
6851
  import {
6708
6852
  Breadcrumb,
6709
6853
  Skeleton as Skeleton15,
@@ -6717,16 +6861,16 @@ import {
6717
6861
  Image as Image5,
6718
6862
  Select as Select5
6719
6863
  } from "@raystack/apsara";
6720
- import { toastManager as toastManager20 } from "@raystack/apsara";
6721
- import { useQuery as useQuery16 } from "@connectrpc/connect-query";
6864
+ import { toastManager as toastManager21 } from "@raystack/apsara";
6865
+ import { useQuery as useQuery18 } from "@connectrpc/connect-query";
6722
6866
  import {
6723
- FrontierServiceQueries as FrontierServiceQueries33,
6867
+ FrontierServiceQueries as FrontierServiceQueries34,
6724
6868
  ListProjectGroupsRequestSchema,
6725
6869
  ListProjectUsersRequestSchema as ListProjectUsersRequestSchema2,
6726
6870
  GetProjectRequestSchema,
6727
6871
  ListRolesRequestSchema as ListRolesRequestSchema4
6728
6872
  } from "@raystack/proton/frontier";
6729
- import { create as create27 } from "@bufbuild/protobuf";
6873
+ import { create as create28 } from "@bufbuild/protobuf";
6730
6874
 
6731
6875
  // client/views/projects/components/remove-member-dialog.tsx
6732
6876
  import { useState as useState20 } from "react";
@@ -6735,13 +6879,13 @@ import {
6735
6879
  Text as Text23,
6736
6880
  AlertDialog as AlertDialog11
6737
6881
  } from "@raystack/apsara";
6738
- import { toastManager as toastManager18 } from "@raystack/apsara";
6882
+ import { toastManager as toastManager19 } from "@raystack/apsara";
6739
6883
  import { useMutation as useMutation23 } from "@connectrpc/connect-query";
6740
6884
  import {
6741
- FrontierServiceQueries as FrontierServiceQueries31,
6885
+ FrontierServiceQueries as FrontierServiceQueries32,
6742
6886
  RemoveProjectMemberRequestSchema
6743
6887
  } from "@raystack/proton/frontier";
6744
- import { create as create25 } from "@bufbuild/protobuf";
6888
+ import { create as create26 } from "@bufbuild/protobuf";
6745
6889
  import { Fragment as Fragment11, jsx as jsx39, jsxs as jsxs34 } from "react/jsx-runtime";
6746
6890
  var PRINCIPAL_TYPES = {
6747
6891
  USER: "app/user",
@@ -6770,27 +6914,27 @@ function RemoveMemberForm({
6770
6914
  }) {
6771
6915
  const [isLoading, setIsLoading] = useState20(false);
6772
6916
  const { mutateAsync: removeProjectMember } = useMutation23(
6773
- FrontierServiceQueries31.removeProjectMember
6917
+ FrontierServiceQueries32.removeProjectMember
6774
6918
  );
6775
6919
  function handleRemove() {
6776
6920
  return __async(this, null, function* () {
6777
6921
  setIsLoading(true);
6778
6922
  try {
6779
6923
  yield removeProjectMember(
6780
- create25(RemoveProjectMemberRequestSchema, {
6924
+ create26(RemoveProjectMemberRequestSchema, {
6781
6925
  projectId: payload.projectId,
6782
6926
  principalId: payload.memberId,
6783
6927
  principalType: payload.memberType === "group" ? PRINCIPAL_TYPES.GROUP : PRINCIPAL_TYPES.USER
6784
6928
  })
6785
6929
  );
6786
- toastManager18.add({ title: "Member removed", type: "success" });
6930
+ toastManager19.add({ title: "Member removed", type: "success" });
6787
6931
  refetch();
6788
6932
  handle.close();
6789
6933
  } catch (error) {
6790
6934
  handleConnectError(error, {
6791
- PermissionDenied: () => toastManager18.add({ title: "You don't have permission to perform this action", type: "error" }),
6792
- NotFound: (err) => toastManager18.add({ title: "Not found", description: err.message, type: "error" }),
6793
- Default: (err) => toastManager18.add({ title: "Something went wrong", description: err.message, type: "error" })
6935
+ PermissionDenied: () => toastManager19.add({ title: "You don't have permission to perform this action", type: "error" }),
6936
+ NotFound: (err) => toastManager19.add({ title: "Not found", description: err.message, type: "error" }),
6937
+ Default: (err) => toastManager19.add({ title: "Something went wrong", description: err.message, type: "error" })
6794
6938
  });
6795
6939
  } finally {
6796
6940
  setIsLoading(false);
@@ -6831,16 +6975,16 @@ function RemoveMemberForm({
6831
6975
 
6832
6976
  // client/views/projects/components/update-role-dialog.tsx
6833
6977
  import { useState as useState21 } from "react";
6834
- import { create as create26 } from "@bufbuild/protobuf";
6978
+ import { create as create27 } from "@bufbuild/protobuf";
6835
6979
  import { useMutation as useMutation24 } from "@connectrpc/connect-query";
6836
6980
  import {
6837
- FrontierServiceQueries as FrontierServiceQueries32,
6981
+ FrontierServiceQueries as FrontierServiceQueries33,
6838
6982
  SetProjectMemberRoleRequestSchema as SetProjectMemberRoleRequestSchema2
6839
6983
  } from "@raystack/proton/frontier";
6840
6984
  import {
6841
6985
  AlertDialog as AlertDialog12,
6842
6986
  Button as Button27,
6843
- toastManager as toastManager19
6987
+ toastManager as toastManager20
6844
6988
  } from "@raystack/apsara";
6845
6989
  import { jsx as jsx40, jsxs as jsxs35 } from "react/jsx-runtime";
6846
6990
  function UpdateRoleDialog2({
@@ -6869,27 +7013,27 @@ function UpdateRoleContent2({
6869
7013
  }) {
6870
7014
  const [isLoading, setIsLoading] = useState21(false);
6871
7015
  const { mutateAsync: setProjectMemberRole } = useMutation24(
6872
- FrontierServiceQueries32.setProjectMemberRole
7016
+ FrontierServiceQueries33.setProjectMemberRole
6873
7017
  );
6874
7018
  const handleUpdate = () => __async(this, null, function* () {
6875
7019
  setIsLoading(true);
6876
7020
  try {
6877
7021
  yield setProjectMemberRole(
6878
- create26(SetProjectMemberRoleRequestSchema2, {
7022
+ create27(SetProjectMemberRoleRequestSchema2, {
6879
7023
  projectId,
6880
7024
  principalId: payload.memberId,
6881
7025
  principalType: payload.isTeam ? PERMISSIONS.GroupNamespace : PERMISSIONS.UserNamespace,
6882
7026
  roleId: payload.role.id
6883
7027
  })
6884
7028
  );
6885
- toastManager19.add({ title: "Member role updated", type: "success" });
7029
+ toastManager20.add({ title: "Member role updated", type: "success" });
6886
7030
  refetch();
6887
7031
  onClose();
6888
7032
  } catch (error) {
6889
7033
  handleConnectError(error, {
6890
- PermissionDenied: () => toastManager19.add({ title: "You don't have permission to perform this action", type: "error" }),
6891
- NotFound: (err) => toastManager19.add({ title: "Not found", description: err.message, type: "error" }),
6892
- Default: (err) => toastManager19.add({ title: "Something went wrong", description: err.message, type: "error" })
7034
+ PermissionDenied: () => toastManager20.add({ title: "You don't have permission to perform this action", type: "error" }),
7035
+ NotFound: (err) => toastManager20.add({ title: "Not found", description: err.message, type: "error" }),
7036
+ Default: (err) => toastManager20.add({ title: "Something went wrong", description: err.message, type: "error" })
6893
7037
  });
6894
7038
  } finally {
6895
7039
  setIsLoading(false);
@@ -6942,8 +7086,8 @@ import {
6942
7086
  // client/assets/users.svg
6943
7087
  var users_default = 'data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="users">%0A<path id="Vector" d="M7.1206 8.07982C7.88443 8.07982 8.61697 7.7764 9.15707 7.23629C9.69718 6.69619 10.0006 5.96365 10.0006 5.19982C10.0006 4.436 9.69718 3.70346 9.15707 3.16336C8.61697 2.62325 7.88443 2.31982 7.1206 2.31982C6.35678 2.31982 5.62424 2.62325 5.08413 3.16336C4.54403 3.70346 4.2406 4.436 4.2406 5.19982C4.2406 5.96365 4.54403 6.69619 5.08413 7.23629C5.62424 7.7764 6.35678 8.07982 7.1206 8.07982ZM14.3206 9.03982C14.9571 9.03982 15.5676 8.78697 16.0177 8.33688C16.4677 7.88679 16.7206 7.27634 16.7206 6.63982C16.7206 6.0033 16.4677 5.39286 16.0177 4.94277C15.5676 4.49268 14.9571 4.23982 14.3206 4.23982C13.6841 4.23982 13.0736 4.49268 12.6235 4.94277C12.1735 5.39286 11.9206 6.0033 11.9206 6.63982C11.9206 7.27634 12.1735 7.88679 12.6235 8.33688C13.0736 8.78697 13.6841 9.03982 14.3206 9.03982ZM1.951 16.1707C1.76278 16.0534 1.6116 15.8852 1.51494 15.6856C1.41828 15.486 1.38008 15.2631 1.40476 15.0427C1.58174 13.6517 2.25988 12.373 3.3121 11.4462C4.36432 10.5194 5.7184 10.008 7.1206 10.008C8.5228 10.008 9.87688 10.5194 10.9291 11.4462C11.9813 12.373 12.6595 13.6517 12.8364 15.0427C12.8921 15.491 12.6713 15.9259 12.2892 16.1697C10.7468 17.1582 8.95262 17.6824 7.1206 17.6798C5.28835 17.6829 3.49386 17.159 1.951 16.1707ZM14.3206 15.7598H14.2188C14.286 15.4747 14.3033 15.1733 14.2649 14.8641C14.1008 13.5444 13.573 12.2963 12.7404 11.2593C13.2762 11.0485 13.8488 10.9469 14.4244 10.9604C15 10.9739 15.5671 11.1023 16.0925 11.338C16.6178 11.5738 17.0907 11.9121 17.4834 12.3331C17.8762 12.7542 18.1808 13.2495 18.3795 13.7899C18.4405 13.9624 18.4394 14.1508 18.3763 14.3226C18.3132 14.4944 18.1921 14.6387 18.0339 14.7307C16.9133 15.4063 15.6291 15.7622 14.3206 15.7598Z" fill="%23687076"/>%0A</g>%0A</svg>%0A';
6944
7088
 
6945
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-KpIbt0iuOw8r/sdk/client/views/projects/components/member-columns.module.css.js
6946
- var digest25 = "2971635ec02ea54a356c5019b0c08c0669b364e26a7978d8d74868cd30273c25";
7089
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-VmqdpagUBZ6U/sdk/client/views/projects/components/member-columns.module.css.js
7090
+ var digest25 = "4e4537cdac6bdb9692168b10171e38b5c23da55173164909921b277c6579eff1";
6947
7091
  var css25 = `._actionsCell_elyi1_1 {
6948
7092
  visibility: hidden;
6949
7093
  }
@@ -7056,8 +7200,8 @@ function getColumns3({
7056
7200
  ];
7057
7201
  }
7058
7202
 
7059
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-21iMDuCyWp8M/sdk/client/views/projects/project-details-view.module.css.js
7060
- var digest26 = "28060c5457837d07f08c6b6a351cf072f43247cb1b33a1db75a171d99d476163";
7203
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-4qGYqikS6WuB/sdk/client/views/projects/project-details-view.module.css.js
7204
+ var digest26 = "a5627bb0253c0bfe61d95c427ee683ce5008b232928ea374638de9c65a94b4d6";
7061
7205
  var css26 = `._roleFilter_1dxgv_1 {
7062
7206
  width: auto;
7063
7207
  min-width: 80px;
@@ -7152,17 +7296,17 @@ function ProjectDetailsView({
7152
7296
  isLoading: isProjectLoading,
7153
7297
  error: projectError,
7154
7298
  refetch: refetchProject
7155
- } = useQuery16(
7156
- FrontierServiceQueries33.getProject,
7157
- create27(GetProjectRequestSchema, { id: projectId || "" }),
7299
+ } = useQuery18(
7300
+ FrontierServiceQueries34.getProject,
7301
+ create28(GetProjectRequestSchema, { id: projectId || "" }),
7158
7302
  {
7159
7303
  enabled: !!(organization == null ? void 0 : organization.id) && !!projectId,
7160
7304
  select: (d) => d == null ? void 0 : d.project
7161
7305
  }
7162
7306
  );
7163
- useEffect11(() => {
7307
+ useEffect12(() => {
7164
7308
  if (projectError) {
7165
- toastManager20.add({
7309
+ toastManager21.add({
7166
7310
  title: "Something went wrong",
7167
7311
  description: projectError.message,
7168
7312
  type: "error"
@@ -7173,14 +7317,14 @@ function ProjectDetailsView({
7173
7317
  data: projectUsersData,
7174
7318
  isLoading: isMembersLoading,
7175
7319
  refetch: refetchProjectUsers
7176
- } = useQuery16(
7177
- FrontierServiceQueries33.listProjectUsers,
7178
- create27(ListProjectUsersRequestSchema2, {
7320
+ } = useQuery18(
7321
+ FrontierServiceQueries34.listProjectUsers,
7322
+ create28(ListProjectUsersRequestSchema2, {
7179
7323
  id: projectId || ""
7180
7324
  }),
7181
7325
  { enabled: !!(organization == null ? void 0 : organization.id) && !!projectId }
7182
7326
  );
7183
- const projectUsers = useMemo17(
7327
+ const projectUsers = useMemo18(
7184
7328
  () => {
7185
7329
  var _a, _b;
7186
7330
  return {
@@ -7202,23 +7346,23 @@ function ProjectDetailsView({
7202
7346
  isLoading: isTeamsLoading,
7203
7347
  error: groupsError,
7204
7348
  refetch: refetchProjectGroups
7205
- } = useQuery16(
7206
- FrontierServiceQueries33.listProjectGroups,
7207
- create27(ListProjectGroupsRequestSchema, {
7349
+ } = useQuery18(
7350
+ FrontierServiceQueries34.listProjectGroups,
7351
+ create28(ListProjectGroupsRequestSchema, {
7208
7352
  id: projectId || ""
7209
7353
  }),
7210
7354
  { enabled: !!(organization == null ? void 0 : organization.id) && !!projectId }
7211
7355
  );
7212
- useEffect11(() => {
7356
+ useEffect12(() => {
7213
7357
  if (groupsError) {
7214
- toastManager20.add({
7358
+ toastManager21.add({
7215
7359
  title: "Something went wrong",
7216
7360
  description: groupsError.message,
7217
7361
  type: "error"
7218
7362
  });
7219
7363
  }
7220
7364
  }, [groupsError]);
7221
- const projectGroups = useMemo17(
7365
+ const projectGroups = useMemo18(
7222
7366
  () => {
7223
7367
  var _a, _b;
7224
7368
  return {
@@ -7239,21 +7383,21 @@ function ProjectDetailsView({
7239
7383
  data: rolesData,
7240
7384
  isLoading: isRolesLoading,
7241
7385
  error: rolesError
7242
- } = useQuery16(
7243
- FrontierServiceQueries33.listRoles,
7244
- create27(ListRolesRequestSchema4, {
7386
+ } = useQuery18(
7387
+ FrontierServiceQueries34.listRoles,
7388
+ create28(ListRolesRequestSchema4, {
7245
7389
  state: "enabled",
7246
7390
  scopes: [PERMISSIONS.ProjectNamespace]
7247
7391
  }),
7248
7392
  { enabled: !!(organization == null ? void 0 : organization.id) && !!projectId }
7249
7393
  );
7250
- const roles = useMemo17(() => {
7394
+ const roles = useMemo18(() => {
7251
7395
  var _a;
7252
7396
  return (_a = rolesData == null ? void 0 : rolesData.roles) != null ? _a : [];
7253
7397
  }, [rolesData]);
7254
- useEffect11(() => {
7398
+ useEffect12(() => {
7255
7399
  if (rolesError) {
7256
- toastManager20.add({
7400
+ toastManager21.add({
7257
7401
  title: "Something went wrong",
7258
7402
  description: rolesError.message,
7259
7403
  type: "error"
@@ -7261,7 +7405,7 @@ function ProjectDetailsView({
7261
7405
  }
7262
7406
  }, [rolesError]);
7263
7407
  const resource = `app/project:${projectId}`;
7264
- const listOfPermissionsToCheck = useMemo17(
7408
+ const listOfPermissionsToCheck = useMemo18(
7265
7409
  () => [
7266
7410
  { permission: PERMISSIONS.UpdatePermission, resource },
7267
7411
  { permission: PERMISSIONS.DeletePermission, resource }
@@ -7272,7 +7416,7 @@ function ProjectDetailsView({
7272
7416
  listOfPermissionsToCheck,
7273
7417
  !!projectId
7274
7418
  );
7275
- const { canUpdateProject, canDeleteProject } = useMemo17(() => {
7419
+ const { canUpdateProject, canDeleteProject } = useMemo18(() => {
7276
7420
  return {
7277
7421
  canUpdateProject: shouldShowComponent(
7278
7422
  permissions,
@@ -7290,13 +7434,13 @@ function ProjectDetailsView({
7290
7434
  refetchProjectGroups();
7291
7435
  }, [refetchProjectUsers, refetchProjectGroups]);
7292
7436
  const [roleFilter, setRoleFilter] = useState22("all");
7293
- const members = useMemo17(() => {
7437
+ const members = useMemo18(() => {
7294
7438
  const teams = projectGroups.groups.map((t) => __spreadProps(__spreadValues({}, t), {
7295
7439
  isTeam: true
7296
7440
  }));
7297
7441
  return [...teams, ...projectUsers.users];
7298
7442
  }, [projectGroups.groups, projectUsers.users]);
7299
- const filteredMembers = useMemo17(() => {
7443
+ const filteredMembers = useMemo18(() => {
7300
7444
  if (roleFilter === "all")
7301
7445
  return members;
7302
7446
  return members.filter((member) => {
@@ -7304,7 +7448,7 @@ function ProjectDetailsView({
7304
7448
  return memberRoleList.some((r) => r.id === roleFilter);
7305
7449
  });
7306
7450
  }, [members, roleFilter, projectUsers.memberRoles, projectGroups.groupRoles]);
7307
- const columns = useMemo17(
7451
+ const columns = useMemo18(
7308
7452
  () => getColumns3({
7309
7453
  memberRoles: projectUsers.memberRoles,
7310
7454
  groupRoles: projectGroups.groupRoles,
@@ -7537,20 +7681,20 @@ function ProjectActionsMenu({
7537
7681
  // client/views/billing/billing-view.tsx
7538
7682
  import { useCallback as useCallback17 } from "react";
7539
7683
  import qs3 from "query-string";
7540
- import { Flex as Flex41, Dialog as Dialog12, EmptyState as EmptyState6, toastManager as toastManager27 } from "@raystack/apsara";
7684
+ import { Flex as Flex41, Dialog as Dialog12, EmptyState as EmptyState6, toastManager as toastManager28 } from "@raystack/apsara";
7541
7685
  import {
7542
7686
  CreateCheckoutRequestSchema as CreateCheckoutRequestSchema3,
7543
- FrontierServiceQueries as FrontierServiceQueries38
7687
+ FrontierServiceQueries as FrontierServiceQueries39
7544
7688
  } from "@raystack/proton/frontier";
7545
7689
  import { useMutation as useMutation27 } from "@connectrpc/connect-query";
7546
- import { create as create34 } from "@bufbuild/protobuf";
7690
+ import { create as create36 } from "@bufbuild/protobuf";
7547
7691
 
7548
7692
  // client/hooks/useBillingPermission.ts
7549
- import { useMemo as useMemo18 } from "react";
7693
+ import { useMemo as useMemo19 } from "react";
7550
7694
  var useBillingPermission = () => {
7551
7695
  const { activeOrganization } = useFrontier();
7552
7696
  const resource = `app/organization:${activeOrganization == null ? void 0 : activeOrganization.id}`;
7553
- const listOfPermissionsToCheck = useMemo18(
7697
+ const listOfPermissionsToCheck = useMemo19(
7554
7698
  () => [
7555
7699
  {
7556
7700
  permission: PERMISSIONS.DeletePermission,
@@ -7567,7 +7711,7 @@ var useBillingPermission = () => {
7567
7711
  listOfPermissionsToCheck,
7568
7712
  !!(activeOrganization == null ? void 0 : activeOrganization.id)
7569
7713
  );
7570
- const { isAllowed, canSeeBilling } = useMemo18(() => {
7714
+ const { isAllowed, canSeeBilling } = useMemo19(() => {
7571
7715
  return {
7572
7716
  isAllowed: shouldShowComponent(
7573
7717
  permissions,
@@ -7588,16 +7732,16 @@ var useBillingPermission = () => {
7588
7732
 
7589
7733
  // client/views/billing/components/payment-method-card.tsx
7590
7734
  import qs from "query-string";
7591
- import { Button as Button28, Skeleton as Skeleton16, Text as Text25, Flex as Flex34, Tooltip as Tooltip5, toastManager as toastManager21 } from "@raystack/apsara";
7735
+ import { Button as Button28, Skeleton as Skeleton16, Text as Text25, Flex as Flex34, Tooltip as Tooltip5, toastManager as toastManager22 } from "@raystack/apsara";
7592
7736
  import {
7593
- FrontierServiceQueries as FrontierServiceQueries34,
7737
+ FrontierServiceQueries as FrontierServiceQueries35,
7594
7738
  CreateCheckoutRequestSchema
7595
7739
  } from "@raystack/proton/frontier";
7596
7740
  import { useMutation as useMutation25 } from "@connectrpc/connect-query";
7597
- import { create as create28 } from "@bufbuild/protobuf";
7741
+ import { create as create29 } from "@bufbuild/protobuf";
7598
7742
 
7599
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-R9G5eSsgQ3Sa/sdk/client/views/billing/billing-view.module.css.js
7600
- var digest27 = "a2b3d63918efcb5a97fabf3a80251f51201cd88d8a9965907c20aabd75c08edc";
7743
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-rwUmjQUQoPL9/sdk/client/views/billing/billing-view.module.css.js
7744
+ var digest27 = "8539064b88317cca64aedf7bfab62e6ba1450ff21ab290d5c81f8ae9abacb66e";
7601
7745
  var css27 = `._detailsBox_11gbn_1 {
7602
7746
  padding: var(--rs-space-4);
7603
7747
  display: flex;
@@ -7669,9 +7813,9 @@ function PaymentMethodCard({
7669
7813
  isAllowed
7670
7814
  }) {
7671
7815
  const { config, activeOrganization } = useFrontier();
7672
- const { mutateAsync: createCheckoutMutation, isPending: isActionLoading } = useMutation25(FrontierServiceQueries34.createCheckout, {
7816
+ const { mutateAsync: createCheckoutMutation, isPending: isActionLoading } = useMutation25(FrontierServiceQueries35.createCheckout, {
7673
7817
  onError: (err) => {
7674
- toastManager21.add({
7818
+ toastManager22.add({
7675
7819
  title: "Something went wrong",
7676
7820
  description: err == null ? void 0 : err.message,
7677
7821
  type: "error"
@@ -7705,7 +7849,7 @@ function PaymentMethodCard({
7705
7849
  const cancel_url = `${(_a = config == null ? void 0 : config.billing) == null ? void 0 : _a.cancelUrl}?${query}`;
7706
7850
  const success_url = `${(_b = config == null ? void 0 : config.billing) == null ? void 0 : _b.successUrl}?${query}`;
7707
7851
  const resp = yield createCheckoutMutation(
7708
- create28(CreateCheckoutRequestSchema, {
7852
+ create29(CreateCheckoutRequestSchema, {
7709
7853
  orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
7710
7854
  cancelUrl: cancel_url,
7711
7855
  successUrl: success_url,
@@ -7765,8 +7909,8 @@ function PaymentMethodCard({
7765
7909
  // client/views/billing/components/billing-details-card.tsx
7766
7910
  import { Button as Button29, Skeleton as Skeleton17, Text as Text26, Flex as Flex35, Tooltip as Tooltip6 } from "@raystack/apsara";
7767
7911
 
7768
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-QFJd2GluK5tj/sdk/client/views/billing/billing-view.module.css.js
7769
- var digest28 = "2ec49f058e7b8f19ed76115c38df80db0887c3cec9229905df14cbf5e0d1302a";
7912
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-bCCFb7wJRYDJ/sdk/client/views/billing/billing-view.module.css.js
7913
+ var digest28 = "171e564377ea0d58eeeeeb853a32f2506a8b2ff1424eaa7fa3ce8967bc627afe";
7770
7914
  var css28 = `._detailsBox_11gbn_1 {
7771
7915
  padding: var(--rs-space-4);
7772
7916
  display: flex;
@@ -7890,14 +8034,31 @@ function BillingDetailsCard({
7890
8034
  }
7891
8035
 
7892
8036
  // client/views/billing/components/payment-issue.tsx
7893
- import { useCallback as useCallback14, useEffect as useEffect12 } from "react";
7894
- import { Button as Button30, Text as Text27, Flex as Flex36, toastManager as toastManager22 } from "@raystack/apsara";
8037
+ import { useCallback as useCallback14, useEffect as useEffect13 } from "react";
8038
+ import { Button as Button30, Text as Text27, Flex as Flex36, toastManager as toastManager23 } from "@raystack/apsara";
7895
8039
  import {
7896
8040
  RQLRequestSchema,
7897
- RQLFilterSchema,
7898
8041
  RQLSortSchema
7899
8042
  } from "@raystack/proton/frontier";
7900
- import { create as create29 } from "@bufbuild/protobuf";
8043
+ import { create as create31 } from "@bufbuild/protobuf";
8044
+
8045
+ // client/utils/invoice-queries.ts
8046
+ import { create as create30 } from "@bufbuild/protobuf";
8047
+ import { RQLFilterSchema } from "@raystack/proton/frontier";
8048
+ function openInvoiceFilters() {
8049
+ return [
8050
+ create30(RQLFilterSchema, {
8051
+ name: "state",
8052
+ operator: "eq",
8053
+ value: { case: "stringValue", value: INVOICE_STATES.OPEN }
8054
+ }),
8055
+ create30(RQLFilterSchema, {
8056
+ name: "amount",
8057
+ operator: "gt",
8058
+ value: { case: "numberValue", value: 0 }
8059
+ })
8060
+ ];
8061
+ }
7901
8062
 
7902
8063
  // client/utils/connect-pagination.ts
7903
8064
  var DEFAULT_PAGE_SIZE = 50;
@@ -7938,9 +8099,9 @@ function getGroupCountMapFromFirstPage(infiniteData) {
7938
8099
  }
7939
8100
 
7940
8101
  // client/hooks/useOrganizationInvoices.ts
7941
- import { useMemo as useMemo19 } from "react";
8102
+ import { useMemo as useMemo20 } from "react";
7942
8103
  import { useInfiniteQuery as useInfiniteQuery2 } from "@connectrpc/connect-query";
7943
- import { FrontierServiceQueries as FrontierServiceQueries35 } from "@raystack/proton/frontier";
8104
+ import { FrontierServiceQueries as FrontierServiceQueries36 } from "@raystack/proton/frontier";
7944
8105
  function useOrganizationInvoices({
7945
8106
  query,
7946
8107
  enabled = true
@@ -7956,7 +8117,7 @@ function useOrganizationInvoices({
7956
8117
  isError,
7957
8118
  error
7958
8119
  } = useInfiniteQuery2(
7959
- FrontierServiceQueries35.searchOrganizationInvoices,
8120
+ FrontierServiceQueries36.searchOrganizationInvoices,
7960
8121
  { id: organizationId, query },
7961
8122
  {
7962
8123
  enabled: !!organizationId && enabled,
@@ -7968,14 +8129,14 @@ function useOrganizationInvoices({
7968
8129
  retryDelay: 1e3
7969
8130
  }
7970
8131
  );
7971
- const invoices = useMemo19(
8132
+ const invoices = useMemo20(
7972
8133
  () => {
7973
8134
  var _a, _b;
7974
8135
  return (_b = (_a = infiniteData == null ? void 0 : infiniteData.pages) == null ? void 0 : _a.flatMap((page) => page.organizationInvoices)) != null ? _b : [];
7975
8136
  },
7976
8137
  [infiniteData]
7977
8138
  );
7978
- const groupCountMap = useMemo19(
8139
+ const groupCountMap = useMemo20(
7979
8140
  () => infiniteData ? getGroupCountMapFromFirstPage(infiniteData) : {},
7980
8141
  [infiniteData]
7981
8142
  );
@@ -7991,8 +8152,8 @@ function useOrganizationInvoices({
7991
8152
  };
7992
8153
  }
7993
8154
 
7994
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-PYKKj0WBM9Wv/sdk/client/views/billing/billing-view.module.css.js
7995
- var digest29 = "610152e2a4c167eada6c9fb8be5b1aa20e2eb9ff59cfc086054fcec52cfd7d15";
8155
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-grZCls5i98zR/sdk/client/views/billing/billing-view.module.css.js
8156
+ var digest29 = "2e206562b4d509aa73deb112c1e1381188affff66d1c5ead5e8d30416c0047f9";
7996
8157
  var css29 = `._detailsBox_11gbn_1 {
7997
8158
  padding: var(--rs-space-4);
7998
8159
  display: flex;
@@ -8058,20 +8219,9 @@ var billing_view_module_css_default3 = { "detailsBox": "_detailsBox_11gbn_1", "b
8058
8219
 
8059
8220
  // client/views/billing/components/payment-issue.tsx
8060
8221
  import { jsx as jsx45, jsxs as jsxs40 } from "react/jsx-runtime";
8061
- var OPEN_INVOICES_QUERY = create29(RQLRequestSchema, {
8062
- filters: [
8063
- create29(RQLFilterSchema, {
8064
- name: "state",
8065
- operator: "eq",
8066
- value: { case: "stringValue", value: INVOICE_STATES.OPEN }
8067
- }),
8068
- create29(RQLFilterSchema, {
8069
- name: "amount",
8070
- operator: "gt",
8071
- value: { case: "numberValue", value: 0 }
8072
- })
8073
- ],
8074
- sort: [create29(RQLSortSchema, { name: "created_at", order: "desc" })],
8222
+ var OPEN_INVOICES_QUERY = create31(RQLRequestSchema, {
8223
+ filters: openInvoiceFilters(),
8224
+ sort: [create31(RQLSortSchema, { name: "created_at", order: "desc" })],
8075
8225
  offset: 0,
8076
8226
  limit: DEFAULT_PAGE_SIZE
8077
8227
  });
@@ -8089,9 +8239,9 @@ function PaymentIssue({
8089
8239
  query: OPEN_INVOICES_QUERY,
8090
8240
  enabled: hasAccess
8091
8241
  });
8092
- useEffect12(() => {
8242
+ useEffect13(() => {
8093
8243
  if (invoicesError) {
8094
- toastManager22.add({
8244
+ toastManager23.add({
8095
8245
  title: "Failed to load invoices",
8096
8246
  description: invoicesError == null ? void 0 : invoicesError.message,
8097
8247
  type: "error"
@@ -8127,20 +8277,20 @@ function PaymentIssue({
8127
8277
  }
8128
8278
 
8129
8279
  // client/views/billing/components/upcoming-plan-change-banner.tsx
8130
- import { useCallback as useCallback15, useMemo as useMemo20 } from "react";
8131
- import { Button as Button31, Text as Text28, Flex as Flex37, toastManager as toastManager23 } from "@raystack/apsara";
8280
+ import { useCallback as useCallback15, useMemo as useMemo21 } from "react";
8281
+ import { Button as Button31, Text as Text28, Flex as Flex37, toastManager as toastManager24 } from "@raystack/apsara";
8132
8282
  import {
8133
8283
  ChangeSubscriptionRequestSchema,
8134
- FrontierServiceQueries as FrontierServiceQueries36
8284
+ FrontierServiceQueries as FrontierServiceQueries37
8135
8285
  } from "@raystack/proton/frontier";
8136
8286
  import { useMutation as useMutation26 } from "@connectrpc/connect-query";
8137
8287
  import { createConnectQueryKey as createConnectQueryKey9, useTransport as useTransport8 } from "@connectrpc/connect-query";
8138
8288
  import { useQueryClient as useQueryClient9 } from "@tanstack/react-query";
8139
- import { create as create30 } from "@bufbuild/protobuf";
8289
+ import { create as create32 } from "@bufbuild/protobuf";
8140
8290
  import dayjs3 from "dayjs";
8141
8291
 
8142
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-03jML1x9z5r7/sdk/client/views/billing/billing-view.module.css.js
8143
- var digest30 = "63f16621ac640d9fdd647ff5a79609120f67b3b6a0f1408b9be7509d24f83a51";
8292
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-PIDmiXLTU5s9/sdk/client/views/billing/billing-view.module.css.js
8293
+ var digest30 = "bbceaf187e630ae3b14ef9d38868603e18e7f332abc8843b1fe10176d5ac370e";
8144
8294
  var css30 = `._detailsBox_11gbn_1 {
8145
8295
  padding: var(--rs-space-4);
8146
8296
  display: flex;
@@ -8222,12 +8372,12 @@ function UpcomingPlanChangeBanner({
8222
8372
  } = useFrontier();
8223
8373
  const queryClient2 = useQueryClient9();
8224
8374
  const transport = useTransport8();
8225
- const { mutate: cancelUpcomingChange, isPending: isPlanChangeLoading } = useMutation26(FrontierServiceQueries36.changeSubscription, {
8375
+ const { mutate: cancelUpcomingChange, isPending: isPlanChangeLoading } = useMutation26(FrontierServiceQueries37.changeSubscription, {
8226
8376
  onSuccess: () => __async(this, null, function* () {
8227
8377
  var _a2;
8228
8378
  yield queryClient2.invalidateQueries({
8229
8379
  queryKey: createConnectQueryKey9({
8230
- schema: FrontierServiceQueries36.listSubscriptions,
8380
+ schema: FrontierServiceQueries37.listSubscriptions,
8231
8381
  transport,
8232
8382
  input: {
8233
8383
  orgId: (_a2 = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _a2 : ""
@@ -8235,13 +8385,13 @@ function UpcomingPlanChangeBanner({
8235
8385
  cardinality: "finite"
8236
8386
  })
8237
8387
  });
8238
- toastManager23.add({
8388
+ toastManager24.add({
8239
8389
  title: `Success: Your ${activePlan == null ? void 0 : activePlan.title} is resumed`,
8240
8390
  type: "success"
8241
8391
  });
8242
8392
  }),
8243
8393
  onError: (err) => {
8244
- toastManager23.add({
8394
+ toastManager24.add({
8245
8395
  title: "Failed to resume plan",
8246
8396
  description: err.message,
8247
8397
  type: "error"
@@ -8255,7 +8405,7 @@ function UpcomingPlanChangeBanner({
8255
8405
  }
8256
8406
  )) || [];
8257
8407
  const nextPhase = phases == null ? void 0 : phases[0];
8258
- const upcomingPlan = useMemo20(() => {
8408
+ const upcomingPlan = useMemo21(() => {
8259
8409
  if ((nextPhase == null ? void 0 : nextPhase.planId) && allPlans.length > 0) {
8260
8410
  return allPlans.find((p) => p.id === (nextPhase == null ? void 0 : nextPhase.planId));
8261
8411
  }
@@ -8273,7 +8423,7 @@ function UpcomingPlanChangeBanner({
8273
8423
  const onPlanChangeCancel = useCallback15(() => {
8274
8424
  if (subscription == null ? void 0 : subscription.id) {
8275
8425
  cancelUpcomingChange(
8276
- create30(ChangeSubscriptionRequestSchema, {
8426
+ create32(ChangeSubscriptionRequestSchema, {
8277
8427
  id: subscription == null ? void 0 : subscription.id,
8278
8428
  change: {
8279
8429
  case: "phaseChange",
@@ -8330,14 +8480,14 @@ function UpcomingPlanChangeBanner({
8330
8480
  }
8331
8481
 
8332
8482
  // client/views/billing/components/upcoming-billing-cycle.tsx
8333
- import { useEffect as useEffect13, useMemo as useMemo21 } from "react";
8483
+ import { useEffect as useEffect14, useMemo as useMemo22 } from "react";
8334
8484
  import {
8335
8485
  GetUpcomingInvoiceRequestSchema,
8336
- FrontierServiceQueries as FrontierServiceQueries37,
8486
+ FrontierServiceQueries as FrontierServiceQueries38,
8337
8487
  ListOrganizationUsersRequestSchema as ListOrganizationUsersRequestSchema3
8338
8488
  } from "@raystack/proton/frontier";
8339
8489
  import { useQuery as useConnectQuery2 } from "@connectrpc/connect-query";
8340
- import { create as create31 } from "@bufbuild/protobuf";
8490
+ import { create as create33 } from "@bufbuild/protobuf";
8341
8491
  import {
8342
8492
  Button as Button32,
8343
8493
  Tooltip as Tooltip7,
@@ -8345,11 +8495,11 @@ import {
8345
8495
  Text as Text29,
8346
8496
  Flex as Flex38,
8347
8497
  Amount,
8348
- toastManager as toastManager24
8498
+ toastManager as toastManager25
8349
8499
  } from "@raystack/apsara";
8350
8500
 
8351
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-krhD9JGVjLx3/sdk/client/views/billing/billing-view.module.css.js
8352
- var digest31 = "f84244ce05d0f0dc15a065e217e8211e3dac055574eaa823dae70bfec83eb751";
8501
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-3xBrU1bqBumr/sdk/client/views/billing/billing-view.module.css.js
8502
+ var digest31 = "1d6e4068bd7d3e023a9da12ffac158f5e8ab5567d6afa6624afb97a5c46178d4";
8353
8503
  var css31 = `._detailsBox_11gbn_1 {
8354
8504
  padding: var(--rs-space-4);
8355
8505
  display: flex;
@@ -8450,8 +8600,8 @@ function UpcomingBillingCycle({
8450
8600
  isLoading: isInvoiceLoading,
8451
8601
  error: invoiceError
8452
8602
  } = useConnectQuery2(
8453
- FrontierServiceQueries37.getUpcomingInvoice,
8454
- create31(GetUpcomingInvoiceRequestSchema, {
8603
+ FrontierServiceQueries38.getUpcomingInvoice,
8604
+ create33(GetUpcomingInvoiceRequestSchema, {
8455
8605
  orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || ""
8456
8606
  }),
8457
8607
  {
@@ -8464,8 +8614,8 @@ function UpcomingBillingCycle({
8464
8614
  isLoading: isMemberCountLoading,
8465
8615
  error: memberCountError
8466
8616
  } = useConnectQuery2(
8467
- FrontierServiceQueries37.listOrganizationUsers,
8468
- create31(ListOrganizationUsersRequestSchema3, {
8617
+ FrontierServiceQueries38.listOrganizationUsers,
8618
+ create33(ListOrganizationUsersRequestSchema3, {
8469
8619
  id: (billingAccount == null ? void 0 : billingAccount.orgId) || ""
8470
8620
  }),
8471
8621
  {
@@ -8476,7 +8626,7 @@ function UpcomingBillingCycle({
8476
8626
  }
8477
8627
  }
8478
8628
  );
8479
- const { plan, switchablePlan } = useMemo21(() => {
8629
+ const { plan, switchablePlan } = useMemo22(() => {
8480
8630
  if ((activeSubscription == null ? void 0 : activeSubscription.planId) && allPlans.length > 0) {
8481
8631
  const currentPlan = allPlans.find(
8482
8632
  (p) => p.id === activeSubscription.planId
@@ -8498,9 +8648,9 @@ function UpcomingBillingCycle({
8498
8648
  (phase) => phase.planId === (switchablePlan == null ? void 0 : switchablePlan.id)
8499
8649
  );
8500
8650
  const error = memberCountError || invoiceError;
8501
- useEffect13(() => {
8651
+ useEffect14(() => {
8502
8652
  if (error) {
8503
- toastManager24.add({
8653
+ toastManager25.add({
8504
8654
  title: "Failed to get upcoming billing cycle details",
8505
8655
  type: "error"
8506
8656
  });
@@ -8606,7 +8756,7 @@ function UpcomingBillingCycle({
8606
8756
  }
8607
8757
 
8608
8758
  // client/views/billing/components/invoices.tsx
8609
- import { useMemo as useMemo22, useState as useState23 } from "react";
8759
+ import { useMemo as useMemo23, useState as useState23 } from "react";
8610
8760
  import {
8611
8761
  Button as Button33,
8612
8762
  DataTable as DataTable4,
@@ -8622,7 +8772,7 @@ import {
8622
8772
  RQLFilterSchema as RQLFilterSchema2,
8623
8773
  RQLSortSchema as RQLSortSchema2
8624
8774
  } from "@raystack/proton/frontier";
8625
- import { create as create32 } from "@bufbuild/protobuf";
8775
+ import { create as create34 } from "@bufbuild/protobuf";
8626
8776
  import dayjs4 from "dayjs";
8627
8777
  function convertFilterValue(value) {
8628
8778
  switch (typeof value) {
@@ -8640,12 +8790,12 @@ function transformDateFilter(filter, fieldName) {
8640
8790
  const startOfDay = dayjs4(filter.value).startOf("day");
8641
8791
  if (filter.operator === "eq") {
8642
8792
  return [
8643
- create32(RQLFilterSchema2, {
8793
+ create34(RQLFilterSchema2, {
8644
8794
  name: fieldName,
8645
8795
  operator: "gte",
8646
8796
  value: { case: "stringValue", value: startOfDay.toISOString() }
8647
8797
  }),
8648
- create32(RQLFilterSchema2, {
8798
+ create34(RQLFilterSchema2, {
8649
8799
  name: fieldName,
8650
8800
  operator: "lt",
8651
8801
  value: {
@@ -8656,7 +8806,7 @@ function transformDateFilter(filter, fieldName) {
8656
8806
  ];
8657
8807
  }
8658
8808
  return [
8659
- create32(RQLFilterSchema2, {
8809
+ create34(RQLFilterSchema2, {
8660
8810
  name: fieldName,
8661
8811
  operator: filter.operator,
8662
8812
  value: { case: "stringValue", value: startOfDay.toISOString() }
@@ -8680,7 +8830,7 @@ function transformFilter(filter, fieldNameMapping) {
8680
8830
  value = convertFilterValue(filter.value);
8681
8831
  }
8682
8832
  return [
8683
- create32(RQLFilterSchema2, {
8833
+ create34(RQLFilterSchema2, {
8684
8834
  name: fieldName,
8685
8835
  operator: filter.operator,
8686
8836
  value
@@ -8694,7 +8844,7 @@ function transformSort(sort, fieldNameMapping) {
8694
8844
  return sort.map(
8695
8845
  (s) => {
8696
8846
  var _a;
8697
- return create32(RQLSortSchema2, __spreadProps(__spreadValues({}, s), {
8847
+ return create34(RQLSortSchema2, __spreadProps(__spreadValues({}, s), {
8698
8848
  name: (_a = fieldNameMapping == null ? void 0 : fieldNameMapping[s.name]) != null ? _a : s.name
8699
8849
  }));
8700
8850
  }
@@ -8704,7 +8854,7 @@ function transformDataTableQueryToRQLRequest(query, options = {}) {
8704
8854
  var _a;
8705
8855
  const { defaultLimit = 50, fieldNameMapping } = options;
8706
8856
  const filters = ((_a = query.filters) == null ? void 0 : _a.length) ? query.filters.flatMap((filter) => transformFilter(filter, fieldNameMapping)) : [];
8707
- const rqlRequest = create32(RQLRequestSchema2, {
8857
+ const rqlRequest = create34(RQLRequestSchema2, {
8708
8858
  filters,
8709
8859
  groupBy: (query.group_by || []).map(
8710
8860
  (field) => {
@@ -8720,8 +8870,8 @@ function transformDataTableQueryToRQLRequest(query, options = {}) {
8720
8870
  return rqlRequest;
8721
8871
  }
8722
8872
 
8723
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-5izViSDKHt8P/sdk/client/views/billing/billing-view.module.css.js
8724
- var digest32 = "0281fdd34cb7ef26d752c11be93125be569208e8c5efc5f8ddd58a50716ea02f";
8873
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-7CqveFYqa1qM/sdk/client/views/billing/billing-view.module.css.js
8874
+ var digest32 = "fa50f7469ad200c47579413bdcdd4d7ea8d831a1167548b55143a0b8b11c7313";
8725
8875
  var css32 = `._detailsBox_11gbn_1 {
8726
8876
  padding: var(--rs-space-4);
8727
8877
  display: flex;
@@ -8884,7 +9034,7 @@ var ErrorState = () => /* @__PURE__ */ jsx48(
8884
9034
  function Invoices() {
8885
9035
  const { activeOrganization, config } = useFrontier();
8886
9036
  const [tableQuery, setTableQuery] = useState23(INITIAL_QUERY);
8887
- const computedQuery = useMemo22(
9037
+ const computedQuery = useMemo23(
8888
9038
  () => transformDataTableQueryToRQLRequest(tableQuery),
8889
9039
  [tableQuery]
8890
9040
  );
@@ -8945,7 +9095,7 @@ function Invoices() {
8945
9095
  }
8946
9096
 
8947
9097
  // client/views/billing/components/confirm-cycle-switch-dialog.tsx
8948
- import { useMemo as useMemo23 } from "react";
9098
+ import { useMemo as useMemo24 } from "react";
8949
9099
  import {
8950
9100
  Amount as Amount3,
8951
9101
  Button as Button34,
@@ -8953,15 +9103,15 @@ import {
8953
9103
  Text as Text31,
8954
9104
  Flex as Flex40,
8955
9105
  Dialog as Dialog11,
8956
- toastManager as toastManager26
9106
+ toastManager as toastManager27
8957
9107
  } from "@raystack/apsara";
8958
9108
 
8959
9109
  // client/views/plans/hooks/use-plans.tsx
8960
9110
  import { useCallback as useCallback16, useState as useState24 } from "react";
8961
9111
  import qs2 from "query-string";
8962
- import { toastManager as toastManager25 } from "@raystack/apsara";
9112
+ import { toastManager as toastManager26 } from "@raystack/apsara";
8963
9113
  import { NIL as NIL_UUID2 } from "uuid";
8964
- import { create as create33 } from "@bufbuild/protobuf";
9114
+ import { create as create35 } from "@bufbuild/protobuf";
8965
9115
  import {
8966
9116
  CreateCheckoutRequestSchema as CreateCheckoutRequestSchema2,
8967
9117
  ChangeSubscriptionRequestSchema as ChangeSubscriptionRequestSchema2,
@@ -9022,7 +9172,7 @@ var usePlans = () => {
9022
9172
  cancelAfterTrial = (_d = config == null ? void 0 : config.billing) == null ? void 0 : _d.cancelAfterTrial;
9023
9173
  }
9024
9174
  const resp = yield createCheckoutMutation(
9025
- create33(CreateCheckoutRequestSchema2, {
9175
+ create35(CreateCheckoutRequestSchema2, {
9026
9176
  orgId: activeOrganization == null ? void 0 : activeOrganization.id,
9027
9177
  cancelUrl: cancel_url,
9028
9178
  successUrl: success_url,
@@ -9039,21 +9189,21 @@ var usePlans = () => {
9039
9189
  }
9040
9190
  } catch (err) {
9041
9191
  handleConnectError(err, {
9042
- PermissionDenied: () => toastManager25.add({
9192
+ PermissionDenied: () => toastManager26.add({
9043
9193
  title: "You don't have permission to perform this action",
9044
9194
  type: "error"
9045
9195
  }),
9046
- InvalidArgument: (e) => toastManager25.add({
9196
+ InvalidArgument: (e) => toastManager26.add({
9047
9197
  title: "Checkout failed",
9048
9198
  description: e.message,
9049
9199
  type: "error"
9050
9200
  }),
9051
- NotFound: (e) => toastManager25.add({
9201
+ NotFound: (e) => toastManager26.add({
9052
9202
  title: "Not found",
9053
9203
  description: e.message,
9054
9204
  type: "error"
9055
9205
  }),
9056
- Default: (e) => toastManager25.add({
9206
+ Default: (e) => toastManager26.add({
9057
9207
  title: "Checkout failed",
9058
9208
  description: e.message,
9059
9209
  type: "error"
@@ -9077,7 +9227,7 @@ var usePlans = () => {
9077
9227
  if (activeSubscription == null ? void 0 : activeSubscription.id) {
9078
9228
  try {
9079
9229
  const resp = yield changeSubscriptionMutation(
9080
- create33(ChangeSubscriptionRequestSchema2, {
9230
+ create35(ChangeSubscriptionRequestSchema2, {
9081
9231
  id: activeSubscription == null ? void 0 : activeSubscription.id,
9082
9232
  change: {
9083
9233
  case: "planChange",
@@ -9093,21 +9243,21 @@ var usePlans = () => {
9093
9243
  }
9094
9244
  } catch (error) {
9095
9245
  handleConnectError(error, {
9096
- PermissionDenied: () => toastManager25.add({
9246
+ PermissionDenied: () => toastManager26.add({
9097
9247
  title: "You don't have permission to perform this action",
9098
9248
  type: "error"
9099
9249
  }),
9100
- InvalidArgument: (err) => toastManager25.add({
9250
+ InvalidArgument: (err) => toastManager26.add({
9101
9251
  title: "Failed to change plan",
9102
9252
  description: err.message,
9103
9253
  type: "error"
9104
9254
  }),
9105
- NotFound: (err) => toastManager25.add({
9255
+ NotFound: (err) => toastManager26.add({
9106
9256
  title: "Not found",
9107
9257
  description: err.message,
9108
9258
  type: "error"
9109
9259
  }),
9110
- Default: (err) => toastManager25.add({
9260
+ Default: (err) => toastManager26.add({
9111
9261
  title: "Failed to change plan",
9112
9262
  description: err.message,
9113
9263
  type: "error"
@@ -9200,7 +9350,7 @@ var usePlans = () => {
9200
9350
  if (activeSubscription == null ? void 0 : activeSubscription.id) {
9201
9351
  try {
9202
9352
  const resp = yield cancelSubscriptionMutation(
9203
- create33(CancelSubscriptionRequestSchema, {
9353
+ create35(CancelSubscriptionRequestSchema, {
9204
9354
  id: activeSubscription == null ? void 0 : activeSubscription.id,
9205
9355
  immediate: false
9206
9356
  })
@@ -9210,16 +9360,16 @@ var usePlans = () => {
9210
9360
  }
9211
9361
  } catch (error) {
9212
9362
  handleConnectError(error, {
9213
- PermissionDenied: () => toastManager25.add({
9363
+ PermissionDenied: () => toastManager26.add({
9214
9364
  title: "You don't have permission to perform this action",
9215
9365
  type: "error"
9216
9366
  }),
9217
- NotFound: (err) => toastManager25.add({
9367
+ NotFound: (err) => toastManager26.add({
9218
9368
  title: "Not found",
9219
9369
  description: err.message,
9220
9370
  type: "error"
9221
9371
  }),
9222
- Default: (err) => toastManager25.add({
9372
+ Default: (err) => toastManager26.add({
9223
9373
  title: "Failed to cancel subscription",
9224
9374
  description: err.message,
9225
9375
  type: "error"
@@ -9308,7 +9458,7 @@ function ConfirmCycleSwitchContent({
9308
9458
  verifyPlanChange
9309
9459
  }) {
9310
9460
  var _a;
9311
- const nextPlan = useMemo23(() => {
9461
+ const nextPlan = useMemo24(() => {
9312
9462
  if (planId && allPlans.length > 0) {
9313
9463
  return allPlans.find((p) => p.id === planId);
9314
9464
  }
@@ -9318,7 +9468,7 @@ function ConfirmCycleSwitchContent({
9318
9468
  const isPaymentMethodRequired = isEmpty(paymentMethod) && nextPlanPrice.amount > 0;
9319
9469
  const activePlanIntervalName = getPlanIntervalName(activePlan);
9320
9470
  const nextPlanIntervalName = getPlanIntervalName(nextPlan);
9321
- const savings = useMemo23(() => {
9471
+ const savings = useMemo24(() => {
9322
9472
  if (!activePlan || !nextPlan)
9323
9473
  return null;
9324
9474
  const activeInterval = activePlan.interval || "";
@@ -9384,7 +9534,7 @@ function ConfirmCycleSwitchContent({
9384
9534
  const changeDate = (_a2 = timestampToDayjs(
9385
9535
  planPhase == null ? void 0 : planPhase.effectiveAt
9386
9536
  )) == null ? void 0 : _a2.format(dateFormat);
9387
- toastManager26.add({
9537
+ toastManager27.add({
9388
9538
  title: "Plan cycle switch successful",
9389
9539
  description: `Your plan cycle will be switched to ${nextPlanIntervalName} on ${changeDate}`,
9390
9540
  type: "success"
@@ -9456,8 +9606,8 @@ function ConfirmCycleSwitchContent({
9456
9606
  ] });
9457
9607
  }
9458
9608
 
9459
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-SLMK2Qh7T5gC/sdk/client/views/billing/billing-view.module.css.js
9460
- var digest33 = "3f839daf3bb770fbcf64792e5fc46b37cd6d03c00b2060d61311aad07dc0b1c9";
9609
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-9PYnBlAuWjXf/sdk/client/views/billing/billing-view.module.css.js
9610
+ var digest33 = "cec8ea14795b9a3448d46922f97823634fd1d012939aa3e1f47ce67f280f3b5a";
9461
9611
  var css33 = `._detailsBox_11gbn_1 {
9462
9612
  padding: var(--rs-space-4);
9463
9613
  display: flex;
@@ -9547,9 +9697,9 @@ function BillingView({ onNavigateToPlans }) {
9547
9697
  function handleCycleSwitchClick(planId) {
9548
9698
  cycleSwitchDialogHandle.openWithPayload({ planId });
9549
9699
  }
9550
- const { mutateAsync: createCheckoutMutation, isPending: isCheckoutPending } = useMutation27(FrontierServiceQueries38.createCheckout, {
9700
+ const { mutateAsync: createCheckoutMutation, isPending: isCheckoutPending } = useMutation27(FrontierServiceQueries39.createCheckout, {
9551
9701
  onError: (err) => {
9552
- toastManager27.add({
9702
+ toastManager28.add({
9553
9703
  title: "Something went wrong",
9554
9704
  description: err == null ? void 0 : err.message,
9555
9705
  type: "error"
@@ -9577,7 +9727,7 @@ function BillingView({ onNavigateToPlans }) {
9577
9727
  const cancel_url = `${(_a2 = config == null ? void 0 : config.billing) == null ? void 0 : _a2.cancelUrl}?${query}`;
9578
9728
  const success_url = `${(_b2 = config == null ? void 0 : config.billing) == null ? void 0 : _b2.successUrl}?${query}`;
9579
9729
  const resp = yield createCheckoutMutation(
9580
- create34(CreateCheckoutRequestSchema3, {
9730
+ create36(CreateCheckoutRequestSchema3, {
9581
9731
  orgId,
9582
9732
  cancelUrl: cancel_url,
9583
9733
  successUrl: success_url,
@@ -9683,53 +9833,6 @@ import { FilterIcon } from "@raystack/apsara/icons";
9683
9833
  import { useInfiniteQuery as useInfiniteQuery3 } from "@connectrpc/connect-query";
9684
9834
  import { FrontierServiceQueries as FrontierServiceQueries41 } from "@raystack/proton/frontier";
9685
9835
 
9686
- // client/hooks/useTokens.ts
9687
- import { useMemo as useMemo24, useEffect as useEffect14 } from "react";
9688
- import { useQuery as useQuery17 } from "@connectrpc/connect-query";
9689
- import { create as create35 } from "@bufbuild/protobuf";
9690
- import { FrontierServiceQueries as FrontierServiceQueries39, GetBillingBalanceRequestSchema } from "@raystack/proton/frontier";
9691
- import { toastManager as toastManager28 } from "@raystack/apsara";
9692
- var useTokens = () => {
9693
- var _a, _b;
9694
- const { billingAccount } = useFrontier();
9695
- const {
9696
- data,
9697
- isLoading: isTokensLoading,
9698
- error,
9699
- refetch
9700
- } = useQuery17(
9701
- FrontierServiceQueries39.getBillingBalance,
9702
- create35(GetBillingBalanceRequestSchema, {
9703
- id: (_a = billingAccount == null ? void 0 : billingAccount.id) != null ? _a : ""
9704
- }),
9705
- {
9706
- enabled: !!(billingAccount == null ? void 0 : billingAccount.id),
9707
- retry: false
9708
- }
9709
- );
9710
- useEffect14(() => {
9711
- if (error) {
9712
- console.error(error);
9713
- toastManager28.add({
9714
- title: "Unable to fetch balance",
9715
- type: "error"
9716
- });
9717
- }
9718
- }, [error]);
9719
- const tokenBalance = useMemo24(
9720
- () => {
9721
- var _a2;
9722
- return BigInt(((_a2 = data == null ? void 0 : data.balance) == null ? void 0 : _a2.amount) || "0");
9723
- },
9724
- [(_b = data == null ? void 0 : data.balance) == null ? void 0 : _b.amount]
9725
- );
9726
- return {
9727
- tokenBalance,
9728
- isTokensLoading,
9729
- fetchTokenBalance: refetch
9730
- };
9731
- };
9732
-
9733
9836
  // client/assets/coin.svg
9734
9837
  var coin_default = 'data:image/svg+xml,<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Credit coin">%0A<path id="credit coin" d="M48 24.0196C47.9983 37.3229 37.2746 48.0052 23.9263 48.0001C10.6771 47.9951 -0.0098551 37.2504 6.81992e-06 23.9446C0.0100138 10.6528 10.7492 -0.012751 24.1099 1.14418e-05C37.3171 0.0127739 48.0017 10.7553 48 24.0196ZM11.2887 24.0977C16.6867 27.289 20.6403 31.8534 24.1954 36.8591C27.1623 31.2874 31.9695 27.6538 36.8726 24.0699C31.3822 20.964 27.5665 16.297 24.0576 11.2374C20.5079 16.2419 16.7425 20.9331 11.2887 24.0977Z" fill="url(%23paint0_linear_8624_16209)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_8624_16209" x1="39.75" y1="7.5" x2="9.75" y2="42.75" gradientUnits="userSpaceOnUse">%0A<stop stop-color="%23E82F72" stop-opacity="0.7"/>%0A<stop offset="1" stop-color="%23ED25B5" stop-opacity="0.7"/>%0A</linearGradient>%0A</defs>%0A</svg>%0A';
9735
9838
 
@@ -9744,8 +9847,8 @@ import {
9744
9847
  import { has, get } from "lodash";
9745
9848
  import dayjs5 from "dayjs";
9746
9849
 
9747
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-i6f80J7sCi3Q/sdk/client/views/tokens/tokens-view.module.css.js
9748
- var digest34 = "eace687e86bd75740a8f6cc152029a2f90b295f325d0bfd73c3c82c11c0323fa";
9850
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-zAL3E4MfnTqQ/sdk/client/views/tokens/tokens-view.module.css.js
9851
+ var digest34 = "390c44240f9111ca118911fa34c28c52325a837b4a42a4a531f313a36f18c37f";
9749
9852
  var css34 = `._balancePanel_vtg8m_1 {
9750
9853
  padding: var(--rs-space-5);
9751
9854
  border-radius: var(--rs-radius-2);
@@ -9906,18 +10009,18 @@ function getColumns5({
9906
10009
  import { useMemo as useMemo25 } from "react";
9907
10010
  import { Button as Button35, Dialog as Dialog13, Flex as Flex43, Field as Field10, Input as Input12, Skeleton as Skeleton20, toastManager as toastManager29 } from "@raystack/apsara";
9908
10011
  import { yupResolver as yupResolver12 } from "@hookform/resolvers/yup";
9909
- import { useMutation as useMutation28, useQuery as useQuery18 } from "@connectrpc/connect-query";
10012
+ import { useMutation as useMutation28, useQuery as useQuery19 } from "@connectrpc/connect-query";
9910
10013
  import { useForm as useForm12 } from "react-hook-form";
9911
10014
  import * as yup12 from "yup";
9912
10015
  import { CreateCheckoutRequestSchema as CreateCheckoutRequestSchema4, FrontierServiceQueries as FrontierServiceQueries40 } from "@raystack/proton/frontier";
9913
- import { create as create36 } from "@bufbuild/protobuf";
10016
+ import { create as create37 } from "@bufbuild/protobuf";
9914
10017
  import qs4 from "query-string";
9915
10018
  import { jsx as jsx52, jsxs as jsxs47 } from "react/jsx-runtime";
9916
10019
  function AddTokensDialog({ handle }) {
9917
10020
  var _a;
9918
10021
  const { config, activeOrganization } = useFrontier();
9919
10022
  const tokenProductId = ((_a = config == null ? void 0 : config.billing) == null ? void 0 : _a.tokenProductId) || DEFAULT_TOKEN_PRODUCT_NAME;
9920
- const { data: product, isLoading } = useQuery18(
10023
+ const { data: product, isLoading } = useQuery19(
9921
10024
  FrontierServiceQueries40.getProduct,
9922
10025
  { id: tokenProductId },
9923
10026
  {
@@ -9991,7 +10094,7 @@ function AddTokensDialog({ handle }) {
9991
10094
  const cancelUrl = `${(_a2 = config == null ? void 0 : config.billing) == null ? void 0 : _a2.cancelUrl}?${query}`;
9992
10095
  const successUrl = `${(_b = config == null ? void 0 : config.billing) == null ? void 0 : _b.successUrl}?${query}`;
9993
10096
  yield createCheckout(
9994
- create36(CreateCheckoutRequestSchema4, {
10097
+ create37(CreateCheckoutRequestSchema4, {
9995
10098
  orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
9996
10099
  cancelUrl,
9997
10100
  successUrl,
@@ -10068,8 +10171,8 @@ function AddTokensDialog({ handle }) {
10068
10171
  ] }) }) });
10069
10172
  }
10070
10173
 
10071
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-Km8q3bhiAmlF/sdk/client/views/tokens/tokens-view.module.css.js
10072
- var digest35 = "b1617c88bdf1499e7779a3fec1ad670770936f56e1c5063a1c7cf5d0b9cdddf9";
10174
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-05ElZ7Q46YkH/sdk/client/views/tokens/tokens-view.module.css.js
10175
+ var digest35 = "c41cc67860c664f6e4ccfc6ebf500bf964da51680fb3ad19305515cdba8f4e15";
10073
10176
  var css35 = `._balancePanel_vtg8m_1 {
10074
10177
  padding: var(--rs-space-5);
10075
10178
  border-radius: var(--rs-radius-2);
@@ -10344,8 +10447,8 @@ import {
10344
10447
  IconButton as IconButton7
10345
10448
  } from "@raystack/apsara";
10346
10449
 
10347
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-p313yiUmxAEe/sdk/client/views/teams/components/team-columns.module.css.js
10348
- var digest36 = "269966cf8dd927942a26a6a208fe47f985bd544246b4186905cb58aaaaa7d83e";
10450
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-nUmnehG3wWTD/sdk/client/views/teams/components/team-columns.module.css.js
10451
+ var digest36 = "88f7039dd481685bb5f8ae2ae9041390a40eaae20caa834863c7412c0c87cbb0";
10349
10452
  var css36 = `._actionsCell_elyi1_1 {
10350
10453
  visibility: hidden;
10351
10454
  }
@@ -10451,7 +10554,7 @@ import {
10451
10554
  FrontierServiceQueries as FrontierServiceQueries42,
10452
10555
  CreateGroupRequestSchema
10453
10556
  } from "@raystack/proton/frontier";
10454
- import { create as create37 } from "@bufbuild/protobuf";
10557
+ import { create as create38 } from "@bufbuild/protobuf";
10455
10558
  import { jsx as jsx55, jsxs as jsxs50 } from "react/jsx-runtime";
10456
10559
  var teamSchema = yup13.object({
10457
10560
  title: yup13.string().required("Team title is required"),
@@ -10484,7 +10587,7 @@ function AddTeamDialog({ handle, refetch }) {
10484
10587
  return;
10485
10588
  try {
10486
10589
  yield createTeam(
10487
- create37(CreateGroupRequestSchema, {
10590
+ create38(CreateGroupRequestSchema, {
10488
10591
  orgId: organization.id,
10489
10592
  body: {
10490
10593
  title: data.title,
@@ -10586,7 +10689,7 @@ import {
10586
10689
  FrontierServiceQueries as FrontierServiceQueries43,
10587
10690
  UpdateGroupRequestSchema
10588
10691
  } from "@raystack/proton/frontier";
10589
- import { create as create38 } from "@bufbuild/protobuf";
10692
+ import { create as create39 } from "@bufbuild/protobuf";
10590
10693
  import { jsx as jsx56, jsxs as jsxs51 } from "react/jsx-runtime";
10591
10694
  var editTeamSchema = yup14.object({
10592
10695
  title: yup14.string().required("Team title is required")
@@ -10630,7 +10733,7 @@ function EditTeamForm({ payload, handle, refetch }) {
10630
10733
  return;
10631
10734
  try {
10632
10735
  yield updateTeam(
10633
- create38(UpdateGroupRequestSchema, {
10736
+ create39(UpdateGroupRequestSchema, {
10634
10737
  id: payload.teamId,
10635
10738
  body: {
10636
10739
  title: data.title,
@@ -10719,7 +10822,7 @@ import {
10719
10822
  FrontierServiceQueries as FrontierServiceQueries44,
10720
10823
  DeleteGroupRequestSchema
10721
10824
  } from "@raystack/proton/frontier";
10722
- import { create as create39 } from "@bufbuild/protobuf";
10825
+ import { create as create40 } from "@bufbuild/protobuf";
10723
10826
  import { jsx as jsx57, jsxs as jsxs52 } from "react/jsx-runtime";
10724
10827
  function DeleteTeamDialog({ handle, refetch }) {
10725
10828
  const { activeOrganization: organization } = useFrontier();
@@ -10731,7 +10834,7 @@ function DeleteTeamDialog({ handle, refetch }) {
10731
10834
  return;
10732
10835
  try {
10733
10836
  yield deleteTeam(
10734
- create39(DeleteGroupRequestSchema, {
10837
+ create40(DeleteGroupRequestSchema, {
10735
10838
  id: teamId
10736
10839
  })
10737
10840
  );
@@ -10781,8 +10884,8 @@ function DeleteTeamDialog({ handle, refetch }) {
10781
10884
  } });
10782
10885
  }
10783
10886
 
10784
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-iaE8VPcy3sJS/sdk/client/views/teams/teams-view.module.css.js
10785
- var digest37 = "486fca83f719ff1b809ab40dfdc2c90b6510be6fc46d1b9bd634ca12cf10aaa8";
10887
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-hFVqxcF5k0nE/sdk/client/views/teams/teams-view.module.css.js
10888
+ var digest37 = "dcd4910e6554628885df1eb16be1b5d2418a71edb879adf292a6ad393a11dc93";
10786
10889
  var css37 = `._tableRoot_o6hu6_1 {
10787
10890
  border: none;
10788
10891
  }
@@ -11093,7 +11196,7 @@ var user_minus_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/
11093
11196
 
11094
11197
  // client/views/teams/team-details-view.tsx
11095
11198
  import { toastManager as toastManager36 } from "@raystack/apsara";
11096
- import { useQuery as useQuery20, useMutation as useMutation34 } from "@connectrpc/connect-query";
11199
+ import { useQuery as useQuery21, useMutation as useMutation34 } from "@connectrpc/connect-query";
11097
11200
  import {
11098
11201
  FrontierServiceQueries as FrontierServiceQueries47,
11099
11202
  GetGroupRequestSchema,
@@ -11101,7 +11204,7 @@ import {
11101
11204
  ListRolesRequestSchema as ListRolesRequestSchema5,
11102
11205
  SetGroupMemberRoleRequestSchema as SetGroupMemberRoleRequestSchema2
11103
11206
  } from "@raystack/proton/frontier";
11104
- import { create as create42 } from "@bufbuild/protobuf";
11207
+ import { create as create43 } from "@bufbuild/protobuf";
11105
11208
 
11106
11209
  // client/views/teams/components/remove-member-dialog.tsx
11107
11210
  import { useState as useState27 } from "react";
@@ -11116,7 +11219,7 @@ import {
11116
11219
  FrontierServiceQueries as FrontierServiceQueries45,
11117
11220
  RemoveGroupUserRequestSchema
11118
11221
  } from "@raystack/proton/frontier";
11119
- import { create as create40 } from "@bufbuild/protobuf";
11222
+ import { create as create41 } from "@bufbuild/protobuf";
11120
11223
  import { Fragment as Fragment15, jsx as jsx59, jsxs as jsxs54 } from "react/jsx-runtime";
11121
11224
  function RemoveMemberDialog3({
11122
11225
  handle,
@@ -11151,7 +11254,7 @@ function RemoveMemberForm2({
11151
11254
  setIsLoading(true);
11152
11255
  try {
11153
11256
  yield removeGroupUser(
11154
- create40(RemoveGroupUserRequestSchema, {
11257
+ create41(RemoveGroupUserRequestSchema, {
11155
11258
  id: payload.teamId,
11156
11259
  userId: payload.memberId
11157
11260
  })
@@ -11233,8 +11336,8 @@ import {
11233
11336
  getAvatarColor as getAvatarColor5
11234
11337
  } from "@raystack/apsara";
11235
11338
 
11236
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-VrARuIfWj2e3/sdk/client/views/teams/components/member-columns.module.css.js
11237
- var digest38 = "81d78a24d8533be11d72a2a7e1024b57ac14a59a0174a8b15d21d7223508d936";
11339
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-6jWEOTHlAiow/sdk/client/views/teams/components/member-columns.module.css.js
11340
+ var digest38 = "71fad3fafe51cfab3e55027b4d56361f382b819fbb2d89cbc52b00598b800dd2";
11238
11341
  var css38 = `._actionsCell_elyi1_1 {
11239
11342
  visibility: hidden;
11240
11343
  }
@@ -11354,16 +11457,16 @@ import {
11354
11457
  Tooltip as Tooltip11
11355
11458
  } from "@raystack/apsara";
11356
11459
  import { toastManager as toastManager35 } from "@raystack/apsara";
11357
- import { useQuery as useQuery19, useMutation as useMutation33 } from "@connectrpc/connect-query";
11460
+ import { useQuery as useQuery20, useMutation as useMutation33 } from "@connectrpc/connect-query";
11358
11461
  import {
11359
11462
  FrontierServiceQueries as FrontierServiceQueries46,
11360
11463
  ListOrganizationUsersRequestSchema as ListOrganizationUsersRequestSchema4,
11361
11464
  SetGroupMemberRoleRequestSchema
11362
11465
  } from "@raystack/proton/frontier";
11363
- import { create as create41 } from "@bufbuild/protobuf";
11466
+ import { create as create42 } from "@bufbuild/protobuf";
11364
11467
 
11365
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-rsWK1kc7xnnx/sdk/client/views/teams/team-details-view.module.css.js
11366
- var digest39 = "b2f2af17401e4babd1dbee77fe259192a088a4cbe0b3bda7591d133f4486dd2e";
11468
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-Ov0O4e185ANO/sdk/client/views/teams/team-details-view.module.css.js
11469
+ var digest39 = "0b9de94a41d0d817d626df020d09dd5ea38070fd55815855bedf5470fcae267c";
11367
11470
  var css39 = `._tableRoot_eb0aq_1 {
11368
11471
  border: none;
11369
11472
  }
@@ -11432,9 +11535,9 @@ function AddMemberMenu2({
11432
11535
  data: orgUsersData,
11433
11536
  isLoading: isOrgUsersLoading,
11434
11537
  error: orgUsersError
11435
- } = useQuery19(
11538
+ } = useQuery20(
11436
11539
  FrontierServiceQueries46.listOrganizationUsers,
11437
- create41(ListOrganizationUsersRequestSchema4, {
11540
+ create42(ListOrganizationUsersRequestSchema4, {
11438
11541
  id: (organization == null ? void 0 : organization.id) || ""
11439
11542
  }),
11440
11543
  { enabled: !!(organization == null ? void 0 : organization.id) && canUpdateGroup }
@@ -11505,7 +11608,7 @@ function AddMemberMenu2({
11505
11608
  if (!userId || !(organization == null ? void 0 : organization.id) || !teamId || !memberRoleId)
11506
11609
  return;
11507
11610
  setGroupMemberRole(
11508
- create41(SetGroupMemberRoleRequestSchema, {
11611
+ create42(SetGroupMemberRoleRequestSchema, {
11509
11612
  groupId: teamId,
11510
11613
  principalId: userId,
11511
11614
  principalType: PERMISSIONS.UserPrincipal,
@@ -11580,8 +11683,8 @@ function AddMemberMenu2({
11580
11683
  ] });
11581
11684
  }
11582
11685
 
11583
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-ELj5U3fbpId1/sdk/client/views/teams/team-details-view.module.css.js
11584
- var digest40 = "6d1a0a4e48e6280e18640e90604d16551072c548a5f4209087e9cce5f8e189bb";
11686
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-JF1QukKxfLqU/sdk/client/views/teams/team-details-view.module.css.js
11687
+ var digest40 = "5e51435c7b82a01aaba6acccc34eb4e089416248145e97e83fc4f5e11d64904f";
11585
11688
  var css40 = `._tableRoot_eb0aq_1 {
11586
11689
  border: none;
11587
11690
  }
@@ -11654,9 +11757,9 @@ function TeamDetailsView({
11654
11757
  isLoading: isTeamLoading,
11655
11758
  error: teamError,
11656
11759
  refetch: refetchTeam
11657
- } = useQuery20(
11760
+ } = useQuery21(
11658
11761
  FrontierServiceQueries47.getGroup,
11659
- create42(GetGroupRequestSchema, {
11762
+ create43(GetGroupRequestSchema, {
11660
11763
  id: teamId || ""
11661
11764
  }),
11662
11765
  {
@@ -11678,9 +11781,9 @@ function TeamDetailsView({
11678
11781
  data: membersData,
11679
11782
  isLoading: isMembersLoading,
11680
11783
  refetch: refetchMembers
11681
- } = useQuery20(
11784
+ } = useQuery21(
11682
11785
  FrontierServiceQueries47.listGroupUsers,
11683
- create42(ListGroupUsersRequestSchema, {
11786
+ create43(ListGroupUsersRequestSchema, {
11684
11787
  id: teamId || ""
11685
11788
  }),
11686
11789
  { enabled: !!(organization == null ? void 0 : organization.id) && !!teamId }
@@ -11705,9 +11808,9 @@ function TeamDetailsView({
11705
11808
  data: rolesData,
11706
11809
  isLoading: isRolesLoading,
11707
11810
  error: rolesError
11708
- } = useQuery20(
11811
+ } = useQuery21(
11709
11812
  FrontierServiceQueries47.listRoles,
11710
- create42(ListRolesRequestSchema5, {
11813
+ create43(ListRolesRequestSchema5, {
11711
11814
  state: "enabled",
11712
11815
  scopes: [PERMISSIONS.GroupNamespace]
11713
11816
  }),
@@ -11769,7 +11872,7 @@ function TeamDetailsView({
11769
11872
  return;
11770
11873
  try {
11771
11874
  yield setGroupMemberRole(
11772
- create42(SetGroupMemberRoleRequestSchema2, {
11875
+ create43(SetGroupMemberRoleRequestSchema2, {
11773
11876
  groupId: teamId,
11774
11877
  principalId: memberId,
11775
11878
  principalType: PERMISSIONS.UserPrincipal,
@@ -12036,8 +12139,8 @@ import {
12036
12139
  var key_default = 'data:image/svg+xml,<svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="key">%0A<path id="Vector" d="M21.5232 7.04688C23.7323 7.04688 25.5232 8.83774 25.5232 11.0469M29.5232 11.0469C29.5232 15.4652 25.9415 19.0469 21.5232 19.0469C21.0555 19.0469 20.5972 19.0067 20.1516 18.9297C19.4009 18.8 18.6059 18.9642 18.0672 19.5029L14.5232 23.0469H11.5232V26.0469H8.52319V29.0469H3.52319V25.2895C3.52319 24.4939 3.83926 23.7308 4.40187 23.1682L13.0672 14.5029C13.6059 13.9642 13.77 13.1692 13.6403 12.4185C13.5633 11.9728 13.5232 11.5145 13.5232 11.0469C13.5232 6.6286 17.1049 3.04688 21.5232 3.04688C25.9415 3.04688 29.5232 6.6286 29.5232 11.0469Z" stroke="%23646464" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>%0A</g>%0A</svg>%0A';
12037
12140
 
12038
12141
  // client/views/service-accounts/service-accounts-view.tsx
12039
- import { useQuery as useQuery24 } from "@connectrpc/connect-query";
12040
- import { create as create47 } from "@bufbuild/protobuf";
12142
+ import { useQuery as useQuery25 } from "@connectrpc/connect-query";
12143
+ import { create as create48 } from "@bufbuild/protobuf";
12041
12144
  import {
12042
12145
  FrontierServiceQueries as FrontierServiceQueries52,
12043
12146
  ListOrganizationServiceUsersRequestSchema as ListOrganizationServiceUsersRequestSchema3
@@ -12051,8 +12154,8 @@ import {
12051
12154
  IconButton as IconButton10
12052
12155
  } from "@raystack/apsara";
12053
12156
 
12054
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-5rrdPdlAg6Ej/sdk/client/views/service-accounts/components/service-account-columns.module.css.js
12055
- var digest41 = "040e6465a322bc4598957d598d4dcffaff09c69fc6946c4b2c6bfc81c509497c";
12157
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-DSA8LRLbxa0O/sdk/client/views/service-accounts/components/service-account-columns.module.css.js
12158
+ var digest41 = "1d021e459f01977b55784d7d626765eb7c8b665c1b14482f12ac51d1b8b740e5";
12056
12159
  var css41 = `._actionsCell_10j4e_1 {
12057
12160
  visibility: hidden;
12058
12161
  }
@@ -12150,11 +12253,11 @@ import { Controller as Controller3, useForm as useForm15 } from "react-hook-form
12150
12253
  import * as yup15 from "yup";
12151
12254
  import { yupResolver as yupResolver15 } from "@hookform/resolvers/yup";
12152
12255
  import { orderBy } from "lodash";
12153
- import { create as create44 } from "@bufbuild/protobuf";
12256
+ import { create as create45 } from "@bufbuild/protobuf";
12154
12257
  import { useQueryClient as useQueryClient11 } from "@tanstack/react-query";
12155
12258
  import {
12156
12259
  useMutation as useMutation35,
12157
- useQuery as useQuery22,
12260
+ useQuery as useQuery23,
12158
12261
  createConnectQueryKey as createConnectQueryKey11,
12159
12262
  useTransport as useTransport10
12160
12263
  } from "@connectrpc/connect-query";
@@ -12185,13 +12288,13 @@ import {
12185
12288
 
12186
12289
  // client/views/service-accounts/hooks/useServiceUserTokens.ts
12187
12290
  import {
12188
- useQuery as useQuery21,
12291
+ useQuery as useQuery22,
12189
12292
  createConnectQueryKey as createConnectQueryKey10,
12190
12293
  useTransport as useTransport9
12191
12294
  } from "@connectrpc/connect-query";
12192
12295
  import { useMemo as useMemo30 } from "react";
12193
12296
  import { useQueryClient as useQueryClient10 } from "@tanstack/react-query";
12194
- import { create as create43 } from "@bufbuild/protobuf";
12297
+ import { create as create44 } from "@bufbuild/protobuf";
12195
12298
  import {
12196
12299
  FrontierServiceQueries as FrontierServiceQueries48,
12197
12300
  ListServiceUserTokensRequestSchema,
@@ -12213,9 +12316,9 @@ var useServiceUserTokens = ({
12213
12316
  }) => {
12214
12317
  const queryClient2 = useQueryClient10();
12215
12318
  const transport = useTransport9();
12216
- const { data: tokensData, isLoading } = useQuery21(
12319
+ const { data: tokensData, isLoading } = useQuery22(
12217
12320
  FrontierServiceQueries48.listServiceUserTokens,
12218
- create43(ListServiceUserTokensRequestSchema, {
12321
+ create44(ListServiceUserTokensRequestSchema, {
12219
12322
  id,
12220
12323
  orgId
12221
12324
  }),
@@ -12242,7 +12345,7 @@ var useServiceUserTokens = ({
12242
12345
  return createConnectQueryKey10({
12243
12346
  schema: FrontierServiceQueries48.listServiceUserTokens,
12244
12347
  transport,
12245
- input: create43(ListServiceUserTokensRequestSchema, {
12348
+ input: create44(ListServiceUserTokensRequestSchema, {
12246
12349
  id,
12247
12350
  orgId
12248
12351
  }),
@@ -12257,7 +12360,7 @@ var useServiceUserTokens = ({
12257
12360
  const filteredTokens = existingTokens.filter((t) => t !== void 0);
12258
12361
  queryClient2.setQueryData(
12259
12362
  queryKey,
12260
- create43(ListServiceUserTokensResponseSchema, {
12363
+ create44(ListServiceUserTokensResponseSchema, {
12261
12364
  tokens: [token, ...filteredTokens]
12262
12365
  })
12263
12366
  );
@@ -12273,7 +12376,7 @@ var useServiceUserTokens = ({
12273
12376
  );
12274
12377
  queryClient2.setQueryData(
12275
12378
  queryKey,
12276
- create43(ListServiceUserTokensResponseSchema, {
12379
+ create44(ListServiceUserTokensResponseSchema, {
12277
12380
  tokens: filteredTokens
12278
12381
  })
12279
12382
  );
@@ -12331,9 +12434,9 @@ function AddServiceAccountDialog({
12331
12434
  reset();
12332
12435
  }
12333
12436
  };
12334
- const { data: projectsData, isLoading: isProjectsLoading } = useQuery22(
12437
+ const { data: projectsData, isLoading: isProjectsLoading } = useQuery23(
12335
12438
  FrontierServiceQueries49.listOrganizationProjects,
12336
- create44(ListOrganizationProjectsRequestSchema2, {
12439
+ create45(ListOrganizationProjectsRequestSchema2, {
12337
12440
  id: orgId,
12338
12441
  state: "",
12339
12442
  withMemberCount: false
@@ -12347,9 +12450,9 @@ function AddServiceAccountDialog({
12347
12450
  const list = (_a2 = projectsData == null ? void 0 : projectsData.projects) != null ? _a2 : [];
12348
12451
  return orderBy(list, ["title"], ["asc"]);
12349
12452
  }, [projectsData]);
12350
- const { data: rolesData, isLoading: isRolesLoading } = useQuery22(
12453
+ const { data: rolesData, isLoading: isRolesLoading } = useQuery23(
12351
12454
  FrontierServiceQueries49.listRoles,
12352
- create44(ListRolesRequestSchema6, {
12455
+ create45(ListRolesRequestSchema6, {
12353
12456
  state: "enabled",
12354
12457
  scopes: [PERMISSIONS.ProjectNamespace]
12355
12458
  }),
@@ -12378,9 +12481,9 @@ function AddServiceAccountDialog({
12378
12481
  return;
12379
12482
  try {
12380
12483
  const serviceUserResponse = yield createServiceUser(
12381
- create44(CreateServiceUserRequestSchema, {
12484
+ create45(CreateServiceUserRequestSchema, {
12382
12485
  orgId,
12383
- body: create44(ServiceUserRequestBodySchema, {
12486
+ body: create45(ServiceUserRequestBodySchema, {
12384
12487
  title: data.title
12385
12488
  })
12386
12489
  })
@@ -12391,7 +12494,7 @@ function AddServiceAccountDialog({
12391
12494
  yield Promise.all(
12392
12495
  data.project_ids.map(
12393
12496
  (projectId) => setProjectMemberRole(
12394
- create44(SetProjectMemberRoleRequestSchema3, {
12497
+ create45(SetProjectMemberRoleRequestSchema3, {
12395
12498
  projectId,
12396
12499
  principalId: serviceUserId,
12397
12500
  principalType: PERMISSIONS.ServiceUserPrincipal,
@@ -12401,7 +12504,7 @@ function AddServiceAccountDialog({
12401
12504
  )
12402
12505
  );
12403
12506
  const tokenResponse = yield createServiceUserToken(
12404
- create44(CreateServiceUserTokenRequestSchema, {
12507
+ create45(CreateServiceUserTokenRequestSchema, {
12405
12508
  orgId,
12406
12509
  id: serviceUserId,
12407
12510
  title: DEFAULT_KEY_NAME
@@ -12411,7 +12514,7 @@ function AddServiceAccountDialog({
12411
12514
  queryKey: createConnectQueryKey11({
12412
12515
  schema: FrontierServiceQueries49.listOrganizationServiceUsers,
12413
12516
  transport,
12414
- input: create44(ListOrganizationServiceUsersRequestSchema, {
12517
+ input: create45(ListOrganizationServiceUsersRequestSchema, {
12415
12518
  id: orgId
12416
12519
  }),
12417
12520
  cardinality: "finite"
@@ -12420,7 +12523,7 @@ function AddServiceAccountDialog({
12420
12523
  const listTokensQueryKey = createConnectQueryKey11({
12421
12524
  schema: FrontierServiceQueries49.listServiceUserTokens,
12422
12525
  transport,
12423
- input: create44(ListServiceUserTokensRequestSchema2, {
12526
+ input: create45(ListServiceUserTokensRequestSchema2, {
12424
12527
  id: serviceUserId,
12425
12528
  orgId
12426
12529
  }),
@@ -12428,7 +12531,7 @@ function AddServiceAccountDialog({
12428
12531
  });
12429
12532
  queryClient2.setQueryData(
12430
12533
  listTokensQueryKey,
12431
- create44(ListServiceUserTokensResponseSchema2, {
12534
+ create45(ListServiceUserTokensResponseSchema2, {
12432
12535
  tokens: tokenResponse.token ? [tokenResponse.token] : []
12433
12536
  })
12434
12537
  );
@@ -12542,7 +12645,7 @@ function AddServiceAccountDialog({
12542
12645
 
12543
12646
  // client/views/service-accounts/components/delete-service-account-dialog.tsx
12544
12647
  import { useState as useState28 } from "react";
12545
- import { create as create45 } from "@bufbuild/protobuf";
12648
+ import { create as create46 } from "@bufbuild/protobuf";
12546
12649
  import { useMutation as useMutation36, createConnectQueryKey as createConnectQueryKey12, useTransport as useTransport11 } from "@connectrpc/connect-query";
12547
12650
  import {
12548
12651
  FrontierServiceQueries as FrontierServiceQueries50,
@@ -12570,7 +12673,7 @@ function DeleteServiceAccountDialog({ handle, refetch }) {
12570
12673
  setIsLoading(true);
12571
12674
  try {
12572
12675
  yield deleteServiceUser(
12573
- create45(DeleteServiceUserRequestSchema, {
12676
+ create46(DeleteServiceUserRequestSchema, {
12574
12677
  id: serviceAccountId,
12575
12678
  orgId
12576
12679
  })
@@ -12579,7 +12682,7 @@ function DeleteServiceAccountDialog({ handle, refetch }) {
12579
12682
  queryKey: createConnectQueryKey12({
12580
12683
  schema: FrontierServiceQueries50.listOrganizationServiceUsers,
12581
12684
  transport,
12582
- input: create45(ListOrganizationServiceUsersRequestSchema2, {
12685
+ input: create46(ListOrganizationServiceUsersRequestSchema2, {
12583
12686
  id: orgId
12584
12687
  }),
12585
12688
  cardinality: "finite"
@@ -12647,8 +12750,8 @@ import {
12647
12750
  Select as Select8,
12648
12751
  toastManager as toastManager39
12649
12752
  } from "@raystack/apsara";
12650
- import { useQuery as useQuery23, useMutation as useMutation37 } from "@connectrpc/connect-query";
12651
- import { create as create46 } from "@bufbuild/protobuf";
12753
+ import { useQuery as useQuery24, useMutation as useMutation37 } from "@connectrpc/connect-query";
12754
+ import { create as create47 } from "@bufbuild/protobuf";
12652
12755
  import {
12653
12756
  FrontierServiceQueries as FrontierServiceQueries51,
12654
12757
  ListServiceUserProjectsRequestSchema,
@@ -12659,8 +12762,8 @@ import {
12659
12762
  } from "@raystack/proton/frontier";
12660
12763
  import { orderBy as orderBy2 } from "lodash";
12661
12764
 
12662
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-GUrVrKWRe0fh/sdk/client/views/service-accounts/service-account-details-view.module.css.js
12663
- var digest42 = "74e5e68bf4bf2a158b977f0a32706220cca87dec8c295d4cde9d5ce65f529878";
12765
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-FnOXIbra4W0D/sdk/client/views/service-accounts/service-account-details-view.module.css.js
12766
+ var digest42 = "9c256fcb943d761e2a99fe670a56f0013574bafd8c69c4389b55633c430a621d";
12664
12767
  var css42 = `._addTokenRow_f3qf2_1 {
12665
12768
  gap: var(--rs-space-10);
12666
12769
  }
@@ -12822,9 +12925,9 @@ function ManageProjectAccessDialog({
12822
12925
  const handleOpenChange = (open) => {
12823
12926
  setIsOpen(open);
12824
12927
  };
12825
- const { data: projectsData, isLoading: isProjectsLoading } = useQuery23(
12928
+ const { data: projectsData, isLoading: isProjectsLoading } = useQuery24(
12826
12929
  FrontierServiceQueries51.listOrganizationProjects,
12827
- create46(ListOrganizationProjectsRequestSchema3, {
12930
+ create47(ListOrganizationProjectsRequestSchema3, {
12828
12931
  id: orgId,
12829
12932
  state: "",
12830
12933
  withMemberCount: false
@@ -12836,9 +12939,9 @@ function ManageProjectAccessDialog({
12836
12939
  const list = (_a = projectsData == null ? void 0 : projectsData.projects) != null ? _a : [];
12837
12940
  return orderBy2(list, ["title"], ["asc"]);
12838
12941
  }, [projectsData]);
12839
- const { data: addedProjectsData, isLoading: isAddedProjectsLoading } = useQuery23(
12942
+ const { data: addedProjectsData, isLoading: isAddedProjectsLoading } = useQuery24(
12840
12943
  FrontierServiceQueries51.listServiceUserProjects,
12841
- create46(ListServiceUserProjectsRequestSchema, {
12944
+ create47(ListServiceUserProjectsRequestSchema, {
12842
12945
  id: serviceUserId,
12843
12946
  orgId,
12844
12947
  withPermissions: []
@@ -12852,9 +12955,9 @@ function ManageProjectAccessDialog({
12852
12955
  },
12853
12956
  [addedProjectsData]
12854
12957
  );
12855
- const { data: rolesData, isLoading: isRolesLoading } = useQuery23(
12958
+ const { data: rolesData, isLoading: isRolesLoading } = useQuery24(
12856
12959
  FrontierServiceQueries51.listRoles,
12857
- create46(ListRolesRequestSchema7, {
12960
+ create47(ListRolesRequestSchema7, {
12858
12961
  state: "enabled",
12859
12962
  scopes: [PERMISSIONS.ProjectNamespace]
12860
12963
  }),
@@ -12903,7 +13006,7 @@ function ManageProjectAccessDialog({
12903
13006
  const roleName = ((_a = accessMap[projectId]) == null ? void 0 : _a.roleId) || PERMISSIONS.RoleProjectViewer;
12904
13007
  const resolvedRoleId = roleNameToId[roleName] || "";
12905
13008
  yield setProjectMemberRole(
12906
- create46(SetProjectMemberRoleRequestSchema4, {
13009
+ create47(SetProjectMemberRoleRequestSchema4, {
12907
13010
  projectId,
12908
13011
  principalId: serviceUserId,
12909
13012
  principalType: PERMISSIONS.ServiceUserPrincipal,
@@ -12915,7 +13018,7 @@ function ManageProjectAccessDialog({
12915
13018
  }));
12916
13019
  } else {
12917
13020
  yield removeProjectMember(
12918
- create46(RemoveProjectMemberRequestSchema2, {
13021
+ create47(RemoveProjectMemberRequestSchema2, {
12919
13022
  projectId,
12920
13023
  principalId: serviceUserId,
12921
13024
  principalType: PERMISSIONS.ServiceUserPrincipal
@@ -12966,7 +13069,7 @@ function ManageProjectAccessDialog({
12966
13069
  }));
12967
13070
  const resolvedRoleId = roleNameToId[roleId] || "";
12968
13071
  yield setProjectMemberRole(
12969
- create46(SetProjectMemberRoleRequestSchema4, {
13072
+ create47(SetProjectMemberRoleRequestSchema4, {
12970
13073
  projectId,
12971
13074
  principalId: serviceUserId,
12972
13075
  principalType: PERMISSIONS.ServiceUserPrincipal,
@@ -13038,8 +13141,8 @@ function ManageProjectAccessDialog({
13038
13141
  ] }) });
13039
13142
  }
13040
13143
 
13041
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-BnwhpHWAHND7/sdk/client/views/service-accounts/service-accounts-view.module.css.js
13042
- var digest43 = "95760f2373e94e833f2d021eb02e4361b98c2b7d936062a273358486f1c731ec";
13144
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-fseSQjGEiGZP/sdk/client/views/service-accounts/service-accounts-view.module.css.js
13145
+ var digest43 = "8212be9dc24e81ae7f91131f91423ef1601fa1e30ea6d374616c194e603f3699";
13043
13146
  var css43 = `._tableRoot_1z0j0_1 {
13044
13147
  border: none;
13045
13148
  }
@@ -13119,9 +13222,9 @@ function ServiceAccountsView({
13119
13222
  data: serviceUsersData,
13120
13223
  isLoading: isServiceUsersLoading,
13121
13224
  refetch
13122
- } = useQuery24(
13225
+ } = useQuery25(
13123
13226
  FrontierServiceQueries52.listOrganizationServiceUsers,
13124
- create47(ListOrganizationServiceUsersRequestSchema3, {
13227
+ create48(ListOrganizationServiceUsersRequestSchema3, {
13125
13228
  id: orgId
13126
13229
  }),
13127
13230
  {
@@ -13358,8 +13461,8 @@ import {
13358
13461
  Image as Image10,
13359
13462
  CopyButton as CopyButton2
13360
13463
  } from "@raystack/apsara";
13361
- import { useQuery as useQuery25 } from "@connectrpc/connect-query";
13362
- import { create as create50 } from "@bufbuild/protobuf";
13464
+ import { useQuery as useQuery26 } from "@connectrpc/connect-query";
13465
+ import { create as create51 } from "@bufbuild/protobuf";
13363
13466
  import {
13364
13467
  FrontierServiceQueries as FrontierServiceQueries55,
13365
13468
  GetServiceUserRequestSchema
@@ -13372,14 +13475,14 @@ import { yupResolver as yupResolver16 } from "@hookform/resolvers/yup";
13372
13475
  import * as yup16 from "yup";
13373
13476
  import { Flex as Flex58, Button as Button46, Field as Field14, Input as Input16, toastManager as toastManager40 } from "@raystack/apsara";
13374
13477
  import { useMutation as useMutation38 } from "@connectrpc/connect-query";
13375
- import { create as create48 } from "@bufbuild/protobuf";
13478
+ import { create as create49 } from "@bufbuild/protobuf";
13376
13479
  import {
13377
13480
  FrontierServiceQueries as FrontierServiceQueries53,
13378
13481
  CreateServiceUserTokenRequestSchema as CreateServiceUserTokenRequestSchema2
13379
13482
  } from "@raystack/proton/frontier";
13380
13483
 
13381
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-MQSC6fiziiMP/sdk/client/views/service-accounts/service-account-details-view.module.css.js
13382
- var digest44 = "88de2b4d67966733c878432a1a6fc6aa2428e254ae75953d11bf71bcd337281d";
13484
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-oaSDxcjUQnQa/sdk/client/views/service-accounts/service-account-details-view.module.css.js
13485
+ var digest44 = "c6669a619cd36749d1c0b2e4c699160392418e4027bad5f4567084aa28aec16f";
13383
13486
  var css44 = `._addTokenRow_f3qf2_1 {
13384
13487
  gap: var(--rs-space-10);
13385
13488
  }
@@ -13485,7 +13588,7 @@ function AddTokenForm({
13485
13588
  (data) => __async(this, null, function* () {
13486
13589
  try {
13487
13590
  const response = yield createServiceUserToken(
13488
- create48(CreateServiceUserTokenRequestSchema2, {
13591
+ create49(CreateServiceUserTokenRequestSchema2, {
13489
13592
  orgId,
13490
13593
  id: serviceUserId,
13491
13594
  title: data.title
@@ -13538,7 +13641,7 @@ function AddTokenForm({
13538
13641
 
13539
13642
  // client/views/service-accounts/components/revoke-token-dialog.tsx
13540
13643
  import { useState as useState31 } from "react";
13541
- import { create as create49 } from "@bufbuild/protobuf";
13644
+ import { create as create50 } from "@bufbuild/protobuf";
13542
13645
  import { useMutation as useMutation39 } from "@connectrpc/connect-query";
13543
13646
  import {
13544
13647
  FrontierServiceQueries as FrontierServiceQueries54,
@@ -13567,7 +13670,7 @@ function RevokeTokenDialog({
13567
13670
  setIsLoading(true);
13568
13671
  try {
13569
13672
  yield deleteServiceUserToken(
13570
- create49(DeleteServiceUserTokenRequestSchema, {
13673
+ create50(DeleteServiceUserTokenRequestSchema, {
13571
13674
  id: serviceUserId,
13572
13675
  tokenId,
13573
13676
  orgId
@@ -13627,8 +13730,8 @@ function RevokeTokenDialog({
13627
13730
  } });
13628
13731
  }
13629
13732
 
13630
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-52T7nW7WXKDv/sdk/client/views/service-accounts/service-account-details-view.module.css.js
13631
- var digest45 = "9b420f8eee46b6b5edddb2b13eb2094c694a7f9012b19c582f5f498dcaaea677";
13733
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-bnJvD7FW1unl/sdk/client/views/service-accounts/service-account-details-view.module.css.js
13734
+ var digest45 = "a41b64d51925cdc270321e8f1a2eaaaaf487aae4779b96b0089abcc5a764bd32";
13632
13735
  var css45 = `._addTokenRow_f3qf2_1 {
13633
13736
  gap: var(--rs-space-10);
13634
13737
  }
@@ -13722,9 +13825,9 @@ function ServiceAccountDetailsView({
13722
13825
  const { activeOrganization: organization } = useFrontier();
13723
13826
  const t = useTerminology();
13724
13827
  const orgId = (organization == null ? void 0 : organization.id) || "";
13725
- const { data: serviceUser, isLoading: isServiceUserLoading } = useQuery25(
13828
+ const { data: serviceUser, isLoading: isServiceUserLoading } = useQuery26(
13726
13829
  FrontierServiceQueries55.getServiceUser,
13727
- create50(GetServiceUserRequestSchema, {
13830
+ create51(GetServiceUserRequestSchema, {
13728
13831
  id: serviceAccountId,
13729
13832
  orgId
13730
13833
  }),
@@ -13955,8 +14058,8 @@ import {
13955
14058
  Flex as Flex64,
13956
14059
  Skeleton as Skeleton31
13957
14060
  } from "@raystack/apsara";
13958
- import { useQuery as useQuery26 } from "@connectrpc/connect-query";
13959
- import { create as create51 } from "@bufbuild/protobuf";
14061
+ import { useQuery as useQuery27 } from "@connectrpc/connect-query";
14062
+ import { create as create52 } from "@bufbuild/protobuf";
13960
14063
  import {
13961
14064
  FrontierServiceQueries as FrontierServiceQueries56,
13962
14065
  ListFeaturesRequestSchema
@@ -14018,8 +14121,8 @@ import {
14018
14121
  Text as Text42
14019
14122
  } from "@raystack/apsara";
14020
14123
 
14021
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-qiD9VWQb2Jqb/sdk/client/views/plans/components/plan-card.module.css.js
14022
- var digest46 = "5301aace5285135ab1b3adeb6067d008397f2080a5adc7f5287f8d283e51c54e";
14124
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-Zoic5aiSp6oB/sdk/client/views/plans/components/plan-card.module.css.js
14125
+ var digest46 = "bbb55bb3f77141071467c2cb330159bd709fbfd4d2fed277185266d000a244a0";
14023
14126
  var css46 = `._card_109ks_1 {
14024
14127
  display: flex;
14025
14128
  flex-direction: column;
@@ -14246,8 +14349,8 @@ function PlanCard({
14246
14349
  import { Flex as Flex62, Image as Image11, Skeleton as Skeleton29, Text as Text43 } from "@raystack/apsara";
14247
14350
  import { get as get2 } from "lodash";
14248
14351
 
14249
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-3XGOui8Vus76/sdk/client/views/plans/components/feature-table.module.css.js
14250
- var digest47 = "d00010302dca507b8cb67dcd3f186801fecc62974b5844875da814de5e635b85";
14352
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-kgM7LYhXxVIH/sdk/client/views/plans/components/feature-table.module.css.js
14353
+ var digest47 = "70a2dca81f18c0f0624a8c29deb51b36ea57fd469b3e77be20e58317f64bed74";
14251
14354
  var css47 = `._table_1h9e9_1 {
14252
14355
  display: flex;
14253
14356
  width: 100%;
@@ -14633,8 +14736,8 @@ function ConfirmPlanChangeContent({
14633
14736
  ] });
14634
14737
  }
14635
14738
 
14636
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-nJdWbqwGz14v/sdk/client/views/plans/plans-view.module.css.js
14637
- var digest48 = "e1269bf5145ee66d9114e18fc3e3afea1234d8d659e7c4acabfff840847bab01";
14739
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-qlvNHjWIJagD/sdk/client/views/plans/plans-view.module.css.js
14740
+ var digest48 = "77ecaf558b1396f53e55b00a29cd33965e29db3ec15d8071b0f83ea608bdc3bf";
14638
14741
  var css48 = `._plansRow_m36hz_1 {
14639
14742
  display: flex;
14640
14743
  position: sticky;
@@ -14681,9 +14784,9 @@ function PlansView() {
14681
14784
  activeOrganization
14682
14785
  } = useFrontier();
14683
14786
  const { isFetching: isPermissionsFetching, isAllowed: canChangePlan } = useBillingPermission();
14684
- const { data: featuresData, isLoading: isFeaturesLoading } = useQuery26(
14787
+ const { data: featuresData, isLoading: isFeaturesLoading } = useQuery27(
14685
14788
  FrontierServiceQueries56.listFeatures,
14686
- create51(ListFeaturesRequestSchema, {})
14789
+ create52(ListFeaturesRequestSchema, {})
14687
14790
  );
14688
14791
  const features = useMemo37(
14689
14792
  () => (featuresData == null ? void 0 : featuresData.features) || [],
@@ -14842,7 +14945,7 @@ import {
14842
14945
  RQLFilterSchema as RQLFilterSchema3,
14843
14946
  RQLSortSchema as RQLSortSchema3
14844
14947
  } from "@raystack/proton/frontier";
14845
- import { create as create52 } from "@bufbuild/protobuf";
14948
+ import { create as create53 } from "@bufbuild/protobuf";
14846
14949
  import dayjs6 from "dayjs";
14847
14950
  function convertFilterValue2(value) {
14848
14951
  switch (typeof value) {
@@ -14860,12 +14963,12 @@ function transformDateFilter2(filter, fieldName) {
14860
14963
  const startOfDay = dayjs6(filter.value).startOf("day");
14861
14964
  if (filter.operator === "eq") {
14862
14965
  return [
14863
- create52(RQLFilterSchema3, {
14966
+ create53(RQLFilterSchema3, {
14864
14967
  name: fieldName,
14865
14968
  operator: "gte",
14866
14969
  value: { case: "stringValue", value: startOfDay.toISOString() }
14867
14970
  }),
14868
- create52(RQLFilterSchema3, {
14971
+ create53(RQLFilterSchema3, {
14869
14972
  name: fieldName,
14870
14973
  operator: "lt",
14871
14974
  value: {
@@ -14876,7 +14979,7 @@ function transformDateFilter2(filter, fieldName) {
14876
14979
  ];
14877
14980
  }
14878
14981
  return [
14879
- create52(RQLFilterSchema3, {
14982
+ create53(RQLFilterSchema3, {
14880
14983
  name: fieldName,
14881
14984
  operator: filter.operator,
14882
14985
  value: { case: "stringValue", value: startOfDay.toISOString() }
@@ -14900,7 +15003,7 @@ function transformFilter2(filter, fieldNameMapping) {
14900
15003
  value = convertFilterValue2(filter.value);
14901
15004
  }
14902
15005
  return [
14903
- create52(RQLFilterSchema3, {
15006
+ create53(RQLFilterSchema3, {
14904
15007
  name: fieldName,
14905
15008
  operator: filter.operator,
14906
15009
  value
@@ -14914,7 +15017,7 @@ function transformSort2(sort, fieldNameMapping) {
14914
15017
  return sort.map(
14915
15018
  (s) => {
14916
15019
  var _a;
14917
- return create52(RQLSortSchema3, __spreadProps(__spreadValues({}, s), {
15020
+ return create53(RQLSortSchema3, __spreadProps(__spreadValues({}, s), {
14918
15021
  name: (_a = fieldNameMapping == null ? void 0 : fieldNameMapping[s.name]) != null ? _a : s.name
14919
15022
  }));
14920
15023
  }
@@ -14924,7 +15027,7 @@ function transformDataTableQueryToRQLRequest2(query, options = {}) {
14924
15027
  var _a;
14925
15028
  const { defaultLimit = 50, fieldNameMapping } = options;
14926
15029
  const filters = ((_a = query.filters) == null ? void 0 : _a.length) ? query.filters.flatMap((filter) => transformFilter2(filter, fieldNameMapping)) : [];
14927
- const rqlRequest = create52(RQLRequestSchema3, {
15030
+ const rqlRequest = create53(RQLRequestSchema3, {
14928
15031
  filters,
14929
15032
  groupBy: (query.group_by || []).map(
14930
15033
  (field) => {
@@ -14945,8 +15048,8 @@ import dayjs7 from "dayjs";
14945
15048
  import relativeTime2 from "dayjs/plugin/relativeTime";
14946
15049
  import { Button as Button51, Text as Text45 } from "@raystack/apsara";
14947
15050
 
14948
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-i2g5WGY9Ir22/sdk/client/views/pat/pat-view.module.css.js
14949
- var digest49 = "16fc5103b4094044b6c6a7d784c2ddcce1a3169fb9c73921177a376bc263c814";
15051
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-FTHIBt2mQkEu/sdk/client/views/pat/pat-view.module.css.js
15052
+ var digest49 = "58c23f2e7da5d31b0e43b2191edc30662c7f3a608e5c3bc1240a26fee6b59a29";
14950
15053
  var css49 = `._tableRoot_fvisd_1 {
14951
15054
  border: none;
14952
15055
  }
@@ -15060,9 +15163,9 @@ import { Controller as Controller4, useForm as useForm17 } from "react-hook-form
15060
15163
  import * as yup17 from "yup";
15061
15164
  import { yupResolver as yupResolver17 } from "@hookform/resolvers/yup";
15062
15165
  import { orderBy as orderBy3 } from "lodash";
15063
- import { create as create53 } from "@bufbuild/protobuf";
15166
+ import { create as create54 } from "@bufbuild/protobuf";
15064
15167
  import { timestampFromDate } from "@bufbuild/protobuf/wkt";
15065
- import { useMutation as useMutation40, useQuery as useQuery27 } from "@connectrpc/connect-query";
15168
+ import { useMutation as useMutation40, useQuery as useQuery28 } from "@connectrpc/connect-query";
15066
15169
  import dayjs8 from "dayjs";
15067
15170
  import {
15068
15171
  FrontierServiceQueries as FrontierServiceQueries57,
@@ -15114,8 +15217,8 @@ function getExpiryOptionValue(reference, expiresAt) {
15114
15217
  return (_a = match == null ? void 0 : match.value) != null ? _a : "";
15115
15218
  }
15116
15219
 
15117
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-5T3lRaMnhcuL/sdk/client/views/pat/pat-view.module.css.js
15118
- var digest50 = "e4760a6c837f41fcb94456031e032cb6e51eb8d72fc21fb185510acd4b885fcb";
15220
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-yABNSk0P7cCi/sdk/client/views/pat/pat-view.module.css.js
15221
+ var digest50 = "d4bdeb46031f1730fbc14b7657a09ec0801101f018d40be75e5855610334c034";
15119
15222
  var css50 = `._tableRoot_fvisd_1 {
15120
15223
  border: none;
15121
15224
  }
@@ -15256,9 +15359,9 @@ function PATFormDialog({
15256
15359
  setProjectAccess("all");
15257
15360
  }
15258
15361
  };
15259
- const { data: projectsData, isLoading: isProjectsLoading } = useQuery27(
15362
+ const { data: projectsData, isLoading: isProjectsLoading } = useQuery28(
15260
15363
  FrontierServiceQueries57.listProjectsByCurrentUser,
15261
- create53(ListProjectsByCurrentUserRequestSchema2, {
15364
+ create54(ListProjectsByCurrentUserRequestSchema2, {
15262
15365
  orgId,
15263
15366
  nonInherited: false
15264
15367
  }),
@@ -15269,9 +15372,9 @@ function PATFormDialog({
15269
15372
  const list = (_a2 = projectsData == null ? void 0 : projectsData.projects) != null ? _a2 : [];
15270
15373
  return orderBy3(list, ["title"], ["asc"]);
15271
15374
  }, [projectsData]);
15272
- const { data: rolesData, isLoading: isRolesLoading } = useQuery27(
15375
+ const { data: rolesData, isLoading: isRolesLoading } = useQuery28(
15273
15376
  FrontierServiceQueries57.listRolesForPAT,
15274
- create53(ListRolesForPATRequestSchema, { scopes: [] }),
15377
+ create54(ListRolesForPATRequestSchema, { scopes: [] }),
15275
15378
  { enabled: Boolean(orgId) }
15276
15379
  );
15277
15380
  const { orgRoles, projectRoles } = useMemo38(() => {
@@ -15357,7 +15460,7 @@ function PATFormDialog({
15357
15460
  setTitleChecking(true);
15358
15461
  try {
15359
15462
  const result = yield checkTitle(
15360
- create53(CheckCurrentUserPATTitleRequestSchema, { orgId, title })
15463
+ create54(CheckCurrentUserPATTitleRequestSchema, { orgId, title })
15361
15464
  );
15362
15465
  if (getValues("title") === checkedTitle) {
15363
15466
  setTitleAvailable((_a2 = result == null ? void 0 : result.available) != null ? _a2 : true);
@@ -15398,7 +15501,7 @@ function PATFormDialog({
15398
15501
  try {
15399
15502
  if (isUpdateMode && initialData) {
15400
15503
  yield updatePAT(
15401
- create53(UpdateCurrentUserPATRequestSchema, {
15504
+ create54(UpdateCurrentUserPATRequestSchema, {
15402
15505
  id: initialData.id,
15403
15506
  title: data.title,
15404
15507
  scopes
@@ -15419,7 +15522,7 @@ function PATFormDialog({
15419
15522
  dayjs8().add(option.amount, option.unit).toDate()
15420
15523
  );
15421
15524
  const response = yield createPAT(
15422
- create53(CreateCurrentUserPATRequestSchema, {
15525
+ create54(CreateCurrentUserPATRequestSchema, {
15423
15526
  title: data.title,
15424
15527
  orgId,
15425
15528
  scopes,
@@ -15801,7 +15904,7 @@ function PATCreatedDialog({ handle, onClose }) {
15801
15904
 
15802
15905
  // client/views/pat/components/revoke-pat-dialog.tsx
15803
15906
  import { useState as useState36 } from "react";
15804
- import { create as create54 } from "@bufbuild/protobuf";
15907
+ import { create as create55 } from "@bufbuild/protobuf";
15805
15908
  import { useMutation as useMutation41 } from "@connectrpc/connect-query";
15806
15909
  import {
15807
15910
  FrontierServiceQueries as FrontierServiceQueries58,
@@ -15818,7 +15921,7 @@ function RevokePATDialog({ handle, onRevoked }) {
15818
15921
  setIsLoading(true);
15819
15922
  try {
15820
15923
  yield deletePAT(
15821
- create54(DeleteCurrentUserPATRequestSchema, { id: patId })
15924
+ create55(DeleteCurrentUserPATRequestSchema, { id: patId })
15822
15925
  );
15823
15926
  handle.close();
15824
15927
  toastManager44.add({ title: "Token revoked", type: "success" });
@@ -15869,8 +15972,8 @@ function RevokePATDialog({ handle, onRevoked }) {
15869
15972
  ] }) });
15870
15973
  }
15871
15974
 
15872
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-x6iv8giArcIE/sdk/client/views/pat/pat-view.module.css.js
15873
- var digest51 = "7e4f207f9a14251642570f8e051bb02e8a561572966578dc1a19cd001a7e6fc2";
15975
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-m1bBhAv0sGXl/sdk/client/views/pat/pat-view.module.css.js
15976
+ var digest51 = "aba87e52d855f4f8f437c3aa1a94c868df373be50bfae35b666b57dba65449f2";
15874
15977
  var css51 = `._tableRoot_fvisd_1 {
15875
15978
  border: none;
15876
15979
  }
@@ -16131,23 +16234,24 @@ function PatsView({ onPATClick } = {}) {
16131
16234
  }
16132
16235
 
16133
16236
  // client/views/pat/pat-details-view.tsx
16134
- import { useCallback as useCallback29, useEffect as useEffect24, useMemo as useMemo40 } from "react";
16237
+ import { useCallback as useCallback29, useMemo as useMemo40 } from "react";
16135
16238
  import {
16136
16239
  AlertDialog as AlertDialog24,
16137
16240
  Breadcrumb as Breadcrumb4,
16138
16241
  Button as Button57,
16139
16242
  Dialog as Dialog29,
16243
+ EmptyState as EmptyState13,
16140
16244
  Flex as Flex69,
16141
16245
  IconButton as IconButton12,
16142
16246
  Image as Image13,
16143
16247
  Menu as Menu16,
16144
16248
  Skeleton as Skeleton34,
16145
16249
  Text as Text49,
16146
- toastManager as toastManager46,
16147
16250
  Tooltip as Tooltip13
16148
16251
  } from "@raystack/apsara";
16149
- import { useQuery as useQuery28 } from "@connectrpc/connect-query";
16150
- import { create as create56 } from "@bufbuild/protobuf";
16252
+ import { useQuery as useQuery29 } from "@connectrpc/connect-query";
16253
+ import { Code as Code3, ConnectError as ConnectError3 } from "@connectrpc/connect";
16254
+ import { create as create57 } from "@bufbuild/protobuf";
16151
16255
  import {
16152
16256
  FrontierServiceQueries as FrontierServiceQueries61,
16153
16257
  GetCurrentUserPATRequestSchema,
@@ -16161,8 +16265,8 @@ import relativeTime4 from "dayjs/plugin/relativeTime";
16161
16265
  import { useLayoutEffect, useRef as useRef3, useState as useState37 } from "react";
16162
16266
  import { Chip as Chip2 } from "@raystack/apsara";
16163
16267
 
16164
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-sWCaj9UAp5Kh/sdk/client/views/pat/components/pat-project-chips.module.css.js
16165
- var digest52 = "1f7e2b0dbe7aa90707d345d3d8355d95b597996966b3c4abb5c10469d0421840";
16268
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-QR7SkzjMaA9w/sdk/client/views/pat/components/pat-project-chips.module.css.js
16269
+ var digest52 = "749c0073ef811540f385331c02d69901167628cdc0fa53d948acbe0279e8043b";
16166
16270
  var css52 = `._compact_10iyo_1 {
16167
16271
  display: flex;
16168
16272
  gap: var(--rs-space-2);
@@ -16249,7 +16353,7 @@ function PATProjectChips({ projects }) {
16249
16353
 
16250
16354
  // client/views/pat/components/regenerate-pat-dialog.tsx
16251
16355
  import { useCallback as useCallback28, useState as useState38 } from "react";
16252
- import { create as create55 } from "@bufbuild/protobuf";
16356
+ import { create as create56 } from "@bufbuild/protobuf";
16253
16357
  import { timestampFromDate as timestampFromDate2 } from "@bufbuild/protobuf/wkt";
16254
16358
  import { useMutation as useMutation42 } from "@connectrpc/connect-query";
16255
16359
  import dayjs10 from "dayjs";
@@ -16266,8 +16370,8 @@ import {
16266
16370
  toastManager as toastManager45
16267
16371
  } from "@raystack/apsara";
16268
16372
 
16269
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-Rqz3J3Jmf6jA/sdk/client/views/pat/components/regenerate-pat-dialog.module.css.js
16270
- var digest53 = "ae52611f7cff2d97ce16437aebfe5e0ce3ab7aa214ee11ebafffd25c9dbe985b";
16373
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-gfVaRevCUCAh/sdk/client/views/pat/components/regenerate-pat-dialog.module.css.js
16374
+ var digest53 = "9c11361cabc371b21a06d802cba51de7da8402eb5002dcaab5c7d719fb104e33";
16271
16375
  var css53 = `._body_1s7vv_1 {
16272
16376
  padding: var(--rs-space-9) var(--rs-space-7) !important;
16273
16377
  gap: var(--rs-space-7) !important;
@@ -16316,7 +16420,7 @@ function RegeneratePATDialog({
16316
16420
  dayjs10().add(option.amount, option.unit).toDate()
16317
16421
  );
16318
16422
  const response = yield regeneratePAT(
16319
- create55(RegenerateCurrentUserPATRequestSchema, {
16423
+ create56(RegenerateCurrentUserPATRequestSchema, {
16320
16424
  id: patId,
16321
16425
  expiresAt
16322
16426
  })
@@ -16380,8 +16484,8 @@ function RegeneratePATDialog({
16380
16484
  } });
16381
16485
  }
16382
16486
 
16383
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-M6AqGLFXA0Ah/sdk/client/views/pat/pat-details-view.module.css.js
16384
- var digest54 = "3a76c0252a3c4028afb84b410ec14d6cb1b79ab884bf65c309ca29da93422011";
16487
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-nLge7aA3E72C/sdk/client/views/pat/pat-details-view.module.css.js
16488
+ var digest54 = "0cc9542e11324cdb0f2e27580a9ce2f54a8b41a5a7d49f8d804be01999c5e635";
16385
16489
  var css54 = `._section_1dc9z_1 {
16386
16490
  border: 1px solid var(--rs-color-border-base-primary);
16387
16491
  border-radius: var(--rs-radius-2);
@@ -16451,35 +16555,36 @@ function PATDetailsView({
16451
16555
  isLoading: isPatLoading,
16452
16556
  error: patError,
16453
16557
  refetch: refetchPat
16454
- } = useQuery28(
16558
+ } = useQuery29(
16455
16559
  FrontierServiceQueries61.getCurrentUserPAT,
16456
- create56(GetCurrentUserPATRequestSchema, { id: patId }),
16560
+ create57(GetCurrentUserPATRequestSchema, { id: patId }),
16457
16561
  {
16458
16562
  enabled: Boolean(patId),
16563
+ // A missing token or an invalid id is a definite answer, so don't retry
16564
+ // those and surface the result immediately. Other failures may be
16565
+ // transient, so allow a couple of retries before showing an error.
16566
+ retry: (failureCount, error) => {
16567
+ const code = error instanceof ConnectError3 ? error.code : void 0;
16568
+ if (code === Code3.NotFound || code === Code3.InvalidArgument) {
16569
+ return false;
16570
+ }
16571
+ return failureCount < 2;
16572
+ },
16459
16573
  select: (d) => d == null ? void 0 : d.pat
16460
16574
  }
16461
16575
  );
16462
- useEffect24(() => {
16463
- if (patError) {
16464
- toastManager46.add({
16465
- title: "Something went wrong",
16466
- description: patError.message,
16467
- type: "error"
16468
- });
16469
- }
16470
- }, [patError]);
16471
- const { data: orgRolesData, isLoading: isOrgRolesLoading } = useQuery28(
16576
+ const { data: orgRolesData, isLoading: isOrgRolesLoading } = useQuery29(
16472
16577
  FrontierServiceQueries61.listRolesForPAT,
16473
- create56(ListRolesForPATRequestSchema2, { scopes: [PERMISSIONS.OrganizationNamespace] }),
16578
+ create57(ListRolesForPATRequestSchema2, { scopes: [PERMISSIONS.OrganizationNamespace] }),
16474
16579
  { enabled: Boolean(orgId) }
16475
16580
  );
16476
16581
  const orgRoles = useMemo40(() => {
16477
16582
  var _a;
16478
16583
  return (_a = orgRolesData == null ? void 0 : orgRolesData.roles) != null ? _a : [];
16479
16584
  }, [orgRolesData]);
16480
- const { data: projectRolesData, isLoading: isProjectRolesLoading } = useQuery28(
16585
+ const { data: projectRolesData, isLoading: isProjectRolesLoading } = useQuery29(
16481
16586
  FrontierServiceQueries61.listRolesForPAT,
16482
- create56(ListRolesForPATRequestSchema2, { scopes: [PERMISSIONS.ProjectNamespace] }),
16587
+ create57(ListRolesForPATRequestSchema2, { scopes: [PERMISSIONS.ProjectNamespace] }),
16483
16588
  { enabled: Boolean(orgId) }
16484
16589
  );
16485
16590
  const projectRoles = useMemo40(
@@ -16489,9 +16594,9 @@ function PATDetailsView({
16489
16594
  },
16490
16595
  [projectRolesData]
16491
16596
  );
16492
- const { data: projectsData, isLoading: isProjectsLoading } = useQuery28(
16597
+ const { data: projectsData, isLoading: isProjectsLoading } = useQuery29(
16493
16598
  FrontierServiceQueries61.listProjectsByCurrentUser,
16494
- create56(ListProjectsByCurrentUserRequestSchema3, {
16599
+ create57(ListProjectsByCurrentUserRequestSchema3, {
16495
16600
  orgId,
16496
16601
  nonInherited: false
16497
16602
  }),
@@ -16578,6 +16683,50 @@ function PATDetailsView({
16578
16683
  refetchPat();
16579
16684
  };
16580
16685
  const patTitle = (pat == null ? void 0 : pat.title) || "";
16686
+ const patErrorCode = patError instanceof ConnectError3 ? patError.code : void 0;
16687
+ const isNotFoundError = patErrorCode === Code3.NotFound || patErrorCode === Code3.InvalidArgument;
16688
+ const isForeignPat = Boolean(orgId) && pat != null && pat.orgId !== orgId;
16689
+ const showTokenNotFound = isForeignPat || isNotFoundError;
16690
+ const hasUnexpectedError = patError != null && !isNotFoundError;
16691
+ if (showTokenNotFound || hasUnexpectedError) {
16692
+ return /* @__PURE__ */ jsx83(ViewContainer, { children: showTokenNotFound ? /* @__PURE__ */ jsx83(
16693
+ EmptyState13,
16694
+ {
16695
+ icon: /* @__PURE__ */ jsx83(LockClosedIcon, {}),
16696
+ heading: "Token not found",
16697
+ subHeading: "This personal access token doesn't exist.",
16698
+ primaryAction: /* @__PURE__ */ jsx83(
16699
+ Button57,
16700
+ {
16701
+ variant: "outline",
16702
+ color: "neutral",
16703
+ size: "small",
16704
+ onClick: () => onNavigateToPats == null ? void 0 : onNavigateToPats(),
16705
+ "data-test-id": "frontier-sdk-pat-not-found-back-btn",
16706
+ children: "Back to personal access tokens"
16707
+ }
16708
+ )
16709
+ }
16710
+ ) : /* @__PURE__ */ jsx83(
16711
+ EmptyState13,
16712
+ {
16713
+ icon: /* @__PURE__ */ jsx83(ExclamationTriangleIcon, {}),
16714
+ heading: "Something went wrong",
16715
+ subHeading: "We couldn't load this personal access token. Please try again.",
16716
+ primaryAction: /* @__PURE__ */ jsx83(
16717
+ Button57,
16718
+ {
16719
+ variant: "outline",
16720
+ color: "neutral",
16721
+ size: "small",
16722
+ onClick: () => refetchPat(),
16723
+ "data-test-id": "frontier-sdk-pat-error-retry-btn",
16724
+ children: "Try again"
16725
+ }
16726
+ )
16727
+ }
16728
+ ) });
16729
+ }
16581
16730
  return /* @__PURE__ */ jsxs75(ViewContainer, { children: [
16582
16731
  /* @__PURE__ */ jsx83(
16583
16732
  ViewHeader,
@@ -16772,7 +16921,7 @@ import {
16772
16921
  Flex as Flex70,
16773
16922
  Field as Field16,
16774
16923
  Input as Input19,
16775
- toastManager as toastManager47
16924
+ toastManager as toastManager46
16776
16925
  } from "@raystack/apsara";
16777
16926
  import { useForm as useForm18 } from "react-hook-form";
16778
16927
  import * as yup18 from "yup";
@@ -16781,10 +16930,10 @@ import {
16781
16930
  FrontierServiceQueries as FrontierServiceQueries62,
16782
16931
  CreateOrganizationRequestSchema
16783
16932
  } from "@raystack/proton/frontier";
16784
- import { create as create57 } from "@bufbuild/protobuf";
16933
+ import { create as create58 } from "@bufbuild/protobuf";
16785
16934
 
16786
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2091-lc522UK8VOzC/sdk/client/views/create-organization/create-organization-view.module.css.js
16787
- var digest55 = "be6d78a66fedc27c73bc1198f15287e300344271fd1aaf86151f9852737ff867";
16935
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2174-Q1BoiijGUGwi/sdk/client/views/create-organization/create-organization-view.module.css.js
16936
+ var digest55 = "516ec1b25931602280c46f4b101972632d588ada797ad3fe6c09fd8ab5b47bb9";
16788
16937
  var css55 = `._container_5yztc_1 {
16789
16938
  min-width: 220px;
16790
16939
  max-width: 480px;
@@ -16853,7 +17002,7 @@ var CreateOrganizationView = (_a) => {
16853
17002
  FrontierServiceQueries62.createOrganization,
16854
17003
  {
16855
17004
  onError: (err) => {
16856
- toastManager47.add({
17005
+ toastManager46.add({
16857
17006
  title: "Failed to create organization",
16858
17007
  description: err == null ? void 0 : err.message,
16859
17008
  type: "error"
@@ -16864,7 +17013,7 @@ var CreateOrganizationView = (_a) => {
16864
17013
  function onSubmit(data) {
16865
17014
  return __async(this, null, function* () {
16866
17015
  const response = yield createOrganization(
16867
- create57(CreateOrganizationRequestSchema, {
17016
+ create58(CreateOrganizationRequestSchema, {
16868
17017
  body: {
16869
17018
  title: data.title,
16870
17019
  name: data.name
@@ -17036,7 +17185,7 @@ var OptionalProvider = ({
17036
17185
 
17037
17186
  // client/hooks/useConnectQueryPolling.tsx
17038
17187
  import { useRef as useRef4, useState as useState39 } from "react";
17039
- import { useQuery as useQuery29 } from "@connectrpc/connect-query";
17188
+ import { useQuery as useQuery30 } from "@connectrpc/connect-query";
17040
17189
  function useConnectQueryPolling(params) {
17041
17190
  const {
17042
17191
  method,
@@ -17049,7 +17198,7 @@ function useConnectQueryPolling(params) {
17049
17198
  } = params;
17050
17199
  const [isPollingFailed, setIsPollingFailed] = useState39(false);
17051
17200
  const pollCountRef = useRef4(0);
17052
- const result = useQuery29(method, input, {
17201
+ const result = useQuery30(method, input, {
17053
17202
  enabled,
17054
17203
  select,
17055
17204
  retry: false,