@belonguniverseai/react-sdk 0.6.5 → 0.6.7

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 (83) hide show
  1. package/dist/api/client.d.ts +683 -2
  2. package/dist/api/connectors.d.ts +360 -0
  3. package/dist/api/query-keys.d.ts +8 -0
  4. package/dist/component/{abnfDiagram-N423BO3Z-DXtYRs-k.js → abnfDiagram-N423BO3Z-CZS71qjo.js} +4 -4
  5. package/dist/component/{arc-k2puh3QC.js → arc-CztymUZ_.js} +2 -2
  6. package/dist/component/{architectureDiagram-T3A2C74G-DAmYa1QR.js → architectureDiagram-T3A2C74G-Dg9ZE0Qp.js} +3 -3
  7. package/dist/component/{blockDiagram-VBNYF7ZC-zXWS_7FA.js → blockDiagram-VBNYF7ZC-DngLqsTJ.js} +4 -4
  8. package/dist/component/{c4Diagram-5PPSVZJV-DrhhcFC2.js → c4Diagram-5PPSVZJV-Dv9PRH6O.js} +3 -3
  9. package/dist/component/{channel-BradwEzR.js → channel-Cy1msWjd.js} +2 -2
  10. package/dist/component/{chunk-2GRJ4B5K-CFlVgxT_.js → chunk-2GRJ4B5K-BP6YBz9_.js} +2 -2
  11. package/dist/component/{chunk-2Q5K7J3B-BWVz-RZT.js → chunk-2Q5K7J3B-BfWYZyaV.js} +2 -2
  12. package/dist/component/{chunk-5RXB4S5H-DzGJLYck.js → chunk-5RXB4S5H-Wn88BCO0.js} +5 -5
  13. package/dist/component/{chunk-5VM5RSS4-BiYvFRMB.js → chunk-5VM5RSS4-CXdsy-yn.js} +2 -2
  14. package/dist/component/{chunk-6Q2QTUOP-DKkDhyrb.js → chunk-6Q2QTUOP-DSge-zbv.js} +2 -2
  15. package/dist/component/{chunk-GF5L2VYU-DQDnIvXz.js → chunk-GF5L2VYU-7kov7TtI.js} +6 -6
  16. package/dist/component/{chunk-JWPE2WC7-xUoyVsyD.js → chunk-JWPE2WC7-BKBsGsHG.js} +2 -2
  17. package/dist/component/{chunk-KBJHAD2P-CeI2oVSe.js → chunk-KBJHAD2P-CZBTReK1.js} +2 -2
  18. package/dist/component/{chunk-RYQCIY6F-DC_eKBFo.js → chunk-RYQCIY6F-DanZm73E.js} +2 -2
  19. package/dist/component/{chunk-XXDRQBXY-Chbw9HR0.js → chunk-XXDRQBXY-K9dZrAbB.js} +2 -2
  20. package/dist/component/{classDiagram-JCYQIIEL-Cm5ICyOE.js → classDiagram-JCYQIIEL-DgVNXgGq.js} +3 -3
  21. package/dist/component/{classDiagram-v2-OCEON4UE-Cm5ICyOE.js → classDiagram-v2-OCEON4UE-DgVNXgGq.js} +3 -3
  22. package/dist/component/{cose-bilkent-JH36ORCC-DaXtU49r.js → cose-bilkent-JH36ORCC-CNh7W_Rr.js} +2 -2
  23. package/dist/component/{cynefinDiagram-MW4NZA55-QC8TFvBp.js → cynefinDiagram-MW4NZA55-BBxdfZii.js} +3 -3
  24. package/dist/component/{dagre-VZM6K2ZE-C2OOSYgW.js → dagre-VZM6K2ZE-D6mkmclz.js} +3 -3
  25. package/dist/component/{diagram-7IWD3JNH-Cax2R3mQ.js → diagram-7IWD3JNH-EoPRghAe.js} +4 -4
  26. package/dist/component/{diagram-B4RE2ZJO-Cx3_tBen.js → diagram-B4RE2ZJO-Ck-EIN4V.js} +3 -3
  27. package/dist/component/{diagram-LBJQPF4R-Cv3oJQdh.js → diagram-LBJQPF4R-CFJ1IxnO.js} +3 -3
  28. package/dist/component/{diagram-Q27KOJAE-C41GeN84.js → diagram-Q27KOJAE-xtJbi8_k.js} +4 -4
  29. package/dist/component/{diagram-UB23O5K3-CNmh6MHJ.js → diagram-UB23O5K3-CL4MaOzz.js} +3 -3
  30. package/dist/component/{ebnfDiagram-BXEA7PRR-BLWo9Cro.js → ebnfDiagram-BXEA7PRR-BkyoJuZH.js} +4 -4
  31. package/dist/component/{erDiagram-JOGREHBK-zOwSdp7J.js → erDiagram-JOGREHBK-BIXrNwQY.js} +5 -5
  32. package/dist/component/{flowDiagram-UKHOOZJN-DDHQ3RkH.js → flowDiagram-UKHOOZJN-D0Mrp2sk.js} +7 -7
  33. package/dist/component/{ganttDiagram-PKOTCBZU-CXfR2efe.js → ganttDiagram-PKOTCBZU-Bk57vzJC.js} +3 -3
  34. package/dist/component/{gitGraphDiagram-DS77QQ5N-CxtaDoUb.js → gitGraphDiagram-DS77QQ5N-CCpx-kXh.js} +4 -4
  35. package/dist/component/{highlighted-body-OFNGDK62-C4THAl8M.js → highlighted-body-OFNGDK62-B6vAKr9s.js} +2 -2
  36. package/dist/component/index.js +2 -2
  37. package/dist/component/{infoDiagram-6WML65LV-CJwjv6J3.js → infoDiagram-6WML65LV-KlVle315.js} +2 -2
  38. package/dist/component/{ishikawaDiagram-WSZJBQD7-CtQFMhUI.js → ishikawaDiagram-WSZJBQD7-Bi7sbuio.js} +2 -2
  39. package/dist/component/{journeyDiagram-NVQOT4AX-D0YCMj2N.js → journeyDiagram-NVQOT4AX-Bve0TBmQ.js} +5 -5
  40. package/dist/component/{kanban-definition-27J2QSJJ-DtT1k--r.js → kanban-definition-27J2QSJJ-BznMypxI.js} +3 -3
  41. package/dist/component/{linear-98AY9cNO.js → linear-Db0zTzeX.js} +2 -2
  42. package/dist/component/{mermaid-GHXKKRXX-CpyPA4Tq.js → mermaid-GHXKKRXX-DRvjpCT4.js} +35019 -32024
  43. package/dist/component/{mindmap-definition-FAOFIHXS-Cb4ZDYiB.js → mindmap-definition-FAOFIHXS-DC-W6F5t.js} +4 -4
  44. package/dist/component/{pegDiagram-VL7TDLO6-3n9pdqFl.js → pegDiagram-VL7TDLO6-DN4TVY9N.js} +4 -4
  45. package/dist/component/{pieDiagram-7S7Q4E2Y-BdX_Nmhs.js → pieDiagram-7S7Q4E2Y-TgcBFjjO.js} +4 -4
  46. package/dist/component/{quadrantDiagram-CIZ2JOQS-B23YDXjA.js → quadrantDiagram-CIZ2JOQS-CkM5IhjU.js} +3 -3
  47. package/dist/component/{railroadDiagram-AXF67PYL-D-KttLwV.js → railroadDiagram-AXF67PYL-DxiLraF5.js} +4 -4
  48. package/dist/component/{requirementDiagram-LRYGKXZP-mg4T4J5m.js → requirementDiagram-LRYGKXZP-nQo-Mina.js} +4 -4
  49. package/dist/component/{sankeyDiagram-W5VNT64P-DSJ1i2V9.js → sankeyDiagram-W5VNT64P-4KllqWbF.js} +2 -2
  50. package/dist/component/{sequenceDiagram-SI44F4Z6-5ASel8SG.js → sequenceDiagram-SI44F4Z6-Ddb1e9Vc.js} +4 -4
  51. package/dist/component/{sizeCapture-X5ZJPWSS-DhE5AZVC.js → sizeCapture-X5ZJPWSS-cOyVP5iN.js} +2 -2
  52. package/dist/component/{stateDiagram-OKZ733FA-BDvRPjM1.js → stateDiagram-OKZ733FA-77JC1AgC.js} +3 -3
  53. package/dist/component/{stateDiagram-v2-UEYNNEHI-gO2Xq1pR.js → stateDiagram-v2-UEYNNEHI-CASTwYVj.js} +3 -3
  54. package/dist/component/{swimlanes-SLNWSIFB-BppNVeHn.js → swimlanes-SLNWSIFB-DlzxVctq.js} +4 -4
  55. package/dist/component/{swimlanesDiagram-ULZ7WXOC-DW8klrQx.js → swimlanesDiagram-ULZ7WXOC-BQv0GPEC.js} +3 -3
  56. package/dist/component/{timeline-definition-Z64GVDOM-7bTdkHDS.js → timeline-definition-Z64GVDOM-snpoPkCw.js} +3 -3
  57. package/dist/component/{vennDiagram-T6HMQDX7-BZGZh-tM.js → vennDiagram-T6HMQDX7-CQ3oA8fU.js} +2 -2
  58. package/dist/component/{wardleyDiagram-T6FBY63Y-Dq_yq7ay.js → wardleyDiagram-T6FBY63Y-BPE-lH8K.js} +3 -3
  59. package/dist/component/{xychartDiagram-ELKLHX3M-C5Pwwmdi.js → xychartDiagram-ELKLHX3M-DOiVr_f-.js} +3 -3
  60. package/dist/components/connectors/ConfirmDeleteConnectorDialog.d.ts +16 -0
  61. package/dist/components/connectors/ConnectorAuthFields.d.ts +8 -0
  62. package/dist/components/connectors/ConnectorAvatar.d.ts +14 -0
  63. package/dist/components/connectors/ConnectorDetailsDialog.d.ts +8 -0
  64. package/dist/components/connectors/ConnectorNoticeLine.d.ts +5 -0
  65. package/dist/components/connectors/ConnectorsListSurface.d.ts +31 -0
  66. package/dist/components/connectors/NewConnectorDialog.d.ts +47 -0
  67. package/dist/components/connectors/connector-copy.d.ts +17 -0
  68. package/dist/components/connectors/connector-form.d.ts +247 -0
  69. package/dist/components/connectors/portal-theme.d.ts +8 -0
  70. package/dist/components/connectors/product-name.d.ts +17 -0
  71. package/dist/components/connectors/use-connector-oauth.d.ts +28 -0
  72. package/dist/components/embed/EmbedComposer.d.ts +6 -1
  73. package/dist/components/embed/EmbedRail.d.ts +14 -2
  74. package/dist/components/embed/MentionInput.d.ts +9 -1
  75. package/dist/components/embed/rail-flags.d.ts +14 -0
  76. package/dist/components/prompts/NewPromptDialog.d.ts +9 -0
  77. package/dist/embed/dock-state.d.ts +1 -1
  78. package/dist/i18n/messages/en.d.ts +156 -0
  79. package/dist/i18n/messages/surfaces/connectors.d.ts +512 -0
  80. package/dist/i18n/messages/surfaces/header.d.ts +3 -0
  81. package/dist/i18n/messages/surfaces/prompts.d.ts +6 -0
  82. package/dist/routes/connectors.d.ts +2 -0
  83. package/package.json +1 -1
@@ -617,7 +617,7 @@ export declare const createApiClient: (baseUrl: string) => {
617
617
  };
618
618
  };
619
619
  outputFormat: "json";
620
- status: 404 | 403 | 409;
620
+ status: 403 | 404 | 409;
621
621
  } | {
622
622
  input: {
623
623
  param: {
@@ -677,7 +677,7 @@ export declare const createApiClient: (baseUrl: string) => {
677
677
  };
678
678
  };
679
679
  outputFormat: "json";
680
- status: 404 | 403 | 409;
680
+ status: 403 | 404 | 409;
681
681
  };
682
682
  }>;
683
683
  };
@@ -4490,6 +4490,687 @@ export declare const createApiClient: (baseUrl: string) => {
4490
4490
  }>;
4491
4491
  };
4492
4492
  };
4493
+ } & {
4494
+ v1: {
4495
+ connectors: import('hono/client').ClientRequest<string, "/v1/connectors", {
4496
+ $get: {
4497
+ input: {};
4498
+ output: {
4499
+ connectors: {
4500
+ connectorId: import('node_modules/@belong/cloud/src/platform/ids').ConnectorId;
4501
+ name: string;
4502
+ alias: string;
4503
+ description: string;
4504
+ emoji: string | null;
4505
+ serverUrl: string;
4506
+ transport: "streamable_http" | "sse";
4507
+ authMode: import('node_modules/@belong/cloud/src/features/connectors/connector.repo').ConnectorAuthMode;
4508
+ hasCredentials: boolean;
4509
+ enabled: boolean;
4510
+ status: import('node_modules/@belong/cloud/src/features/connectors/connector.repo').ConnectorStatus;
4511
+ lastError: string | null;
4512
+ tools: readonly {
4513
+ readonly name: string;
4514
+ readonly description: string;
4515
+ readonly enabled: boolean;
4516
+ }[];
4517
+ refusedTools: readonly {
4518
+ readonly toolName: string;
4519
+ readonly message: string;
4520
+ }[];
4521
+ lastDiscoveredAt: string | null;
4522
+ createdAt: string;
4523
+ }[];
4524
+ };
4525
+ outputFormat: "json";
4526
+ status: 200;
4527
+ } | {
4528
+ input: {};
4529
+ output: {
4530
+ readonly error: {
4531
+ readonly type: "connectors_disabled";
4532
+ };
4533
+ };
4534
+ outputFormat: "json";
4535
+ status: 503;
4536
+ };
4537
+ $post: {
4538
+ input: {
4539
+ json: {
4540
+ name: string;
4541
+ serverUrl: string;
4542
+ clientConnectorId: string;
4543
+ auth: {
4544
+ mode: "oauth";
4545
+ clientId?: string | undefined;
4546
+ clientSecret?: string | undefined;
4547
+ scope?: string | undefined;
4548
+ authorizationParams?: Record<string, string> | undefined;
4549
+ } | {
4550
+ mode: "none";
4551
+ } | {
4552
+ mode: "bearer";
4553
+ token: string;
4554
+ } | {
4555
+ mode: "headers";
4556
+ headers: Record<string, string>;
4557
+ } | {
4558
+ mode: "oauth_client_credentials";
4559
+ clientId: string;
4560
+ clientSecret: string;
4561
+ tokenEndpoint?: string | undefined;
4562
+ scope?: string | undefined;
4563
+ };
4564
+ description?: string | undefined;
4565
+ emoji?: string | undefined;
4566
+ transport?: "streamable_http" | "sse" | undefined;
4567
+ };
4568
+ };
4569
+ output: {
4570
+ readonly error: {
4571
+ readonly type: "connectors_disabled";
4572
+ };
4573
+ };
4574
+ outputFormat: "json";
4575
+ status: 503;
4576
+ } | {
4577
+ input: {
4578
+ json: {
4579
+ name: string;
4580
+ serverUrl: string;
4581
+ clientConnectorId: string;
4582
+ auth: {
4583
+ mode: "oauth";
4584
+ clientId?: string | undefined;
4585
+ clientSecret?: string | undefined;
4586
+ scope?: string | undefined;
4587
+ authorizationParams?: Record<string, string> | undefined;
4588
+ } | {
4589
+ mode: "none";
4590
+ } | {
4591
+ mode: "bearer";
4592
+ token: string;
4593
+ } | {
4594
+ mode: "headers";
4595
+ headers: Record<string, string>;
4596
+ } | {
4597
+ mode: "oauth_client_credentials";
4598
+ clientId: string;
4599
+ clientSecret: string;
4600
+ tokenEndpoint?: string | undefined;
4601
+ scope?: string | undefined;
4602
+ };
4603
+ description?: string | undefined;
4604
+ emoji?: string | undefined;
4605
+ transport?: "streamable_http" | "sse" | undefined;
4606
+ };
4607
+ };
4608
+ output: {
4609
+ error: {
4610
+ type: string;
4611
+ requiredScope: string;
4612
+ };
4613
+ };
4614
+ outputFormat: "json";
4615
+ status: 403;
4616
+ } | {
4617
+ input: {
4618
+ json: {
4619
+ name: string;
4620
+ serverUrl: string;
4621
+ clientConnectorId: string;
4622
+ auth: {
4623
+ mode: "oauth";
4624
+ clientId?: string | undefined;
4625
+ clientSecret?: string | undefined;
4626
+ scope?: string | undefined;
4627
+ authorizationParams?: Record<string, string> | undefined;
4628
+ } | {
4629
+ mode: "none";
4630
+ } | {
4631
+ mode: "bearer";
4632
+ token: string;
4633
+ } | {
4634
+ mode: "headers";
4635
+ headers: Record<string, string>;
4636
+ } | {
4637
+ mode: "oauth_client_credentials";
4638
+ clientId: string;
4639
+ clientSecret: string;
4640
+ tokenEndpoint?: string | undefined;
4641
+ scope?: string | undefined;
4642
+ };
4643
+ description?: string | undefined;
4644
+ emoji?: string | undefined;
4645
+ transport?: "streamable_http" | "sse" | undefined;
4646
+ };
4647
+ };
4648
+ output: {
4649
+ connectorId: import('node_modules/@belong/cloud/src/platform/ids').ConnectorId;
4650
+ };
4651
+ outputFormat: "json";
4652
+ status: 200 | 201;
4653
+ } | {
4654
+ input: {
4655
+ json: {
4656
+ name: string;
4657
+ serverUrl: string;
4658
+ clientConnectorId: string;
4659
+ auth: {
4660
+ mode: "oauth";
4661
+ clientId?: string | undefined;
4662
+ clientSecret?: string | undefined;
4663
+ scope?: string | undefined;
4664
+ authorizationParams?: Record<string, string> | undefined;
4665
+ } | {
4666
+ mode: "none";
4667
+ } | {
4668
+ mode: "bearer";
4669
+ token: string;
4670
+ } | {
4671
+ mode: "headers";
4672
+ headers: Record<string, string>;
4673
+ } | {
4674
+ mode: "oauth_client_credentials";
4675
+ clientId: string;
4676
+ clientSecret: string;
4677
+ tokenEndpoint?: string | undefined;
4678
+ scope?: string | undefined;
4679
+ };
4680
+ description?: string | undefined;
4681
+ emoji?: string | undefined;
4682
+ transport?: "streamable_http" | "sse" | undefined;
4683
+ };
4684
+ };
4685
+ output: {
4686
+ error: {
4687
+ type: string;
4688
+ };
4689
+ };
4690
+ outputFormat: "json";
4691
+ status: 422;
4692
+ } | {
4693
+ input: {
4694
+ json: {
4695
+ name: string;
4696
+ serverUrl: string;
4697
+ clientConnectorId: string;
4698
+ auth: {
4699
+ mode: "oauth";
4700
+ clientId?: string | undefined;
4701
+ clientSecret?: string | undefined;
4702
+ scope?: string | undefined;
4703
+ authorizationParams?: Record<string, string> | undefined;
4704
+ } | {
4705
+ mode: "none";
4706
+ } | {
4707
+ mode: "bearer";
4708
+ token: string;
4709
+ } | {
4710
+ mode: "headers";
4711
+ headers: Record<string, string>;
4712
+ } | {
4713
+ mode: "oauth_client_credentials";
4714
+ clientId: string;
4715
+ clientSecret: string;
4716
+ tokenEndpoint?: string | undefined;
4717
+ scope?: string | undefined;
4718
+ };
4719
+ description?: string | undefined;
4720
+ emoji?: string | undefined;
4721
+ transport?: "streamable_http" | "sse" | undefined;
4722
+ };
4723
+ };
4724
+ output: {
4725
+ error: {
4726
+ type: string;
4727
+ alias: string;
4728
+ };
4729
+ };
4730
+ outputFormat: "json";
4731
+ status: 409;
4732
+ };
4733
+ }>;
4734
+ };
4735
+ } & {
4736
+ v1: {
4737
+ connectors: {
4738
+ ":connectorId": import('hono/client').ClientRequest<string, "/v1/connectors/:connectorId", {
4739
+ $patch: {
4740
+ input: {
4741
+ param: {
4742
+ connectorId: string;
4743
+ };
4744
+ } & {
4745
+ json: {
4746
+ name?: string | undefined;
4747
+ description?: string | undefined;
4748
+ emoji?: string | null | undefined;
4749
+ enabled?: boolean | undefined;
4750
+ disabledTools?: string[] | undefined;
4751
+ auth?: {
4752
+ mode: "none";
4753
+ } | {
4754
+ mode: "bearer";
4755
+ token: string;
4756
+ } | {
4757
+ mode: "headers";
4758
+ headers: Record<string, string>;
4759
+ } | {
4760
+ mode: "oauth_client_credentials";
4761
+ clientId: string;
4762
+ clientSecret: string;
4763
+ tokenEndpoint?: string | undefined;
4764
+ scope?: string | undefined;
4765
+ } | undefined;
4766
+ };
4767
+ };
4768
+ output: {
4769
+ readonly error: {
4770
+ readonly type: "connectors_disabled";
4771
+ };
4772
+ };
4773
+ outputFormat: "json";
4774
+ status: 503;
4775
+ } | {
4776
+ input: {
4777
+ param: {
4778
+ connectorId: string;
4779
+ };
4780
+ } & {
4781
+ json: {
4782
+ name?: string | undefined;
4783
+ description?: string | undefined;
4784
+ emoji?: string | null | undefined;
4785
+ enabled?: boolean | undefined;
4786
+ disabledTools?: string[] | undefined;
4787
+ auth?: {
4788
+ mode: "none";
4789
+ } | {
4790
+ mode: "bearer";
4791
+ token: string;
4792
+ } | {
4793
+ mode: "headers";
4794
+ headers: Record<string, string>;
4795
+ } | {
4796
+ mode: "oauth_client_credentials";
4797
+ clientId: string;
4798
+ clientSecret: string;
4799
+ tokenEndpoint?: string | undefined;
4800
+ scope?: string | undefined;
4801
+ } | undefined;
4802
+ };
4803
+ };
4804
+ output: {
4805
+ error: {
4806
+ type: string;
4807
+ requiredScope: string;
4808
+ };
4809
+ };
4810
+ outputFormat: "json";
4811
+ status: 403;
4812
+ } | {
4813
+ input: {
4814
+ param: {
4815
+ connectorId: string;
4816
+ };
4817
+ } & {
4818
+ json: {
4819
+ name?: string | undefined;
4820
+ description?: string | undefined;
4821
+ emoji?: string | null | undefined;
4822
+ enabled?: boolean | undefined;
4823
+ disabledTools?: string[] | undefined;
4824
+ auth?: {
4825
+ mode: "none";
4826
+ } | {
4827
+ mode: "bearer";
4828
+ token: string;
4829
+ } | {
4830
+ mode: "headers";
4831
+ headers: Record<string, string>;
4832
+ } | {
4833
+ mode: "oauth_client_credentials";
4834
+ clientId: string;
4835
+ clientSecret: string;
4836
+ tokenEndpoint?: string | undefined;
4837
+ scope?: string | undefined;
4838
+ } | undefined;
4839
+ };
4840
+ };
4841
+ output: {
4842
+ connectorId: import('node_modules/@belong/cloud/src/platform/ids').ConnectorId;
4843
+ };
4844
+ outputFormat: "json";
4845
+ status: 200;
4846
+ } | {
4847
+ input: {
4848
+ param: {
4849
+ connectorId: string;
4850
+ };
4851
+ } & {
4852
+ json: {
4853
+ name?: string | undefined;
4854
+ description?: string | undefined;
4855
+ emoji?: string | null | undefined;
4856
+ enabled?: boolean | undefined;
4857
+ disabledTools?: string[] | undefined;
4858
+ auth?: {
4859
+ mode: "none";
4860
+ } | {
4861
+ mode: "bearer";
4862
+ token: string;
4863
+ } | {
4864
+ mode: "headers";
4865
+ headers: Record<string, string>;
4866
+ } | {
4867
+ mode: "oauth_client_credentials";
4868
+ clientId: string;
4869
+ clientSecret: string;
4870
+ tokenEndpoint?: string | undefined;
4871
+ scope?: string | undefined;
4872
+ } | undefined;
4873
+ };
4874
+ };
4875
+ output: {
4876
+ error: {
4877
+ type: string;
4878
+ };
4879
+ };
4880
+ outputFormat: "json";
4881
+ status: 404;
4882
+ } | {
4883
+ input: {
4884
+ param: {
4885
+ connectorId: string;
4886
+ };
4887
+ } & {
4888
+ json: {
4889
+ name?: string | undefined;
4890
+ description?: string | undefined;
4891
+ emoji?: string | null | undefined;
4892
+ enabled?: boolean | undefined;
4893
+ disabledTools?: string[] | undefined;
4894
+ auth?: {
4895
+ mode: "none";
4896
+ } | {
4897
+ mode: "bearer";
4898
+ token: string;
4899
+ } | {
4900
+ mode: "headers";
4901
+ headers: Record<string, string>;
4902
+ } | {
4903
+ mode: "oauth_client_credentials";
4904
+ clientId: string;
4905
+ clientSecret: string;
4906
+ tokenEndpoint?: string | undefined;
4907
+ scope?: string | undefined;
4908
+ } | undefined;
4909
+ };
4910
+ };
4911
+ output: {
4912
+ error: {
4913
+ type: string;
4914
+ };
4915
+ };
4916
+ outputFormat: "json";
4917
+ status: 422;
4918
+ };
4919
+ $delete: {
4920
+ input: {
4921
+ param: {
4922
+ connectorId: string;
4923
+ };
4924
+ };
4925
+ output: null;
4926
+ outputFormat: "body";
4927
+ status: 204;
4928
+ } | {
4929
+ input: {
4930
+ param: {
4931
+ connectorId: string;
4932
+ };
4933
+ };
4934
+ output: {
4935
+ readonly error: {
4936
+ readonly type: "connectors_disabled";
4937
+ };
4938
+ };
4939
+ outputFormat: "json";
4940
+ status: 503;
4941
+ } | {
4942
+ input: {
4943
+ param: {
4944
+ connectorId: string;
4945
+ };
4946
+ };
4947
+ output: {
4948
+ error: {
4949
+ type: string;
4950
+ requiredScope: string;
4951
+ };
4952
+ };
4953
+ outputFormat: "json";
4954
+ status: 403;
4955
+ } | {
4956
+ input: {
4957
+ param: {
4958
+ connectorId: string;
4959
+ };
4960
+ };
4961
+ output: {
4962
+ error: {
4963
+ type: string;
4964
+ };
4965
+ };
4966
+ outputFormat: "json";
4967
+ status: 404;
4968
+ };
4969
+ }>;
4970
+ };
4971
+ };
4972
+ } & {
4973
+ v1: {
4974
+ connectors: {
4975
+ ":connectorId": {
4976
+ refresh: import('hono/client').ClientRequest<string, "/v1/connectors/:connectorId/refresh", {
4977
+ $post: {
4978
+ input: {
4979
+ param: {
4980
+ connectorId: string;
4981
+ };
4982
+ };
4983
+ output: {
4984
+ readonly error: {
4985
+ readonly type: "connectors_disabled";
4986
+ };
4987
+ };
4988
+ outputFormat: "json";
4989
+ status: 503;
4990
+ } | {
4991
+ input: {
4992
+ param: {
4993
+ connectorId: string;
4994
+ };
4995
+ };
4996
+ output: {
4997
+ error: {
4998
+ type: string;
4999
+ requiredScope: string;
5000
+ };
5001
+ };
5002
+ outputFormat: "json";
5003
+ status: 403;
5004
+ } | {
5005
+ input: {
5006
+ param: {
5007
+ connectorId: string;
5008
+ };
5009
+ };
5010
+ output: {
5011
+ connectorId: import('node_modules/@belong/cloud/src/platform/ids').ConnectorId;
5012
+ };
5013
+ outputFormat: "json";
5014
+ status: 200;
5015
+ } | {
5016
+ input: {
5017
+ param: {
5018
+ connectorId: string;
5019
+ };
5020
+ };
5021
+ output: {
5022
+ error: {
5023
+ type: string;
5024
+ };
5025
+ };
5026
+ outputFormat: "json";
5027
+ status: 404;
5028
+ } | {
5029
+ input: {
5030
+ param: {
5031
+ connectorId: string;
5032
+ };
5033
+ };
5034
+ output: {
5035
+ error: {
5036
+ type: string;
5037
+ };
5038
+ };
5039
+ outputFormat: "json";
5040
+ status: 409;
5041
+ } | {
5042
+ input: {
5043
+ param: {
5044
+ connectorId: string;
5045
+ };
5046
+ };
5047
+ output: {
5048
+ error: {
5049
+ type: string;
5050
+ };
5051
+ };
5052
+ outputFormat: "json";
5053
+ status: 422;
5054
+ };
5055
+ }>;
5056
+ };
5057
+ };
5058
+ };
5059
+ } & {
5060
+ v1: {
5061
+ connectors: {
5062
+ ":connectorId": {
5063
+ oauth: {
5064
+ start: import('hono/client').ClientRequest<string, "/v1/connectors/:connectorId/oauth/start", {
5065
+ $post: {
5066
+ input: {
5067
+ param: {
5068
+ connectorId: string;
5069
+ };
5070
+ };
5071
+ output: {
5072
+ readonly error: {
5073
+ readonly type: "connectors_disabled";
5074
+ };
5075
+ };
5076
+ outputFormat: "json";
5077
+ status: 503;
5078
+ } | {
5079
+ input: {
5080
+ param: {
5081
+ connectorId: string;
5082
+ };
5083
+ };
5084
+ output: {
5085
+ error: {
5086
+ type: string;
5087
+ requiredScope: string;
5088
+ };
5089
+ };
5090
+ outputFormat: "json";
5091
+ status: 403;
5092
+ } | {
5093
+ input: {
5094
+ param: {
5095
+ connectorId: string;
5096
+ };
5097
+ };
5098
+ output: {
5099
+ authorizationUrl: string;
5100
+ };
5101
+ outputFormat: "json";
5102
+ status: 200;
5103
+ } | {
5104
+ input: {
5105
+ param: {
5106
+ connectorId: string;
5107
+ };
5108
+ };
5109
+ output: {
5110
+ error: {
5111
+ type: string;
5112
+ };
5113
+ };
5114
+ outputFormat: "json";
5115
+ status: 503;
5116
+ } | {
5117
+ input: {
5118
+ param: {
5119
+ connectorId: string;
5120
+ };
5121
+ };
5122
+ output: {
5123
+ error: {
5124
+ type: string;
5125
+ };
5126
+ };
5127
+ outputFormat: "json";
5128
+ status: 404;
5129
+ } | {
5130
+ input: {
5131
+ param: {
5132
+ connectorId: string;
5133
+ };
5134
+ };
5135
+ output: {
5136
+ error: {
5137
+ type: string;
5138
+ };
5139
+ };
5140
+ outputFormat: "json";
5141
+ status: 409;
5142
+ } | {
5143
+ input: {
5144
+ param: {
5145
+ connectorId: string;
5146
+ };
5147
+ };
5148
+ output: {
5149
+ error: {
5150
+ type: string;
5151
+ };
5152
+ };
5153
+ outputFormat: "json";
5154
+ status: 422;
5155
+ };
5156
+ }>;
5157
+ };
5158
+ };
5159
+ };
5160
+ };
5161
+ } & {
5162
+ v1: {
5163
+ "connector-oauth": {
5164
+ callback: import('hono/client').ClientRequest<string, "/v1/connector-oauth/callback", {
5165
+ $get: {
5166
+ input: {};
5167
+ output: {};
5168
+ outputFormat: string;
5169
+ status: import('hono/utils/http-status').StatusCode;
5170
+ };
5171
+ }>;
5172
+ };
5173
+ };
4493
5174
  } & {
4494
5175
  v1: {
4495
5176
  admin: {