awacke1 commited on
Commit
dfddcab
β€’
1 Parent(s): dbf031b

Update BestYet.app.py

Browse files
Files changed (1) hide show
  1. BestYet.app.py +111 -7
BestYet.app.py CHANGED
@@ -11,13 +11,116 @@ CLIENT_SECRET_KEY = os.getenv('CLIENT_SECRET_KEY')
11
  AUTHORITY_URL = 'https://login.microsoftonline.com/common'
12
  REDIRECT_URI = 'https://huggingface.co/spaces/awacke1/MSGraphAPI'
13
 
14
- # Define product to scope mapping and links
15
  PRODUCT_SCOPES = {
16
- "πŸ“§ Outlook": {'scopes': ['Mail.Read', 'Mail.Send'], 'link': 'https://outlook.office.com/mail/'},
17
- "πŸ“… Calendar": {'scopes': ['Calendars.ReadWrite'], 'link': 'https://outlook.office.com/calendar/'},
18
- "πŸ“‹ Tasks": {'scopes': ['Tasks.ReadWrite'], 'link': 'https://to-do.office.com/tasks/'},
19
- "πŸ—‚οΈ OneDrive": {'scopes': ['Files.ReadWrite.All'], 'link': 'https://onedrive.live.com/'},
20
- # ... (other products)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  }
22
 
23
  BASE_SCOPES = ['User.Read']
@@ -242,4 +345,5 @@ def main():
242
  st.write("No products selected. Please select products from the sidebar.")
243
 
244
  if __name__ == "__main__":
245
- main()
 
 
11
  AUTHORITY_URL = 'https://login.microsoftonline.com/common'
12
  REDIRECT_URI = 'https://huggingface.co/spaces/awacke1/MSGraphAPI'
13
 
14
+ # Define product to scope mapping, links, AI capabilities, and Graph solutions
15
  PRODUCT_SCOPES = {
16
+ "πŸ“§ Outlook": {
17
+ 'scopes': ['Mail.Read', 'Mail.Send'],
18
+ 'link': 'https://outlook.office.com/mail/',
19
+ 'ai_capabilities': "πŸ€–βœοΈ Smart email & scheduling",
20
+ 'graph_solution': "πŸ“¨πŸ“… Mail, calendar & contacts API"
21
+ },
22
+ "πŸ“… Calendar": {
23
+ 'scopes': ['Calendars.ReadWrite'],
24
+ 'link': 'https://outlook.office.com/calendar/',
25
+ 'ai_capabilities': "πŸ€–πŸ“… Smart scheduling & reminders",
26
+ 'graph_solution': "πŸ“… Calendar management API"
27
+ },
28
+ "πŸ“‹ Tasks": {
29
+ 'scopes': ['Tasks.ReadWrite'],
30
+ 'link': 'https://to-do.office.com/tasks/',
31
+ 'ai_capabilities': "πŸ€–πŸ“ Task prioritization",
32
+ 'graph_solution': "βœ… Task management API"
33
+ },
34
+ "πŸ—‚οΈ OneDrive": {
35
+ 'scopes': ['Files.ReadWrite.All'],
36
+ 'link': 'https://onedrive.live.com/',
37
+ 'ai_capabilities': "πŸ€–πŸ” Smart file organization",
38
+ 'graph_solution': "πŸ“ File & folder API"
39
+ },
40
+ "πŸ“’ OneNote": {
41
+ 'scopes': ['Notes.Read', 'Notes.Create'],
42
+ 'link': 'https://www.onenote.com/notebooks',
43
+ 'ai_capabilities': "πŸ€–πŸ“ Content suggestion & OCR",
44
+ 'graph_solution': "πŸ“” Notebook & page API"
45
+ },
46
+ "πŸ“Š Excel": {
47
+ 'scopes': ['Files.ReadWrite.All'],
48
+ 'link': 'https://www.office.com/launch/excel',
49
+ 'ai_capabilities': "πŸ€–πŸ“ˆ Data analysis & insights",
50
+ 'graph_solution': "πŸ“Š Workbook & chart API"
51
+ },
52
+ "πŸ“„ Word": {
53
+ 'scopes': ['Files.ReadWrite.All'],
54
+ 'link': 'https://www.office.com/launch/word',
55
+ 'ai_capabilities': "πŸ€–βœοΈ Smart drafting & editing",
56
+ 'graph_solution': "πŸ“ Document content API"
57
+ },
58
+ "πŸ—ƒοΈ SharePoint": {
59
+ 'scopes': ['Sites.Read.All', 'Sites.ReadWrite.All'],
60
+ 'link': 'https://www.microsoft.com/microsoft-365/sharepoint/collaboration',
61
+ 'ai_capabilities': "πŸ€–πŸ” Smart search & tagging",
62
+ 'graph_solution': "🌐 Sites & lists API"
63
+ },
64
+ "πŸ“… Teams": {
65
+ 'scopes': ['Team.ReadBasic.All', 'Channel.ReadBasic.All'],
66
+ 'link': 'https://teams.microsoft.com/',
67
+ 'ai_capabilities': "πŸ€–πŸ’¬ Meeting insights & summaries",
68
+ 'graph_solution': "πŸ‘₯ Teams & chats API"
69
+ },
70
+ "πŸ’¬ Viva": {
71
+ 'scopes': ['Analytics.Read'],
72
+ 'link': 'https://www.microsoft.com/microsoft-viva',
73
+ 'ai_capabilities': "πŸ€–πŸ“Š Personalized insights",
74
+ 'graph_solution': "πŸ“ˆ Analytics & learning API"
75
+ },
76
+ "πŸš€ Power Platform": {
77
+ 'scopes': ['Flow.Read.All'],
78
+ 'link': 'https://powerplatform.microsoft.com/',
79
+ 'ai_capabilities': "πŸ€–βš™οΈ AI-powered automation",
80
+ 'graph_solution': "πŸ”§ Workflow & app API"
81
+ },
82
+ "🧠 Copilot": {
83
+ 'scopes': ['Cognitive.Read'],
84
+ 'link': 'https://www.microsoft.com/microsoft-365/copilot',
85
+ 'ai_capabilities': "πŸ€–πŸš€ Cross-app AI assistance",
86
+ 'graph_solution': "🧠 AI integration API"
87
+ },
88
+ "πŸ’‘ PowerPoint": {
89
+ 'scopes': ['Files.ReadWrite.All'],
90
+ 'link': 'https://www.office.com/launch/powerpoint',
91
+ 'ai_capabilities': "πŸ€–πŸŽ¨ Design & coaching AI",
92
+ 'graph_solution': "πŸ“Š Presentation API"
93
+ },
94
+ "πŸ“š Microsoft Bookings": {
95
+ 'scopes': ['Bookings.Read.All', 'Bookings.ReadWrite.All'],
96
+ 'link': 'https://outlook.office.com/bookings/',
97
+ 'ai_capabilities': "πŸ€–πŸ“… Smart scheduling",
98
+ 'graph_solution': "πŸ“† Booking services API"
99
+ },
100
+ "πŸ““ Loop": {
101
+ 'scopes': ['Files.ReadWrite.All'],
102
+ 'link': 'https://loop.microsoft.com/',
103
+ 'ai_capabilities': "πŸ€–πŸ”„ Real-time collaboration AI",
104
+ 'graph_solution': "πŸ” Workspace API"
105
+ },
106
+ "πŸ—£οΈ Translator": {
107
+ 'scopes': ['Translation.Read'],
108
+ 'link': 'https://www.microsoft.com/translator/',
109
+ 'ai_capabilities': "πŸ€–πŸŒ Real-time translation",
110
+ 'graph_solution': "πŸ—¨οΈ Translation services API"
111
+ },
112
+ "πŸ“‹ To Do & Planner": {
113
+ 'scopes': ['Tasks.ReadWrite'],
114
+ 'link': 'https://todo.microsoft.com/',
115
+ 'ai_capabilities': "πŸ€–πŸ“ Smart task management",
116
+ 'graph_solution': "βœ… Task & plan API"
117
+ },
118
+ "πŸ”— Azure OpenAI Service": {
119
+ 'scopes': ['AzureAIServices.ReadWrite.All'],
120
+ 'link': 'https://azure.microsoft.com/products/cognitive-services/openai-service/',
121
+ 'ai_capabilities': "πŸ€–πŸ§  Custom AI model access",
122
+ 'graph_solution': "πŸ”Œ AI model integration API"
123
+ }
124
  }
125
 
126
  BASE_SCOPES = ['User.Read']
 
345
  st.write("No products selected. Please select products from the sidebar.")
346
 
347
  if __name__ == "__main__":
348
+ main()
349
+