@rudderhq/shared 0.7.1 → 0.7.2

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.
Files changed (61) hide show
  1. package/dist/config-schema.d.ts +7 -7
  2. package/dist/constants.d.ts +44 -3
  3. package/dist/constants.d.ts.map +1 -1
  4. package/dist/constants.js +65 -1
  5. package/dist/constants.js.map +1 -1
  6. package/dist/index.d.ts +8 -6
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +6 -4
  9. package/dist/index.js.map +1 -1
  10. package/dist/types/chat.d.ts +5 -1
  11. package/dist/types/chat.d.ts.map +1 -1
  12. package/dist/types/goal.d.ts +267 -1
  13. package/dist/types/goal.d.ts.map +1 -1
  14. package/dist/types/index.d.ts +2 -2
  15. package/dist/types/index.d.ts.map +1 -1
  16. package/dist/types/instance.d.ts +1 -0
  17. package/dist/types/instance.d.ts.map +1 -1
  18. package/dist/types/mcp.d.ts +7 -2
  19. package/dist/types/mcp.d.ts.map +1 -1
  20. package/dist/validators/access.d.ts +3 -3
  21. package/dist/validators/agent-issue-creation.d.ts +29 -0
  22. package/dist/validators/agent-issue-creation.d.ts.map +1 -0
  23. package/dist/validators/agent-issue-creation.js +13 -0
  24. package/dist/validators/agent-issue-creation.js.map +1 -0
  25. package/dist/validators/agent-issue-creation.test.d.ts +2 -0
  26. package/dist/validators/agent-issue-creation.test.d.ts.map +1 -0
  27. package/dist/validators/agent-issue-creation.test.js +64 -0
  28. package/dist/validators/agent-issue-creation.test.js.map +1 -0
  29. package/dist/validators/agent.d.ts +11 -11
  30. package/dist/validators/app-builder.d.ts +4 -4
  31. package/dist/validators/approval.d.ts +3 -3
  32. package/dist/validators/budget.d.ts +1 -1
  33. package/dist/validators/calendar.d.ts +8 -8
  34. package/dist/validators/cost.d.ts +4 -4
  35. package/dist/validators/finance.d.ts +9 -9
  36. package/dist/validators/goal.d.ts +1015 -20
  37. package/dist/validators/goal.d.ts.map +1 -1
  38. package/dist/validators/goal.js +182 -5
  39. package/dist/validators/goal.js.map +1 -1
  40. package/dist/validators/index.d.ts +2 -1
  41. package/dist/validators/index.d.ts.map +1 -1
  42. package/dist/validators/index.js +2 -1
  43. package/dist/validators/index.js.map +1 -1
  44. package/dist/validators/instance.d.ts +6 -0
  45. package/dist/validators/instance.d.ts.map +1 -1
  46. package/dist/validators/instance.js +1 -0
  47. package/dist/validators/instance.js.map +1 -1
  48. package/dist/validators/instance.test.js +1 -0
  49. package/dist/validators/instance.test.js.map +1 -1
  50. package/dist/validators/mcp.d.ts +243 -55
  51. package/dist/validators/mcp.d.ts.map +1 -1
  52. package/dist/validators/mcp.js +57 -4
  53. package/dist/validators/mcp.js.map +1 -1
  54. package/dist/validators/mcp.test.js +78 -58
  55. package/dist/validators/mcp.test.js.map +1 -1
  56. package/dist/validators/organization-intelligence-profile.d.ts +3 -3
  57. package/dist/validators/organization-skill.d.ts +26 -26
  58. package/dist/validators/project.d.ts +20 -20
  59. package/dist/validators/resource.d.ts +8 -8
  60. package/dist/validators/work-product.d.ts +8 -8
  61. package/package.json +1 -1
@@ -1,11 +1,12 @@
1
1
  import { z } from "zod";
2
- export declare const mcpConnectionProviderSchema: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
2
+ export declare const mcpConnectionProviderSchema: z.ZodEnum<["supabase", "linear", "notion", "github", "custom"]>;
3
3
  export declare const mcpConnectionScopeSchema: z.ZodEnum<["organization", "agent"]>;
4
4
  export declare const mcpConnectionTransportSchema: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
5
5
  export declare const mcpConnectionAccessModeSchema: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
6
6
  export declare const mcpAgentAccessModeSchema: z.ZodEnum<["none", "read_only", "read_write", "provider_granted", "full"]>;
7
7
  export declare const mcpConnectionCanonicalStateSchema: z.ZodEnum<["canonical", "superseded"]>;
8
8
  export declare const mcpProviderScopeModeSchema: z.ZodEnum<["account", "workspace", "legacy_project"]>;
9
+ export declare const mcpProviderCredentialModeSchema: z.ZodEnum<["oauth", "pat", "custom"]>;
9
10
  export declare const mcpProviderOrganizationStateSchema: z.ZodEnum<["not_connected", "connecting", "connected", "needs_attention", "disconnected"]>;
10
11
  export declare const mcpToolCapabilityClassSchema: z.ZodEnum<["read", "normal_write", "destructive", "admin_or_billing", "unknown"]>;
11
12
  export declare const mcpProviderMaxAccessSchema: z.ZodEnum<["read_only", "read_write", "provider_granted"]>;
@@ -154,6 +155,24 @@ export declare const mcpCuratedSafeConfigSchema: z.ZodObject<{
154
155
  excluded: string[];
155
156
  };
156
157
  }>;
158
+ export declare const mcpGitHubSafeConfigSchema: z.ZodObject<{
159
+ endpoint: z.ZodLiteral<"https://api.githubcopilot.com/mcp/">;
160
+ scopeMode: z.ZodLiteral<"account">;
161
+ }, "strict", z.ZodTypeAny, {
162
+ endpoint: "https://api.githubcopilot.com/mcp/";
163
+ scopeMode: "account";
164
+ }, {
165
+ endpoint: "https://api.githubcopilot.com/mcp/";
166
+ scopeMode: "account";
167
+ }>;
168
+ export declare const mcpGitHubPatSchema: z.ZodString;
169
+ export declare const mcpGitHubSecretsMutationSchema: z.ZodObject<{
170
+ bearerToken: z.ZodString;
171
+ }, "strict", z.ZodTypeAny, {
172
+ bearerToken: string;
173
+ }, {
174
+ bearerToken: string;
175
+ }>;
157
176
  export declare const mcpConnectionSafeConfigSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
158
177
  command: z.ZodString;
159
178
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -250,6 +269,15 @@ export declare const mcpConnectionSafeConfigSchema: z.ZodUnion<[z.ZodEffects<z.Z
250
269
  legacyConfigRetained: true;
251
270
  }, {
252
271
  legacyConfigRetained: true;
272
+ }>, z.ZodObject<{
273
+ endpoint: z.ZodLiteral<"https://api.githubcopilot.com/mcp/">;
274
+ scopeMode: z.ZodLiteral<"account">;
275
+ }, "strict", z.ZodTypeAny, {
276
+ endpoint: "https://api.githubcopilot.com/mcp/";
277
+ scopeMode: "account";
278
+ }, {
279
+ endpoint: "https://api.githubcopilot.com/mcp/";
280
+ scopeMode: "account";
253
281
  }>, z.ZodObject<{
254
282
  featureGroups: z.ZodObject<{
255
283
  mode: z.ZodLiteral<"provider_default">;
@@ -273,9 +301,9 @@ export declare const mcpConnectionSafeConfigSchema: z.ZodUnion<[z.ZodEffects<z.Z
273
301
  };
274
302
  }>]>;
275
303
  export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
304
+ provider: z.ZodLiteral<"custom">;
276
305
  name: z.ZodString;
277
306
  displayName: z.ZodString;
278
- provider: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
279
307
  scope: z.ZodEnum<["organization", "agent"]>;
280
308
  ownerAgentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
281
309
  transport: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
@@ -377,6 +405,15 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
377
405
  legacyConfigRetained: true;
378
406
  }, {
379
407
  legacyConfigRetained: true;
408
+ }>, z.ZodObject<{
409
+ endpoint: z.ZodLiteral<"https://api.githubcopilot.com/mcp/">;
410
+ scopeMode: z.ZodLiteral<"account">;
411
+ }, "strict", z.ZodTypeAny, {
412
+ endpoint: "https://api.githubcopilot.com/mcp/";
413
+ scopeMode: "account";
414
+ }, {
415
+ endpoint: "https://api.githubcopilot.com/mcp/";
416
+ scopeMode: "account";
380
417
  }>, z.ZodObject<{
381
418
  featureGroups: z.ZodObject<{
382
419
  mode: z.ZodLiteral<"provider_default">;
@@ -455,9 +492,12 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
455
492
  mode: "provider_default";
456
493
  excluded: string[];
457
494
  };
495
+ } | {
496
+ endpoint: "https://api.githubcopilot.com/mcp/";
497
+ scopeMode: "account";
458
498
  };
459
499
  enabled: boolean;
460
- provider: "supabase" | "linear" | "notion" | "custom";
500
+ provider: "custom";
461
501
  startupTimeoutMs: number;
462
502
  toolTimeoutMs: number;
463
503
  ownerAgentId?: string | null | undefined;
@@ -473,7 +513,7 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
473
513
  scope: "organization" | "agent";
474
514
  displayName: string;
475
515
  transport: "stdio" | "streamable_http" | "legacy_manual";
476
- provider: "supabase" | "linear" | "notion" | "custom";
516
+ provider: "custom";
477
517
  required?: boolean | undefined;
478
518
  ownerAgentId?: string | null | undefined;
479
519
  accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
@@ -502,6 +542,9 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
502
542
  mode: "provider_default";
503
543
  excluded: string[];
504
544
  };
545
+ } | {
546
+ endpoint: "https://api.githubcopilot.com/mcp/";
547
+ scopeMode: "account";
505
548
  } | undefined;
506
549
  secrets?: {
507
550
  env?: Record<string, string> | undefined;
@@ -543,9 +586,12 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
543
586
  mode: "provider_default";
544
587
  excluded: string[];
545
588
  };
589
+ } | {
590
+ endpoint: "https://api.githubcopilot.com/mcp/";
591
+ scopeMode: "account";
546
592
  };
547
593
  enabled: boolean;
548
- provider: "supabase" | "linear" | "notion" | "custom";
594
+ provider: "custom";
549
595
  startupTimeoutMs: number;
550
596
  toolTimeoutMs: number;
551
597
  ownerAgentId?: string | null | undefined;
@@ -561,7 +607,7 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
561
607
  scope: "organization" | "agent";
562
608
  displayName: string;
563
609
  transport: "stdio" | "streamable_http" | "legacy_manual";
564
- provider: "supabase" | "linear" | "notion" | "custom";
610
+ provider: "custom";
565
611
  required?: boolean | undefined;
566
612
  ownerAgentId?: string | null | undefined;
567
613
  accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
@@ -590,6 +636,9 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
590
636
  mode: "provider_default";
591
637
  excluded: string[];
592
638
  };
639
+ } | {
640
+ endpoint: "https://api.githubcopilot.com/mcp/";
641
+ scopeMode: "account";
593
642
  } | undefined;
594
643
  secrets?: {
595
644
  env?: Record<string, string> | undefined;
@@ -631,9 +680,12 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
631
680
  mode: "provider_default";
632
681
  excluded: string[];
633
682
  };
683
+ } | {
684
+ endpoint: "https://api.githubcopilot.com/mcp/";
685
+ scopeMode: "account";
634
686
  };
635
687
  enabled: boolean;
636
- provider: "supabase" | "linear" | "notion" | "custom";
688
+ provider: "custom";
637
689
  startupTimeoutMs: number;
638
690
  toolTimeoutMs: number;
639
691
  ownerAgentId?: string | null | undefined;
@@ -649,7 +701,7 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
649
701
  scope: "organization" | "agent";
650
702
  displayName: string;
651
703
  transport: "stdio" | "streamable_http" | "legacy_manual";
652
- provider: "supabase" | "linear" | "notion" | "custom";
704
+ provider: "custom";
653
705
  required?: boolean | undefined;
654
706
  ownerAgentId?: string | null | undefined;
655
707
  accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
@@ -678,6 +730,9 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
678
730
  mode: "provider_default";
679
731
  excluded: string[];
680
732
  };
733
+ } | {
734
+ endpoint: "https://api.githubcopilot.com/mcp/";
735
+ scopeMode: "account";
681
736
  } | undefined;
682
737
  secrets?: {
683
738
  env?: Record<string, string> | undefined;
@@ -719,9 +774,12 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
719
774
  mode: "provider_default";
720
775
  excluded: string[];
721
776
  };
777
+ } | {
778
+ endpoint: "https://api.githubcopilot.com/mcp/";
779
+ scopeMode: "account";
722
780
  };
723
781
  enabled: boolean;
724
- provider: "supabase" | "linear" | "notion" | "custom";
782
+ provider: "custom";
725
783
  startupTimeoutMs: number;
726
784
  toolTimeoutMs: number;
727
785
  ownerAgentId?: string | null | undefined;
@@ -737,7 +795,7 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
737
795
  scope: "organization" | "agent";
738
796
  displayName: string;
739
797
  transport: "stdio" | "streamable_http" | "legacy_manual";
740
- provider: "supabase" | "linear" | "notion" | "custom";
798
+ provider: "custom";
741
799
  required?: boolean | undefined;
742
800
  ownerAgentId?: string | null | undefined;
743
801
  accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
@@ -766,6 +824,9 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
766
824
  mode: "provider_default";
767
825
  excluded: string[];
768
826
  };
827
+ } | {
828
+ endpoint: "https://api.githubcopilot.com/mcp/";
829
+ scopeMode: "account";
769
830
  } | undefined;
770
831
  secrets?: {
771
832
  env?: Record<string, string> | undefined;
@@ -807,9 +868,12 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
807
868
  mode: "provider_default";
808
869
  excluded: string[];
809
870
  };
871
+ } | {
872
+ endpoint: "https://api.githubcopilot.com/mcp/";
873
+ scopeMode: "account";
810
874
  };
811
875
  enabled: boolean;
812
- provider: "supabase" | "linear" | "notion" | "custom";
876
+ provider: "custom";
813
877
  startupTimeoutMs: number;
814
878
  toolTimeoutMs: number;
815
879
  ownerAgentId?: string | null | undefined;
@@ -825,7 +889,7 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
825
889
  scope: "organization" | "agent";
826
890
  displayName: string;
827
891
  transport: "stdio" | "streamable_http" | "legacy_manual";
828
- provider: "supabase" | "linear" | "notion" | "custom";
892
+ provider: "custom";
829
893
  required?: boolean | undefined;
830
894
  ownerAgentId?: string | null | undefined;
831
895
  accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
@@ -854,6 +918,9 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
854
918
  mode: "provider_default";
855
919
  excluded: string[];
856
920
  };
921
+ } | {
922
+ endpoint: "https://api.githubcopilot.com/mcp/";
923
+ scopeMode: "account";
857
924
  } | undefined;
858
925
  secrets?: {
859
926
  env?: Record<string, string> | undefined;
@@ -896,9 +963,12 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
896
963
  mode: "provider_default";
897
964
  excluded: string[];
898
965
  };
966
+ } | {
967
+ endpoint: "https://api.githubcopilot.com/mcp/";
968
+ scopeMode: "account";
899
969
  };
900
970
  enabled: boolean;
901
- provider: "supabase" | "linear" | "notion" | "custom";
971
+ provider: "custom";
902
972
  startupTimeoutMs: number;
903
973
  toolTimeoutMs: number;
904
974
  ownerAgentId?: string | null | undefined;
@@ -913,7 +983,7 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
913
983
  scope: "organization" | "agent";
914
984
  displayName: string;
915
985
  transport: "stdio" | "streamable_http" | "legacy_manual";
916
- provider: "supabase" | "linear" | "notion" | "custom";
986
+ provider: "custom";
917
987
  required?: boolean | undefined;
918
988
  ownerAgentId?: string | null | undefined;
919
989
  accessMode?: "provider_default" | "read_only" | "read_write" | undefined;
@@ -942,6 +1012,9 @@ export declare const createMcpConnectionSchema: z.ZodEffects<z.ZodEffects<z.ZodE
942
1012
  mode: "provider_default";
943
1013
  excluded: string[];
944
1014
  };
1015
+ } | {
1016
+ endpoint: "https://api.githubcopilot.com/mcp/";
1017
+ scopeMode: "account";
945
1018
  } | undefined;
946
1019
  secrets?: {
947
1020
  env?: Record<string, string> | undefined;
@@ -1053,6 +1126,15 @@ export declare const updateMcpConnectionSchema: z.ZodEffects<z.ZodObject<{
1053
1126
  legacyConfigRetained: true;
1054
1127
  }, {
1055
1128
  legacyConfigRetained: true;
1129
+ }>, z.ZodObject<{
1130
+ endpoint: z.ZodLiteral<"https://api.githubcopilot.com/mcp/">;
1131
+ scopeMode: z.ZodLiteral<"account">;
1132
+ }, "strict", z.ZodTypeAny, {
1133
+ endpoint: "https://api.githubcopilot.com/mcp/";
1134
+ scopeMode: "account";
1135
+ }, {
1136
+ endpoint: "https://api.githubcopilot.com/mcp/";
1137
+ scopeMode: "account";
1056
1138
  }>, z.ZodObject<{
1057
1139
  featureGroups: z.ZodObject<{
1058
1140
  mode: z.ZodLiteral<"provider_default">;
@@ -1129,6 +1211,9 @@ export declare const updateMcpConnectionSchema: z.ZodEffects<z.ZodObject<{
1129
1211
  mode: "provider_default";
1130
1212
  excluded: string[];
1131
1213
  };
1214
+ } | {
1215
+ endpoint: "https://api.githubcopilot.com/mcp/";
1216
+ scopeMode: "account";
1132
1217
  } | undefined;
1133
1218
  secrets?: {
1134
1219
  env?: Record<string, string> | undefined;
@@ -1168,6 +1253,9 @@ export declare const updateMcpConnectionSchema: z.ZodEffects<z.ZodObject<{
1168
1253
  mode: "provider_default";
1169
1254
  excluded: string[];
1170
1255
  };
1256
+ } | {
1257
+ endpoint: "https://api.githubcopilot.com/mcp/";
1258
+ scopeMode: "account";
1171
1259
  } | undefined;
1172
1260
  secrets?: {
1173
1261
  env?: Record<string, string> | undefined;
@@ -1207,6 +1295,9 @@ export declare const updateMcpConnectionSchema: z.ZodEffects<z.ZodObject<{
1207
1295
  mode: "provider_default";
1208
1296
  excluded: string[];
1209
1297
  };
1298
+ } | {
1299
+ endpoint: "https://api.githubcopilot.com/mcp/";
1300
+ scopeMode: "account";
1210
1301
  } | undefined;
1211
1302
  secrets?: {
1212
1303
  env?: Record<string, string> | undefined;
@@ -1246,6 +1337,9 @@ export declare const updateMcpConnectionSchema: z.ZodEffects<z.ZodObject<{
1246
1337
  mode: "provider_default";
1247
1338
  excluded: string[];
1248
1339
  };
1340
+ } | {
1341
+ endpoint: "https://api.githubcopilot.com/mcp/";
1342
+ scopeMode: "account";
1249
1343
  } | undefined;
1250
1344
  secrets?: {
1251
1345
  env?: Record<string, string> | undefined;
@@ -1258,7 +1352,7 @@ export declare const updateMcpConnectionSchema: z.ZodEffects<z.ZodObject<{
1258
1352
  toolTimeoutMs?: number | undefined;
1259
1353
  }>;
1260
1354
  export declare const mcpConnectionMergedConfigSchema: z.ZodEffects<z.ZodObject<{
1261
- provider: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
1355
+ provider: z.ZodEnum<["supabase", "linear", "notion", "github", "custom"]>;
1262
1356
  transport: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
1263
1357
  accessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
1264
1358
  safeConfig: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
@@ -1357,6 +1451,15 @@ export declare const mcpConnectionMergedConfigSchema: z.ZodEffects<z.ZodObject<{
1357
1451
  legacyConfigRetained: true;
1358
1452
  }, {
1359
1453
  legacyConfigRetained: true;
1454
+ }>, z.ZodObject<{
1455
+ endpoint: z.ZodLiteral<"https://api.githubcopilot.com/mcp/">;
1456
+ scopeMode: z.ZodLiteral<"account">;
1457
+ }, "strict", z.ZodTypeAny, {
1458
+ endpoint: "https://api.githubcopilot.com/mcp/";
1459
+ scopeMode: "account";
1460
+ }, {
1461
+ endpoint: "https://api.githubcopilot.com/mcp/";
1462
+ scopeMode: "account";
1360
1463
  }>, z.ZodObject<{
1361
1464
  featureGroups: z.ZodObject<{
1362
1465
  mode: z.ZodLiteral<"provider_default">;
@@ -1408,9 +1511,12 @@ export declare const mcpConnectionMergedConfigSchema: z.ZodEffects<z.ZodObject<{
1408
1511
  mode: "provider_default";
1409
1512
  excluded: string[];
1410
1513
  };
1514
+ } | {
1515
+ endpoint: "https://api.githubcopilot.com/mcp/";
1516
+ scopeMode: "account";
1411
1517
  };
1412
1518
  enabled: boolean;
1413
- provider: "supabase" | "linear" | "notion" | "custom";
1519
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
1414
1520
  }, {
1415
1521
  accessMode: "provider_default" | "read_only" | "read_write";
1416
1522
  transport: "stdio" | "streamable_http" | "legacy_manual";
@@ -1439,9 +1545,12 @@ export declare const mcpConnectionMergedConfigSchema: z.ZodEffects<z.ZodObject<{
1439
1545
  mode: "provider_default";
1440
1546
  excluded: string[];
1441
1547
  };
1548
+ } | {
1549
+ endpoint: "https://api.githubcopilot.com/mcp/";
1550
+ scopeMode: "account";
1442
1551
  };
1443
1552
  enabled: boolean;
1444
- provider: "supabase" | "linear" | "notion" | "custom";
1553
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
1445
1554
  }>, {
1446
1555
  accessMode: "provider_default" | "read_only" | "read_write";
1447
1556
  transport: "stdio" | "streamable_http" | "legacy_manual";
@@ -1470,9 +1579,12 @@ export declare const mcpConnectionMergedConfigSchema: z.ZodEffects<z.ZodObject<{
1470
1579
  mode: "provider_default";
1471
1580
  excluded: string[];
1472
1581
  };
1582
+ } | {
1583
+ endpoint: "https://api.githubcopilot.com/mcp/";
1584
+ scopeMode: "account";
1473
1585
  };
1474
1586
  enabled: boolean;
1475
- provider: "supabase" | "linear" | "notion" | "custom";
1587
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
1476
1588
  }, {
1477
1589
  accessMode: "provider_default" | "read_only" | "read_write";
1478
1590
  transport: "stdio" | "streamable_http" | "legacy_manual";
@@ -1501,9 +1613,12 @@ export declare const mcpConnectionMergedConfigSchema: z.ZodEffects<z.ZodObject<{
1501
1613
  mode: "provider_default";
1502
1614
  excluded: string[];
1503
1615
  };
1616
+ } | {
1617
+ endpoint: "https://api.githubcopilot.com/mcp/";
1618
+ scopeMode: "account";
1504
1619
  };
1505
1620
  enabled: boolean;
1506
- provider: "supabase" | "linear" | "notion" | "custom";
1621
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
1507
1622
  }>;
1508
1623
  /**
1509
1624
  * Mutation-aware validation target for create, secret rotation, or a safe
@@ -1531,7 +1646,7 @@ export declare const mcpConnectionMutationConfigSchema: z.ZodEffects<z.ZodEffect
1531
1646
  headers?: Record<string, string> | undefined;
1532
1647
  bearerToken?: string | undefined;
1533
1648
  }>>;
1534
- provider: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
1649
+ provider: z.ZodEnum<["supabase", "linear", "notion", "github", "custom"]>;
1535
1650
  transport: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
1536
1651
  accessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
1537
1652
  safeConfig: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
@@ -1630,6 +1745,15 @@ export declare const mcpConnectionMutationConfigSchema: z.ZodEffects<z.ZodEffect
1630
1745
  legacyConfigRetained: true;
1631
1746
  }, {
1632
1747
  legacyConfigRetained: true;
1748
+ }>, z.ZodObject<{
1749
+ endpoint: z.ZodLiteral<"https://api.githubcopilot.com/mcp/">;
1750
+ scopeMode: z.ZodLiteral<"account">;
1751
+ }, "strict", z.ZodTypeAny, {
1752
+ endpoint: "https://api.githubcopilot.com/mcp/";
1753
+ scopeMode: "account";
1754
+ }, {
1755
+ endpoint: "https://api.githubcopilot.com/mcp/";
1756
+ scopeMode: "account";
1633
1757
  }>, z.ZodObject<{
1634
1758
  featureGroups: z.ZodObject<{
1635
1759
  mode: z.ZodLiteral<"provider_default">;
@@ -1681,9 +1805,12 @@ export declare const mcpConnectionMutationConfigSchema: z.ZodEffects<z.ZodEffect
1681
1805
  mode: "provider_default";
1682
1806
  excluded: string[];
1683
1807
  };
1808
+ } | {
1809
+ endpoint: "https://api.githubcopilot.com/mcp/";
1810
+ scopeMode: "account";
1684
1811
  };
1685
1812
  enabled: boolean;
1686
- provider: "supabase" | "linear" | "notion" | "custom";
1813
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
1687
1814
  secrets?: {
1688
1815
  env?: Record<string, string> | undefined;
1689
1816
  headers?: Record<string, string> | undefined;
@@ -1717,9 +1844,12 @@ export declare const mcpConnectionMutationConfigSchema: z.ZodEffects<z.ZodEffect
1717
1844
  mode: "provider_default";
1718
1845
  excluded: string[];
1719
1846
  };
1847
+ } | {
1848
+ endpoint: "https://api.githubcopilot.com/mcp/";
1849
+ scopeMode: "account";
1720
1850
  };
1721
1851
  enabled: boolean;
1722
- provider: "supabase" | "linear" | "notion" | "custom";
1852
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
1723
1853
  secrets?: {
1724
1854
  env?: Record<string, string> | undefined;
1725
1855
  headers?: Record<string, string> | undefined;
@@ -1753,9 +1883,12 @@ export declare const mcpConnectionMutationConfigSchema: z.ZodEffects<z.ZodEffect
1753
1883
  mode: "provider_default";
1754
1884
  excluded: string[];
1755
1885
  };
1886
+ } | {
1887
+ endpoint: "https://api.githubcopilot.com/mcp/";
1888
+ scopeMode: "account";
1756
1889
  };
1757
1890
  enabled: boolean;
1758
- provider: "supabase" | "linear" | "notion" | "custom";
1891
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
1759
1892
  secrets?: {
1760
1893
  env?: Record<string, string> | undefined;
1761
1894
  headers?: Record<string, string> | undefined;
@@ -1789,9 +1922,12 @@ export declare const mcpConnectionMutationConfigSchema: z.ZodEffects<z.ZodEffect
1789
1922
  mode: "provider_default";
1790
1923
  excluded: string[];
1791
1924
  };
1925
+ } | {
1926
+ endpoint: "https://api.githubcopilot.com/mcp/";
1927
+ scopeMode: "account";
1792
1928
  };
1793
1929
  enabled: boolean;
1794
- provider: "supabase" | "linear" | "notion" | "custom";
1930
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
1795
1931
  secrets?: {
1796
1932
  env?: Record<string, string> | undefined;
1797
1933
  headers?: Record<string, string> | undefined;
@@ -1825,9 +1961,12 @@ export declare const mcpConnectionMutationConfigSchema: z.ZodEffects<z.ZodEffect
1825
1961
  mode: "provider_default";
1826
1962
  excluded: string[];
1827
1963
  };
1964
+ } | {
1965
+ endpoint: "https://api.githubcopilot.com/mcp/";
1966
+ scopeMode: "account";
1828
1967
  };
1829
1968
  enabled: boolean;
1830
- provider: "supabase" | "linear" | "notion" | "custom";
1969
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
1831
1970
  secrets?: {
1832
1971
  env?: Record<string, string> | undefined;
1833
1972
  headers?: Record<string, string> | undefined;
@@ -1861,9 +2000,12 @@ export declare const mcpConnectionMutationConfigSchema: z.ZodEffects<z.ZodEffect
1861
2000
  mode: "provider_default";
1862
2001
  excluded: string[];
1863
2002
  };
2003
+ } | {
2004
+ endpoint: "https://api.githubcopilot.com/mcp/";
2005
+ scopeMode: "account";
1864
2006
  };
1865
2007
  enabled: boolean;
1866
- provider: "supabase" | "linear" | "notion" | "custom";
2008
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
1867
2009
  secrets?: {
1868
2010
  env?: Record<string, string> | undefined;
1869
2011
  headers?: Record<string, string> | undefined;
@@ -1877,7 +2019,7 @@ export declare const mcpConnectionSummarySchema: z.ZodObject<{
1877
2019
  ownerAgentId: z.ZodNullable<z.ZodString>;
1878
2020
  name: z.ZodString;
1879
2021
  displayName: z.ZodString;
1880
- provider: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
2022
+ provider: z.ZodEnum<["supabase", "linear", "notion", "github", "custom"]>;
1881
2023
  transport: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
1882
2024
  externalScope: z.ZodNullable<z.ZodString>;
1883
2025
  accessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
@@ -1978,6 +2120,15 @@ export declare const mcpConnectionSummarySchema: z.ZodObject<{
1978
2120
  legacyConfigRetained: true;
1979
2121
  }, {
1980
2122
  legacyConfigRetained: true;
2123
+ }>, z.ZodObject<{
2124
+ endpoint: z.ZodLiteral<"https://api.githubcopilot.com/mcp/">;
2125
+ scopeMode: z.ZodLiteral<"account">;
2126
+ }, "strict", z.ZodTypeAny, {
2127
+ endpoint: "https://api.githubcopilot.com/mcp/";
2128
+ scopeMode: "account";
2129
+ }, {
2130
+ endpoint: "https://api.githubcopilot.com/mcp/";
2131
+ scopeMode: "account";
1981
2132
  }>, z.ZodObject<{
1982
2133
  featureGroups: z.ZodObject<{
1983
2134
  mode: z.ZodLiteral<"provider_default">;
@@ -2050,9 +2201,12 @@ export declare const mcpConnectionSummarySchema: z.ZodObject<{
2050
2201
  mode: "provider_default";
2051
2202
  excluded: string[];
2052
2203
  };
2204
+ } | {
2205
+ endpoint: "https://api.githubcopilot.com/mcp/";
2206
+ scopeMode: "account";
2053
2207
  };
2054
2208
  enabled: boolean;
2055
- provider: "supabase" | "linear" | "notion" | "custom";
2209
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
2056
2210
  externalScope: string | null;
2057
2211
  startupTimeoutMs: number;
2058
2212
  toolTimeoutMs: number;
@@ -2099,9 +2253,12 @@ export declare const mcpConnectionSummarySchema: z.ZodObject<{
2099
2253
  mode: "provider_default";
2100
2254
  excluded: string[];
2101
2255
  };
2256
+ } | {
2257
+ endpoint: "https://api.githubcopilot.com/mcp/";
2258
+ scopeMode: "account";
2102
2259
  };
2103
2260
  enabled: boolean;
2104
- provider: "supabase" | "linear" | "notion" | "custom";
2261
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
2105
2262
  externalScope: string | null;
2106
2263
  startupTimeoutMs: number;
2107
2264
  toolTimeoutMs: number;
@@ -2111,50 +2268,55 @@ export declare const mcpConnectionSummarySchema: z.ZodObject<{
2111
2268
  disabledAt: string | null;
2112
2269
  }>;
2113
2270
  export declare const mcpProviderCatalogEntrySchema: z.ZodEffects<z.ZodObject<{
2114
- id: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
2271
+ id: z.ZodEnum<["supabase", "linear", "notion", "github", "custom"]>;
2115
2272
  label: z.ZodString;
2116
2273
  curated: z.ZodBoolean;
2117
2274
  requiresOAuth: z.ZodBoolean;
2275
+ credentialMode: z.ZodEnum<["oauth", "pat", "custom"]>;
2118
2276
  requiresScopeSelection: z.ZodBoolean;
2119
2277
  scopeLabel: z.ZodString;
2120
2278
  transports: z.ZodArray<z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>, "many">;
2121
2279
  accessModes: z.ZodArray<z.ZodEnum<["provider_default", "read_only", "read_write"]>, "many">;
2122
2280
  defaultAccessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
2123
2281
  }, "strict", z.ZodTypeAny, {
2124
- id: "supabase" | "linear" | "notion" | "custom";
2282
+ id: "supabase" | "linear" | "notion" | "github" | "custom";
2125
2283
  label: string;
2126
2284
  curated: boolean;
2127
2285
  requiresOAuth: boolean;
2286
+ credentialMode: "custom" | "oauth" | "pat";
2128
2287
  requiresScopeSelection: boolean;
2129
2288
  scopeLabel: string;
2130
2289
  transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2131
2290
  accessModes: ("provider_default" | "read_only" | "read_write")[];
2132
2291
  defaultAccessMode: "provider_default" | "read_only" | "read_write";
2133
2292
  }, {
2134
- id: "supabase" | "linear" | "notion" | "custom";
2293
+ id: "supabase" | "linear" | "notion" | "github" | "custom";
2135
2294
  label: string;
2136
2295
  curated: boolean;
2137
2296
  requiresOAuth: boolean;
2297
+ credentialMode: "custom" | "oauth" | "pat";
2138
2298
  requiresScopeSelection: boolean;
2139
2299
  scopeLabel: string;
2140
2300
  transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2141
2301
  accessModes: ("provider_default" | "read_only" | "read_write")[];
2142
2302
  defaultAccessMode: "provider_default" | "read_only" | "read_write";
2143
2303
  }>, {
2144
- id: "supabase" | "linear" | "notion" | "custom";
2304
+ id: "supabase" | "linear" | "notion" | "github" | "custom";
2145
2305
  label: string;
2146
2306
  curated: boolean;
2147
2307
  requiresOAuth: boolean;
2308
+ credentialMode: "custom" | "oauth" | "pat";
2148
2309
  requiresScopeSelection: boolean;
2149
2310
  scopeLabel: string;
2150
2311
  transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2151
2312
  accessModes: ("provider_default" | "read_only" | "read_write")[];
2152
2313
  defaultAccessMode: "provider_default" | "read_only" | "read_write";
2153
2314
  }, {
2154
- id: "supabase" | "linear" | "notion" | "custom";
2315
+ id: "supabase" | "linear" | "notion" | "github" | "custom";
2155
2316
  label: string;
2156
2317
  curated: boolean;
2157
2318
  requiresOAuth: boolean;
2319
+ credentialMode: "custom" | "oauth" | "pat";
2158
2320
  requiresScopeSelection: boolean;
2159
2321
  scopeLabel: string;
2160
2322
  transports: ("stdio" | "streamable_http" | "legacy_manual")[];
@@ -2162,50 +2324,55 @@ export declare const mcpProviderCatalogEntrySchema: z.ZodEffects<z.ZodObject<{
2162
2324
  defaultAccessMode: "provider_default" | "read_only" | "read_write";
2163
2325
  }>;
2164
2326
  export declare const mcpProviderCatalogSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
2165
- id: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
2327
+ id: z.ZodEnum<["supabase", "linear", "notion", "github", "custom"]>;
2166
2328
  label: z.ZodString;
2167
2329
  curated: z.ZodBoolean;
2168
2330
  requiresOAuth: z.ZodBoolean;
2331
+ credentialMode: z.ZodEnum<["oauth", "pat", "custom"]>;
2169
2332
  requiresScopeSelection: z.ZodBoolean;
2170
2333
  scopeLabel: z.ZodString;
2171
2334
  transports: z.ZodArray<z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>, "many">;
2172
2335
  accessModes: z.ZodArray<z.ZodEnum<["provider_default", "read_only", "read_write"]>, "many">;
2173
2336
  defaultAccessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
2174
2337
  }, "strict", z.ZodTypeAny, {
2175
- id: "supabase" | "linear" | "notion" | "custom";
2338
+ id: "supabase" | "linear" | "notion" | "github" | "custom";
2176
2339
  label: string;
2177
2340
  curated: boolean;
2178
2341
  requiresOAuth: boolean;
2342
+ credentialMode: "custom" | "oauth" | "pat";
2179
2343
  requiresScopeSelection: boolean;
2180
2344
  scopeLabel: string;
2181
2345
  transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2182
2346
  accessModes: ("provider_default" | "read_only" | "read_write")[];
2183
2347
  defaultAccessMode: "provider_default" | "read_only" | "read_write";
2184
2348
  }, {
2185
- id: "supabase" | "linear" | "notion" | "custom";
2349
+ id: "supabase" | "linear" | "notion" | "github" | "custom";
2186
2350
  label: string;
2187
2351
  curated: boolean;
2188
2352
  requiresOAuth: boolean;
2353
+ credentialMode: "custom" | "oauth" | "pat";
2189
2354
  requiresScopeSelection: boolean;
2190
2355
  scopeLabel: string;
2191
2356
  transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2192
2357
  accessModes: ("provider_default" | "read_only" | "read_write")[];
2193
2358
  defaultAccessMode: "provider_default" | "read_only" | "read_write";
2194
2359
  }>, {
2195
- id: "supabase" | "linear" | "notion" | "custom";
2360
+ id: "supabase" | "linear" | "notion" | "github" | "custom";
2196
2361
  label: string;
2197
2362
  curated: boolean;
2198
2363
  requiresOAuth: boolean;
2364
+ credentialMode: "custom" | "oauth" | "pat";
2199
2365
  requiresScopeSelection: boolean;
2200
2366
  scopeLabel: string;
2201
2367
  transports: ("stdio" | "streamable_http" | "legacy_manual")[];
2202
2368
  accessModes: ("provider_default" | "read_only" | "read_write")[];
2203
2369
  defaultAccessMode: "provider_default" | "read_only" | "read_write";
2204
2370
  }, {
2205
- id: "supabase" | "linear" | "notion" | "custom";
2371
+ id: "supabase" | "linear" | "notion" | "github" | "custom";
2206
2372
  label: string;
2207
2373
  curated: boolean;
2208
2374
  requiresOAuth: boolean;
2375
+ credentialMode: "custom" | "oauth" | "pat";
2209
2376
  requiresScopeSelection: boolean;
2210
2377
  scopeLabel: string;
2211
2378
  transports: ("stdio" | "streamable_http" | "legacy_manual")[];
@@ -2396,7 +2563,7 @@ export declare const mcpAgentConnectionSummarySchema: z.ZodObject<{
2396
2563
  ownerAgentId: z.ZodNullable<z.ZodString>;
2397
2564
  name: z.ZodString;
2398
2565
  displayName: z.ZodString;
2399
- provider: z.ZodEnum<["supabase", "linear", "notion", "custom"]>;
2566
+ provider: z.ZodEnum<["supabase", "linear", "notion", "github", "custom"]>;
2400
2567
  transport: z.ZodEnum<["stdio", "streamable_http", "legacy_manual"]>;
2401
2568
  externalScope: z.ZodNullable<z.ZodString>;
2402
2569
  accessMode: z.ZodEnum<["provider_default", "read_only", "read_write"]>;
@@ -2497,6 +2664,15 @@ export declare const mcpAgentConnectionSummarySchema: z.ZodObject<{
2497
2664
  legacyConfigRetained: true;
2498
2665
  }, {
2499
2666
  legacyConfigRetained: true;
2667
+ }>, z.ZodObject<{
2668
+ endpoint: z.ZodLiteral<"https://api.githubcopilot.com/mcp/">;
2669
+ scopeMode: z.ZodLiteral<"account">;
2670
+ }, "strict", z.ZodTypeAny, {
2671
+ endpoint: "https://api.githubcopilot.com/mcp/";
2672
+ scopeMode: "account";
2673
+ }, {
2674
+ endpoint: "https://api.githubcopilot.com/mcp/";
2675
+ scopeMode: "account";
2500
2676
  }>, z.ZodObject<{
2501
2677
  featureGroups: z.ZodObject<{
2502
2678
  mode: z.ZodLiteral<"provider_default">;
@@ -2569,9 +2745,12 @@ export declare const mcpAgentConnectionSummarySchema: z.ZodObject<{
2569
2745
  mode: "provider_default";
2570
2746
  excluded: string[];
2571
2747
  };
2748
+ } | {
2749
+ endpoint: "https://api.githubcopilot.com/mcp/";
2750
+ scopeMode: "account";
2572
2751
  };
2573
2752
  enabled: boolean;
2574
- provider: "supabase" | "linear" | "notion" | "custom";
2753
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
2575
2754
  externalScope: string | null;
2576
2755
  startupTimeoutMs: number;
2577
2756
  toolTimeoutMs: number;
@@ -2618,9 +2797,12 @@ export declare const mcpAgentConnectionSummarySchema: z.ZodObject<{
2618
2797
  mode: "provider_default";
2619
2798
  excluded: string[];
2620
2799
  };
2800
+ } | {
2801
+ endpoint: "https://api.githubcopilot.com/mcp/";
2802
+ scopeMode: "account";
2621
2803
  };
2622
2804
  enabled: boolean;
2623
- provider: "supabase" | "linear" | "notion" | "custom";
2805
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
2624
2806
  externalScope: string | null;
2625
2807
  startupTimeoutMs: number;
2626
2808
  toolTimeoutMs: number;
@@ -2749,9 +2931,12 @@ export declare const mcpAgentConnectionSummarySchema: z.ZodObject<{
2749
2931
  mode: "provider_default";
2750
2932
  excluded: string[];
2751
2933
  };
2934
+ } | {
2935
+ endpoint: "https://api.githubcopilot.com/mcp/";
2936
+ scopeMode: "account";
2752
2937
  };
2753
2938
  enabled: boolean;
2754
- provider: "supabase" | "linear" | "notion" | "custom";
2939
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
2755
2940
  externalScope: string | null;
2756
2941
  startupTimeoutMs: number;
2757
2942
  toolTimeoutMs: number;
@@ -2824,9 +3009,12 @@ export declare const mcpAgentConnectionSummarySchema: z.ZodObject<{
2824
3009
  mode: "provider_default";
2825
3010
  excluded: string[];
2826
3011
  };
3012
+ } | {
3013
+ endpoint: "https://api.githubcopilot.com/mcp/";
3014
+ scopeMode: "account";
2827
3015
  };
2828
3016
  enabled: boolean;
2829
- provider: "supabase" | "linear" | "notion" | "custom";
3017
+ provider: "supabase" | "linear" | "notion" | "github" | "custom";
2830
3018
  externalScope: string | null;
2831
3019
  startupTimeoutMs: number;
2832
3020
  toolTimeoutMs: number;
@@ -2969,7 +3157,7 @@ export declare const managedExternalMcpBindingsSchema: z.ZodArray<z.ZodObject<{
2969
3157
  };
2970
3158
  }>, "many">;
2971
3159
  export declare const mcpProviderAvailabilitySchema: z.ZodEffects<z.ZodObject<{
2972
- provider: z.ZodEnum<["supabase", "linear", "notion"]>;
3160
+ provider: z.ZodEnum<["supabase", "linear", "notion", "github"]>;
2973
3161
  organization: z.ZodObject<{
2974
3162
  state: z.ZodEnum<["not_connected", "connecting", "connected", "needs_attention", "disconnected"]>;
2975
3163
  connectionId: z.ZodNullable<z.ZodString>;
@@ -2981,18 +3169,18 @@ export declare const mcpProviderAvailabilitySchema: z.ZodEffects<z.ZodObject<{
2981
3169
  historicalGrantConnectionIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2982
3170
  }, "strict", z.ZodTypeAny, {
2983
3171
  state: "not_connected" | "connecting" | "connected" | "needs_attention" | "disconnected";
3172
+ scopeMode: "account" | "workspace" | "legacy_project" | null;
2984
3173
  connectionId: string | null;
2985
3174
  maxAccess: "read_only" | "read_write" | "provider_granted" | null;
2986
- scopeMode: "account" | "workspace" | "legacy_project" | null;
2987
3175
  revision: number | null;
2988
3176
  affectedAgentCount?: number | undefined;
2989
3177
  agentConnectionCount?: number | undefined;
2990
3178
  historicalGrantConnectionIds?: string[] | undefined;
2991
3179
  }, {
2992
3180
  state: "not_connected" | "connecting" | "connected" | "needs_attention" | "disconnected";
3181
+ scopeMode: "account" | "workspace" | "legacy_project" | null;
2993
3182
  connectionId: string | null;
2994
3183
  maxAccess: "read_only" | "read_write" | "provider_granted" | null;
2995
- scopeMode: "account" | "workspace" | "legacy_project" | null;
2996
3184
  revision: number | null;
2997
3185
  affectedAgentCount?: number | undefined;
2998
3186
  agentConnectionCount?: number | undefined;
@@ -3048,15 +3236,15 @@ export declare const mcpProviderAvailabilitySchema: z.ZodEffects<z.ZodObject<{
3048
3236
  }, "strict", z.ZodTypeAny, {
3049
3237
  organization: {
3050
3238
  state: "not_connected" | "connecting" | "connected" | "needs_attention" | "disconnected";
3239
+ scopeMode: "account" | "workspace" | "legacy_project" | null;
3051
3240
  connectionId: string | null;
3052
3241
  maxAccess: "read_only" | "read_write" | "provider_granted" | null;
3053
- scopeMode: "account" | "workspace" | "legacy_project" | null;
3054
3242
  revision: number | null;
3055
3243
  affectedAgentCount?: number | undefined;
3056
3244
  agentConnectionCount?: number | undefined;
3057
3245
  historicalGrantConnectionIds?: string[] | undefined;
3058
3246
  };
3059
- provider: "supabase" | "linear" | "notion";
3247
+ provider: "supabase" | "linear" | "notion" | "github";
3060
3248
  agent?: {
3061
3249
  connection: {
3062
3250
  state: "not_connected" | "connecting" | "connected" | "needs_attention" | "disconnected";
@@ -3073,15 +3261,15 @@ export declare const mcpProviderAvailabilitySchema: z.ZodEffects<z.ZodObject<{
3073
3261
  }, {
3074
3262
  organization: {
3075
3263
  state: "not_connected" | "connecting" | "connected" | "needs_attention" | "disconnected";
3264
+ scopeMode: "account" | "workspace" | "legacy_project" | null;
3076
3265
  connectionId: string | null;
3077
3266
  maxAccess: "read_only" | "read_write" | "provider_granted" | null;
3078
- scopeMode: "account" | "workspace" | "legacy_project" | null;
3079
3267
  revision: number | null;
3080
3268
  affectedAgentCount?: number | undefined;
3081
3269
  agentConnectionCount?: number | undefined;
3082
3270
  historicalGrantConnectionIds?: string[] | undefined;
3083
3271
  };
3084
- provider: "supabase" | "linear" | "notion";
3272
+ provider: "supabase" | "linear" | "notion" | "github";
3085
3273
  agent?: {
3086
3274
  access: "read_only" | "read_write" | "none" | "provider_granted" | "full";
3087
3275
  activeRunUsesOlderPolicy: boolean;
@@ -3098,15 +3286,15 @@ export declare const mcpProviderAvailabilitySchema: z.ZodEffects<z.ZodObject<{
3098
3286
  }>, {
3099
3287
  organization: {
3100
3288
  state: "not_connected" | "connecting" | "connected" | "needs_attention" | "disconnected";
3289
+ scopeMode: "account" | "workspace" | "legacy_project" | null;
3101
3290
  connectionId: string | null;
3102
3291
  maxAccess: "read_only" | "read_write" | "provider_granted" | null;
3103
- scopeMode: "account" | "workspace" | "legacy_project" | null;
3104
3292
  revision: number | null;
3105
3293
  affectedAgentCount?: number | undefined;
3106
3294
  agentConnectionCount?: number | undefined;
3107
3295
  historicalGrantConnectionIds?: string[] | undefined;
3108
3296
  };
3109
- provider: "supabase" | "linear" | "notion";
3297
+ provider: "supabase" | "linear" | "notion" | "github";
3110
3298
  agent?: {
3111
3299
  connection: {
3112
3300
  state: "not_connected" | "connecting" | "connected" | "needs_attention" | "disconnected";
@@ -3123,15 +3311,15 @@ export declare const mcpProviderAvailabilitySchema: z.ZodEffects<z.ZodObject<{
3123
3311
  }, {
3124
3312
  organization: {
3125
3313
  state: "not_connected" | "connecting" | "connected" | "needs_attention" | "disconnected";
3314
+ scopeMode: "account" | "workspace" | "legacy_project" | null;
3126
3315
  connectionId: string | null;
3127
3316
  maxAccess: "read_only" | "read_write" | "provider_granted" | null;
3128
- scopeMode: "account" | "workspace" | "legacy_project" | null;
3129
3317
  revision: number | null;
3130
3318
  affectedAgentCount?: number | undefined;
3131
3319
  agentConnectionCount?: number | undefined;
3132
3320
  historicalGrantConnectionIds?: string[] | undefined;
3133
3321
  };
3134
- provider: "supabase" | "linear" | "notion";
3322
+ provider: "supabase" | "linear" | "notion" | "github";
3135
3323
  agent?: {
3136
3324
  access: "read_only" | "read_write" | "none" | "provider_granted" | "full";
3137
3325
  activeRunUsesOlderPolicy: boolean;