@bubblelab/shared-schemas 0.1.57 → 0.1.59

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.
@@ -1 +1 @@
1
- {"version":3,"file":"credential-schema.d.ts","sourceRoot":"","sources":["../src/credential-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAMtC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,cAAc,EAAE,gBAAgB,CAoRb,CAAC;AAEhE;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CAQnD;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAkC7D,CAAC;AAEF,+BAA+B;AAC/B,eAAO,MAAM,kBAAkB,qBAgB7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,qBAG/B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,QAAQ,GACR,cAAc,GACd,QAAQ,GACR,MAAM,GACN,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB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MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC"}
package/dist/index.js CHANGED
@@ -620,49 +620,452 @@ var OAUTH_PROVIDERS = {
620
620
  ["SLACK_CRED" /* SLACK_CRED */]: {
621
621
  displayName: "Slack Workspace",
622
622
  defaultScopes: [
623
+ // Messaging - Read
624
+ "app_mentions:read",
625
+ "channels:history",
626
+ "groups:history",
627
+ "im:history",
628
+ "mpim:history",
629
+ // Messaging - Write
623
630
  "chat:write",
631
+ "chat:write.public",
632
+ "chat:write.customize",
633
+ // Channels & Conversations - Read
624
634
  "channels:read",
625
- "channels:history",
626
- "app_mentions:read",
635
+ "groups:read",
636
+ "im:read",
637
+ "mpim:read",
638
+ // Channels & Conversations - Write
639
+ "channels:join",
640
+ "channels:manage",
641
+ "channels:write.invites",
642
+ "channels:write.topic",
643
+ "groups:write",
644
+ "groups:write.invites",
645
+ "groups:write.topic",
646
+ "im:write",
647
+ "im:write.topic",
648
+ "mpim:write",
649
+ "mpim:write.topic",
650
+ // Users & Team
627
651
  "users:read",
628
- "team:read"
652
+ "users:read.email",
653
+ "users:write",
654
+ "users.profile:read",
655
+ "team:read",
656
+ "usergroups:read",
657
+ "usergroups:write",
658
+ "dnd:read",
659
+ // Reactions
660
+ "reactions:read",
661
+ "reactions:write",
662
+ // Files
663
+ "files:read",
664
+ "files:write",
665
+ "remote_files:read",
666
+ "remote_files:write",
667
+ "remote_files:share",
668
+ // Pins & Bookmarks
669
+ "pins:read",
670
+ "pins:write",
671
+ "bookmarks:read",
672
+ "bookmarks:write",
673
+ // Links
674
+ "links:read",
675
+ "links:write",
676
+ "links.embed:write",
677
+ // Canvases & Lists
678
+ "canvases:read",
679
+ "canvases:write",
680
+ "lists:read",
681
+ "lists:write",
682
+ // Calls
683
+ "calls:read",
684
+ "calls:write",
685
+ // Reminders
686
+ "reminders:read",
687
+ "reminders:write",
688
+ // Slack Connect
689
+ "conversations.connect:read",
690
+ "conversations.connect:write",
691
+ "conversations.connect:manage",
692
+ // Triggers & Commands
693
+ "triggers:read",
694
+ "triggers:write",
695
+ "commands",
696
+ // Metadata & Emoji
697
+ "metadata.message:read",
698
+ "emoji:read",
699
+ // Assistant
700
+ "assistant:write",
701
+ // Webhooks
702
+ "incoming-webhook",
703
+ // Search
704
+ "search:read.files",
705
+ "search:read.public",
706
+ "search:read.users",
707
+ // Team Preferences
708
+ "team.preferences:read"
629
709
  ],
630
- description: "Connect to your Slack workspace for sending messages, reading channels, and receiving mentions",
710
+ description: "Connect to your Slack workspace for full messaging, file sharing, and workflow automation capabilities",
631
711
  scopeDescriptions: [
712
+ // Messaging - Read
713
+ {
714
+ scope: "app_mentions:read",
715
+ description: "Receive @mentions of the bot",
716
+ defaultEnabled: true
717
+ },
718
+ {
719
+ scope: "channels:history",
720
+ description: "Read messages in public channels",
721
+ defaultEnabled: true
722
+ },
723
+ {
724
+ scope: "groups:history",
725
+ description: "Read messages in private channels",
726
+ defaultEnabled: true
727
+ },
728
+ {
729
+ scope: "im:history",
730
+ description: "Read direct messages with the bot",
731
+ defaultEnabled: true
732
+ },
733
+ {
734
+ scope: "mpim:history",
735
+ description: "Read group DMs with the bot",
736
+ defaultEnabled: true
737
+ },
738
+ // Messaging - Write
632
739
  {
633
740
  scope: "chat:write",
634
- description: "Send messages as the app",
741
+ description: "Send messages to channels",
742
+ defaultEnabled: true
743
+ },
744
+ {
745
+ scope: "chat:write.public",
746
+ description: "Send messages to any public channel",
635
747
  defaultEnabled: true
636
748
  },
749
+ {
750
+ scope: "chat:write.customize",
751
+ description: "Customize bot username and avatar",
752
+ defaultEnabled: false
753
+ },
754
+ // Channels - Read
637
755
  {
638
756
  scope: "channels:read",
639
- description: "View basic information about public channels",
757
+ description: "View public channels list",
640
758
  defaultEnabled: true
641
759
  },
642
760
  {
643
- scope: "channels:history",
644
- description: "View messages and content in public channels",
761
+ scope: "groups:read",
762
+ description: "View private channels list",
645
763
  defaultEnabled: true
646
764
  },
647
765
  {
648
- scope: "app_mentions:read",
649
- description: "View messages that mention the app",
766
+ scope: "im:read",
767
+ description: "View direct messages list",
768
+ defaultEnabled: true
769
+ },
770
+ {
771
+ scope: "mpim:read",
772
+ description: "View group DMs list",
773
+ defaultEnabled: true
774
+ },
775
+ // Channels - Write
776
+ {
777
+ scope: "channels:join",
778
+ description: "Join public channels",
779
+ defaultEnabled: false
780
+ },
781
+ {
782
+ scope: "channels:manage",
783
+ description: "Create and archive public channels",
784
+ defaultEnabled: false
785
+ },
786
+ {
787
+ scope: "channels:write.invites",
788
+ description: "Invite users to public channels",
789
+ defaultEnabled: false
790
+ },
791
+ {
792
+ scope: "channels:write.topic",
793
+ description: "Set public channel topics",
794
+ defaultEnabled: false
795
+ },
796
+ {
797
+ scope: "groups:write",
798
+ description: "Create and archive private channels",
799
+ defaultEnabled: false
800
+ },
801
+ {
802
+ scope: "groups:write.invites",
803
+ description: "Invite users to private channels",
804
+ defaultEnabled: false
805
+ },
806
+ {
807
+ scope: "groups:write.topic",
808
+ description: "Set private channel topics",
809
+ defaultEnabled: false
810
+ },
811
+ {
812
+ scope: "im:write",
813
+ description: "Start DM conversations",
814
+ defaultEnabled: true
815
+ },
816
+ {
817
+ scope: "im:write.topic",
818
+ description: "Set DM topics",
819
+ defaultEnabled: false
820
+ },
821
+ {
822
+ scope: "mpim:write",
823
+ description: "Start group DM conversations",
650
824
  defaultEnabled: true
651
825
  },
826
+ {
827
+ scope: "mpim:write.topic",
828
+ description: "Set group DM topics",
829
+ defaultEnabled: false
830
+ },
831
+ // Users & Team
652
832
  {
653
833
  scope: "users:read",
654
- description: "View people in the workspace",
834
+ description: "View user information",
655
835
  defaultEnabled: true
656
836
  },
837
+ {
838
+ scope: "users:read.email",
839
+ description: "View user emails",
840
+ defaultEnabled: false
841
+ },
842
+ {
843
+ scope: "users:write",
844
+ description: "Set bot presence status",
845
+ defaultEnabled: false
846
+ },
847
+ {
848
+ scope: "users.profile:read",
849
+ description: "View detailed user profiles",
850
+ defaultEnabled: false
851
+ },
657
852
  {
658
853
  scope: "team:read",
659
- description: "View workspace information",
854
+ description: "View workspace info",
855
+ defaultEnabled: true
856
+ },
857
+ {
858
+ scope: "usergroups:read",
859
+ description: "View user groups",
860
+ defaultEnabled: false
861
+ },
862
+ {
863
+ scope: "usergroups:write",
864
+ description: "Manage user groups",
865
+ defaultEnabled: false
866
+ },
867
+ {
868
+ scope: "dnd:read",
869
+ description: "View Do Not Disturb status",
870
+ defaultEnabled: false
871
+ },
872
+ // Reactions
873
+ {
874
+ scope: "reactions:read",
875
+ description: "View emoji reactions",
876
+ defaultEnabled: true
877
+ },
878
+ {
879
+ scope: "reactions:write",
880
+ description: "Add emoji reactions",
881
+ defaultEnabled: true
882
+ },
883
+ // Files
884
+ {
885
+ scope: "files:read",
886
+ description: "View shared files",
887
+ defaultEnabled: true
888
+ },
889
+ {
890
+ scope: "files:write",
891
+ description: "Upload files",
660
892
  defaultEnabled: true
893
+ },
894
+ {
895
+ scope: "remote_files:read",
896
+ description: "View remote files",
897
+ defaultEnabled: false
898
+ },
899
+ {
900
+ scope: "remote_files:write",
901
+ description: "Manage remote files",
902
+ defaultEnabled: false
903
+ },
904
+ {
905
+ scope: "remote_files:share",
906
+ description: "Share remote files",
907
+ defaultEnabled: false
908
+ },
909
+ // Pins & Bookmarks
910
+ {
911
+ scope: "pins:read",
912
+ description: "View pinned messages",
913
+ defaultEnabled: false
914
+ },
915
+ {
916
+ scope: "pins:write",
917
+ description: "Pin messages",
918
+ defaultEnabled: false
919
+ },
920
+ {
921
+ scope: "bookmarks:read",
922
+ description: "View bookmarks",
923
+ defaultEnabled: false
924
+ },
925
+ {
926
+ scope: "bookmarks:write",
927
+ description: "Add bookmarks",
928
+ defaultEnabled: false
929
+ },
930
+ // Links
931
+ {
932
+ scope: "links:read",
933
+ description: "View link metadata",
934
+ defaultEnabled: false
935
+ },
936
+ {
937
+ scope: "links:write",
938
+ description: "Unfurl links",
939
+ defaultEnabled: false
940
+ },
941
+ {
942
+ scope: "links.embed:write",
943
+ description: "Embed video players",
944
+ defaultEnabled: false
945
+ },
946
+ // Canvases & Lists
947
+ {
948
+ scope: "canvases:read",
949
+ description: "Read Slack canvases",
950
+ defaultEnabled: false
951
+ },
952
+ {
953
+ scope: "canvases:write",
954
+ description: "Create and edit canvases",
955
+ defaultEnabled: false
956
+ },
957
+ {
958
+ scope: "lists:read",
959
+ description: "Read Slack lists",
960
+ defaultEnabled: false
961
+ },
962
+ {
963
+ scope: "lists:write",
964
+ description: "Manage Slack lists",
965
+ defaultEnabled: false
966
+ },
967
+ // Calls
968
+ {
969
+ scope: "calls:read",
970
+ description: "View call information",
971
+ defaultEnabled: false
972
+ },
973
+ {
974
+ scope: "calls:write",
975
+ description: "Start and manage calls",
976
+ defaultEnabled: false
977
+ },
978
+ // Reminders
979
+ {
980
+ scope: "reminders:read",
981
+ description: "View reminders",
982
+ defaultEnabled: false
983
+ },
984
+ {
985
+ scope: "reminders:write",
986
+ description: "Create reminders",
987
+ defaultEnabled: false
988
+ },
989
+ // Slack Connect
990
+ {
991
+ scope: "conversations.connect:read",
992
+ description: "View Slack Connect events",
993
+ defaultEnabled: false
994
+ },
995
+ {
996
+ scope: "conversations.connect:write",
997
+ description: "Create Slack Connect invites",
998
+ defaultEnabled: false
999
+ },
1000
+ {
1001
+ scope: "conversations.connect:manage",
1002
+ description: "Manage Slack Connect channels",
1003
+ defaultEnabled: false
1004
+ },
1005
+ // Triggers & Commands
1006
+ {
1007
+ scope: "triggers:read",
1008
+ description: "View Platform triggers",
1009
+ defaultEnabled: false
1010
+ },
1011
+ {
1012
+ scope: "triggers:write",
1013
+ description: "Create Platform triggers",
1014
+ defaultEnabled: false
1015
+ },
1016
+ {
1017
+ scope: "commands",
1018
+ description: "Use slash commands",
1019
+ defaultEnabled: false
1020
+ },
1021
+ // Metadata & Emoji
1022
+ {
1023
+ scope: "metadata.message:read",
1024
+ description: "Read message metadata",
1025
+ defaultEnabled: false
1026
+ },
1027
+ {
1028
+ scope: "emoji:read",
1029
+ description: "View custom emoji",
1030
+ defaultEnabled: false
1031
+ },
1032
+ // Assistant
1033
+ {
1034
+ scope: "assistant:write",
1035
+ description: "Respond in Slack AI threads",
1036
+ defaultEnabled: false
1037
+ },
1038
+ // Webhooks
1039
+ {
1040
+ scope: "incoming-webhook",
1041
+ description: "Post via webhooks",
1042
+ defaultEnabled: false
1043
+ },
1044
+ // Search
1045
+ {
1046
+ scope: "search:read.files",
1047
+ description: "Search files",
1048
+ defaultEnabled: false
1049
+ },
1050
+ {
1051
+ scope: "search:read.public",
1052
+ description: "Search public channels",
1053
+ defaultEnabled: false
1054
+ },
1055
+ {
1056
+ scope: "search:read.users",
1057
+ description: "Search for users",
1058
+ defaultEnabled: false
1059
+ },
1060
+ // Team Preferences
1061
+ {
1062
+ scope: "team.preferences:read",
1063
+ description: "Read workspace preferences",
1064
+ defaultEnabled: false
661
1065
  }
662
1066
  ]
663
1067
  }
664
1068
  }
665
- // Slack doesn't require special authorization params
666
1069
  }
667
1070
  };
668
1071
  function getOAuthProvider(credentialType) {