@raystack/frontier 0.98.0 → 0.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,8 +196,8 @@ function convertBillingAddressToString(address) {
196
196
  // admin/views/roles/columns.tsx
197
197
  import { Flex } from "@raystack/apsara";
198
198
 
199
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-UIBrZHYYC4ki/sdk/admin/views/roles/roles.module.css.js
200
- var digest = "5f6309220432ff61a9f197a2d87753df2ed931c4509ee2fffe112aece84340b7";
199
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-oQ97HWV8pqGV/sdk/admin/views/roles/roles.module.css.js
200
+ var digest = "737895ea695d0941c269b30f7be8d64081c8cfe678d54161df98241ba1259878";
201
201
  var css = `._tableRoot_4yb15_1 {
202
202
  width: 100%;
203
203
  }
@@ -282,8 +282,8 @@ import { DataTable } from "@raystack/apsara";
282
282
  // admin/components/PageHeader.tsx
283
283
  import { Flex as Flex2, Text } from "@raystack/apsara";
284
284
 
285
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-O6pSmPH8RpOw/sdk/admin/components/page-header.module.css.js
286
- var digest2 = "e2b9d335b950f260b3882865bbaf0739632bfd15112e4b37f9efa4f75de59daf";
285
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-sItYpWnjesnd/sdk/admin/components/page-header.module.css.js
286
+ var digest2 = "202be178bc0c32410abde75e6c5cb424a617345c18c956d9c865ce72255c9ecb";
287
287
  var css2 = `._breadcrumb_1kaun_1 {
288
288
  list-style: none;
289
289
  padding: 0;
@@ -389,8 +389,8 @@ function PageHeader({
389
389
  );
390
390
  }
391
391
 
392
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-7GK5T8Vg4YLk/sdk/admin/views/roles/roles.module.css.js
393
- var digest3 = "b9735d1c2e38d0cecb3fa93842edd929b2746651c23b282fb2b3a58b14890a55";
392
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-0zxeB87ken5s/sdk/admin/views/roles/roles.module.css.js
393
+ var digest3 = "5aa46c18aad7565985bcf55b068a69c66c0a592b7f2ed0f1027aed798d82784a";
394
394
  var css3 = `._tableRoot_4yb15_1 {
395
395
  width: 100%;
396
396
  }
@@ -735,6 +735,24 @@ var Link2Icon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
735
735
  clipRule: "evenodd"
736
736
  }));
737
737
  });
738
+ var _excluded$2_ = ["color"];
739
+ var LockClosedIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
740
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$2_);
741
+ return createElement("svg", Object.assign({
742
+ width: "15",
743
+ height: "15",
744
+ viewBox: "0 0 15 15",
745
+ fill: "none",
746
+ xmlns: "http://www.w3.org/2000/svg"
747
+ }, props, {
748
+ ref: forwardedRef
749
+ }), createElement("path", {
750
+ d: "M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",
751
+ fill: color,
752
+ fillRule: "evenodd",
753
+ clipRule: "evenodd"
754
+ }));
755
+ });
738
756
  var _excluded$33 = ["color"];
739
757
  var MagnifyingGlassIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
740
758
  var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$33);
@@ -876,8 +894,8 @@ function PageTitle({ title, appName }) {
876
894
  return null;
877
895
  }
878
896
 
879
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-LqLcX69NwgEi/sdk/admin/views/roles/roles.module.css.js
880
- var digest4 = "604893bfd1b872f67ffd61b7251391df243819696c6d39a6f3ae04e734301f04";
897
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-5VsIlUTaZ8HX/sdk/admin/views/roles/roles.module.css.js
898
+ var digest4 = "01ed8c72a12160a622e7dc8f02d39ddfc3ae213ec23edd2fdc84fba260b3abf5";
881
899
  var css4 = `._tableRoot_4yb15_1 {
882
900
  width: 100%;
883
901
  }
@@ -1059,8 +1077,8 @@ import { useState as useState3 } from "react";
1059
1077
  // admin/views/invoices/navbar.tsx
1060
1078
  import { DataTable as DataTable3, Flex as Flex6, IconButton, Text as Text4 } from "@raystack/apsara";
1061
1079
 
1062
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-uUladFxzhfu9/sdk/admin/views/invoices/invoices.module.css.js
1063
- var digest5 = "57b377e0a9fc855c61d6a1f74860dc68f3f1d872ecfd20903df0d80d91093ceb";
1080
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-hPbwJFOV8jAP/sdk/admin/views/invoices/invoices.module.css.js
1081
+ var digest5 = "e2054ce4b37175d1e3381033afe2bb5a4e64fb701a1c35fa5d29abe3d6361ee3";
1064
1082
  var css5 = `._navbar_9c4wr_1 {
1065
1083
  padding: var(--rs-space-4) var(--rs-space-7);
1066
1084
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -1178,8 +1196,8 @@ var InvoicesNavabar = ({ searchQuery }) => {
1178
1196
  ] });
1179
1197
  };
1180
1198
 
1181
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-oPvIcMqIMPxZ/sdk/admin/views/invoices/invoices.module.css.js
1182
- var digest6 = "451f1e880052de78aea6ba89e48551f47a95bcf149d4e48e220219a20658a4b0";
1199
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-TyCgRkL6Lzqj/sdk/admin/views/invoices/invoices.module.css.js
1200
+ var digest6 = "f1ee810cbb6d2d62711857503f117245cb7a061d6cc9380f0202b0d9e19b0201";
1183
1201
  var css6 = `._navbar_9c4wr_1 {
1184
1202
  padding: var(--rs-space-4) var(--rs-space-7);
1185
1203
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -1313,7 +1331,7 @@ var getColumns2 = ({ t }) => {
1313
1331
  import { useInfiniteQuery } from "@connectrpc/connect-query";
1314
1332
  import { AdminServiceQueries } from "@raystack/proton/frontier";
1315
1333
 
1316
- // admin/utils/connect-pagination.ts
1334
+ // utils/connect-pagination.ts
1317
1335
  var DEFAULT_PAGE_SIZE = 50;
1318
1336
  function getConnectNextPageParam(lastPage, queryParams, itemsKey = "organizations") {
1319
1337
  const pagination = lastPage.pagination;
@@ -1351,7 +1369,7 @@ function getGroupCountMapFromFirstPage(infiniteData) {
1351
1369
  return { [groupKey]: groupCount };
1352
1370
  }
1353
1371
 
1354
- // admin/utils/transform-query.ts
1372
+ // utils/transform-query.ts
1355
1373
  import { RQLRequestSchema, RQLFilterSchema, RQLSortSchema } from "@raystack/proton/frontier";
1356
1374
  import { create } from "@bufbuild/protobuf";
1357
1375
  function convertFilterValue(value) {
@@ -1725,8 +1743,8 @@ var getColumns3 = (onNavigateToPrices) => {
1725
1743
  // admin/views/products/header.tsx
1726
1744
  import { DataTable as DataTable5 } from "@raystack/apsara";
1727
1745
 
1728
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-mpxs45bCmt9z/sdk/admin/views/products/products.module.css.js
1729
- var digest7 = "4e6f8afb74093eb25b9ff4c6e4109b5c4e754e569dc03f54c2c469f74d69a0e4";
1746
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-wiw324z9PpuF/sdk/admin/views/products/products.module.css.js
1747
+ var digest7 = "a87f851930746775b9deec32c8e140372e7a759207a58a12a7ba4705fd0fcce9";
1730
1748
  var css7 = `._tableRoot_1lzjd_1 {
1731
1749
  width: 100%;
1732
1750
  }
@@ -1797,8 +1815,8 @@ var ProductsHeader = ({
1797
1815
  );
1798
1816
  };
1799
1817
 
1800
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-4v014onp6hBM/sdk/admin/views/products/products.module.css.js
1801
- var digest8 = "e5042259836899a253bfe984110ffa4ec6c6c0f739a1817af32970269c95c890";
1818
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-li5LXMRKvVh7/sdk/admin/views/products/products.module.css.js
1819
+ var digest8 = "4895837ec53ca02dedad7a75a5b9cea91d58f65ab6876402da099705423a2eb5";
1802
1820
  var css8 = `._tableRoot_1lzjd_1 {
1803
1821
  width: 100%;
1804
1822
  }
@@ -1850,8 +1868,8 @@ var products_module_css_default2 = { "tableRoot": "_tableRoot_1lzjd_1", "tableWr
1850
1868
  // admin/views/products/details.tsx
1851
1869
  import { Flex as Flex9, Text as Text6, Grid as Grid2, Sheet as Sheet2 } from "@raystack/apsara";
1852
1870
 
1853
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-JCOSgBjAKC5X/sdk/admin/views/products/products.module.css.js
1854
- var digest9 = "f166bcca686592bbc2a6864e384d2b1d8d7a8541edaba2477d270ddaa94183a7";
1871
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-Qevb5vqkDha4/sdk/admin/views/products/products.module.css.js
1872
+ var digest9 = "2ec160b8628e084fddcdc2feb39e9e63b0687293e63fb24cc167c980e2a9e748";
1855
1873
  var css9 = `._tableRoot_1lzjd_1 {
1856
1874
  width: 100%;
1857
1875
  }
@@ -2201,8 +2219,8 @@ function CpuChipIcon(props) {
2201
2219
  );
2202
2220
  }
2203
2221
 
2204
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-KKfIVsUYNp9C/sdk/admin/views/audit-logs/audit-logs.module.css.js
2205
- var digest10 = "76b872c2cae4a3c4e6878b352673caaaacdcbd81beec599b6fb91439052a5018";
2222
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-eJFX5mQyC5Gn/sdk/admin/views/audit-logs/audit-logs.module.css.js
2223
+ var digest10 = "b99f8b2f0126e1919904498b8c5d23a1c7eddb6a104c03b0dd756d8fcd9d4501";
2206
2224
  var css10 = `._navbar_sfza7_1 {
2207
2225
  padding: var(--rs-space-4) var(--rs-space-7);
2208
2226
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2420,8 +2438,8 @@ var Navbar = ({ searchQuery, onExportCsv }) => {
2420
2438
  };
2421
2439
  var navbar_default = Navbar;
2422
2440
 
2423
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-B9CKarIvrRVy/sdk/admin/views/audit-logs/audit-logs.module.css.js
2424
- var digest11 = "c0a83d5fb37b195071a7cdf7af3fa1a4929871913e99f2cb880810b833d9ccae";
2441
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-2KVRhRi7RxQR/sdk/admin/views/audit-logs/audit-logs.module.css.js
2442
+ var digest11 = "2a764de6f661b36e65c331c0fec6cc1e82eedb77018703e855679cc9ec92c9d7";
2425
2443
  var css11 = `._navbar_sfza7_1 {
2426
2444
  padding: var(--rs-space-4) var(--rs-space-7);
2427
2445
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2531,8 +2549,8 @@ var audit_logs_module_css_default2 = { "navbar": "_navbar_sfza7_1", "table": "_t
2531
2549
  import { Badge, Flex as Flex14, Text as Text9 } from "@raystack/apsara";
2532
2550
  import dayjs3 from "dayjs";
2533
2551
 
2534
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-KTEUp6xmxSnd/sdk/admin/views/audit-logs/audit-logs.module.css.js
2535
- var digest12 = "dabe8d23597bc55af922e5c3832ee6968baf3eb414f0b67f28fcf70677de58a7";
2552
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-9QWpvT8IKaSe/sdk/admin/views/audit-logs/audit-logs.module.css.js
2553
+ var digest12 = "e271b944f179e690fe76e02d840d69f601fa23746bfa948f5112ae06fc40914c";
2536
2554
  var css12 = `._navbar_sfza7_1 {
2537
2555
  padding: var(--rs-space-4) var(--rs-space-7);
2538
2556
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2797,8 +2815,8 @@ import {
2797
2815
  import { Flex as Flex16, IconButton as IconButton4, SidePanel } from "@raystack/apsara";
2798
2816
  import { List as List3 } from "@raystack/apsara";
2799
2817
 
2800
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-xqf5AcETc5uP/sdk/admin/views/audit-logs/audit-logs.module.css.js
2801
- var digest13 = "12ccff61bcb6424e7fe476ab21cc228bb6e9756a8c7ed26f30c4179c896f3f3e";
2818
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-40VgbEi0asW9/sdk/admin/views/audit-logs/audit-logs.module.css.js
2819
+ var digest13 = "32eeb716f31e1a6f41cf019788ed05b7754b9294d5629c5fd03d13c7cc506081";
2802
2820
  var css13 = `._navbar_sfza7_1 {
2803
2821
  padding: var(--rs-space-4) var(--rs-space-7);
2804
2822
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2935,8 +2953,8 @@ function MapIcon(props) {
2935
2953
  // admin/views/audit-logs/sidepanel-log-dialog.tsx
2936
2954
  import { Dialog, IconButton as IconButton3, CodeBlock } from "@raystack/apsara";
2937
2955
 
2938
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-LEgWq83q1gX6/sdk/admin/views/audit-logs/audit-logs.module.css.js
2939
- var digest14 = "87cbbbb5a5b280733a295cade696e330bc1cc4ca59ed73fb0160e3977d4dcf94";
2956
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-P8qjIEmSpuWR/sdk/admin/views/audit-logs/audit-logs.module.css.js
2957
+ var digest14 = "fa5bbad2f179c6575156cd23c37c616831cf4d227e060c92cfe7040becd47ec1";
2940
2958
  var css14 = `._navbar_sfza7_1 {
2941
2959
  padding: var(--rs-space-4) var(--rs-space-7);
2942
2960
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3139,8 +3157,8 @@ function SidePanelLogDialog(props) {
3139
3157
  // admin/views/audit-logs/sidepanel-list-link.tsx
3140
3158
  import { Button, List } from "@raystack/apsara";
3141
3159
 
3142
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-WluY7XM3CHlL/sdk/admin/views/audit-logs/audit-logs.module.css.js
3143
- var digest15 = "4bebea589b43187994dac81bedfc90c656ae6be715f49e4975262df7c7118a2b";
3160
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-C3uwPraZ126E/sdk/admin/views/audit-logs/audit-logs.module.css.js
3161
+ var digest15 = "1501e3d15c1010e870ad2a2555359c3327a6377eb8b20474adc99baac764de4d";
3144
3162
  var css15 = `._navbar_sfza7_1 {
3145
3163
  padding: var(--rs-space-4) var(--rs-space-7);
3146
3164
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3281,8 +3299,8 @@ function SidepanelListItemLink({
3281
3299
  // admin/views/audit-logs/sidepanel-list-id.tsx
3282
3300
  import { CopyButton, Flex as Flex15, List as List2, Text as Text10, Tooltip } from "@raystack/apsara";
3283
3301
 
3284
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-sIDKeJcUqN22/sdk/admin/views/audit-logs/audit-logs.module.css.js
3285
- var digest16 = "0a249529a08ccddb6c4cc82738911cb8bccdf94c9fa7bedcbf8bad9b47d85a39";
3302
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-nbsUXC1CcAqZ/sdk/admin/views/audit-logs/audit-logs.module.css.js
3303
+ var digest16 = "c1d1017f25fbbdeeb283301e08497a76fd0aa2c9e77ac30364b67f34ea4a2f4b";
3286
3304
  var css16 = `._navbar_sfza7_1 {
3287
3305
  padding: var(--rs-space-4) var(--rs-space-7);
3288
3306
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3848,8 +3866,8 @@ var getColumns6 = ({ onNavigateToOrg, t } = {}) => {
3848
3866
  ];
3849
3867
  };
3850
3868
 
3851
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-7hMRkB9GubJG/sdk/admin/views/admins/admins.module.css.js
3852
- var digest17 = "4f7c08402468fbcd2c417e43fd8a5a4b2081bda590462421a0071e0934d45a36";
3869
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-lchF4uIYjSrm/sdk/admin/views/admins/admins.module.css.js
3870
+ var digest17 = "149ee87d2828e6822f4113da84a522e2f23110fc79433f04b369e8c0764edcba";
3853
3871
  var css17 = `._tableRoot_yd6a0_1 {
3854
3872
  width: 100%;
3855
3873
  }
@@ -4006,8 +4024,8 @@ var getColumns7 = ({ onSelectPlan } = {}) => {
4006
4024
  // admin/views/plans/header.tsx
4007
4025
  import { DataTable as DataTable11 } from "@raystack/apsara";
4008
4026
 
4009
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-YrNjnPbd6pUC/sdk/admin/views/plans/plans.module.css.js
4010
- var digest18 = "5c1a271b565d0ddf4a7a43449aee8648c5ad0987e4e9ac621f0318ec86f8e211";
4027
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-9eks9BQYQnwS/sdk/admin/views/plans/plans.module.css.js
4028
+ var digest18 = "1a78759b2bf56b22de4ac303fcf8e3ed02b7e09fc07cc32d2ae3e53fe723ad8d";
4011
4029
  var css18 = `._tableRoot_1d6xr_1 {
4012
4030
  width: 100%;
4013
4031
  }
@@ -4060,8 +4078,8 @@ var PlanHeader = ({ header }) => {
4060
4078
  );
4061
4079
  };
4062
4080
 
4063
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-k5v7dG2Z0gPO/sdk/admin/views/plans/plans.module.css.js
4064
- var digest19 = "44ff656502b220a78ab96b66b36568bf847cb16dd174c475f9e59b0e83ba91aa";
4081
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-T7NylNgJycHr/sdk/admin/views/plans/plans.module.css.js
4082
+ var digest19 = "429e6f839700520efea0401067e6cb60ef7df1a565af84db504604227946b1be";
4065
4083
  var css19 = `._tableRoot_1d6xr_1 {
4066
4084
  width: 100%;
4067
4085
  }
@@ -4215,8 +4233,8 @@ import {
4215
4233
  Text as Text15
4216
4234
  } from "@raystack/apsara";
4217
4235
 
4218
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-d7SXn1VS9X7l/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4219
- var digest20 = "96711b195db6ae9d4787ba2709e9757bf642232e294b97a7cd523b5c7d388bc3";
4236
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-nEt14vfxzKg0/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4237
+ var digest20 = "c4235f32347d77bd589762cafc739b3ac8eeedc0b45c0adb6e229bd09d510c89";
4220
4238
  var css20 = `._tableRoot_h8n52_1 {
4221
4239
  width: 100%;
4222
4240
  }
@@ -4743,8 +4761,8 @@ var getColumns8 = ({ openEditPage, deleteWebhookMutation, enableDelete }) => {
4743
4761
  // admin/views/webhooks/webhooks/header.tsx
4744
4762
  import { Button as Button3, DataTable as DataTable13 } from "@raystack/apsara";
4745
4763
 
4746
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-Yyz7RnJe9gwc/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4747
- var digest21 = "5becc12b8cbe66c944d528a2080b55c4075fa554c316b84085c31641b8db75a5";
4764
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-WlshqdpE2aTK/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4765
+ var digest21 = "5722e4fcf86f85e3084ce8b40890d832263d0d21577bd53a6ccceea4472c28a1";
4748
4766
  var css21 = `._tableRoot_h8n52_1 {
4749
4767
  width: 100%;
4750
4768
  }
@@ -4826,8 +4844,8 @@ var WebhooksHeader = ({ header = pageHeader4, onOpenCreate }) => {
4826
4844
  );
4827
4845
  };
4828
4846
 
4829
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-y1dvtfNY8eJW/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4830
- var digest22 = "eed1a07460edc346b4f7fa145242e06d77b5d937e29706eadd8429b6a5685c7e";
4847
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-w8GQYBAwc8cY/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4848
+ var digest22 = "360890eca05734e3cb1383593083b0a87952ae3c608f8e95b88cdcdf608cea4c";
4831
4849
  var css22 = `._tableRoot_h8n52_1 {
4832
4850
  width: 100%;
4833
4851
  }
@@ -9047,7 +9065,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
9047
9065
  return /* @__PURE__ */ jsx41(Context.Provider, { value, children });
9048
9066
  };
9049
9067
  Provider.displayName = rootComponentName + "Provider";
9050
- function useContext25(consumerName, scope) {
9068
+ function useContext26(consumerName, scope) {
9051
9069
  const Context = scope?.[scopeName]?.[index] || BaseContext;
9052
9070
  const context = React5.useContext(Context);
9053
9071
  if (context)
@@ -9056,7 +9074,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
9056
9074
  return defaultContext;
9057
9075
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
9058
9076
  }
9059
- return [Provider, useContext25];
9077
+ return [Provider, useContext26];
9060
9078
  }
9061
9079
  const createScope = () => {
9062
9080
  const scopeContexts = defaultContexts.map((defaultContext) => {
@@ -10424,8 +10442,8 @@ import { EmptyState as EmptyState9, DataTable as DataTable15, Flex as Flex30 } f
10424
10442
  // admin/views/preferences/columns.tsx
10425
10443
  import { Text as Text17 } from "@raystack/apsara";
10426
10444
 
10427
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-rqOTxLDDg6ud/sdk/admin/views/preferences/preferences.module.css.js
10428
- var digest23 = "b9066eca038658f3ff73b89dc55a88f8d19b69a88f31e4b7927f3a9e9f894f93";
10445
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-Q5POufmwBv5h/sdk/admin/views/preferences/preferences.module.css.js
10446
+ var digest23 = "3e1fe11d2ecd0b1a54b51f24e83013c83b40e232ef443f1d3c5c74d5807530b1";
10429
10447
  var css23 = `._tableRoot_j5y5o_1 {
10430
10448
  width: 100%;
10431
10449
  }
@@ -10507,8 +10525,8 @@ var getColumns9 = ({
10507
10525
  ];
10508
10526
  };
10509
10527
 
10510
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-QtC1Q9dXWjX2/sdk/admin/views/preferences/preferences.module.css.js
10511
- var digest24 = "f6593f582e49f6970cb9034871a52677f38bb9663f0dc7b65738c423a646735a";
10528
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-dix3ii87Vg0E/sdk/admin/views/preferences/preferences.module.css.js
10529
+ var digest24 = "dfb9140d2761deef29bbb3fc1bdd6ea7515dd4a729a68d8a2e5ac2cdf45108af";
10512
10530
  var css24 = `._tableRoot_j5y5o_1 {
10513
10531
  width: 100%;
10514
10532
  }
@@ -10870,8 +10888,8 @@ import {
10870
10888
  Spinner as Spinner2
10871
10889
  } from "@raystack/apsara";
10872
10890
 
10873
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-3I62H6lSL56I/sdk/admin/views/users/list/list.module.css.js
10874
- var digest25 = "de9c3f81d77e00c2cb816913a8e0c36e442d77e7bd9f1670bc4e19d45c15c1cf";
10891
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-9xnlcgAD0Klx/sdk/admin/views/users/list/list.module.css.js
10892
+ var digest25 = "ec4dab89b47dad021de32de7e0386c83ec346f8e743f1530285425b1cf8aa353";
10875
10893
  var css25 = `._navbar_1s15g_1 {
10876
10894
  padding: var(--rs-space-4) var(--rs-space-7);
10877
10895
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -10974,8 +10992,8 @@ import {
10974
10992
  import { Controller as Controller2, useForm as useForm3 } from "react-hook-form";
10975
10993
  import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
10976
10994
 
10977
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-72kEGTm3mO0n/sdk/admin/views/users/list/invite-users.module.css.js
10978
- var digest26 = "aa428ded5a001e52dafc7c9e86e885647732c5ca79951eaec1cb34d0884b56e4";
10995
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-S4U5U7QBjZN8/sdk/admin/views/users/list/invite-users.module.css.js
10996
+ var digest26 = "a1b1b9d5b57ec212c6e699c6741a263e8323156ffa5e49322d059b9e1989fd09";
10979
10997
  var css26 = `._invite-users-dialog-body_11ujx_1 {
10980
10998
  display: flex;
10981
10999
  flex-direction: column;
@@ -11350,8 +11368,8 @@ var Navbar2 = ({ searchQuery, onExportUsers }) => {
11350
11368
  };
11351
11369
  var navbar_default2 = Navbar2;
11352
11370
 
11353
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-orPZ637WE3ZX/sdk/admin/views/users/list/list.module.css.js
11354
- var digest27 = "ce4ca01e4e9ee3c2b122f08421eaddc0d7b63087338ca0acda1d57c5ff41f805";
11371
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-68wwXiCbdIRZ/sdk/admin/views/users/list/list.module.css.js
11372
+ var digest27 = "d89faabc4c2208a1e435b2ae50fea5d60d10dc10dd27e57419260e9327815902";
11355
11373
  var css27 = `._navbar_1s15g_1 {
11356
11374
  padding: var(--rs-space-4) var(--rs-space-7);
11357
11375
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -11421,8 +11439,8 @@ import {
11421
11439
  } from "@raystack/apsara";
11422
11440
  import dayjs7 from "dayjs";
11423
11441
 
11424
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-0zw7OJUfF8RX/sdk/admin/views/users/list/list.module.css.js
11425
- var digest28 = "332b8a211fc241575a142704978bf8f2e0586922b8331885a4c8702bd3bd8744";
11442
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-BN3zQpxh7rYI/sdk/admin/views/users/list/list.module.css.js
11443
+ var digest28 = "a66114a355877bf1c08125fe875eac019c5dcc7efddbd08e15adf9fdeed7f325";
11426
11444
  var css28 = `._navbar_1s15g_1 {
11427
11445
  padding: var(--rs-space-4) var(--rs-space-7);
11428
11446
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -11714,8 +11732,8 @@ import { Avatar as Avatar4, getAvatarColor as getAvatarColor3, SidePanel as Side
11714
11732
  // admin/views/users/details/layout/side-panel-details.tsx
11715
11733
  import { Flex as Flex37, List as List4, Text as Text22, CopyButton as CopyButton2, Tooltip as Tooltip2 } from "@raystack/apsara";
11716
11734
 
11717
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-9NVsRb8nj50A/sdk/admin/views/users/details/layout/side-panel.module.css.js
11718
- var digest29 = "c7327fbcc185c208fdf2fe4cf564d0184ef05f9e6a5d92a6da88dea584178a38";
11735
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-z6Luq5U6OHYn/sdk/admin/views/users/details/layout/side-panel.module.css.js
11736
+ var digest29 = "49b2dc140587bc75347d914f803ef8238c67a3b00c39226bc08fb5a29d555c98";
11719
11737
  var css29 = `._side-panel_1oc3f_1 {
11720
11738
  transform: all 0.3s ease-in-out;
11721
11739
  padding-bottom: 80px;
@@ -11822,8 +11840,8 @@ var SidePanelDetails2 = () => {
11822
11840
  import { Flex as Flex40, List as List5, Text as Text26, Avatar as Avatar3 } from "@raystack/apsara";
11823
11841
  import dayjs8 from "dayjs";
11824
11842
 
11825
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-si4T0qFIVcBg/sdk/admin/views/users/details/layout/side-panel.module.css.js
11826
- var digest30 = "419521585a38d65c3a508ca3c534b01286cbec8d3c101c0f2aa060df9c7a51f4";
11843
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-3d1ysklWTsZx/sdk/admin/views/users/details/layout/side-panel.module.css.js
11844
+ var digest30 = "569f4115817d90e14e56363c2106171efd8ae1a7dbd01c32d234edd0c0faffbe";
11827
11845
  var css30 = `._side-panel_1oc3f_1 {
11828
11846
  transform: all 0.3s ease-in-out;
11829
11847
  padding-bottom: 80px;
@@ -11886,8 +11904,8 @@ var side_panel_module_css_default2 = { "side-panel": "_side-panel_1oc3f_1", "sid
11886
11904
  // admin/views/users/details/layout/membership-dropdown.tsx
11887
11905
  import { Text as Text25, DropdownMenu as DropdownMenu2, Skeleton as Skeleton2 } from "@raystack/apsara";
11888
11906
 
11889
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-RHPUMbkD4Cms/sdk/admin/views/users/details/layout/side-panel.module.css.js
11890
- var digest31 = "3ace92c03591c04240b937a1ca054a8b705372512f6c68708d56b90e80edd28c";
11907
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-IY3cJbtZwA4U/sdk/admin/views/users/details/layout/side-panel.module.css.js
11908
+ var digest31 = "e71e1fa3e894b0f121e55520c754611678b820e9bfc6475992405d90cd29c824";
11891
11909
  var css31 = `._side-panel_1oc3f_1 {
11892
11910
  transform: all 0.3s ease-in-out;
11893
11911
  padding-bottom: 80px;
@@ -12296,8 +12314,8 @@ var SidePanelMembership = ({
12296
12314
  ] });
12297
12315
  };
12298
12316
 
12299
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-j2VeZxJcHzsm/sdk/admin/views/users/details/layout/side-panel.module.css.js
12300
- var digest32 = "9e1be78c18f7025ee58adec194f83fc7c0cecc6bebc116b271d64dcc176d7f6b";
12317
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-p4mbYCSXzhaT/sdk/admin/views/users/details/layout/side-panel.module.css.js
12318
+ var digest32 = "5b322af8448bfaf2fa397e8c472678237331d3c707bb4cebdda4e3752fb94442";
12301
12319
  var css32 = `._side-panel_1oc3f_1 {
12302
12320
  transform: all 0.3s ease-in-out;
12303
12321
  padding-bottom: 80px;
@@ -12415,8 +12433,8 @@ var UserDetailsSidePanel = () => {
12415
12433
  );
12416
12434
  };
12417
12435
 
12418
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-gv1bmvahUEha/sdk/admin/views/users/details/layout/layout.module.css.js
12419
- var digest33 = "118ce81ee55000a2c6e31f7dc4002b76e774b7760d51a8e0898e4e124c2908a3";
12436
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-IUqdriJJ46Wi/sdk/admin/views/users/details/layout/layout.module.css.js
12437
+ var digest33 = "1546e1dcd4c705872cc6e47c60cfd6c473244c98160d9f45fa8e668f36b682b6";
12420
12438
  var css33 = `._page_190wz_1 {
12421
12439
  height: 100vh;
12422
12440
  width: 100%;
@@ -12457,8 +12475,8 @@ import {
12457
12475
  } from "@raystack/apsara";
12458
12476
  import { SidebarIcon } from "@raystack/apsara/icons";
12459
12477
 
12460
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-xy05wPW4xI1c/sdk/admin/views/users/details/layout/navbar.module.css.js
12461
- var digest34 = "f2fe7c02367fc76fc5091ec3304ffd7ab10571d18fb4d3600e236190b5669712";
12478
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-zOPUbR6mwTny/sdk/admin/views/users/details/layout/navbar.module.css.js
12479
+ var digest34 = "204da99db631113b4c5e40e4fe58fab8ff8ef6be9fca44c9274b3df8a47ad7e4";
12462
12480
  var css34 = `._navbar_1ahsl_1 {
12463
12481
  padding: var(--rs-space-4) var(--rs-space-7);
12464
12482
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -12750,8 +12768,8 @@ import {
12750
12768
  Text as Text28
12751
12769
  } from "@raystack/apsara";
12752
12770
 
12753
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-v5NphKSKwpOK/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12754
- var digest35 = "90a04bbbe689914356e5414e40c40e710894e323a65f7280420393b925aeb1d4";
12771
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-K1qZioWf1QP7/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12772
+ var digest35 = "24380432a1e8e67dc9e6ac64eb2e57cf9e9fe3ed12a949b8c9e0218555c7cc6b";
12755
12773
  var css35 = `._sessionsContainer_aq82p_1 {
12756
12774
  border: 1px solid var(--rs-color-border-base-primary);
12757
12775
  border-radius: var(--rs-radius-2);
@@ -12872,8 +12890,8 @@ var RevokeSessionFinalConfirm = ({
12872
12890
  ) });
12873
12891
  };
12874
12892
 
12875
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-fQCn20Ti4ENK/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12876
- var digest36 = "29a8587a31d8a570c2463c3bedda48b07f0059709867a968270c2ad76eea024d";
12893
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-U0xedXfSjcgk/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12894
+ var digest36 = "c6b08effbba126e41095117a315b71272c227fed51bf9e419e4cb786dc50d6cb";
12877
12895
  var css36 = `._sessionsContainer_aq82p_1 {
12878
12896
  border: 1px solid var(--rs-color-border-base-primary);
12879
12897
  border-radius: var(--rs-radius-2);
@@ -13017,8 +13035,8 @@ var RevokeSessionConfirm = ({ isOpen, onOpenChange, sessionInfo, onRevokeConfirm
13017
13035
  // admin/views/users/details/security/sessions/session-skeleton.tsx
13018
13036
  import { Flex as Flex45, Skeleton as Skeleton3 } from "@raystack/apsara";
13019
13037
 
13020
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-OOu1Fgafr8VC/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
13021
- var digest37 = "0a8eaf5c3908112ecc0197f56d7496c39dec85bc66d80512ae84c860a757c3fe";
13038
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-KpN4p6vRRXhm/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
13039
+ var digest37 = "e3dbc320f1a5f6ff04ffcfe27b9b2f8f4207f4f2c4fef0a515d55f3c4054d6ae";
13022
13040
  var css37 = `._sessionsContainer_aq82p_1 {
13023
13041
  border: 1px solid var(--rs-color-border-base-primary);
13024
13042
  border-radius: var(--rs-radius-2);
@@ -13099,8 +13117,8 @@ import { AdminServiceQueries as AdminServiceQueries13 } from "@raystack/proton/f
13099
13117
  import dayjs9 from "dayjs";
13100
13118
  import relativeTime from "dayjs/plugin/relativeTime";
13101
13119
 
13102
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-VSEiB1n27o5o/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
13103
- var digest38 = "2f0be65d79f5169042cc4a605259b902ee4b9ddf71d7e091dfea19a9bb471a2b";
13120
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-PfKnMYweHa1u/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
13121
+ var digest38 = "246d9d3fd89c43dc404142a44d0c35e3f401f645f0686096be9310889fee9e8d";
13104
13122
  var css38 = `._sessionsContainer_aq82p_1 {
13105
13123
  border: 1px solid var(--rs-color-border-base-primary);
13106
13124
  border-radius: var(--rs-radius-2);
@@ -13309,8 +13327,8 @@ var UserSessions = () => {
13309
13327
  ] });
13310
13328
  };
13311
13329
 
13312
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-KQqMPG2ddTMr/sdk/admin/views/users/details/security/security.module.css.js
13313
- var digest39 = "004a97606db9123d0d044e13092b650b99bbdf2f78c8a6e9a89aee526dc9a3bb";
13330
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-GUedb8RN5Mgh/sdk/admin/views/users/details/security/security.module.css.js
13331
+ var digest39 = "aed1f39274e780a411390cebab8879d9e29f2fafe7c2da3a9ee49cf22190a28a";
13314
13332
  var css39 = `._container_4259p_1 {
13315
13333
  width: 100%;
13316
13334
  }
@@ -13444,8 +13462,8 @@ import {
13444
13462
  } from "@raystack/apsara";
13445
13463
  import { OrganizationIcon } from "@raystack/apsara/icons";
13446
13464
 
13447
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-0feDZ8vf214L/sdk/admin/views/organizations/list/list.module.css.js
13448
- var digest40 = "07adeec1b49bc98cc70359a828dbe602a2f187a735dbe31d6ecf6d29f62a8d10";
13465
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-23UgTppuaQyt/sdk/admin/views/organizations/list/list.module.css.js
13466
+ var digest40 = "b011f5460f3d36492f3c93c1a3ab79a094a454096fbe9bbe9b55d9863eabb125";
13449
13467
  var css40 = `._navbar_1py96_1 {
13450
13468
  padding: var(--rs-space-4) var(--rs-space-7);
13451
13469
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -13634,8 +13652,8 @@ var OrganizationsNavabar = ({
13634
13652
  ] });
13635
13653
  };
13636
13654
 
13637
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-650ZjiA4i2X2/sdk/admin/views/organizations/list/list.module.css.js
13638
- var digest41 = "fc934c256f84a0b9e0127881fd54a6827d96aa0b4c39e922b78bc85533d6cdb5";
13655
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-7ds3SO4YFrPp/sdk/admin/views/organizations/list/list.module.css.js
13656
+ var digest41 = "1abf3551beae20f27d6e4e50f124170541c6a275e088f936a6f62ecbfa118f8b";
13639
13657
  var css41 = `._navbar_1py96_1 {
13640
13658
  padding: var(--rs-space-4) var(--rs-space-7);
13641
13659
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -13749,8 +13767,8 @@ import {
13749
13767
  } from "@raystack/apsara";
13750
13768
  import dayjs10 from "dayjs";
13751
13769
 
13752
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-aSdxhFYe44r3/sdk/admin/views/organizations/list/list.module.css.js
13753
- var digest42 = "5cc89e7e80dcdfd96cd2912055f96da1514dd87ae9366f3fe86036294461979a";
13770
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-IrO8pXRV9FyR/sdk/admin/views/organizations/list/list.module.css.js
13771
+ var digest42 = "dba599be910cfd30115fc6bb5d869fe08ccd80121c536559baa1dd47e49f90c3";
13754
13772
  var css42 = `._navbar_1py96_1 {
13755
13773
  padding: var(--rs-space-4) var(--rs-space-7);
13756
13774
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -14020,8 +14038,8 @@ import { create as create8 } from "@bufbuild/protobuf";
14020
14038
  // admin/views/organizations/list/create.tsx
14021
14039
  import { useEffect as useEffect6, useState as useState20 } from "react";
14022
14040
 
14023
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-lH8UBdXR325r/sdk/admin/views/organizations/list/list.module.css.js
14024
- var digest43 = "755ca8f13beecd9ed6dc33f5aef3ce4f2ec055d2e3b4a5de627ceb52dcf21998";
14041
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-an0Dg5xG8aYD/sdk/admin/views/organizations/list/list.module.css.js
14042
+ var digest43 = "12347d6a0d4a36cbb5e8d83f7c20acf9eacedadf76db3d07d35ee9c9528039e0";
14025
14043
  var css43 = `._navbar_1py96_1 {
14026
14044
  padding: var(--rs-space-4) var(--rs-space-7);
14027
14045
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -14152,8 +14170,8 @@ var cross_default = 'data:image/svg+xml,<svg width="20" height="20" viewBox="0 0
14152
14170
  // react/components/avatar-upload/index.tsx
14153
14171
  import "react-image-crop/dist/ReactCrop.css";
14154
14172
 
14155
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-n9232uFGzoIy/sdk/react/components/avatar-upload/avatar-upload.module.css.js
14156
- var digest44 = "9a420d71507114b43909ccb22069ed16694e6472668b894432d1fb877ed47698";
14173
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-5VMIxnDTdQHH/sdk/react/components/avatar-upload/avatar-upload.module.css.js
14174
+ var digest44 = "c7152afe6a1408d912aae69f6ec65718d8084d8d44a9e9c27a79757ff93d94f9";
14157
14175
  var css44 = `._container_1k4dc_1 {
14158
14176
  display: flex;
14159
14177
  flex-direction: column;
@@ -14908,8 +14926,8 @@ import {
14908
14926
  Search
14909
14927
  } from "@raystack/apsara";
14910
14928
 
14911
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-7dDoRrK1hvFB/sdk/admin/views/organizations/details/layout/layout.module.css.js
14912
- var digest45 = "d0e09710d55535beafb15998dbb1149aac3baf7e04478c5799b8c5fb2298650b";
14929
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-WyevowdFtC2I/sdk/admin/views/organizations/details/layout/layout.module.css.js
14930
+ var digest45 = "56e55a336f398959796f0d6ce8fb5e3f571c37518dbb66310c8e50706d82aa1c";
14913
14931
  var css45 = `._page_1jsqa_1 {
14914
14932
  width: 100%;
14915
14933
  height: 100vh;
@@ -15015,8 +15033,8 @@ import {
15015
15033
  } from "@raystack/apsara";
15016
15034
  import { useContext as useContext5, useMemo as useMemo7 } from "react";
15017
15035
 
15018
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-6h1kCxbMOZTB/sdk/admin/views/organizations/details/layout/layout.module.css.js
15019
- var digest46 = "80efcc44e28cfd9aca42c62ea7304ef7553e076620a3d3ff2f15c2dfd22c1689";
15036
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-SH4VGQXpd29W/sdk/admin/views/organizations/details/layout/layout.module.css.js
15037
+ var digest46 = "ddff6189f74d0d57b5851aec1080ecdfd543ad13fa8f33e6d41fe78c05114f06";
15020
15038
  var css46 = `._page_1jsqa_1 {
15021
15039
  width: 100%;
15022
15040
  height: 100vh;
@@ -15322,8 +15340,8 @@ import {
15322
15340
  import { useContext as useContext6 } from "react";
15323
15341
  import { Controller as Controller5, FormProvider as FormProvider4, useForm as useForm7 } from "react-hook-form";
15324
15342
 
15325
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-aGdamGJpaBGS/sdk/admin/views/organizations/details/layout/layout.module.css.js
15326
- var digest47 = "ea3d1f7905d6f1830516acf24e3c2c41c69170f56d4f64836f4711885ee5b9b5";
15343
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-bL396FhHHWV7/sdk/admin/views/organizations/details/layout/layout.module.css.js
15344
+ var digest47 = "b10dbd39cda70323bb1d67457649839ea74a90f9ed3494e908ea9cc9f96ea1d0";
15327
15345
  var css47 = `._page_1jsqa_1 {
15328
15346
  width: 100%;
15329
15347
  height: 100vh;
@@ -15420,7 +15438,7 @@ var layout_module_css_default4 = { "page": "_page_1jsqa_1", "main_content": "_ma
15420
15438
  import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
15421
15439
  import { useMutation as useMutation11, createConnectQueryKey as createConnectQueryKey6, useTransport as useTransport7 } from "@connectrpc/connect-query";
15422
15440
  import { useQueryClient as useQueryClient8 } from "@tanstack/react-query";
15423
- import { AdminServiceQueries as AdminServiceQueries17, CheckoutProductBodySchema, DelegatedCheckoutRequestSchema } from "@raystack/proton/frontier";
15441
+ import { AdminServiceQueries as AdminServiceQueries17, CheckoutProductBodySchema, DelegatedCheckoutRequestSchema, FrontierServiceQueries as FrontierServiceQueries12 } from "@raystack/proton/frontier";
15424
15442
  import { create as create11 } from "@bufbuild/protobuf";
15425
15443
  import { jsx as jsx82, jsxs as jsxs58 } from "react/jsx-runtime";
15426
15444
  var addTokensSchema = objectType({
@@ -15449,7 +15467,7 @@ var AddTokensDialog = ({ onOpenChange }) => {
15449
15467
  onSuccess: () => {
15450
15468
  queryClient.invalidateQueries({
15451
15469
  queryKey: createConnectQueryKey6({
15452
- schema: AdminServiceQueries17.searchOrganizationTokens,
15470
+ schema: FrontierServiceQueries12.searchOrganizationTokens,
15453
15471
  transport,
15454
15472
  input: { id: organisationId },
15455
15473
  cardinality: "infinite"
@@ -15702,6 +15720,7 @@ var NavLinks = ({
15702
15720
  { name: "Invoices", path: `${basePath}/invoices` },
15703
15721
  { name: "Tokens", path: `${basePath}/tokens` },
15704
15722
  { name: "API", path: `${basePath}/apis` },
15723
+ { name: "PAT", path: `${basePath}/pat` },
15705
15724
  { name: "Security", path: `${basePath}/security` }
15706
15725
  ];
15707
15726
  function checkActive(path) {
@@ -15818,8 +15837,8 @@ var OrganizationsDetailsNavabar = ({
15818
15837
  ] });
15819
15838
  };
15820
15839
 
15821
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-17emZx80R3ZK/sdk/admin/views/organizations/details/layout/layout.module.css.js
15822
- var digest48 = "ca4e2b9caec3b9addcaa6966276b83cdbbf9ae5fb9c9f20be68626d591dee526";
15840
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-JXiK2aB3CX98/sdk/admin/views/organizations/details/layout/layout.module.css.js
15841
+ var digest48 = "9202c0365cbd82f85dbf5ad170b5e74881b9f79cae0ddcfd3ffafe955d2382c4";
15823
15842
  var css48 = `._page_1jsqa_1 {
15824
15843
  width: 100%;
15825
15844
  height: 100vh;
@@ -15921,8 +15940,8 @@ import { Avatar as Avatar9, getAvatarColor as getAvatarColor7, SidePanel as Side
15921
15940
  // admin/views/organizations/details/side-panel/org-details-section.tsx
15922
15941
  import { Flex as Flex57, List as List7, Text as Text39, CopyButton as CopyButton3, Tooltip as Tooltip3 } from "@raystack/apsara";
15923
15942
 
15924
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-jjh48GwxEued/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
15925
- var digest49 = "44875699894b51c338e3ec48cd79a49a22c4c6148a2ac6c0c25cb08430f9b72c";
15943
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-N06lK5u2ArlF/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
15944
+ var digest49 = "066d57ffbc2c5d7e75920b9b28f2d44d200abfabb31cacc3954824351559201a";
15926
15945
  var css49 = `._side-panel-section-item-label_yeg6h_1 {
15927
15946
  width: 120px;
15928
15947
  }
@@ -16012,8 +16031,8 @@ var OrganizationDetailsSection = ({
16012
16031
  import { Flex as Flex58, List as List8, Text as Text40, Link as Link2, Tooltip as Tooltip4 } from "@raystack/apsara";
16013
16032
  import { useContext as useContext9 } from "react";
16014
16033
 
16015
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-0ZuUVewbNWUJ/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16016
- var digest50 = "2f4d7ae8f650779cd3594ebe2b8618196cac127d82fa120e933a3a6b62d2adf6";
16034
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-Fyho236svrhg/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16035
+ var digest50 = "a5e118889f488aa600fe09d0b9b1e8448b4526a38a2ea56080f5741e2620f721";
16017
16036
  var css50 = `._side-panel-section-item-label_yeg6h_1 {
16018
16037
  width: 120px;
16019
16038
  }
@@ -16099,8 +16118,8 @@ var KYCDetailsSection = () => {
16099
16118
  import { useContext as useContext10 } from "react";
16100
16119
  import { List as List9, Text as Text41, Flex as Flex59 } from "@raystack/apsara";
16101
16120
 
16102
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-6ljm5diks637/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16103
- var digest51 = "d177d4f38c5d4eb57a10e53280e46ba1b61594918e4ed9c733c55797bc9a8464";
16121
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-NuwOKMVW6X5R/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16122
+ var digest51 = "db1e2533810e7a5f18bc56eea8aa72ac25a62efe8bba147bc8c5bf7c1ffb219a";
16104
16123
  var css51 = `._side-panel-section-item-label_yeg6h_1 {
16105
16124
  width: 120px;
16106
16125
  }
@@ -16133,7 +16152,7 @@ var side_panel_module_css_default7 = { "side-panel-section-item-label": "_side-p
16133
16152
 
16134
16153
  // admin/views/organizations/details/side-panel/plan-details-section.tsx
16135
16154
  import { useQuery as useQuery13 } from "@connectrpc/connect-query";
16136
- import { FrontierServiceQueries as FrontierServiceQueries12, ListSubscriptionsRequestSchema, GetPlanRequestSchema } from "@raystack/proton/frontier";
16155
+ import { FrontierServiceQueries as FrontierServiceQueries13, ListSubscriptionsRequestSchema, GetPlanRequestSchema } from "@raystack/proton/frontier";
16137
16156
  import { create as create12 } from "@bufbuild/protobuf";
16138
16157
  import { jsx as jsx86, jsxs as jsxs62 } from "react/jsx-runtime";
16139
16158
  var PlanDetailsSection = () => {
@@ -16141,7 +16160,7 @@ var PlanDetailsSection = () => {
16141
16160
  const billingAccountId = billingAccount?.id || "";
16142
16161
  const organizationId = organization?.id || "";
16143
16162
  const { data: activeSubscription, isLoading: isSubscriptionLoading, error: subscriptionsError } = useQuery13(
16144
- FrontierServiceQueries12.listSubscriptions,
16163
+ FrontierServiceQueries13.listSubscriptions,
16145
16164
  create12(ListSubscriptionsRequestSchema, {
16146
16165
  orgId: organizationId
16147
16166
  }),
@@ -16159,7 +16178,7 @@ var PlanDetailsSection = () => {
16159
16178
  console.error("Error fetching subscriptions:", subscriptionsError);
16160
16179
  }
16161
16180
  const { data: planData, isLoading: isPlanLoading, error: planError } = useQuery13(
16162
- FrontierServiceQueries12.getPlan,
16181
+ FrontierServiceQueries13.getPlan,
16163
16182
  create12(GetPlanRequestSchema, {
16164
16183
  id: activeSubscription?.planId ?? ""
16165
16184
  }),
@@ -16201,8 +16220,8 @@ var PlanDetailsSection = () => {
16201
16220
  // admin/views/organizations/details/side-panel/tokens-details-section.tsx
16202
16221
  import { List as List10, Text as Text42, Flex as Flex60 } from "@raystack/apsara";
16203
16222
 
16204
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-WeSLjcG01xfE/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16205
- var digest52 = "7c0e7613f813946aa84935244d84d4ac5a112d2b810cf940c85705a3aad23bbc";
16223
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-5R64mOzENyA0/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16224
+ var digest52 = "db8e980ba52a54ecdac23a643d39797fbaf985291ff3736f03b84f7cfaaff08a";
16206
16225
  var css52 = `._side-panel-section-item-label_yeg6h_1 {
16207
16226
  width: 120px;
16208
16227
  }
@@ -16236,7 +16255,7 @@ var side_panel_module_css_default8 = { "side-panel-section-item-label": "_side-p
16236
16255
  // admin/views/organizations/details/side-panel/tokens-details-section.tsx
16237
16256
  import { useContext as useContext11, useEffect as useEffect8 } from "react";
16238
16257
  import { useQuery as useQuery14 } from "@connectrpc/connect-query";
16239
- import { FrontierServiceQueries as FrontierServiceQueries13, TotalDebitedTransactionsRequestSchema } from "@raystack/proton/frontier";
16258
+ import { FrontierServiceQueries as FrontierServiceQueries14, TotalDebitedTransactionsRequestSchema } from "@raystack/proton/frontier";
16240
16259
  import { create as create13 } from "@bufbuild/protobuf";
16241
16260
  import { jsx as jsx87, jsxs as jsxs63 } from "react/jsx-runtime";
16242
16261
  var TokensDetailsSection = () => {
@@ -16250,7 +16269,7 @@ var TokensDetailsSection = () => {
16250
16269
  const organizationId = organization?.id || "";
16251
16270
  const billingAccountId = billingAccount?.id || "";
16252
16271
  const { data: tokensUsed = "0", isLoading: isTokensLoading, error } = useQuery14(
16253
- FrontierServiceQueries13.totalDebitedTransactions,
16272
+ FrontierServiceQueries14.totalDebitedTransactions,
16254
16273
  create13(TotalDebitedTransactionsRequestSchema, {
16255
16274
  orgId: organizationId,
16256
16275
  billingId: billingAccountId
@@ -16303,8 +16322,8 @@ var TokensDetailsSection = () => {
16303
16322
  // admin/views/organizations/details/side-panel/billing-details-section.tsx
16304
16323
  import { CopyButton as CopyButton4, Flex as Flex61, Link as Link3, List as List11, Text as Text43 } from "@raystack/apsara";
16305
16324
 
16306
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-QEA3wXlBZm7s/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16307
- var digest53 = "44225e10b1c1f173f17beaf3118e374407cd0a38be65959fe8e5c14c559c90ce";
16325
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-eaax1QHbrPyT/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16326
+ var digest53 = "9438cbb9de21b912cf889b660b1fd091490ef6342ed871bdf78145e4efc741f3";
16308
16327
  var css53 = `._side-panel-section-item-label_yeg6h_1 {
16309
16328
  width: 120px;
16310
16329
  }
@@ -16339,7 +16358,7 @@ var side_panel_module_css_default9 = { "side-panel-section-item-label": "_side-p
16339
16358
  import { useContext as useContext12, useEffect as useEffect9 } from "react";
16340
16359
  import { Amount as Amount4 } from "@raystack/apsara";
16341
16360
  import { useQuery as useQuery15 } from "@connectrpc/connect-query";
16342
- import { FrontierServiceQueries as FrontierServiceQueries14, GetUpcomingInvoiceRequestSchema } from "@raystack/proton/frontier";
16361
+ import { FrontierServiceQueries as FrontierServiceQueries15, GetUpcomingInvoiceRequestSchema } from "@raystack/proton/frontier";
16343
16362
  import { create as create14 } from "@bufbuild/protobuf";
16344
16363
  import { jsx as jsx88, jsxs as jsxs64 } from "react/jsx-runtime";
16345
16364
  var BillingDetailsSection = () => {
@@ -16347,7 +16366,7 @@ var BillingDetailsSection = () => {
16347
16366
  const organizationId = organization?.id || "";
16348
16367
  const billingAccountId = billingAccount?.id || "";
16349
16368
  const { data: upcomingInvoice, isLoading, error } = useQuery15(
16350
- FrontierServiceQueries14.getUpcomingInvoice,
16369
+ FrontierServiceQueries15.getUpcomingInvoice,
16351
16370
  create14(GetUpcomingInvoiceRequestSchema, {
16352
16371
  orgId: organizationId,
16353
16372
  billingId: billingAccountId
@@ -16462,8 +16481,8 @@ import {
16462
16481
  toast as toast10
16463
16482
  } from "@raystack/apsara";
16464
16483
 
16465
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-G2e2I5eInYkX/sdk/admin/views/organizations/details/edit/edit.module.css.js
16466
- var digest54 = "6c535fc293d71d13aeac0702953ae3d07f24aa12408e64f11804109fc2bcb62f";
16484
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-dWV8GK14Q6MN/sdk/admin/views/organizations/details/edit/edit.module.css.js
16485
+ var digest54 = "b8c4e0af28280012584ec7c05935bee961bac810060828efe90f99db538ed746";
16467
16486
  var css54 = `._drawer-content_1o0os_1 {
16468
16487
  min-width: 500px;
16469
16488
  padding: 0;
@@ -16521,7 +16540,7 @@ import { Controller as Controller6, useForm as useForm8 } from "react-hook-form"
16521
16540
  import { zodResolver as zodResolver8 } from "@hookform/resolvers/zod";
16522
16541
  import { useMutation as useMutation12, createConnectQueryKey as createConnectQueryKey7, useTransport as useTransport8 } from "@connectrpc/connect-query";
16523
16542
  import { useQueryClient as useQueryClient9 } from "@tanstack/react-query";
16524
- import { AdminServiceQueries as AdminServiceQueries18, FrontierServiceQueries as FrontierServiceQueries15, SetOrganizationKycRequestSchema } from "@raystack/proton/frontier";
16543
+ import { AdminServiceQueries as AdminServiceQueries18, FrontierServiceQueries as FrontierServiceQueries16, SetOrganizationKycRequestSchema } from "@raystack/proton/frontier";
16525
16544
  import { create as create15 } from "@bufbuild/protobuf";
16526
16545
  import { Fragment as Fragment20, jsx as jsx90, jsxs as jsxs66 } from "react/jsx-runtime";
16527
16546
  var kycUpdateSchema = external_exports.object({
@@ -16562,7 +16581,7 @@ function EditKYCPanel({ onClose }) {
16562
16581
  }
16563
16582
  queryClient.invalidateQueries({
16564
16583
  queryKey: createConnectQueryKey7({
16565
- schema: FrontierServiceQueries15.getOrganizationKyc,
16584
+ schema: FrontierServiceQueries16.getOrganizationKyc,
16566
16585
  transport,
16567
16586
  input: { orgId },
16568
16587
  cardinality: "finite"
@@ -16700,8 +16719,8 @@ function EditKYCPanel({ onClose }) {
16700
16719
  // admin/views/organizations/details/edit/organization.tsx
16701
16720
  import { useContext as useContext14, useEffect as useEffect10, useState as useState23 } from "react";
16702
16721
 
16703
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-toHkJtTMM1oY/sdk/admin/views/organizations/details/edit/edit.module.css.js
16704
- var digest55 = "427eb194c9ee89018e3f9a8543e62857db9123c042a0ff8bd26a2b457436164b";
16722
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-4Me7jn24jR9V/sdk/admin/views/organizations/details/edit/edit.module.css.js
16723
+ var digest55 = "b4e28f9dc84f510f1944460ed99ad97676f6a947b6d5387dcc311153a9aef0b3";
16705
16724
  var css55 = `._drawer-content_1o0os_1 {
16706
16725
  min-width: 500px;
16707
16726
  padding: 0;
@@ -16769,7 +16788,7 @@ import { Controller as Controller7, useForm as useForm9 } from "react-hook-form"
16769
16788
  import { zodResolver as zodResolver9 } from "@hookform/resolvers/zod";
16770
16789
  import { useMutation as useMutation13, createConnectQueryKey as createConnectQueryKey8, useTransport as useTransport9 } from "@connectrpc/connect-query";
16771
16790
  import { useQueryClient as useQueryClient10 } from "@tanstack/react-query";
16772
- import { FrontierServiceQueries as FrontierServiceQueries16, UpdateOrganizationRequestSchema } from "@raystack/proton/frontier";
16791
+ import { FrontierServiceQueries as FrontierServiceQueries17, UpdateOrganizationRequestSchema } from "@raystack/proton/frontier";
16773
16792
  import { create as create16 } from "@bufbuild/protobuf";
16774
16793
  import { Fragment as Fragment21, jsx as jsx91, jsxs as jsxs67 } from "react/jsx-runtime";
16775
16794
  var orgUpdateSchema = external_exports.object({
@@ -16833,11 +16852,11 @@ function EditOrganizationPanel({ onClose }) {
16833
16852
  mutateAsync: updateOrganizationMutation,
16834
16853
  error: mutationError,
16835
16854
  isPending: isSubmitting
16836
- } = useMutation13(FrontierServiceQueries16.updateOrganization, {
16855
+ } = useMutation13(FrontierServiceQueries17.updateOrganization, {
16837
16856
  onSuccess: () => {
16838
16857
  queryClient.invalidateQueries({
16839
16858
  queryKey: createConnectQueryKey8({
16840
- schema: FrontierServiceQueries16.getOrganization,
16859
+ schema: FrontierServiceQueries17.getOrganization,
16841
16860
  transport,
16842
16861
  input: { id: orgId },
16843
16862
  cardinality: "finite"
@@ -17083,8 +17102,8 @@ import {
17083
17102
  toast as toast11
17084
17103
  } from "@raystack/apsara";
17085
17104
 
17086
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-S7Juxh5ugv4v/sdk/admin/views/organizations/details/edit/edit.module.css.js
17087
- var digest56 = "c5c208e22d9b588f1bed8c5c183f334159545a67b1facd6941e063395e5a9d1b";
17105
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-ovNmgxId6WeD/sdk/admin/views/organizations/details/edit/edit.module.css.js
17106
+ var digest56 = "8a0657ccfc1863256e90853732b8246bfe461e07db8cfb69ecfc4c38f6854d1f";
17088
17107
  var css56 = `._drawer-content_1o0os_1 {
17089
17108
  min-width: 500px;
17090
17109
  padding: 0;
@@ -17463,7 +17482,7 @@ var OrganizationDetailsLayout = ({
17463
17482
 
17464
17483
  // admin/views/organizations/details/index.tsx
17465
17484
  import {
17466
- FrontierServiceQueries as FrontierServiceQueries17,
17485
+ FrontierServiceQueries as FrontierServiceQueries18,
17467
17486
  GetBillingAccountRequestSchema,
17468
17487
  GetBillingBalanceRequestSchema,
17469
17488
  GetOrganizationKycResponseSchema
@@ -17491,7 +17510,7 @@ var OrganizationDetailsView = ({
17491
17510
  isLoading: isOrganizationLoading,
17492
17511
  error: organizationError
17493
17512
  } = useQuery16(
17494
- FrontierServiceQueries17.getOrganization,
17513
+ FrontierServiceQueries18.getOrganization,
17495
17514
  { id: organizationId },
17496
17515
  {
17497
17516
  enabled: !!organizationId,
@@ -17499,7 +17518,7 @@ var OrganizationDetailsView = ({
17499
17518
  }
17500
17519
  );
17501
17520
  const getOrganizationQueryKey = [
17502
- FrontierServiceQueries17.getOrganization,
17521
+ FrontierServiceQueries18.getOrganization,
17503
17522
  { id: organizationId }
17504
17523
  ];
17505
17524
  async function updateOrganization(org) {
@@ -17510,7 +17529,7 @@ var OrganizationDetailsView = ({
17510
17529
  isLoading: isKYCLoading,
17511
17530
  error: kycError
17512
17531
  } = useQuery16(
17513
- FrontierServiceQueries17.getOrganizationKyc,
17532
+ FrontierServiceQueries18.getOrganizationKyc,
17514
17533
  { orgId: organizationId || "" },
17515
17534
  {
17516
17535
  enabled: !!organizationId
@@ -17522,7 +17541,7 @@ var OrganizationDetailsView = ({
17522
17541
  return;
17523
17542
  queryClient.setQueryData(
17524
17543
  createConnectQueryKey9({
17525
- schema: FrontierServiceQueries17.getOrganizationKyc,
17544
+ schema: FrontierServiceQueries18.getOrganizationKyc,
17526
17545
  transport,
17527
17546
  input: { orgId: organizationId },
17528
17547
  cardinality: "finite"
@@ -17535,7 +17554,7 @@ var OrganizationDetailsView = ({
17535
17554
  isLoading: isDefaultRolesLoading,
17536
17555
  error: defaultRolesError
17537
17556
  } = useQuery16(
17538
- FrontierServiceQueries17.listRoles,
17557
+ FrontierServiceQueries18.listRoles,
17539
17558
  { scopes: [ORG_NAMESPACE] },
17540
17559
  {
17541
17560
  enabled: !!organizationId,
@@ -17547,7 +17566,7 @@ var OrganizationDetailsView = ({
17547
17566
  isLoading: isOrgRolesLoading,
17548
17567
  error: orgRolesError
17549
17568
  } = useQuery16(
17550
- FrontierServiceQueries17.listOrganizationRoles,
17569
+ FrontierServiceQueries18.listOrganizationRoles,
17551
17570
  { orgId: organizationId || "", scopes: [ORG_NAMESPACE] },
17552
17571
  {
17553
17572
  enabled: !!organizationId,
@@ -17560,7 +17579,7 @@ var OrganizationDetailsView = ({
17560
17579
  isLoading: isOrgMembersMapLoading,
17561
17580
  error: orgMembersError
17562
17581
  } = useQuery16(
17563
- FrontierServiceQueries17.listOrganizationUsers,
17582
+ FrontierServiceQueries18.listOrganizationUsers,
17564
17583
  { id: organizationId || "" },
17565
17584
  {
17566
17585
  enabled: !!organizationId,
@@ -17578,7 +17597,7 @@ var OrganizationDetailsView = ({
17578
17597
  }
17579
17598
  );
17580
17599
  const { data: firstBillingAccountId = "", error: billingAccountsError } = useQuery16(
17581
- FrontierServiceQueries17.listBillingAccounts,
17600
+ FrontierServiceQueries18.listBillingAccounts,
17582
17601
  { orgId: organizationId || "" },
17583
17602
  {
17584
17603
  enabled: !!organizationId,
@@ -17591,7 +17610,7 @@ var OrganizationDetailsView = ({
17591
17610
  error: billingAccountError,
17592
17611
  refetch: fetchBillingAccountDetails
17593
17612
  } = useQuery16(
17594
- FrontierServiceQueries17.getBillingAccount,
17613
+ FrontierServiceQueries18.getBillingAccount,
17595
17614
  create18(GetBillingAccountRequestSchema, {
17596
17615
  id: firstBillingAccountId,
17597
17616
  withBillingDetails: true
@@ -17612,7 +17631,7 @@ var OrganizationDetailsView = ({
17612
17631
  error: tokenBalanceError,
17613
17632
  refetch: fetchTokenBalance
17614
17633
  } = useQuery16(
17615
- FrontierServiceQueries17.getBillingBalance,
17634
+ FrontierServiceQueries18.getBillingBalance,
17616
17635
  create18(GetBillingBalanceRequestSchema, {
17617
17636
  id: firstBillingAccountId
17618
17637
  }),
@@ -17717,8 +17736,8 @@ import {
17717
17736
  toast as toast14
17718
17737
  } from "@raystack/apsara";
17719
17738
 
17720
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-EfHLCou5BXnM/sdk/admin/views/organizations/details/security/security.module.css.js
17721
- var digest57 = "31aec4e32aa8e09d45dcdab0cc0208839a5dda3bf2d7b67fc3d5bc5fd1b7a65f";
17739
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-heVBx1qJ4ccR/sdk/admin/views/organizations/details/security/security.module.css.js
17740
+ var digest57 = "d79dcead313d7e05c2e3cbc7c9c482edf5f91a4146fe74b5c4ea7ce3871ba538";
17722
17741
  var css57 = `._container_1wkae_1 {
17723
17742
  width: 100%;
17724
17743
  }
@@ -17765,7 +17784,7 @@ import { useContext as useContext18 } from "react";
17765
17784
  import { Button as Button23, Dialog as Dialog12, Flex as Flex66, Text as Text47, toast as toast12 } from "@raystack/apsara";
17766
17785
  import { useContext as useContext16, useState as useState26 } from "react";
17767
17786
  import { createConnectQueryKey as createConnectQueryKey10, useMutation as useMutation15, useTransport as useTransport11 } from "@connectrpc/connect-query";
17768
- import { FrontierServiceQueries as FrontierServiceQueries18, DisableOrganizationRequestSchema, EnableOrganizationRequestSchema } from "@raystack/proton/frontier";
17787
+ import { FrontierServiceQueries as FrontierServiceQueries19, DisableOrganizationRequestSchema, EnableOrganizationRequestSchema } from "@raystack/proton/frontier";
17769
17788
  import { create as create19 } from "@bufbuild/protobuf";
17770
17789
  import { useQueryClient as useQueryClient12 } from "@tanstack/react-query";
17771
17790
  import { jsx as jsx95, jsxs as jsxs70 } from "react/jsx-runtime";
@@ -17776,12 +17795,12 @@ var BlockOrganizationDialog = () => {
17776
17795
  const transport = useTransport11();
17777
17796
  const [isDialogOpen, setIsDialogOpen] = useState26(false);
17778
17797
  const { mutateAsync: disableOrganization, isPending: isDisabling } = useMutation15(
17779
- FrontierServiceQueries18.disableOrganization,
17798
+ FrontierServiceQueries19.disableOrganization,
17780
17799
  {
17781
17800
  onSuccess: async () => {
17782
17801
  await queryClient.invalidateQueries({
17783
17802
  queryKey: createConnectQueryKey10({
17784
- schema: FrontierServiceQueries18.getOrganization,
17803
+ schema: FrontierServiceQueries19.getOrganization,
17785
17804
  transport,
17786
17805
  input: { id: organization?.id },
17787
17806
  cardinality: "finite"
@@ -17799,12 +17818,12 @@ var BlockOrganizationDialog = () => {
17799
17818
  }
17800
17819
  );
17801
17820
  const { mutateAsync: enableOrganization, isPending: isEnabling } = useMutation15(
17802
- FrontierServiceQueries18.enableOrganization,
17821
+ FrontierServiceQueries19.enableOrganization,
17803
17822
  {
17804
17823
  onSuccess: async () => {
17805
17824
  await queryClient.invalidateQueries({
17806
17825
  queryKey: createConnectQueryKey10({
17807
- schema: FrontierServiceQueries18.getOrganization,
17826
+ schema: FrontierServiceQueries19.getOrganization,
17808
17827
  transport,
17809
17828
  input: { id: organization?.id },
17810
17829
  cardinality: "finite"
@@ -17918,8 +17937,8 @@ import {
17918
17937
  toast as toast13
17919
17938
  } from "@raystack/apsara";
17920
17939
 
17921
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-BlrPoOS1ykFe/sdk/admin/views/organizations/details/security/security.module.css.js
17922
- var digest58 = "b10af5b6d2a7281863f8fc33039758046d7e6002f8aa9da4fc699224270e6f1a";
17940
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-85rgbCSZ9BqE/sdk/admin/views/organizations/details/security/security.module.css.js
17941
+ var digest58 = "faf96e4d51965270719065a125ca0fe3ec789d33ad49c7373d4b3da2ca7f9a6f";
17923
17942
  var css58 = `._container_1wkae_1 {
17924
17943
  width: 100%;
17925
17944
  }
@@ -17963,7 +17982,7 @@ var security_module_css_default3 = { "container": "_container_1wkae_1", "content
17963
17982
  import { useContext as useContext17, useState as useState27 } from "react";
17964
17983
  import { useMutation as useMutation16, createConnectQueryKey as createConnectQueryKey11, useTransport as useTransport12 } from "@connectrpc/connect-query";
17965
17984
  import { useQueryClient as useQueryClient13 } from "@tanstack/react-query";
17966
- import { FrontierServiceQueries as FrontierServiceQueries19, DeleteOrganizationDomainRequestSchema } from "@raystack/proton/frontier";
17985
+ import { FrontierServiceQueries as FrontierServiceQueries20, DeleteOrganizationDomainRequestSchema } from "@raystack/proton/frontier";
17967
17986
  import { create as create20 } from "@bufbuild/protobuf";
17968
17987
  import { jsx as jsx96, jsxs as jsxs71 } from "react/jsx-runtime";
17969
17988
  var DeleteDomainDialog = ({
@@ -17974,12 +17993,12 @@ var DeleteDomainDialog = ({
17974
17993
  const queryClient = useQueryClient13();
17975
17994
  const transport = useTransport12();
17976
17995
  const { mutateAsync: deleteDomain, isPending } = useMutation16(
17977
- FrontierServiceQueries19.deleteOrganizationDomain,
17996
+ FrontierServiceQueries20.deleteOrganizationDomain,
17978
17997
  {
17979
17998
  onSuccess: () => {
17980
17999
  queryClient.invalidateQueries({
17981
18000
  queryKey: createConnectQueryKey11({
17982
- schema: FrontierServiceQueries19.listOrganizationDomains,
18001
+ schema: FrontierServiceQueries20.listOrganizationDomains,
17983
18002
  transport,
17984
18003
  input: { orgId: organization?.id || "" },
17985
18004
  cardinality: "finite"
@@ -18076,7 +18095,7 @@ var DomainsList = ({
18076
18095
  // admin/views/organizations/details/security/index.tsx
18077
18096
  import { useQuery as useQuery17 } from "@connectrpc/connect-query";
18078
18097
  import {
18079
- FrontierServiceQueries as FrontierServiceQueries20,
18098
+ FrontierServiceQueries as FrontierServiceQueries21,
18080
18099
  ListOrganizationDomainsRequestSchema
18081
18100
  } from "@raystack/proton/frontier";
18082
18101
  import { create as create21 } from "@bufbuild/protobuf";
@@ -18105,7 +18124,7 @@ var AddDomainSection = () => {
18105
18124
  var OrganizationSecurity = () => {
18106
18125
  const { organization } = useContext18(OrganizationContext);
18107
18126
  const { data: domains, isLoading, error } = useQuery17(
18108
- FrontierServiceQueries20.listOrganizationDomains,
18127
+ FrontierServiceQueries21.listOrganizationDomains,
18109
18128
  create21(ListOrganizationDomainsRequestSchema, {
18110
18129
  orgId: organization?.id
18111
18130
  }),
@@ -18143,8 +18162,8 @@ var OrganizationSecurity = () => {
18143
18162
  // admin/views/organizations/details/members/index.tsx
18144
18163
  import { DataTable as DataTable20, EmptyState as EmptyState15, Flex as Flex71 } from "@raystack/apsara";
18145
18164
 
18146
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-s2aPN2e5sn5a/sdk/admin/views/organizations/details/members/members.module.css.js
18147
- var digest59 = "5400efe9a957e0cfcd55ba0a0745a6e59c05b219cde22bcefb45b5f7b34d4e93";
18165
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-YlC4Jypj9uS3/sdk/admin/views/organizations/details/members/members.module.css.js
18166
+ var digest59 = "6af4fcb159d4f0be2399fadb78d65adaf3ef3306a92bc4e1afa54393977b5190";
18148
18167
  var css59 = `._container_6bi1j_1 {
18149
18168
  width: 100%;
18150
18169
  }
@@ -18207,8 +18226,8 @@ import {
18207
18226
  DropdownMenu as DropdownMenu4
18208
18227
  } from "@raystack/apsara";
18209
18228
 
18210
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-Fi6SJwCQLhkH/sdk/admin/views/organizations/details/members/members.module.css.js
18211
- var digest60 = "18b93a3fc40cea6a6d50f333b2c0938c638e5cbe12151c171a4c3b9896a31e9f";
18229
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-JQCe7zYBkQvB/sdk/admin/views/organizations/details/members/members.module.css.js
18230
+ var digest60 = "84992e4dc769bc210577064ea16b19a459cbc62a53823a062ac68d53b024adba";
18212
18231
  var css60 = `._container_6bi1j_1 {
18213
18232
  width: 100%;
18214
18233
  }
@@ -18399,7 +18418,7 @@ import { useQueryClient as useQueryClient14 } from "@tanstack/react-query";
18399
18418
 
18400
18419
  // admin/views/organizations/details/members/remove-member.tsx
18401
18420
  import {
18402
- FrontierServiceQueries as FrontierServiceQueries21,
18421
+ FrontierServiceQueries as FrontierServiceQueries22,
18403
18422
  RemoveOrganizationMemberRequestSchema
18404
18423
  } from "@raystack/proton/frontier";
18405
18424
  import { create as create22 } from "@bufbuild/protobuf";
@@ -18415,7 +18434,7 @@ var RemoveMember = ({
18415
18434
  }) => {
18416
18435
  const t = useTerminology();
18417
18436
  const { mutateAsync: removeOrganizationMember, isPending } = useMutation17(
18418
- FrontierServiceQueries21.removeOrganizationMember
18437
+ FrontierServiceQueries22.removeOrganizationMember
18419
18438
  );
18420
18439
  async function onSubmit() {
18421
18440
  try {
@@ -18745,8 +18764,8 @@ import {
18745
18764
  Flex as Flex79
18746
18765
  } from "@raystack/apsara";
18747
18766
 
18748
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-WGJ6o1xU1W28/sdk/admin/views/organizations/details/projects/projects.module.css.js
18749
- var digest61 = "04908132111ad74dc77465b9d87eab65c8e4e0d1d1be4e80f9d301e4126c7d3f";
18767
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-fQ0yZ00aTfqB/sdk/admin/views/organizations/details/projects/projects.module.css.js
18768
+ var digest61 = "b8ec78d736b5d4f8eaa10dbab36f001eebf21f9820fa4b3b9441b1c031ff6196";
18750
18769
  var css61 = `._container_1rf4u_1 {
18751
18770
  width: 100%;
18752
18771
  }
@@ -18815,8 +18834,8 @@ import {
18815
18834
  DropdownMenu as DropdownMenu5
18816
18835
  } from "@raystack/apsara";
18817
18836
 
18818
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-K9ILLINuAUO1/sdk/admin/views/organizations/details/projects/projects.module.css.js
18819
- var digest62 = "d239beae58cf1409f781ddb5dafca669db05d3169669a7fb7fa2a80befd53667";
18837
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-0UTE8RLDd3oa/sdk/admin/views/organizations/details/projects/projects.module.css.js
18838
+ var digest62 = "d4b8b42e77652a653674192c5d5a055ea08a599a5c8912e86353d067148155cd";
18820
18839
  var css62 = `._container_1rf4u_1 {
18821
18840
  width: 100%;
18822
18841
  }
@@ -18878,7 +18897,7 @@ import dayjs13 from "dayjs";
18878
18897
  // admin/views/organizations/details/projects/rename-project.tsx
18879
18898
  import { Button as Button27, Dialog as Dialog15, Flex as Flex72, InputField as InputField8, toast as toast16 } from "@raystack/apsara";
18880
18899
  import {
18881
- FrontierServiceQueries as FrontierServiceQueries22,
18900
+ FrontierServiceQueries as FrontierServiceQueries23,
18882
18901
  UpdateProjectRequestSchema
18883
18902
  } from "@raystack/proton/frontier";
18884
18903
  import { create as create23 } from "@bufbuild/protobuf";
@@ -18913,7 +18932,7 @@ function RenameProjectDialog({
18913
18932
  resolver: zodResolver11(projectRenameSchema)
18914
18933
  });
18915
18934
  const { mutateAsync: updateProject } = useMutation18(
18916
- FrontierServiceQueries22.updateProject
18935
+ FrontierServiceQueries23.updateProject
18917
18936
  );
18918
18937
  const submit = async (data) => {
18919
18938
  try {
@@ -19001,7 +19020,7 @@ import { useState as useState31 } from "react";
19001
19020
  import { useCallback as useCallback13, useContext as useContext20, useMemo as useMemo12, useState as useState30 } from "react";
19002
19021
  import { toast as toast17 } from "@raystack/apsara";
19003
19022
  import { useQuery as useQuery18, useMutation as useMutation19 } from "@connectrpc/connect-query";
19004
- import { FrontierServiceQueries as FrontierServiceQueries23, ListProjectUsersRequestSchema, ListRolesRequestSchema as ListRolesRequestSchema3, SetProjectMemberRoleRequestSchema } from "@raystack/proton/frontier";
19023
+ import { FrontierServiceQueries as FrontierServiceQueries24, ListProjectUsersRequestSchema, ListRolesRequestSchema as ListRolesRequestSchema3, SetProjectMemberRoleRequestSchema } from "@raystack/proton/frontier";
19005
19024
  import { create as create24 } from "@bufbuild/protobuf";
19006
19025
  function useAddProjectMembers({ projectId }) {
19007
19026
  const t = useTerminology();
@@ -19009,7 +19028,7 @@ function useAddProjectMembers({ projectId }) {
19009
19028
  const { orgMembersMap } = useContext20(OrganizationContext);
19010
19029
  const [searchQuery, setSearchQuery] = useState30("");
19011
19030
  const { data: projectMembers, isLoading, refetch } = useQuery18(
19012
- FrontierServiceQueries23.listProjectUsers,
19031
+ FrontierServiceQueries24.listProjectUsers,
19013
19032
  create24(ListProjectUsersRequestSchema, { id: projectId }),
19014
19033
  {
19015
19034
  enabled: !!projectId,
@@ -19033,7 +19052,7 @@ function useAddProjectMembers({ projectId }) {
19033
19052
  }) : nonMembers;
19034
19053
  }, [nonMembers, searchQuery]);
19035
19054
  const { data: rolesData } = useQuery18(
19036
- FrontierServiceQueries23.listRoles,
19055
+ FrontierServiceQueries24.listRoles,
19037
19056
  create24(ListRolesRequestSchema3, {
19038
19057
  state: "enabled",
19039
19058
  scopes: [SCOPES.PROJECT]
@@ -19045,7 +19064,7 @@ function useAddProjectMembers({ projectId }) {
19045
19064
  [rolesData]
19046
19065
  );
19047
19066
  const { mutateAsync: setProjectMemberRole } = useMutation19(
19048
- FrontierServiceQueries23.setProjectMemberRole
19067
+ FrontierServiceQueries24.setProjectMemberRole
19049
19068
  );
19050
19069
  const addMember = useCallback13(
19051
19070
  async (userId) => {
@@ -19323,7 +19342,7 @@ import { DataTable as DataTable21, Dialog as Dialog18, EmptyState as EmptyState1
19323
19342
  import { useCallback as useCallback14, useMemo as useMemo13, useState as useState33 } from "react";
19324
19343
  import {
19325
19344
  AdminServiceQueries as AdminServiceQueries21,
19326
- FrontierServiceQueries as FrontierServiceQueries26,
19345
+ FrontierServiceQueries as FrontierServiceQueries27,
19327
19346
  GetProjectRequestSchema,
19328
19347
  ListRolesRequestSchema as ListRolesRequestSchema4
19329
19348
  } from "@raystack/proton/frontier";
@@ -19331,8 +19350,8 @@ import { create as create27 } from "@bufbuild/protobuf";
19331
19350
  import { useQuery as useQuery19, useInfiniteQuery as useInfiniteQuery6 } from "@connectrpc/connect-query";
19332
19351
  import { useDebouncedState as useDebouncedState4 } from "@raystack/apsara/hooks";
19333
19352
 
19334
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-0RcuH6UpYjFu/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19335
- var digest63 = "5fc2501b7251406fcf5bbfe031a8f68c588008db3cb7c29f7aca5e7608adc931";
19353
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-a2KZD8T7zTov/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19354
+ var digest63 = "e673248de6e27093b982d741cad29fb326551e68e3fa75b983a9e18784a95aed";
19336
19355
  var css63 = `._flex1_1k2kc_1 {
19337
19356
  flex: 1;
19338
19357
  }
@@ -19424,8 +19443,8 @@ var css63 = `._flex1_1k2kc_1 {
19424
19443
  })();
19425
19444
  var members_module_css_default3 = { "flex1": "_flex1_1k2kc_1", "dialog-content": "_dialog-content_1k2kc_5", "dialogContent": "_dialog-content_1k2kc_5", "dialog-body": "_dialog-body_1k2kc_10", "dialogBody": "_dialog-body_1k2kc_10", "empty-state": "_empty-state_1k2kc_14", "emptyState": "_empty-state_1k2kc_14", "empty-state-subheading": "_empty-state-subheading_1k2kc_18", "emptyStateSubheading": "_empty-state-subheading_1k2kc_18", "table": "_table_1k2kc_23", "table-wrapper": "_table-wrapper_1k2kc_28", "tableWrapper": "_table-wrapper_1k2kc_28", "table-header": "_table-header_1k2kc_34", "tableHeader": "_table-header_1k2kc_34", "table-search": "_table-search_1k2kc_39", "tableSearch": "_table-search_1k2kc_39", "table-content-wrapper": "_table-content-wrapper_1k2kc_43", "tableContentWrapper": "_table-content-wrapper_1k2kc_43", "table-action-column": "_table-action-column_1k2kc_47", "tableActionColumn": "_table-action-column_1k2kc_47", "table-action-dropdown": "_table-action-dropdown_1k2kc_51", "tableActionDropdown": "_table-action-dropdown_1k2kc_51", "action-dialog-overlay": "_action-dialog-overlay_1k2kc_56", "actionDialogOverlay": "_action-dialog-overlay_1k2kc_56", "action-dialog-content": "_action-dialog-content_1k2kc_60", "actionDialogContent": "_action-dialog-content_1k2kc_60", "add-member-dropdown": "_add-member-dropdown_1k2kc_64", "addMemberDropdown": "_add-member-dropdown_1k2kc_64", "add-member-dropdown-member": "_add-member-dropdown-member_1k2kc_69", "addMemberDropdownMember": "_add-member-dropdown-member_1k2kc_69", "add-member-dropdown-member-name": "_add-member-dropdown-member-name_1k2kc_73", "addMemberDropdownMemberName": "_add-member-dropdown-member-name_1k2kc_73" };
19426
19445
 
19427
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-hcYGuCmoZ90A/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19428
- var digest64 = "ebcda439dd3089ddec45efd9fcde5b77df883a11ec187ac2a1a6ef357a052851";
19446
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-eqSITP0OhHM1/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19447
+ var digest64 = "55fc0443c7e28a8f1821217def3334932e0a55c30497fb6cbe3db83db05dacda";
19429
19448
  var css64 = `._flex1_1k2kc_1 {
19430
19449
  flex: 1;
19431
19450
  }
@@ -19633,8 +19652,8 @@ import {
19633
19652
  toast as toast18
19634
19653
  } from "@raystack/apsara";
19635
19654
 
19636
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-nEs3PEIYwLkw/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19637
- var digest65 = "1ce593688598c40174307f681a9e6b961fb5b68d59412ae462389765b5deeaa3";
19655
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-YWoUlaArI6Vr/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19656
+ var digest65 = "bdb0913ee372f3d3df0e3bc5fd3eb421cb94a66d817a76146f99ae66c9e05a8a";
19638
19657
  var css65 = `._flex1_1k2kc_1 {
19639
19658
  flex: 1;
19640
19659
  }
@@ -19728,7 +19747,7 @@ var members_module_css_default5 = { "flex1": "_flex1_1k2kc_1", "dialog-content":
19728
19747
 
19729
19748
  // admin/views/organizations/details/projects/members/assign-role.tsx
19730
19749
  import {
19731
- FrontierServiceQueries as FrontierServiceQueries24,
19750
+ FrontierServiceQueries as FrontierServiceQueries25,
19732
19751
  SetProjectMemberRoleRequestSchema as SetProjectMemberRoleRequestSchema2
19733
19752
  } from "@raystack/proton/frontier";
19734
19753
  import { create as create25 } from "@bufbuild/protobuf";
@@ -19759,7 +19778,7 @@ var AssignRole2 = ({
19759
19778
  resolver: zodResolver12(formSchema2)
19760
19779
  });
19761
19780
  const { mutateAsync: setProjectMemberRole } = useMutation20(
19762
- FrontierServiceQueries24.setProjectMemberRole
19781
+ FrontierServiceQueries25.setProjectMemberRole
19763
19782
  );
19764
19783
  const selectedRoleId = watch("roleId");
19765
19784
  const onSubmit = async (data) => {
@@ -19852,14 +19871,14 @@ var AssignRole2 = ({
19852
19871
  // admin/views/organizations/details/projects/members/remove-member.tsx
19853
19872
  import { useState as useState32 } from "react";
19854
19873
  import {
19855
- FrontierServiceQueries as FrontierServiceQueries25,
19874
+ FrontierServiceQueries as FrontierServiceQueries26,
19856
19875
  RemoveProjectMemberRequestSchema
19857
19876
  } from "@raystack/proton/frontier";
19858
19877
  import { create as create26 } from "@bufbuild/protobuf";
19859
19878
  import { useMutation as useMutation21 } from "@connectrpc/connect-query";
19860
19879
 
19861
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-sQhO5Cq6Agp4/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19862
- var digest66 = "57de9ab15aa3235c9cbdc9bef9adb6f7a0bbabf232f47da4a8b675d573082759";
19880
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-p1wzDsweP2Gg/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19881
+ var digest66 = "f1e76077a78d6cf7ff0d3bba8680eaab3b9f5a2982e55212947e0a8e6ad5fd46";
19863
19882
  var css66 = `._flex1_1k2kc_1 {
19864
19883
  flex: 1;
19865
19884
  }
@@ -19963,7 +19982,7 @@ var RemoveMember2 = ({
19963
19982
  const t = useTerminology();
19964
19983
  const [isSubmitting, setIsSubmitting] = useState32(false);
19965
19984
  const { mutateAsync: removeProjectMember } = useMutation21(
19966
- FrontierServiceQueries25.removeProjectMember
19985
+ FrontierServiceQueries26.removeProjectMember
19967
19986
  );
19968
19987
  async function onSubmit() {
19969
19988
  try {
@@ -20056,8 +20075,8 @@ import {
20056
20075
  Text as Text56
20057
20076
  } from "@raystack/apsara";
20058
20077
 
20059
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-UJxANa1Z8Cfq/sdk/admin/views/organizations/details/projects/members/members.module.css.js
20060
- var digest67 = "6e19481f68a5c40e10a9bc235d1ce2b8cd865f1df2b4a3392a736730697a6f57";
20078
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-73FSSBH1x0kM/sdk/admin/views/organizations/details/projects/members/members.module.css.js
20079
+ var digest67 = "583066fa3684c26fdba9000513bd28436cb7e62c89abc78e0e02eb4a3066ac60";
20061
20080
  var css67 = `._flex1_1k2kc_1 {
20062
20081
  flex: 1;
20063
20082
  }
@@ -20242,7 +20261,7 @@ var ProjectMembersDialog = ({
20242
20261
  const [assignRoleConfig, setAssignRoleConfig] = useState33({ isOpen: false, user: null });
20243
20262
  const [removeMemberConfig, setRemoveMemberConfig] = useState33({ isOpen: false, user: null });
20244
20263
  const { data: project, isLoading: isProjectLoading, error: projectError } = useQuery19(
20245
- FrontierServiceQueries26.getProject,
20264
+ FrontierServiceQueries27.getProject,
20246
20265
  create27(GetProjectRequestSchema, { id: projectId }),
20247
20266
  {
20248
20267
  enabled: !!projectId,
@@ -20250,7 +20269,7 @@ var ProjectMembersDialog = ({
20250
20269
  }
20251
20270
  );
20252
20271
  const { data: projectRoles = [], isLoading: isProjectRolesLoading, error: rolesError } = useQuery19(
20253
- FrontierServiceQueries26.listRoles,
20272
+ FrontierServiceQueries27.listRoles,
20254
20273
  create27(ListRolesRequestSchema4, { scopes: [PROJECT_NAMESPACE] }),
20255
20274
  {
20256
20275
  select: (data2) => data2?.roles || []
@@ -20591,8 +20610,8 @@ function OrganizationProjectsView() {
20591
20610
  // admin/views/organizations/details/invoices/index.tsx
20592
20611
  import { DataTable as DataTable23, EmptyState as EmptyState18, Flex as Flex80 } from "@raystack/apsara";
20593
20612
 
20594
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-NqakbjYYCA9u/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20595
- var digest68 = "546ebee7fce7fe5e8697d71bdfa0255e0686cc3ebbad64555162185d842bfb3b";
20613
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-Bwd9fCyYw3Cj/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20614
+ var digest68 = "fbd24b72484abc7fa6464ea386ae5db0adf298855e4aa5daa615d167a53cf33e";
20596
20615
  var css68 = `._empty-state_ct7gw_1 {
20597
20616
  height: 100%;
20598
20617
  }
@@ -20638,8 +20657,8 @@ var invoices_module_css_default3 = { "empty-state": "_empty-state_ct7gw_1", "emp
20638
20657
  // admin/views/organizations/details/invoices/index.tsx
20639
20658
  import { useContext as useContext22, useEffect as useEffect17, useMemo as useMemo15, useState as useState35 } from "react";
20640
20659
 
20641
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-HnzEZ8gFv8oO/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20642
- var digest69 = "e2ae9fd8be0f02b968f54d1add8a3c9c7edc821223f7087719ce83e7a961302d";
20660
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-efgCmQOeDXlc/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20661
+ var digest69 = "2527a52ac9549515c2674cc322e2a2e2fadfbb60d308cc8f9640b5d4738b3fd3";
20643
20662
  var css69 = `._empty-state_ct7gw_1 {
20644
20663
  height: 100%;
20645
20664
  }
@@ -20754,7 +20773,7 @@ var getColumns15 = ({
20754
20773
  ];
20755
20774
 
20756
20775
  // admin/views/organizations/details/invoices/index.tsx
20757
- import { FrontierServiceQueries as FrontierServiceQueries27 } from "@raystack/proton/frontier";
20776
+ import { FrontierServiceQueries as FrontierServiceQueries28 } from "@raystack/proton/frontier";
20758
20777
  import { useInfiniteQuery as useInfiniteQuery8 } from "@connectrpc/connect-query";
20759
20778
  import { jsx as jsx110, jsxs as jsxs84 } from "react/jsx-runtime";
20760
20779
  var DEFAULT_SORT7 = { name: "createdAt", order: "desc" };
@@ -20830,7 +20849,7 @@ function OrganizationInvoicesView() {
20830
20849
  hasNextPage,
20831
20850
  isError
20832
20851
  } = useInfiniteQuery8(
20833
- FrontierServiceQueries27.searchOrganizationInvoices,
20852
+ FrontierServiceQueries28.searchOrganizationInvoices,
20834
20853
  { id: organizationId, query },
20835
20854
  {
20836
20855
  enabled: !!organizationId,
@@ -20900,8 +20919,8 @@ function OrganizationInvoicesView() {
20900
20919
  // admin/views/organizations/details/tokens/index.tsx
20901
20920
  import { DataTable as DataTable24, EmptyState as EmptyState19, Flex as Flex82 } from "@raystack/apsara";
20902
20921
 
20903
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-RVbQ9IZd4TIm/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
20904
- var digest70 = "72bdc2373788f59a13a11e8102d54175ddeca7a788a03e9bad644543cc7b6649";
20922
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-DKpKXnmcfqdB/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
20923
+ var digest70 = "1292dc2becd931015a945f082c61446ca2bc8a5f2319bfe063dbdce002e35c08";
20905
20924
  var css70 = `._empty-state_1mf09_1 {
20906
20925
  height: 100%;
20907
20926
  }
@@ -20958,11 +20977,11 @@ var tokens_module_css_default = { "empty-state": "_empty-state_1mf09_1", "emptyS
20958
20977
  // admin/views/organizations/details/tokens/index.tsx
20959
20978
  import { CoinIcon } from "@raystack/apsara/icons";
20960
20979
  import { useContext as useContext23, useEffect as useEffect18, useMemo as useMemo16, useState as useState36 } from "react";
20961
- import { AdminServiceQueries as AdminServiceQueries23 } from "@raystack/proton/frontier";
20980
+ import { FrontierServiceQueries as FrontierServiceQueries29 } from "@raystack/proton/frontier";
20962
20981
  import { useInfiniteQuery as useInfiniteQuery9 } from "@connectrpc/connect-query";
20963
20982
 
20964
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-9Lzq2AaOdgjQ/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
20965
- var digest71 = "46d34845fccc926f004477be73f08f5f2e7e4ba2ce7378446ce6aa4f9c965de9";
20983
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-t3c1NzCbiYM6/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
20984
+ var digest71 = "0fc62760071a917cdcf3755c98a8920d796112d78ce816748612d8ba254e887b";
20966
20985
  var css71 = `._empty-state_1mf09_1 {
20967
20986
  height: 100%;
20968
20987
  }
@@ -21168,7 +21187,7 @@ function OrganizationTokensView() {
21168
21187
  hasNextPage,
21169
21188
  isError
21170
21189
  } = useInfiniteQuery9(
21171
- AdminServiceQueries23.searchOrganizationTokens,
21190
+ FrontierServiceQueries29.searchOrganizationTokens,
21172
21191
  { id: organizationId, query },
21173
21192
  {
21174
21193
  enabled: !!organizationId,
@@ -21237,8 +21256,8 @@ function OrganizationTokensView() {
21237
21256
  // admin/views/organizations/details/apis/index.tsx
21238
21257
  import { DataTable as DataTable25, EmptyState as EmptyState20, Flex as Flex84 } from "@raystack/apsara";
21239
21258
 
21240
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-X0TUz7nSlF8N/sdk/admin/views/organizations/details/apis/apis.module.css.js
21241
- var digest72 = "d0d0f1b953f3ac55876b3f8f42a2386bf83ebac2fc3930f46d299690a132dc34";
21259
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-JMY2CWc0qExD/sdk/admin/views/organizations/details/apis/apis.module.css.js
21260
+ var digest72 = "baa1fac436c58853a83dd8cab55daf12b2e5f46909f6942eacb3a53f4f4f5e1c";
21242
21261
  var css72 = `._empty-state_r9k2f_1 {
21243
21262
  height: 100%;
21244
21263
  }
@@ -21323,8 +21342,8 @@ import { useCallback as useCallback16, useContext as useContext24, useEffect as
21323
21342
  import { Text as Text58 } from "@raystack/apsara";
21324
21343
  import dayjs16 from "dayjs";
21325
21344
 
21326
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-zF3gSd3Qqy03/sdk/admin/views/organizations/details/apis/apis.module.css.js
21327
- var digest73 = "dc48eabf0287876f28cc4a12e697b823ca19661c77309c346524a4a042c886ac";
21345
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-FhTsbSkdDc1l/sdk/admin/views/organizations/details/apis/apis.module.css.js
21346
+ var digest73 = "b27c01b34edd0cc9beff4ad2bd43449015cc96b69fa9413c8d4f4e31efc4f940";
21328
21347
  var css73 = `._empty-state_r9k2f_1 {
21329
21348
  height: 100%;
21330
21349
  }
@@ -21448,8 +21467,8 @@ function getColumns17(options) {
21448
21467
  // admin/views/organizations/details/apis/details-dialog.tsx
21449
21468
  import { Dialog as Dialog19, Flex as Flex83, Skeleton as Skeleton4, Tabs, Text as Text59, toast as toast20 } from "@raystack/apsara";
21450
21469
 
21451
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2338-lR0kGJ6h3Q3B/sdk/admin/views/organizations/details/apis/apis.module.css.js
21452
- var digest74 = "f3da688bdcb2ed2fea043d3061187fd95f3cbc9726b4b8b994488bb3c7bb120a";
21470
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-UAcyL7BKCkkf/sdk/admin/views/organizations/details/apis/apis.module.css.js
21471
+ var digest74 = "f2837f845dd781618eda14ab56dd6ccac5e8087da75f0d09b61eb0f5275ac608";
21453
21472
  var css74 = `._empty-state_r9k2f_1 {
21454
21473
  height: 100%;
21455
21474
  }
@@ -21531,7 +21550,7 @@ var apis_module_css_default3 = { "empty-state": "_empty-state_r9k2f_1", "emptySt
21531
21550
  import { useCallback as useCallback15, useEffect as useEffect19, useMemo as useMemo17 } from "react";
21532
21551
  import { useQuery as useQuery20 } from "@connectrpc/connect-query";
21533
21552
  import {
21534
- FrontierServiceQueries as FrontierServiceQueries28,
21553
+ FrontierServiceQueries as FrontierServiceQueries30,
21535
21554
  ListServiceUserProjectsRequestSchema,
21536
21555
  ListServiceUserTokensRequestSchema
21537
21556
  } from "@raystack/proton/frontier";
@@ -21561,7 +21580,7 @@ var ServiceUserDetailsDialog = ({
21561
21580
  data: projects = [],
21562
21581
  isLoading: isProjectLoading,
21563
21582
  error: projectError
21564
- } = useQuery20(FrontierServiceQueries28.listServiceUserProjects, projectsRequest, {
21583
+ } = useQuery20(FrontierServiceQueries30.listServiceUserProjects, projectsRequest, {
21565
21584
  enabled: !!orgId && !!id,
21566
21585
  select: (data) => data?.projects || []
21567
21586
  });
@@ -21569,7 +21588,7 @@ var ServiceUserDetailsDialog = ({
21569
21588
  data: tokens = [],
21570
21589
  isLoading: isTokenLoading,
21571
21590
  error: tokenError
21572
- } = useQuery20(FrontierServiceQueries28.listServiceUserTokens, tokensRequest, {
21591
+ } = useQuery20(FrontierServiceQueries30.listServiceUserTokens, tokensRequest, {
21573
21592
  enabled: !!orgId && !!id,
21574
21593
  select: (data) => data?.tokens || []
21575
21594
  });
@@ -21657,7 +21676,7 @@ var ServiceUserDetailsDialog = ({
21657
21676
  // admin/views/organizations/details/apis/index.tsx
21658
21677
  import { useInfiniteQuery as useInfiniteQuery10 } from "@connectrpc/connect-query";
21659
21678
  import {
21660
- AdminServiceQueries as AdminServiceQueries24
21679
+ AdminServiceQueries as AdminServiceQueries23
21661
21680
  } from "@raystack/proton/frontier";
21662
21681
  import { jsx as jsx115, jsxs as jsxs88 } from "react/jsx-runtime";
21663
21682
  var NoCredentials = () => {
@@ -21736,7 +21755,7 @@ function OrganizationApisView() {
21736
21755
  isError,
21737
21756
  hasNextPage
21738
21757
  } = useInfiniteQuery10(
21739
- AdminServiceQueries24.searchOrganizationServiceUsers,
21758
+ AdminServiceQueries23.searchOrganizationServiceUsers,
21740
21759
  { id: organizationId, query },
21741
21760
  {
21742
21761
  pageParamKey: "query",
@@ -21824,6 +21843,657 @@ function OrganizationApisView() {
21824
21843
  )
21825
21844
  ] });
21826
21845
  }
21846
+
21847
+ // admin/views/organizations/details/pat/index.tsx
21848
+ import { DataTable as DataTable26, EmptyState as EmptyState21, Flex as Flex87 } from "@raystack/apsara";
21849
+ import { useCallback as useCallback17, useContext as useContext25, useEffect as useEffect21, useMemo as useMemo20, useState as useState38 } from "react";
21850
+ import { useInfiniteQuery as useInfiniteQuery11, useQuery as useQuery22 } from "@connectrpc/connect-query";
21851
+ import {
21852
+ AdminServiceQueries as AdminServiceQueries24,
21853
+ FrontierServiceQueries as FrontierServiceQueries32
21854
+ } from "@raystack/proton/frontier";
21855
+
21856
+ // admin/views/organizations/details/pat/columns.tsx
21857
+ import {
21858
+ Avatar as Avatar15,
21859
+ Flex as Flex85,
21860
+ getAvatarColor as getAvatarColor13,
21861
+ Text as Text60
21862
+ } from "@raystack/apsara";
21863
+ import dayjs17 from "dayjs";
21864
+ import relativeTime2 from "dayjs/plugin/relativeTime";
21865
+
21866
+ // utils/index.ts
21867
+ var getInitials = function(name = "") {
21868
+ var names = name.split(" "), initials = names[0].substring(0, 1).toUpperCase();
21869
+ if (names.length > 1) {
21870
+ initials += names[names.length - 1].substring(0, 1).toUpperCase();
21871
+ }
21872
+ return initials;
21873
+ };
21874
+
21875
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-KGhJ9oIhItCv/sdk/admin/views/organizations/details/pat/pat.module.css.js
21876
+ var digest75 = "2d05933949ee269e8ec2abf7b4c24b6a607860941c0d7b2e9eb4492cf3ab4e71";
21877
+ var css75 = `._empty-state_hnhtj_1 {
21878
+ height: 100%;
21879
+ }
21880
+
21881
+ ._zero-state-container_hnhtj_5 {
21882
+ padding: var(--rs-space-10);
21883
+ }
21884
+
21885
+ ._empty-state-subheading_hnhtj_9 {
21886
+ max-width: 360px;
21887
+ text-wrap: auto;
21888
+ }
21889
+
21890
+ ._table_hnhtj_14 {
21891
+ width: 100%;
21892
+ table-layout: fixed;
21893
+ }
21894
+
21895
+ ._table-wrapper_hnhtj_19 {
21896
+ /* Navbar Height + Toolbar height */
21897
+ max-height: calc(100vh - 90px);
21898
+ overflow: scroll;
21899
+ }
21900
+
21901
+ ._table-header_hnhtj_25 {
21902
+ z-index: 2;
21903
+ }
21904
+
21905
+ ._first-column_hnhtj_29 {
21906
+ padding-left: var(--rs-space-7);
21907
+ }
21908
+
21909
+ ._truncate-cell_hnhtj_33 > * {
21910
+ width: 100%;
21911
+ min-width: 0;
21912
+ }
21913
+
21914
+ ._truncate-text_hnhtj_38 {
21915
+ display: block;
21916
+ overflow: hidden;
21917
+ text-overflow: ellipsis;
21918
+ white-space: nowrap;
21919
+ }
21920
+ `;
21921
+ (function() {
21922
+ if (typeof document === "undefined") {
21923
+ return;
21924
+ }
21925
+ if (!document.getElementById(digest75)) {
21926
+ var el = document.createElement("style");
21927
+ el.id = digest75;
21928
+ el.textContent = css75;
21929
+ document.head.appendChild(el);
21930
+ }
21931
+ })();
21932
+ var pat_module_css_default = { "empty-state": "_empty-state_hnhtj_1", "emptyState": "_empty-state_hnhtj_1", "zero-state-container": "_zero-state-container_hnhtj_5", "zeroStateContainer": "_zero-state-container_hnhtj_5", "empty-state-subheading": "_empty-state-subheading_hnhtj_9", "emptyStateSubheading": "_empty-state-subheading_hnhtj_9", "table": "_table_hnhtj_14", "table-wrapper": "_table-wrapper_hnhtj_19", "tableWrapper": "_table-wrapper_hnhtj_19", "table-header": "_table-header_hnhtj_25", "tableHeader": "_table-header_hnhtj_25", "first-column": "_first-column_hnhtj_29", "firstColumn": "_first-column_hnhtj_29", "truncate-cell": "_truncate-cell_hnhtj_33", "truncateCell": "_truncate-cell_hnhtj_33", "truncate-text": "_truncate-text_hnhtj_38", "truncateText": "_truncate-text_hnhtj_38" };
21933
+
21934
+ // admin/views/organizations/details/pat/columns.tsx
21935
+ import { jsx as jsx116, jsxs as jsxs89 } from "react/jsx-runtime";
21936
+ dayjs17.extend(relativeTime2);
21937
+ var DATE_FORMAT = "DD MMM YYYY";
21938
+ function getColumns18({
21939
+ projectsMap
21940
+ }) {
21941
+ return [
21942
+ {
21943
+ accessorKey: "title",
21944
+ header: "Title",
21945
+ classNames: {
21946
+ cell: pat_module_css_default["first-column"],
21947
+ header: pat_module_css_default["first-column"]
21948
+ },
21949
+ cell: ({ getValue }) => {
21950
+ const value = getValue() || "";
21951
+ return /* @__PURE__ */ jsx116(Text60, { className: pat_module_css_default["truncate-text"], children: value });
21952
+ },
21953
+ enableSorting: true,
21954
+ enableColumnFilter: true
21955
+ },
21956
+ {
21957
+ accessorKey: "scopes",
21958
+ header: "Project",
21959
+ classNames: { cell: pat_module_css_default["truncate-cell"] },
21960
+ enableSorting: false,
21961
+ cell: ({ row }) => {
21962
+ const projectScope = row.original.scopes?.find(
21963
+ (scope) => scope.resourceType === SCOPES.PROJECT
21964
+ );
21965
+ const resourceIds = projectScope?.resourceIds ?? [];
21966
+ if (resourceIds.length === 0) {
21967
+ return /* @__PURE__ */ jsx116(Text60, { className: pat_module_css_default["truncate-text"], children: "-" });
21968
+ }
21969
+ const projectNamesText = resourceIds.map(
21970
+ (id) => projectsMap[id]?.title || projectsMap[id]?.name || id
21971
+ ).join(", ");
21972
+ return /* @__PURE__ */ jsx116(Text60, { className: pat_module_css_default["truncate-text"], children: projectNamesText });
21973
+ }
21974
+ },
21975
+ {
21976
+ accessorKey: "createdBy",
21977
+ header: "Created By",
21978
+ enableSorting: false,
21979
+ enableColumnFilter: true,
21980
+ enableHiding: true,
21981
+ cell: ({ row }) => {
21982
+ const createdBy = row.original.createdBy;
21983
+ const userId = createdBy?.id || "";
21984
+ const title = createdBy?.title || createdBy?.email || userId || "-";
21985
+ const avatarColor = getAvatarColor13(userId);
21986
+ return /* @__PURE__ */ jsxs89(Flex85, { gap: 4, align: "center", children: [
21987
+ /* @__PURE__ */ jsx116(Avatar15, { fallback: getInitials(title), color: avatarColor }),
21988
+ /* @__PURE__ */ jsx116(Text60, { className: pat_module_css_default["truncate-text"], children: title })
21989
+ ] });
21990
+ }
21991
+ },
21992
+ {
21993
+ accessorKey: "createdAt",
21994
+ header: "Created On",
21995
+ styles: { header: { width: "152px" } },
21996
+ cell: ({ row }) => {
21997
+ const date = timestampToDayjs(row.original.createdAt);
21998
+ return date ? /* @__PURE__ */ jsx116(Text60, { children: date.format(DATE_FORMAT) }) : /* @__PURE__ */ jsx116(Text60, { children: "-" });
21999
+ },
22000
+ enableSorting: true,
22001
+ enableColumnFilter: true,
22002
+ filterType: "date",
22003
+ enableHiding: true
22004
+ },
22005
+ {
22006
+ accessorKey: "expiresAt",
22007
+ header: "Expiry Date",
22008
+ styles: { header: { width: "152px" } },
22009
+ cell: ({ row }) => {
22010
+ const expiresAt = row.original.expiresAt;
22011
+ if (!expiresAt || isNullTimestamp(expiresAt))
22012
+ return /* @__PURE__ */ jsx116(Text60, { children: "-" });
22013
+ const date = timestampToDayjs(expiresAt);
22014
+ return date ? /* @__PURE__ */ jsx116(Text60, { children: date.format(DATE_FORMAT) }) : /* @__PURE__ */ jsx116(Text60, { children: "-" });
22015
+ },
22016
+ enableSorting: true,
22017
+ enableColumnFilter: true,
22018
+ filterType: "date",
22019
+ enableHiding: true
22020
+ },
22021
+ {
22022
+ accessorKey: "usedAt",
22023
+ header: "Last used",
22024
+ styles: { header: { width: "152px" } },
22025
+ enableSorting: false,
22026
+ enableColumnFilter: true,
22027
+ filterType: "date",
22028
+ enableHiding: true,
22029
+ cell: ({ row }) => {
22030
+ const usedAt = row.original.usedAt;
22031
+ if (!usedAt || isNullTimestamp(usedAt))
22032
+ return /* @__PURE__ */ jsx116(Text60, { children: "-" });
22033
+ const date = timestampToDayjs(usedAt);
22034
+ return date ? /* @__PURE__ */ jsx116(Text60, { children: date.fromNow() }) : /* @__PURE__ */ jsx116(Text60, { children: "-" });
22035
+ }
22036
+ }
22037
+ ];
22038
+ }
22039
+
22040
+ // admin/views/organizations/details/pat/components/pat-details-dialog.tsx
22041
+ import { useMemo as useMemo19 } from "react";
22042
+ import {
22043
+ Dialog as Dialog20,
22044
+ Flex as Flex86,
22045
+ Skeleton as Skeleton5,
22046
+ Tabs as Tabs2,
22047
+ Text as Text61
22048
+ } from "@raystack/apsara";
22049
+ import { useQuery as useQuery21 } from "@connectrpc/connect-query";
22050
+ import {
22051
+ FrontierServiceQueries as FrontierServiceQueries31
22052
+ } from "@raystack/proton/frontier";
22053
+
22054
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-hZLXfwFYLuTH/sdk/admin/views/organizations/details/pat/components/pat-details-dialog.module.css.js
22055
+ var digest76 = "e4ef2f7c1bd0b2b880fd4709325baf24b8ca8b989e114b3559b1b8fd549f2d17";
22056
+ var css76 = `._details-dialog_1dwlo_1 {
22057
+ width: 100%;
22058
+ max-width: 400px;
22059
+ height: 500px;
22060
+ display: flex;
22061
+ flex-direction: column;
22062
+ }
22063
+
22064
+ ._dialog-body_1dwlo_9 {
22065
+ flex: 1;
22066
+ overflow: hidden;
22067
+ }
22068
+
22069
+ ._tab-root_1dwlo_14 {
22070
+ gap: var(--rs-space-2);
22071
+ height: 100%;
22072
+ display: flex;
22073
+ flex-direction: column;
22074
+ }
22075
+
22076
+ ._tab-content_1dwlo_21 {
22077
+ flex: 1;
22078
+ min-height: 0;
22079
+ overflow: auto;
22080
+ }
22081
+
22082
+ ._list-item_1dwlo_27 {
22083
+ padding: var(--rs-space-5) 0;
22084
+ border-bottom: 0.5px solid var(--rs-color-border-base-primary);
22085
+ }
22086
+
22087
+ ._list-item_1dwlo_27:last-child {
22088
+ border-bottom: none;
22089
+ }
22090
+
22091
+ ._list-item-text_1dwlo_36 {
22092
+ display: block;
22093
+ overflow: hidden;
22094
+ text-overflow: ellipsis;
22095
+ white-space: nowrap;
22096
+ }
22097
+
22098
+ ._skeleton_1dwlo_43 {
22099
+ flex: 1;
22100
+ padding: var(--rs-space-5) 0;
22101
+ }
22102
+
22103
+ ._empty-state_1dwlo_48 {
22104
+ height: 200px;
22105
+ }
22106
+ `;
22107
+ (function() {
22108
+ if (typeof document === "undefined") {
22109
+ return;
22110
+ }
22111
+ if (!document.getElementById(digest76)) {
22112
+ var el = document.createElement("style");
22113
+ el.id = digest76;
22114
+ el.textContent = css76;
22115
+ document.head.appendChild(el);
22116
+ }
22117
+ })();
22118
+ var pat_details_dialog_module_css_default = { "details-dialog": "_details-dialog_1dwlo_1", "detailsDialog": "_details-dialog_1dwlo_1", "dialog-body": "_dialog-body_1dwlo_9", "dialogBody": "_dialog-body_1dwlo_9", "tab-root": "_tab-root_1dwlo_14", "tabRoot": "_tab-root_1dwlo_14", "tab-content": "_tab-content_1dwlo_21", "tabContent": "_tab-content_1dwlo_21", "list-item": "_list-item_1dwlo_27", "listItem": "_list-item_1dwlo_27", "list-item-text": "_list-item-text_1dwlo_36", "listItemText": "_list-item-text_1dwlo_36", "skeleton": "_skeleton_1dwlo_43", "empty-state": "_empty-state_1dwlo_48", "emptyState": "_empty-state_1dwlo_48" };
22119
+
22120
+ // admin/views/organizations/details/pat/components/pat-details-dialog.tsx
22121
+ import { jsx as jsx117, jsxs as jsxs90 } from "react/jsx-runtime";
22122
+ function PatDetailsDialog({
22123
+ pat,
22124
+ projectsMap,
22125
+ onClose
22126
+ }) {
22127
+ const t = useTerminology();
22128
+ const open = pat !== null;
22129
+ const projectScope = useMemo19(
22130
+ () => pat?.scopes?.find((s) => s.resourceType === SCOPES.PROJECT),
22131
+ [pat]
22132
+ );
22133
+ const orgScope = useMemo19(
22134
+ () => pat?.scopes?.find((s) => s.resourceType === SCOPES.ORG),
22135
+ [pat]
22136
+ );
22137
+ const scopeProjectIds = useMemo19(() => projectScope?.resourceIds ?? [], [projectScope]);
22138
+ const scopeProjects = useMemo19(
22139
+ () => scopeProjectIds.map((id) => projectsMap[id]).filter((p) => Boolean(p)),
22140
+ [scopeProjectIds, projectsMap]
22141
+ );
22142
+ const { data: rolesData, isLoading: isRolesLoading } = useQuery21(
22143
+ FrontierServiceQueries31.listRolesForPAT,
22144
+ { scopes: [SCOPES.ORG, SCOPES.PROJECT] },
22145
+ { enabled: open }
22146
+ );
22147
+ const rolesMap = useMemo19(() => {
22148
+ const map = {};
22149
+ (rolesData?.roles ?? []).forEach((role) => {
22150
+ if (role.id)
22151
+ map[role.id] = role;
22152
+ });
22153
+ return map;
22154
+ }, [rolesData]);
22155
+ const orgRole = orgScope?.roleId ? rolesMap[orgScope.roleId] : void 0;
22156
+ const projectRole = projectScope?.roleId ? rolesMap[projectScope.roleId] : void 0;
22157
+ const projectCount = scopeProjects.length;
22158
+ const roleEntries = [
22159
+ ...orgScope ? [
22160
+ {
22161
+ id: `org-${orgScope.roleId}`,
22162
+ roleTitle: orgRole?.title || orgRole?.name || orgScope.roleId,
22163
+ scopeLabel: t.organization({ case: "capital" })
22164
+ }
22165
+ ] : [],
22166
+ ...projectScope ? [
22167
+ {
22168
+ id: `project-${projectScope.roleId}`,
22169
+ roleTitle: projectRole?.title || projectRole?.name || projectScope.roleId,
22170
+ scopeLabel: t.project({ plural: true, case: "capital" })
22171
+ }
22172
+ ] : []
22173
+ ];
22174
+ const onOpenChange = (val) => {
22175
+ if (!val)
22176
+ onClose();
22177
+ };
22178
+ return /* @__PURE__ */ jsx117(Dialog20, { open, onOpenChange, children: /* @__PURE__ */ jsxs90(Dialog20.Content, { className: pat_details_dialog_module_css_default["details-dialog"], children: [
22179
+ /* @__PURE__ */ jsxs90(Dialog20.Header, { children: [
22180
+ /* @__PURE__ */ jsx117(Dialog20.Title, { children: pat?.title || "" }),
22181
+ /* @__PURE__ */ jsx117(Dialog20.CloseButton, { "data-test-id": "frontier-sdk-pat-details-dialog-close-btn" })
22182
+ ] }),
22183
+ /* @__PURE__ */ jsx117(Dialog20.Body, { className: pat_details_dialog_module_css_default["dialog-body"], children: /* @__PURE__ */ jsxs90(Tabs2, { defaultValue: "projects", className: pat_details_dialog_module_css_default["tab-root"], children: [
22184
+ /* @__PURE__ */ jsxs90(Tabs2.List, { children: [
22185
+ /* @__PURE__ */ jsxs90(Tabs2.Trigger, { value: "projects", children: [
22186
+ t.project({ plural: true, case: "capital" }),
22187
+ " (",
22188
+ projectCount,
22189
+ ")"
22190
+ ] }),
22191
+ /* @__PURE__ */ jsxs90(Tabs2.Trigger, { value: "roles", children: [
22192
+ "Roles (",
22193
+ roleEntries.length,
22194
+ ")"
22195
+ ] })
22196
+ ] }),
22197
+ /* @__PURE__ */ jsx117(Tabs2.Content, { value: "projects", className: pat_details_dialog_module_css_default["tab-content"], children: scopeProjects.length === 0 ? null : /* @__PURE__ */ jsx117(Flex86, { direction: "column", children: scopeProjects.map((project) => /* @__PURE__ */ jsx117("div", { className: pat_details_dialog_module_css_default["list-item"], children: /* @__PURE__ */ jsx117(
22198
+ Text61,
22199
+ {
22200
+ size: "small",
22201
+ weight: "medium",
22202
+ className: pat_details_dialog_module_css_default["list-item-text"],
22203
+ children: project.title || project.name
22204
+ }
22205
+ ) }, project.id)) }) }),
22206
+ /* @__PURE__ */ jsx117(Tabs2.Content, { value: "roles", className: pat_details_dialog_module_css_default["tab-content"], children: isRolesLoading ? /* @__PURE__ */ jsx117(
22207
+ Skeleton5,
22208
+ {
22209
+ containerClassName: pat_details_dialog_module_css_default["skeleton"],
22210
+ height: 20,
22211
+ count: 4
22212
+ }
22213
+ ) : roleEntries.length === 0 ? null : /* @__PURE__ */ jsx117(Flex86, { direction: "column", children: roleEntries.map((entry) => /* @__PURE__ */ jsxs90(
22214
+ Flex86,
22215
+ {
22216
+ direction: "column",
22217
+ gap: 2,
22218
+ className: pat_details_dialog_module_css_default["list-item"],
22219
+ children: [
22220
+ /* @__PURE__ */ jsx117(
22221
+ Text61,
22222
+ {
22223
+ size: "small",
22224
+ weight: "medium",
22225
+ className: pat_details_dialog_module_css_default["list-item-text"],
22226
+ children: entry.roleTitle
22227
+ }
22228
+ ),
22229
+ /* @__PURE__ */ jsx117(
22230
+ Text61,
22231
+ {
22232
+ size: "micro",
22233
+ variant: "tertiary",
22234
+ className: pat_details_dialog_module_css_default["list-item-text"],
22235
+ children: entry.scopeLabel
22236
+ }
22237
+ )
22238
+ ]
22239
+ },
22240
+ entry.id
22241
+ )) }) })
22242
+ ] }) })
22243
+ ] }) });
22244
+ }
22245
+
22246
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2453-sfhQFahzZcu4/sdk/admin/views/organizations/details/pat/pat.module.css.js
22247
+ var digest77 = "ad024f0cc5b2dedd3a6132cdb46e6ec8049e2d92092dec2070933ed3f3e3c367";
22248
+ var css77 = `._empty-state_hnhtj_1 {
22249
+ height: 100%;
22250
+ }
22251
+
22252
+ ._zero-state-container_hnhtj_5 {
22253
+ padding: var(--rs-space-10);
22254
+ }
22255
+
22256
+ ._empty-state-subheading_hnhtj_9 {
22257
+ max-width: 360px;
22258
+ text-wrap: auto;
22259
+ }
22260
+
22261
+ ._table_hnhtj_14 {
22262
+ width: 100%;
22263
+ table-layout: fixed;
22264
+ }
22265
+
22266
+ ._table-wrapper_hnhtj_19 {
22267
+ /* Navbar Height + Toolbar height */
22268
+ max-height: calc(100vh - 90px);
22269
+ overflow: scroll;
22270
+ }
22271
+
22272
+ ._table-header_hnhtj_25 {
22273
+ z-index: 2;
22274
+ }
22275
+
22276
+ ._first-column_hnhtj_29 {
22277
+ padding-left: var(--rs-space-7);
22278
+ }
22279
+
22280
+ ._truncate-cell_hnhtj_33 > * {
22281
+ width: 100%;
22282
+ min-width: 0;
22283
+ }
22284
+
22285
+ ._truncate-text_hnhtj_38 {
22286
+ display: block;
22287
+ overflow: hidden;
22288
+ text-overflow: ellipsis;
22289
+ white-space: nowrap;
22290
+ }
22291
+ `;
22292
+ (function() {
22293
+ if (typeof document === "undefined") {
22294
+ return;
22295
+ }
22296
+ if (!document.getElementById(digest77)) {
22297
+ var el = document.createElement("style");
22298
+ el.id = digest77;
22299
+ el.textContent = css77;
22300
+ document.head.appendChild(el);
22301
+ }
22302
+ })();
22303
+ var pat_module_css_default2 = { "empty-state": "_empty-state_hnhtj_1", "emptyState": "_empty-state_hnhtj_1", "zero-state-container": "_zero-state-container_hnhtj_5", "zeroStateContainer": "_zero-state-container_hnhtj_5", "empty-state-subheading": "_empty-state-subheading_hnhtj_9", "emptyStateSubheading": "_empty-state-subheading_hnhtj_9", "table": "_table_hnhtj_14", "table-wrapper": "_table-wrapper_hnhtj_19", "tableWrapper": "_table-wrapper_hnhtj_19", "table-header": "_table-header_hnhtj_25", "tableHeader": "_table-header_hnhtj_25", "first-column": "_first-column_hnhtj_29", "firstColumn": "_first-column_hnhtj_29", "truncate-cell": "_truncate-cell_hnhtj_33", "truncateCell": "_truncate-cell_hnhtj_33", "truncate-text": "_truncate-text_hnhtj_38", "truncateText": "_truncate-text_hnhtj_38" };
22304
+
22305
+ // admin/views/organizations/details/pat/index.tsx
22306
+ import { jsx as jsx118, jsxs as jsxs91 } from "react/jsx-runtime";
22307
+ var DEFAULT_SORT10 = { name: "createdAt", order: "desc" };
22308
+ var INITIAL_QUERY11 = {
22309
+ offset: 0,
22310
+ limit: DEFAULT_PAGE_SIZE
22311
+ };
22312
+ var TRANSFORM_OPTIONS7 = {
22313
+ fieldNameMapping: {
22314
+ createdAt: "created_at",
22315
+ updatedAt: "updated_at",
22316
+ expiresAt: "expires_at",
22317
+ usedAt: "used_at",
22318
+ createdBy: "created_by_title"
22319
+ }
22320
+ };
22321
+ var NoPats = () => {
22322
+ return /* @__PURE__ */ jsx118(
22323
+ EmptyState21,
22324
+ {
22325
+ classNames: {
22326
+ container: pat_module_css_default2["empty-state"],
22327
+ subHeading: pat_module_css_default2["empty-state-subheading"]
22328
+ },
22329
+ heading: "No PAT found",
22330
+ subHeading: "We couldn't find any matches for that keyword. Try alternative terms or check for typos.",
22331
+ icon: /* @__PURE__ */ jsx118(LockClosedIcon, {})
22332
+ }
22333
+ );
22334
+ };
22335
+ var ZeroState = () => {
22336
+ return /* @__PURE__ */ jsx118("div", { className: pat_module_css_default2["zero-state-container"], children: /* @__PURE__ */ jsx118(
22337
+ EmptyState21,
22338
+ {
22339
+ variant: "empty2",
22340
+ icon: /* @__PURE__ */ jsx118(LockClosedIcon, {}),
22341
+ heading: "PAT",
22342
+ subHeading: "Personal access tokens (PATs) provide programmatic access to organization resources via the API on behalf of a user."
22343
+ }
22344
+ ) });
22345
+ };
22346
+ var ErrorState6 = () => {
22347
+ return /* @__PURE__ */ jsx118(
22348
+ EmptyState21,
22349
+ {
22350
+ classNames: {
22351
+ container: pat_module_css_default2["empty-state"],
22352
+ subHeading: pat_module_css_default2["empty-state-subheading"]
22353
+ },
22354
+ heading: "Error Loading Personal Access Tokens",
22355
+ subHeading: "Something went wrong while loading personal access tokens. Please try refreshing the page.",
22356
+ icon: /* @__PURE__ */ jsx118(ExclamationTriangleIcon, {})
22357
+ }
22358
+ );
22359
+ };
22360
+ function OrganizationPatView() {
22361
+ const t = useTerminology();
22362
+ const { organization, search } = useContext25(OrganizationContext);
22363
+ const organizationId = organization?.id || "";
22364
+ const {
22365
+ onChange: onSearchChange,
22366
+ setVisibility: setSearchVisibility,
22367
+ query: searchQuery
22368
+ } = search;
22369
+ const [tableQuery, setTableQuery] = useState38(INITIAL_QUERY11);
22370
+ const [selectedPat, setSelectedPat] = useState38(null);
22371
+ const title = `PAT | ${organization?.title} | ${t.organization({ plural: true, case: "capital" })}`;
22372
+ const computedQuery = useMemo20(() => {
22373
+ const tempQuery = transformDataTableQueryToRQLRequest(
22374
+ tableQuery,
22375
+ TRANSFORM_OPTIONS7
22376
+ );
22377
+ return {
22378
+ ...tempQuery,
22379
+ search: searchQuery || ""
22380
+ };
22381
+ }, [tableQuery, searchQuery]);
22382
+ const [query] = useDebounceValue(computedQuery, 200);
22383
+ const {
22384
+ data: infiniteData,
22385
+ isLoading,
22386
+ isFetchingNextPage,
22387
+ fetchNextPage,
22388
+ hasNextPage,
22389
+ isError
22390
+ } = useInfiniteQuery11(
22391
+ AdminServiceQueries24.searchOrganizationPATs,
22392
+ { orgId: organizationId, query },
22393
+ {
22394
+ enabled: !!organizationId,
22395
+ pageParamKey: "query",
22396
+ getNextPageParam: (lastPage) => getConnectNextPageParam(lastPage, { query }, "organizationPats"),
22397
+ staleTime: 0,
22398
+ refetchOnWindowFocus: false,
22399
+ retry: 1,
22400
+ retryDelay: 1e3
22401
+ }
22402
+ );
22403
+ const { data: projects = [] } = useQuery22(
22404
+ FrontierServiceQueries32.listOrganizationProjects,
22405
+ { id: organizationId, state: "", withMemberCount: false },
22406
+ {
22407
+ enabled: !!organizationId,
22408
+ select: (data2) => data2?.projects || []
22409
+ }
22410
+ );
22411
+ const projectsMap = useMemo20(
22412
+ () => projects.reduce(
22413
+ (acc, project) => {
22414
+ if (project.id)
22415
+ acc[project.id] = project;
22416
+ return acc;
22417
+ },
22418
+ {}
22419
+ ),
22420
+ [projects]
22421
+ );
22422
+ const data = useMemo20(
22423
+ () => infiniteData?.pages?.flatMap((page) => page?.organizationPats ?? []) ?? [],
22424
+ [infiniteData]
22425
+ );
22426
+ const loading = (isLoading || isFetchingNextPage) && !isError;
22427
+ const hasActiveQuery = Boolean(query.search || query.filters?.length);
22428
+ const showZeroState = !isLoading && !isError && !hasActiveQuery && data.length === 0;
22429
+ const onTableQueryChange = (newQuery) => {
22430
+ setTableQuery(newQuery);
22431
+ };
22432
+ const fetchMore = async () => {
22433
+ if (hasNextPage && !isFetchingNextPage && !isError) {
22434
+ await fetchNextPage();
22435
+ }
22436
+ };
22437
+ useEffect21(() => {
22438
+ setSearchVisibility(true);
22439
+ return () => {
22440
+ onSearchChange("");
22441
+ setSearchVisibility(false);
22442
+ };
22443
+ }, [setSearchVisibility, onSearchChange]);
22444
+ const columns = useMemo20(
22445
+ () => getColumns18({ projectsMap }),
22446
+ [projectsMap]
22447
+ );
22448
+ const onRowClick = useCallback17(
22449
+ (row) => {
22450
+ setSelectedPat(row);
22451
+ },
22452
+ []
22453
+ );
22454
+ const onDialogClose = useCallback17(() => {
22455
+ setSelectedPat(null);
22456
+ }, []);
22457
+ return /* @__PURE__ */ jsxs91(Flex87, { justify: "center", children: [
22458
+ /* @__PURE__ */ jsx118(PageTitle, { title }),
22459
+ /* @__PURE__ */ jsx118(
22460
+ PatDetailsDialog,
22461
+ {
22462
+ pat: selectedPat,
22463
+ projectsMap,
22464
+ onClose: onDialogClose
22465
+ }
22466
+ ),
22467
+ /* @__PURE__ */ jsx118(
22468
+ DataTable26,
22469
+ {
22470
+ columns,
22471
+ data,
22472
+ isLoading: loading,
22473
+ defaultSort: DEFAULT_SORT10,
22474
+ mode: "server",
22475
+ onTableQueryChange,
22476
+ onLoadMore: fetchMore,
22477
+ onRowClick,
22478
+ query: tableQuery,
22479
+ children: /* @__PURE__ */ jsxs91(Flex87, { direction: "column", style: { width: "100%" }, children: [
22480
+ /* @__PURE__ */ jsx118(DataTable26.Toolbar, {}),
22481
+ /* @__PURE__ */ jsx118(
22482
+ DataTable26.Content,
22483
+ {
22484
+ emptyState: showZeroState ? /* @__PURE__ */ jsx118(ZeroState, {}) : isError ? /* @__PURE__ */ jsx118(ErrorState6, {}) : /* @__PURE__ */ jsx118(NoPats, {}),
22485
+ classNames: {
22486
+ table: pat_module_css_default2["table"],
22487
+ root: pat_module_css_default2["table-wrapper"],
22488
+ header: pat_module_css_default2["table-header"]
22489
+ }
22490
+ }
22491
+ )
22492
+ ] })
22493
+ }
22494
+ )
22495
+ ] });
22496
+ }
21827
22497
  export {
21828
22498
  AdminConfigProvider,
21829
22499
  AdminsView,
@@ -21835,6 +22505,7 @@ export {
21835
22505
  OrganizationInvoicesView,
21836
22506
  OrganizationListView,
21837
22507
  OrganizationMembersView,
22508
+ OrganizationPatView,
21838
22509
  OrganizationProjectsView,
21839
22510
  OrganizationSecurity,
21840
22511
  OrganizationTokensView,