langflow-base-nightly 0.5.0.dev33__py3-none-any.whl → 0.5.0.dev34__py3-none-any.whl
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.
- langflow/api/v1/endpoints.py +1 -1
- langflow/base/composio/composio_base.py +1092 -126
- langflow/components/composio/__init__.py +24 -0
- langflow/components/composio/composio_api.py +116 -136
- langflow/components/composio/dropbox_compnent.py +11 -0
- langflow/components/composio/github_composio.py +1 -639
- langflow/components/composio/gmail_composio.py +26 -394
- langflow/components/composio/googlecalendar_composio.py +2 -778
- langflow/components/composio/googlemeet_composio.py +11 -0
- langflow/components/composio/googletasks_composio.py +8 -0
- langflow/components/composio/linear_composio.py +11 -0
- langflow/components/composio/outlook_composio.py +1 -755
- langflow/components/composio/reddit_composio.py +11 -0
- langflow/components/composio/slack_composio.py +1 -576
- langflow/components/composio/slackbot_composio.py +11 -0
- langflow/components/composio/supabase_composio.py +11 -0
- langflow/components/composio/todoist_composio.py +11 -0
- langflow/components/composio/youtube_composio.py +11 -0
- langflow/custom/utils.py +30 -7
- langflow/frontend/assets/{SlackIcon-Bikuxo8x.js → SlackIcon-B260Qg_R.js} +1 -1
- langflow/frontend/assets/{Wikipedia-B6aCFf5-.js → Wikipedia-BB2mbgyd.js} +1 -1
- langflow/frontend/assets/{Wolfram-CekL_M-a.js → Wolfram-DytXC9hF.js} +1 -1
- langflow/frontend/assets/{index-D1RgjMON.js → index-3TJWUdmx.js} +1 -1
- langflow/frontend/assets/{index-B4xLpgbM.js → index-3qMh9x6K.js} +1 -1
- langflow/frontend/assets/{index-DEuXrfXH.js → index-3uOAA_XX.js} +1 -1
- langflow/frontend/assets/{index-DTJX3yQa.js → index-4eRtaV45.js} +1 -1
- langflow/frontend/assets/index-7xXgqu09.js +1 -0
- langflow/frontend/assets/{index-BRNhftot.js → index-AY5Dm2mG.js} +1 -1
- langflow/frontend/assets/{index-4Tl3Nxdo.js → index-AlJ7td-D.js} +1 -1
- langflow/frontend/assets/{index-D2nHdRne.js → index-B-c82Fnu.js} +1 -1
- langflow/frontend/assets/{index-C3RZz8WE.js → index-B2ggrBuR.js} +1 -1
- langflow/frontend/assets/{index-in188l0A.js → index-B536IPXH.js} +1 -1
- langflow/frontend/assets/{index-CP0tFKwN.js → index-B5ed-sAv.js} +1 -1
- langflow/frontend/assets/{index-CAzSTGAM.js → index-B8TlNgn-.js} +1 -1
- langflow/frontend/assets/{index-09CVJwsY.js → index-B8y58M9b.js} +1 -1
- langflow/frontend/assets/{index-B9uOBe6Y.js → index-B9Mo3ndZ.js} +1 -1
- langflow/frontend/assets/{index-DAJafn16.js → index-BCK-ZyIh.js} +1 -1
- langflow/frontend/assets/{index-Cy-ZEfWh.js → index-BEDxAk3N.js} +1 -1
- langflow/frontend/assets/{index-DbmqjLy6.js → index-BEKoRwsX.js} +1 -1
- langflow/frontend/assets/{index-BcqeL_f4.js → index-BIkqesA-.js} +1 -1
- langflow/frontend/assets/{index-7x3wNZ-4.js → index-BJrY2Fiu.js} +1 -1
- langflow/frontend/assets/{index-Iamzh9ZT.js → index-BKvKC-12.js} +1 -1
- langflow/frontend/assets/{index-COqjpsdy.js → index-BLROcaSz.js} +1 -1
- langflow/frontend/assets/{index-BRwkzs92.js → index-BNbWMmAV.js} +1 -1
- langflow/frontend/assets/{index-C_UkF-RJ.js → index-BOEf7-ty.js} +1 -1
- langflow/frontend/assets/index-BOYTBrh9.js +1 -0
- langflow/frontend/assets/{index-DDcpxWU4.js → index-BQB-iDYl.js} +1 -1
- langflow/frontend/assets/{index-Crq_yhkG.js → index-BRWNIt9F.js} +1 -1
- langflow/frontend/assets/{index-DmaQAn3K.js → index-BVHvIhT5.js} +1 -1
- langflow/frontend/assets/{index-Cs_jt3dj.js → index-BVtf6m9S.js} +1 -1
- langflow/frontend/assets/{index-T2jJOG85.js → index-BWq9GTzt.js} +1 -1
- langflow/frontend/assets/{index-Dz0r9Idb.js → index-BXMhmvTj.js} +1 -1
- langflow/frontend/assets/{index-eJwu5YEi.js → index-Ba3RTMXI.js} +1 -1
- langflow/frontend/assets/{index-xVx59Op-.js → index-Baka5dKE.js} +1 -1
- langflow/frontend/assets/{index-DnusMCK1.js → index-BbsND1Qg.js} +1 -1
- langflow/frontend/assets/index-BcgB3rXH.js +1 -0
- langflow/frontend/assets/{index-CmiRgF_-.js → index-BdIWbCEL.js} +1 -1
- langflow/frontend/assets/{index-BllNr21U.js → index-BdYgKk1d.js} +1 -1
- langflow/frontend/assets/{index-BIKbxmIh.js → index-BeNby7qF.js} +1 -1
- langflow/frontend/assets/{index-CUe1ivTn.js → index-BejHxU5W.js} +1 -1
- langflow/frontend/assets/{index-CVphnxXi.js → index-Bisa4IQF.js} +1 -1
- langflow/frontend/assets/{index-Cr2oy5K2.js → index-BjENqyKe.js} +1 -1
- langflow/frontend/assets/{index-CEn_71Wk.js → index-BlBl2tvQ.js} +1 -1
- langflow/frontend/assets/{index-DOb9c2bf.js → index-BnLT29qW.js} +1 -1
- langflow/frontend/assets/{index-BRizlHaN.js → index-BqUeOc7Y.js} +1 -1
- langflow/frontend/assets/{index-D7nFs6oq.js → index-BsBWP-Dh.js} +1 -1
- langflow/frontend/assets/{index-BlRTHXW5.js → index-BtJ2o21k.js} +1 -1
- langflow/frontend/assets/{index-AOX7bbjJ.js → index-BxWXWRmZ.js} +1 -1
- langflow/frontend/assets/{index-B20KmxhS.js → index-BxkZkBgQ.js} +1 -1
- langflow/frontend/assets/{index-DoFlaGDx.js → index-Bxml6wXu.js} +1 -1
- langflow/frontend/assets/{index-B9KRIJFi.js → index-ByFXr9Iq.js} +1 -1
- langflow/frontend/assets/{index-CY6LUi4V.js → index-C2Xd7UkR.js} +1 -1
- langflow/frontend/assets/index-C76aBV_h.js +1 -0
- langflow/frontend/assets/{index-9gkURvG2.js → index-C7V5U9yH.js} +1 -1
- langflow/frontend/assets/{index-BDmbsLY2.js → index-C7x9R_Yo.js} +1 -1
- langflow/frontend/assets/{index-DI0zAExi.js → index-C8KD3LPb.js} +1 -1
- langflow/frontend/assets/{index-DzDNhMMW.js → index-C9N80hP8.js} +1 -1
- langflow/frontend/assets/{index-6GWpsedd.js → index-CDFLVFB4.js} +1 -1
- langflow/frontend/assets/{index-pkOi9P45.js → index-CF4dtI6S.js} +1 -1
- langflow/frontend/assets/{index-CdwjD4IX.js → index-CG7cp0nD.js} +1 -1
- langflow/frontend/assets/{index-J0pvFqLk.js → index-CHFO5O4g.js} +1 -1
- langflow/frontend/assets/{index-5G402gB8.js → index-CJwYfDBz.js} +1 -1
- langflow/frontend/assets/{index-BzCjyHto.js → index-CMGZGIx_.js} +1 -1
- langflow/frontend/assets/{index-Bm7a2vMS.js → index-COL0eiWI.js} +1 -1
- langflow/frontend/assets/{index-JHCxbvlW.js → index-CWWo2zOA.js} +1 -1
- langflow/frontend/assets/{index-C7wDSVVH.js → index-C_1RBTul.js} +1 -1
- langflow/frontend/assets/{index-BIjUtp6d.js → index-Ccb5B8zG.js} +1 -1
- langflow/frontend/assets/{index-yIh6-LZT.js → index-Cd5zuUUK.js} +1 -1
- langflow/frontend/assets/{index-CPIdMJkX.js → index-CkQ-bJ4G.js} +1 -1
- langflow/frontend/assets/{index-TRyDa01A.js → index-CkSzjCqM.js} +1 -1
- langflow/frontend/assets/{index-CSRizl2S.js → index-CoUlHbtg.js} +1 -1
- langflow/frontend/assets/index-Cpgkb0Q3.js +1 -0
- langflow/frontend/assets/{index-Cp7Pmn03.js → index-CqDUqHfd.js} +1 -1
- langflow/frontend/assets/{index-CGVDXKtN.js → index-Ct9_T9ox.js} +1 -1
- langflow/frontend/assets/{index-BwlYjc56.js → index-CvQ0w8Pj.js} +1 -1
- langflow/frontend/assets/{index-DkJCCraf.js → index-CwIxqYlT.js} +1 -1
- langflow/frontend/assets/{index-Bgd7yLoW.js → index-Cx__T92e.js} +1 -1
- langflow/frontend/assets/{index-RveG4dl9.js → index-D-zkHcob.js} +1 -1
- langflow/frontend/assets/{index-DVV_etfW.js → index-D0HmkH0H.js} +1 -1
- langflow/frontend/assets/{index-CglSqvB5.js → index-D0s9f6Re.js} +1 -1
- langflow/frontend/assets/{index-J98sU-1p.js → index-D5PeCofu.js} +1 -1
- langflow/frontend/assets/{index-BJIsQS8D.js → index-D87Zw62M.js} +1 -1
- langflow/frontend/assets/{index-FYcoJPMP.js → index-D9eflZfP.js} +1 -1
- langflow/frontend/assets/{index-DJs6FoYC.js → index-DDNNv4C0.js} +1 -1
- langflow/frontend/assets/index-DHlEwAxb.js +1 -0
- langflow/frontend/assets/{index-DqDQk0Cu.js → index-DIqSyDVO.js} +1 -1
- langflow/frontend/assets/{index-DOI0ceS-.js → index-DK8vNpXK.js} +1 -1
- langflow/frontend/assets/{index-D29n5mus.js → index-DKEXZFUO.js} +1 -1
- langflow/frontend/assets/{index-dfaj9-hY.js → index-DPX6X_bw.js} +1 -1
- langflow/frontend/assets/{index-CgbINWS8.js → index-DS1EgA10.js} +1 -1
- langflow/frontend/assets/{index-C69gdJqw.js → index-DS9I4y48.js} +1 -1
- langflow/frontend/assets/{index-B2EmwqKj.js → index-DWkMJnbd.js} +1 -1
- langflow/frontend/assets/{index-CIYzjH2y.js → index-DWr_zPkx.js} +1 -1
- langflow/frontend/assets/{index-D-HTZ68O.js → index-DX7XsAcx.js} +1 -1
- langflow/frontend/assets/{index-Cq30cQcP.js → index-DZzbmg3J.js} +1 -1
- langflow/frontend/assets/{index-BZCt_UnJ.js → index-DasrI03Y.js} +1 -1
- langflow/frontend/assets/index-DdzVmJHE.js +1 -0
- langflow/frontend/assets/{index-DmvjdU1N.js → index-DhzEUXfr.js} +1 -1
- langflow/frontend/assets/{index-B_ytx_iA.js → index-DpJiH-Rk.js} +1 -1
- langflow/frontend/assets/{index-Cyk3aCmP.js → index-DpQKtcXu.js} +1 -1
- langflow/frontend/assets/{index-DrvRK4_i.js → index-Dpz3oBf5.js} +1 -1
- langflow/frontend/assets/{index-DF0oWRdd.js → index-DqSH4x-R.js} +1 -1
- langflow/frontend/assets/{index-DX_InNVT.js → index-DtJyCbzF.js} +1 -1
- langflow/frontend/assets/{index-B4AtFbkN.js → index-Du9aJK7m.js} +1 -1
- langflow/frontend/assets/{index-qXcoVIRo.js → index-DuAeoC-H.js} +1 -1
- langflow/frontend/assets/{index-D7Vx6mgS.js → index-DxIs8VSp.js} +1 -1
- langflow/frontend/assets/{index-U7J1YiWE.js → index-DyJDHm2D.js} +1 -1
- langflow/frontend/assets/{index-1MEYR1La.js → index-DzeIsaBm.js} +1 -1
- langflow/frontend/assets/{index-Cbwk3f-p.js → index-DztLFiip.js} +1 -1
- langflow/frontend/assets/{index-C_2G2ZqJ.js → index-GODbXlHC.js} +1 -1
- langflow/frontend/assets/{index-2vQdFIK_.js → index-G_U_kPAd.js} +1 -1
- langflow/frontend/assets/{index-DS4F_Phe.js → index-IFGgPiye.js} +1 -1
- langflow/frontend/assets/{index-5hW8VleF.js → index-LrMzDsq9.js} +1 -1
- langflow/frontend/assets/{index-L7FKc9QN.js → index-R7q8cAek.js} +1 -1
- langflow/frontend/assets/{index-BRE8A4Q_.js → index-Uq2ij_SS.js} +1 -1
- langflow/frontend/assets/{index-Bn4HAVDG.js → index-VHmUHUUU.js} +1 -1
- langflow/frontend/assets/{index-VO-pk-Hg.js → index-VZnN0P6C.js} +1 -1
- langflow/frontend/assets/{index-Dy7ehgeV.js → index-VcXZzovW.js} +1 -1
- langflow/frontend/assets/{index-DNS4La1f.js → index-Ym6gz0T6.js} +1 -1
- langflow/frontend/assets/{index-UI2ws3qp.js → index-ci4XHjbJ.js} +176 -176
- langflow/frontend/assets/{index-DlMAYATX.js → index-dkS0ek2S.js} +1 -1
- langflow/frontend/assets/{index-Dc0p1Oxl.js → index-hOkEW3JP.js} +1 -1
- langflow/frontend/assets/{index-KnS52ylc.js → index-js8ceOaP.js} +1 -1
- langflow/frontend/assets/{index-DtCsjX48.js → index-lKEJpUsF.js} +1 -1
- langflow/frontend/assets/{index-BO4fl1uU.js → index-mBjJYD9q.js} +1 -1
- langflow/frontend/assets/{index-C_K6Tof7.js → index-r1LZg-PY.js} +1 -1
- langflow/frontend/assets/index-rcdQpNcU.js +1 -0
- langflow/frontend/assets/{index-_3qag0I4.js → index-sS6XLk3j.js} +1 -1
- langflow/frontend/assets/{index-C6P0vvSP.js → index-tOy_uloT.js} +1 -1
- langflow/frontend/assets/lazyIconImports-Bh1TFfvH.js +2 -0
- langflow/frontend/assets/{use-post-add-user-Bt6vZvvT.js → use-post-add-user-HN0rRnhv.js} +1 -1
- langflow/frontend/index.html +1 -1
- langflow/interface/initialize/loading.py +3 -1
- langflow/main.py +19 -2
- langflow/services/database/service.py +3 -1
- langflow/services/telemetry/schema.py +7 -0
- langflow/services/telemetry/service.py +25 -0
- langflow/services/tracing/service.py +14 -4
- {langflow_base_nightly-0.5.0.dev33.dist-info → langflow_base_nightly-0.5.0.dev34.dist-info}/METADATA +1 -1
- {langflow_base_nightly-0.5.0.dev33.dist-info → langflow_base_nightly-0.5.0.dev34.dist-info}/RECORD +162 -145
- langflow/frontend/assets/lazyIconImports-kvf_Kak2.js +0 -2
- {langflow_base_nightly-0.5.0.dev33.dist-info → langflow_base_nightly-0.5.0.dev34.dist-info}/WHEEL +0 -0
- {langflow_base_nightly-0.5.0.dev33.dist-info → langflow_base_nightly-0.5.0.dev34.dist-info}/entry_points.txt +0 -0
|
@@ -1,765 +1,11 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from typing import Any
|
|
3
|
-
|
|
4
|
-
from composio import Action
|
|
5
|
-
|
|
6
1
|
from langflow.base.composio.composio_base import ComposioBaseComponent
|
|
7
|
-
from langflow.inputs import BoolInput, FileInput, IntInput, MessageTextInput
|
|
8
|
-
from langflow.logging import logger
|
|
9
2
|
|
|
10
3
|
|
|
11
4
|
class ComposioOutlookAPIComponent(ComposioBaseComponent):
|
|
12
5
|
display_name: str = "Outlook"
|
|
13
|
-
description: str = "Outlook API"
|
|
14
6
|
icon = "Outlook"
|
|
15
7
|
documentation: str = "https://docs.composio.dev"
|
|
16
8
|
app_name = "outlook"
|
|
17
9
|
|
|
18
|
-
_actions_data: dict = {
|
|
19
|
-
"OUTLOOK_OUTLOOK_REPLY_EMAIL": {
|
|
20
|
-
"display_name": "Reply To Email",
|
|
21
|
-
"action_fields": [
|
|
22
|
-
"OUTLOOK_OUTLOOK_REPLY_EMAIL_user_id",
|
|
23
|
-
"OUTLOOK_OUTLOOK_REPLY_EMAIL_message_id",
|
|
24
|
-
"OUTLOOK_OUTLOOK_REPLY_EMAIL_comment",
|
|
25
|
-
"OUTLOOK_OUTLOOK_REPLY_EMAIL_cc_emails",
|
|
26
|
-
"OUTLOOK_OUTLOOK_REPLY_EMAIL_bcc_emails",
|
|
27
|
-
],
|
|
28
|
-
"get_result_field": False,
|
|
29
|
-
},
|
|
30
|
-
"OUTLOOK_OUTLOOK_GET_PROFILE": {
|
|
31
|
-
"display_name": "Get Profile",
|
|
32
|
-
"action_fields": ["OUTLOOK_OUTLOOK_GET_PROFILE_user_id"],
|
|
33
|
-
"get_result_field": True,
|
|
34
|
-
"result_field": "response_data",
|
|
35
|
-
},
|
|
36
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL": {
|
|
37
|
-
"display_name": "Send Email",
|
|
38
|
-
"action_fields": [
|
|
39
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_user_id",
|
|
40
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_subject",
|
|
41
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_body",
|
|
42
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_to_email",
|
|
43
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_to_name",
|
|
44
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_cc_emails",
|
|
45
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_bcc_emails",
|
|
46
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_is_html",
|
|
47
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_save_to_sent_items",
|
|
48
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_attachment",
|
|
49
|
-
],
|
|
50
|
-
"get_result_field": False,
|
|
51
|
-
},
|
|
52
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES": {
|
|
53
|
-
"display_name": "List Messages",
|
|
54
|
-
"action_fields": [
|
|
55
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_user_id",
|
|
56
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_folder",
|
|
57
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_top",
|
|
58
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_skip",
|
|
59
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_is_read",
|
|
60
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_importance",
|
|
61
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_subject",
|
|
62
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_received_date_time_gt",
|
|
63
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_subject_startswith",
|
|
64
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_subject_endswith",
|
|
65
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_subject_contains",
|
|
66
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_received_date_time_ge",
|
|
67
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_received_date_time_lt",
|
|
68
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_received_date_time_le",
|
|
69
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_from_address",
|
|
70
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_has_attachments",
|
|
71
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_body_preview_contains",
|
|
72
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_sent_date_time_gt",
|
|
73
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_sent_date_time_lt",
|
|
74
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_categories",
|
|
75
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_select",
|
|
76
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_orderby",
|
|
77
|
-
],
|
|
78
|
-
"get_result_field": True,
|
|
79
|
-
"result_field": "value",
|
|
80
|
-
},
|
|
81
|
-
"OUTLOOK_OUTLOOK_LIST_EVENTS": {
|
|
82
|
-
"display_name": "List Events",
|
|
83
|
-
"action_fields": [
|
|
84
|
-
"OUTLOOK_OUTLOOK_LIST_EVENTS_user_id",
|
|
85
|
-
"OUTLOOK_OUTLOOK_LIST_EVENTS_top",
|
|
86
|
-
"OUTLOOK_OUTLOOK_LIST_EVENTS_skip",
|
|
87
|
-
"OUTLOOK_OUTLOOK_LIST_EVENTS_filter",
|
|
88
|
-
"OUTLOOK_OUTLOOK_LIST_EVENTS_select",
|
|
89
|
-
"OUTLOOK_OUTLOOK_LIST_EVENTS_orderby",
|
|
90
|
-
"OUTLOOK_OUTLOOK_LIST_EVENTS_timezone",
|
|
91
|
-
],
|
|
92
|
-
"get_result_field": True,
|
|
93
|
-
"result_field": "value",
|
|
94
|
-
},
|
|
95
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT": {
|
|
96
|
-
"display_name": "Create Calendar Event",
|
|
97
|
-
"action_fields": [
|
|
98
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_user_id",
|
|
99
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_subject",
|
|
100
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_body",
|
|
101
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_is_html",
|
|
102
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_start_datetime",
|
|
103
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_end_datetime",
|
|
104
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_time_zone",
|
|
105
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_is_online_meeting",
|
|
106
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_online_meeting_provider",
|
|
107
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_attendees_info",
|
|
108
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_location",
|
|
109
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_show_as",
|
|
110
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_categories",
|
|
111
|
-
],
|
|
112
|
-
"get_result_field": True,
|
|
113
|
-
"result_field": "response_data",
|
|
114
|
-
},
|
|
115
|
-
"OUTLOOK_OUTLOOK_GET_EVENT": {
|
|
116
|
-
"display_name": "Get Calendar Event",
|
|
117
|
-
"action_fields": ["OUTLOOK_OUTLOOK_GET_EVENT_user_id", "OUTLOOK_OUTLOOK_GET_EVENT_event_id"],
|
|
118
|
-
"get_result_field": True,
|
|
119
|
-
"result_field": "response_data",
|
|
120
|
-
},
|
|
121
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT": {
|
|
122
|
-
"display_name": "Create Email Draft",
|
|
123
|
-
"action_fields": [
|
|
124
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_subject",
|
|
125
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_body",
|
|
126
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_to_recipients",
|
|
127
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_cc_recipients",
|
|
128
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_bcc_recipients",
|
|
129
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_is_html",
|
|
130
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_attachment",
|
|
131
|
-
],
|
|
132
|
-
"get_result_field": True,
|
|
133
|
-
"result_field": "response_data",
|
|
134
|
-
},
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
_all_fields = {field for action_data in _actions_data.values() for field in action_data["action_fields"]}
|
|
138
|
-
|
|
139
|
-
_bool_variables = {
|
|
140
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_is_html",
|
|
141
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_save_to_sent_items",
|
|
142
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_is_html",
|
|
143
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_is_html",
|
|
144
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_is_online_meeting",
|
|
145
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_is_read",
|
|
146
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_has_attachments",
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
_list_variables = {
|
|
150
|
-
"OUTLOOK_OUTLOOK_LIST_EVENTS_select",
|
|
151
|
-
"OUTLOOK_OUTLOOK_LIST_EVENTS_orderby",
|
|
152
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_cc_emails",
|
|
153
|
-
"OUTLOOK_OUTLOOK_SEND_EMAIL_bcc_emails",
|
|
154
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_to_recipients",
|
|
155
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_cc_recipients",
|
|
156
|
-
"OUTLOOK_OUTLOOK_CREATE_DRAFT_bcc_recipients",
|
|
157
|
-
"OUTLOOK_OUTLOOK_REPLY_EMAIL_cc_emails",
|
|
158
|
-
"OUTLOOK_OUTLOOK_REPLY_EMAIL_bcc_emails",
|
|
159
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_attendees_info",
|
|
160
|
-
"OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_categories",
|
|
161
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_categories",
|
|
162
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_select",
|
|
163
|
-
"OUTLOOK_OUTLOOK_LIST_MESSAGES_orderby",
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
inputs = [
|
|
167
|
-
*ComposioBaseComponent._base_inputs,
|
|
168
|
-
MessageTextInput(
|
|
169
|
-
name="OUTLOOK_OUTLOOK_LIST_EVENTS_user_id",
|
|
170
|
-
display_name="User Id",
|
|
171
|
-
info="The target user's email address or 'me' for the authenticated user.",
|
|
172
|
-
show=False,
|
|
173
|
-
value="me",
|
|
174
|
-
advanced=True,
|
|
175
|
-
),
|
|
176
|
-
IntInput(
|
|
177
|
-
name="OUTLOOK_OUTLOOK_LIST_EVENTS_top",
|
|
178
|
-
display_name="Max Results",
|
|
179
|
-
info="The maximum number of events to return per request.",
|
|
180
|
-
show=False,
|
|
181
|
-
value=10,
|
|
182
|
-
),
|
|
183
|
-
IntInput(
|
|
184
|
-
name="OUTLOOK_OUTLOOK_LIST_EVENTS_skip",
|
|
185
|
-
display_name="Skip",
|
|
186
|
-
info="The number of events to skip before starting to collect results.",
|
|
187
|
-
show=False,
|
|
188
|
-
value=0,
|
|
189
|
-
advanced=True,
|
|
190
|
-
),
|
|
191
|
-
MessageTextInput(
|
|
192
|
-
name="OUTLOOK_OUTLOOK_LIST_EVENTS_filter",
|
|
193
|
-
display_name="Filter",
|
|
194
|
-
info="OData query string to filter results. Example: start/dateTime ge '2024-01-01T00:00:00'",
|
|
195
|
-
show=False,
|
|
196
|
-
value="",
|
|
197
|
-
advanced=True,
|
|
198
|
-
),
|
|
199
|
-
MessageTextInput(
|
|
200
|
-
name="OUTLOOK_OUTLOOK_LIST_EVENTS_select",
|
|
201
|
-
display_name="Select",
|
|
202
|
-
info="List of properties to include in the response comma separated.",
|
|
203
|
-
show=False,
|
|
204
|
-
advanced=True,
|
|
205
|
-
),
|
|
206
|
-
MessageTextInput(
|
|
207
|
-
name="OUTLOOK_OUTLOOK_LIST_EVENTS_orderby",
|
|
208
|
-
display_name="Orderby",
|
|
209
|
-
info="Properties to sort results by comma separated.",
|
|
210
|
-
show=False,
|
|
211
|
-
advanced=True,
|
|
212
|
-
),
|
|
213
|
-
MessageTextInput(
|
|
214
|
-
name="OUTLOOK_OUTLOOK_LIST_EVENTS_timezone",
|
|
215
|
-
display_name="Timezone",
|
|
216
|
-
info="The timezone for event start and end times in the response.",
|
|
217
|
-
show=False,
|
|
218
|
-
value="UTC",
|
|
219
|
-
advanced=True,
|
|
220
|
-
),
|
|
221
|
-
MessageTextInput(
|
|
222
|
-
name="OUTLOOK_OUTLOOK_SEND_EMAIL_user_id",
|
|
223
|
-
display_name="User Id",
|
|
224
|
-
info="The user's email address or 'me' for the authenticated user.",
|
|
225
|
-
show=False,
|
|
226
|
-
value="me",
|
|
227
|
-
advanced=True,
|
|
228
|
-
),
|
|
229
|
-
MessageTextInput(
|
|
230
|
-
name="OUTLOOK_OUTLOOK_SEND_EMAIL_subject",
|
|
231
|
-
display_name="Subject",
|
|
232
|
-
info="Subject of the email",
|
|
233
|
-
show=False,
|
|
234
|
-
required=True,
|
|
235
|
-
),
|
|
236
|
-
MessageTextInput(
|
|
237
|
-
name="OUTLOOK_OUTLOOK_SEND_EMAIL_body",
|
|
238
|
-
display_name="Body",
|
|
239
|
-
info="Body content of the email. Can be plain text or HTML based on is_html flag.",
|
|
240
|
-
show=False,
|
|
241
|
-
required=True,
|
|
242
|
-
),
|
|
243
|
-
MessageTextInput(
|
|
244
|
-
name="OUTLOOK_OUTLOOK_SEND_EMAIL_to_email",
|
|
245
|
-
display_name="Recipient Email",
|
|
246
|
-
info="Recipient email address",
|
|
247
|
-
show=False,
|
|
248
|
-
required=True,
|
|
249
|
-
),
|
|
250
|
-
MessageTextInput(
|
|
251
|
-
name="OUTLOOK_OUTLOOK_SEND_EMAIL_to_name",
|
|
252
|
-
display_name="To Name",
|
|
253
|
-
info="Recipient display name",
|
|
254
|
-
show=False,
|
|
255
|
-
advanced=True,
|
|
256
|
-
),
|
|
257
|
-
MessageTextInput(
|
|
258
|
-
name="OUTLOOK_OUTLOOK_SEND_EMAIL_cc_emails",
|
|
259
|
-
display_name="CC",
|
|
260
|
-
info="List of CC recipient email addresses comma separated",
|
|
261
|
-
show=False,
|
|
262
|
-
advanced=True,
|
|
263
|
-
),
|
|
264
|
-
MessageTextInput(
|
|
265
|
-
name="OUTLOOK_OUTLOOK_SEND_EMAIL_bcc_emails",
|
|
266
|
-
display_name="BCC",
|
|
267
|
-
info="List of BCC recipient email addresses comma separated",
|
|
268
|
-
show=False,
|
|
269
|
-
advanced=True,
|
|
270
|
-
),
|
|
271
|
-
BoolInput(
|
|
272
|
-
name="OUTLOOK_OUTLOOK_SEND_EMAIL_is_html",
|
|
273
|
-
display_name="Is HTML",
|
|
274
|
-
info="Set to True if the body content is HTML formatted",
|
|
275
|
-
show=False,
|
|
276
|
-
value=False,
|
|
277
|
-
advanced=True,
|
|
278
|
-
),
|
|
279
|
-
BoolInput(
|
|
280
|
-
name="OUTLOOK_OUTLOOK_SEND_EMAIL_save_to_sent_items",
|
|
281
|
-
display_name="Save To Sent Items",
|
|
282
|
-
info="Whether to save the sent email to Sent Items folder.",
|
|
283
|
-
show=False,
|
|
284
|
-
value=True,
|
|
285
|
-
advanced=True,
|
|
286
|
-
),
|
|
287
|
-
FileInput(
|
|
288
|
-
name="OUTLOOK_OUTLOOK_SEND_EMAIL_attachment",
|
|
289
|
-
display_name="Attachment",
|
|
290
|
-
file_types=[
|
|
291
|
-
"csv",
|
|
292
|
-
"txt",
|
|
293
|
-
"doc",
|
|
294
|
-
"docx",
|
|
295
|
-
"xls",
|
|
296
|
-
"xlsx",
|
|
297
|
-
"pdf",
|
|
298
|
-
"png",
|
|
299
|
-
"jpg",
|
|
300
|
-
"jpeg",
|
|
301
|
-
"gif",
|
|
302
|
-
"zip",
|
|
303
|
-
"rar",
|
|
304
|
-
"ppt",
|
|
305
|
-
"pptx",
|
|
306
|
-
],
|
|
307
|
-
info="Add an attachment",
|
|
308
|
-
show=False,
|
|
309
|
-
advanced=True,
|
|
310
|
-
),
|
|
311
|
-
MessageTextInput(
|
|
312
|
-
name="OUTLOOK_OUTLOOK_CREATE_DRAFT_subject",
|
|
313
|
-
display_name="Subject",
|
|
314
|
-
info="Subject of the email",
|
|
315
|
-
show=False,
|
|
316
|
-
required=True,
|
|
317
|
-
),
|
|
318
|
-
MessageTextInput(
|
|
319
|
-
name="OUTLOOK_OUTLOOK_CREATE_DRAFT_body",
|
|
320
|
-
display_name="Body",
|
|
321
|
-
info="Body content of the email. Can be plain text or HTML based on is_html flag",
|
|
322
|
-
show=False,
|
|
323
|
-
required=True,
|
|
324
|
-
),
|
|
325
|
-
MessageTextInput(
|
|
326
|
-
name="OUTLOOK_OUTLOOK_CREATE_DRAFT_to_recipients",
|
|
327
|
-
display_name="Recipient Email",
|
|
328
|
-
info="List of recipient email addresses comma separated",
|
|
329
|
-
show=False,
|
|
330
|
-
required=True,
|
|
331
|
-
),
|
|
332
|
-
MessageTextInput(
|
|
333
|
-
name="OUTLOOK_OUTLOOK_CREATE_DRAFT_cc_recipients",
|
|
334
|
-
display_name="Cc Recipients",
|
|
335
|
-
info="List of CC recipient email addresses",
|
|
336
|
-
show=False,
|
|
337
|
-
advanced=True,
|
|
338
|
-
),
|
|
339
|
-
MessageTextInput(
|
|
340
|
-
name="OUTLOOK_OUTLOOK_CREATE_DRAFT_bcc_recipients",
|
|
341
|
-
display_name="BCC",
|
|
342
|
-
info="List of BCC recipient email addresses comma separated",
|
|
343
|
-
show=False,
|
|
344
|
-
advanced=True,
|
|
345
|
-
),
|
|
346
|
-
BoolInput(
|
|
347
|
-
name="OUTLOOK_OUTLOOK_CREATE_DRAFT_is_html",
|
|
348
|
-
display_name="Is HTML",
|
|
349
|
-
info="Set to True if the body content is HTML formatted",
|
|
350
|
-
show=False,
|
|
351
|
-
value=False,
|
|
352
|
-
advanced=True,
|
|
353
|
-
),
|
|
354
|
-
FileInput(
|
|
355
|
-
name="OUTLOOK_OUTLOOK_CREATE_DRAFT_attachment",
|
|
356
|
-
display_name="Attachment",
|
|
357
|
-
file_types=[
|
|
358
|
-
"csv",
|
|
359
|
-
"txt",
|
|
360
|
-
"doc",
|
|
361
|
-
"docx",
|
|
362
|
-
"xls",
|
|
363
|
-
"xlsx",
|
|
364
|
-
"pdf",
|
|
365
|
-
"png",
|
|
366
|
-
"jpg",
|
|
367
|
-
"jpeg",
|
|
368
|
-
"gif",
|
|
369
|
-
"zip",
|
|
370
|
-
"rar",
|
|
371
|
-
"ppt",
|
|
372
|
-
"pptx",
|
|
373
|
-
],
|
|
374
|
-
info="Add an attachment",
|
|
375
|
-
show=False,
|
|
376
|
-
advanced=True,
|
|
377
|
-
),
|
|
378
|
-
MessageTextInput(
|
|
379
|
-
name="OUTLOOK_OUTLOOK_GET_PROFILE_user_id",
|
|
380
|
-
display_name="User Id",
|
|
381
|
-
info="The user's email address or 'me' for the authenticated user.",
|
|
382
|
-
show=False,
|
|
383
|
-
value="me",
|
|
384
|
-
),
|
|
385
|
-
MessageTextInput(
|
|
386
|
-
name="OUTLOOK_OUTLOOK_REPLY_EMAIL_user_id",
|
|
387
|
-
display_name="User Id",
|
|
388
|
-
info="The user's email address or 'me' for the authenticated user.",
|
|
389
|
-
show=False,
|
|
390
|
-
value="me",
|
|
391
|
-
),
|
|
392
|
-
MessageTextInput(
|
|
393
|
-
name="OUTLOOK_OUTLOOK_REPLY_EMAIL_message_id",
|
|
394
|
-
display_name="Message Id",
|
|
395
|
-
info="The ID of the message to reply to. Can be obtained from OUTLOOK_LIST_MESSAGES action.",
|
|
396
|
-
show=False,
|
|
397
|
-
required=True,
|
|
398
|
-
),
|
|
399
|
-
MessageTextInput(
|
|
400
|
-
name="OUTLOOK_OUTLOOK_REPLY_EMAIL_comment",
|
|
401
|
-
display_name="Comment",
|
|
402
|
-
info="Comment to include in the reply. Must be plain text.",
|
|
403
|
-
show=False,
|
|
404
|
-
required=True,
|
|
405
|
-
),
|
|
406
|
-
MessageTextInput(
|
|
407
|
-
name="OUTLOOK_OUTLOOK_REPLY_EMAIL_cc_emails",
|
|
408
|
-
display_name="CC",
|
|
409
|
-
info="List of CC recipient email addresses comma separated",
|
|
410
|
-
show=False,
|
|
411
|
-
value=[],
|
|
412
|
-
is_list=True,
|
|
413
|
-
),
|
|
414
|
-
MessageTextInput(
|
|
415
|
-
name="OUTLOOK_OUTLOOK_REPLY_EMAIL_bcc_emails",
|
|
416
|
-
display_name="BCC",
|
|
417
|
-
info="List of BCC recipient email addresses comma separated",
|
|
418
|
-
show=False,
|
|
419
|
-
value=[],
|
|
420
|
-
is_list=True,
|
|
421
|
-
),
|
|
422
|
-
MessageTextInput(
|
|
423
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_user_id",
|
|
424
|
-
display_name="User Id",
|
|
425
|
-
info="The user's email address or 'me' for the authenticated user.",
|
|
426
|
-
show=False,
|
|
427
|
-
value="me",
|
|
428
|
-
advanced=True,
|
|
429
|
-
),
|
|
430
|
-
MessageTextInput(
|
|
431
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_subject",
|
|
432
|
-
display_name="Subject",
|
|
433
|
-
info="Subject of the event. Example: 'Team Meeting'.",
|
|
434
|
-
show=False,
|
|
435
|
-
required=True,
|
|
436
|
-
),
|
|
437
|
-
MessageTextInput(
|
|
438
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_body",
|
|
439
|
-
display_name="Body",
|
|
440
|
-
info="Body content of the event. Can be plain text or HTML.",
|
|
441
|
-
show=False,
|
|
442
|
-
required=True,
|
|
443
|
-
),
|
|
444
|
-
BoolInput(
|
|
445
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_is_html",
|
|
446
|
-
display_name="Is Html",
|
|
447
|
-
info="Set to True if the body content should be interpreted as HTML.",
|
|
448
|
-
show=False,
|
|
449
|
-
value=False,
|
|
450
|
-
advanced=True,
|
|
451
|
-
),
|
|
452
|
-
MessageTextInput(
|
|
453
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_start_datetime",
|
|
454
|
-
display_name="Start Datetime",
|
|
455
|
-
info="Start date/time (ISO 8601). Example: '2025-01-03T10:00:00Z'.",
|
|
456
|
-
show=False,
|
|
457
|
-
required=True,
|
|
458
|
-
),
|
|
459
|
-
MessageTextInput(
|
|
460
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_end_datetime",
|
|
461
|
-
display_name="End Datetime",
|
|
462
|
-
info="End date/time (ISO 8601). Example: '2025-01-03T11:00:00Z'.",
|
|
463
|
-
show=False,
|
|
464
|
-
required=True,
|
|
465
|
-
),
|
|
466
|
-
MessageTextInput(
|
|
467
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_time_zone",
|
|
468
|
-
display_name="Time Zone",
|
|
469
|
-
info="Time zone (e.g., 'UTC' or 'America/Los_Angeles').",
|
|
470
|
-
show=False,
|
|
471
|
-
required=True,
|
|
472
|
-
),
|
|
473
|
-
BoolInput(
|
|
474
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_is_online_meeting",
|
|
475
|
-
display_name="Is Online Meeting",
|
|
476
|
-
info="Set to True to make this an online meeting and generate a Teams URL.",
|
|
477
|
-
show=False,
|
|
478
|
-
value=False,
|
|
479
|
-
advanced=True,
|
|
480
|
-
),
|
|
481
|
-
MessageTextInput(
|
|
482
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_online_meeting_provider",
|
|
483
|
-
display_name="Online Meeting Provider",
|
|
484
|
-
info="The online meeting service provider. Currently only supports 'teamsForBusiness'.",
|
|
485
|
-
show=False,
|
|
486
|
-
advanced=True,
|
|
487
|
-
),
|
|
488
|
-
MessageTextInput(
|
|
489
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_attendees_info",
|
|
490
|
-
display_name="Attendees",
|
|
491
|
-
info="A list of attendee information. Only email is required for each attendee., Example: [{ 'email': 'team@example.com', 'name': 'Team', 'type': 'required' }, { 'email': 'other@example.com', 'type': 'optional' }, { 'email': 'other2@example.com' }]", # noqa: E501
|
|
492
|
-
show=False,
|
|
493
|
-
),
|
|
494
|
-
MessageTextInput(
|
|
495
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_location",
|
|
496
|
-
display_name="Location",
|
|
497
|
-
info="Location of the event (e.g., 'Conference Room').",
|
|
498
|
-
show=False,
|
|
499
|
-
value="",
|
|
500
|
-
advanced=True,
|
|
501
|
-
),
|
|
502
|
-
MessageTextInput(
|
|
503
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_show_as",
|
|
504
|
-
display_name="Show As",
|
|
505
|
-
info="Status of the event: 'free', 'tentative', 'busy', or 'oof'.",
|
|
506
|
-
show=False,
|
|
507
|
-
value="busy",
|
|
508
|
-
advanced=True,
|
|
509
|
-
),
|
|
510
|
-
MessageTextInput(
|
|
511
|
-
name="OUTLOOK_OUTLOOK_CALENDAR_CREATE_EVENT_categories",
|
|
512
|
-
display_name="Categories",
|
|
513
|
-
info="List of categories associated with the event comma separated.",
|
|
514
|
-
show=False,
|
|
515
|
-
advanced=True,
|
|
516
|
-
),
|
|
517
|
-
MessageTextInput(
|
|
518
|
-
name="OUTLOOK_OUTLOOK_GET_EVENT_user_id",
|
|
519
|
-
display_name="User Id",
|
|
520
|
-
info="The user's email address or 'me' for the authenticated user.",
|
|
521
|
-
show=False,
|
|
522
|
-
value="me",
|
|
523
|
-
),
|
|
524
|
-
MessageTextInput(
|
|
525
|
-
name="OUTLOOK_OUTLOOK_GET_EVENT_event_id",
|
|
526
|
-
display_name="Event Id",
|
|
527
|
-
info="The ID of the calendar event to retrieve.",
|
|
528
|
-
show=False,
|
|
529
|
-
required=True,
|
|
530
|
-
),
|
|
531
|
-
MessageTextInput(
|
|
532
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_user_id",
|
|
533
|
-
display_name="User Id",
|
|
534
|
-
info="The target user's email address or 'me' for the authenticated user. For delegated access scenarios, this should be the email of the shared mailbox or delegated user.", # noqa: E501
|
|
535
|
-
show=False,
|
|
536
|
-
value="me",
|
|
537
|
-
advanced=True,
|
|
538
|
-
),
|
|
539
|
-
MessageTextInput(
|
|
540
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_folder",
|
|
541
|
-
display_name="Folder",
|
|
542
|
-
info="",
|
|
543
|
-
show=False,
|
|
544
|
-
value="inbox",
|
|
545
|
-
advanced=True,
|
|
546
|
-
),
|
|
547
|
-
IntInput(
|
|
548
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_top",
|
|
549
|
-
display_name="Max Results",
|
|
550
|
-
info="The maximum number of messages to return per request. Must be a positive integer between 1 and 1000.",
|
|
551
|
-
show=False,
|
|
552
|
-
value=10,
|
|
553
|
-
),
|
|
554
|
-
IntInput(
|
|
555
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_skip",
|
|
556
|
-
display_name="Skip",
|
|
557
|
-
info="The number of messages to skip before starting to collect results. Use for paginated responses.",
|
|
558
|
-
show=False,
|
|
559
|
-
value=0,
|
|
560
|
-
advanced=True,
|
|
561
|
-
),
|
|
562
|
-
BoolInput(
|
|
563
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_is_read",
|
|
564
|
-
display_name="Is Read",
|
|
565
|
-
info="Filter messages by read status. If set to False, only unread messages will be returned.",
|
|
566
|
-
show=False,
|
|
567
|
-
value=False,
|
|
568
|
-
advanced=True,
|
|
569
|
-
),
|
|
570
|
-
MessageTextInput(
|
|
571
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_importance",
|
|
572
|
-
display_name="Importance",
|
|
573
|
-
info="Filter messages by importance. For example, 'high', 'normal', or 'low'.",
|
|
574
|
-
show=False,
|
|
575
|
-
advanced=True,
|
|
576
|
-
),
|
|
577
|
-
MessageTextInput(
|
|
578
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_subject",
|
|
579
|
-
display_name="Subject",
|
|
580
|
-
info="Filter messages by subject (exact match).",
|
|
581
|
-
show=False,
|
|
582
|
-
advanced=True,
|
|
583
|
-
),
|
|
584
|
-
MessageTextInput(
|
|
585
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_received_date_time_gt",
|
|
586
|
-
display_name="Received Date Time Gt",
|
|
587
|
-
info="Filter messages with a receivedDateTime greater than the specified value. Example: '2023-01-01T00:00:00Z'.", # noqa: E501
|
|
588
|
-
show=False,
|
|
589
|
-
advanced=True,
|
|
590
|
-
),
|
|
591
|
-
MessageTextInput(
|
|
592
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_subject_startswith",
|
|
593
|
-
display_name="Subject Startswith",
|
|
594
|
-
info="Filter messages where the subject starts with the specified string.",
|
|
595
|
-
show=False,
|
|
596
|
-
advanced=True,
|
|
597
|
-
),
|
|
598
|
-
MessageTextInput(
|
|
599
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_subject_endswith",
|
|
600
|
-
display_name="Subject Endswith",
|
|
601
|
-
info="Filter messages where the subject ends with the specified string.",
|
|
602
|
-
show=False,
|
|
603
|
-
advanced=True,
|
|
604
|
-
),
|
|
605
|
-
MessageTextInput(
|
|
606
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_subject_contains",
|
|
607
|
-
display_name="Subject Contains",
|
|
608
|
-
info="Filter messages where the subject contains the specified substring.",
|
|
609
|
-
show=False,
|
|
610
|
-
advanced=True,
|
|
611
|
-
),
|
|
612
|
-
MessageTextInput(
|
|
613
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_received_date_time_ge",
|
|
614
|
-
display_name="Received Date Time Ge",
|
|
615
|
-
info="Filter messages with a receivedDateTime greater than or equal to the specified value.",
|
|
616
|
-
show=False,
|
|
617
|
-
advanced=True,
|
|
618
|
-
),
|
|
619
|
-
MessageTextInput(
|
|
620
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_received_date_time_lt",
|
|
621
|
-
display_name="Received Date Time Lt",
|
|
622
|
-
info="Filter messages with a receivedDateTime less than the specified value.",
|
|
623
|
-
show=False,
|
|
624
|
-
advanced=True,
|
|
625
|
-
),
|
|
626
|
-
MessageTextInput(
|
|
627
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_received_date_time_le",
|
|
628
|
-
display_name="Received Date Time Le",
|
|
629
|
-
info="Filter messages with a receivedDateTime less than or equal to the specified value.",
|
|
630
|
-
show=False,
|
|
631
|
-
advanced=True,
|
|
632
|
-
),
|
|
633
|
-
MessageTextInput(
|
|
634
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_from_address",
|
|
635
|
-
display_name="From Address",
|
|
636
|
-
info="Filter messages by the sender's email address. Uses equality check on from/emailAddress/address.",
|
|
637
|
-
show=False,
|
|
638
|
-
advanced=True,
|
|
639
|
-
),
|
|
640
|
-
BoolInput(
|
|
641
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_has_attachments",
|
|
642
|
-
display_name="Has Attachments",
|
|
643
|
-
info="Filter messages by whether they have attachments.",
|
|
644
|
-
show=False,
|
|
645
|
-
advanced=True,
|
|
646
|
-
),
|
|
647
|
-
MessageTextInput(
|
|
648
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_body_preview_contains",
|
|
649
|
-
display_name="Body Preview Contains",
|
|
650
|
-
info="Filter messages where the bodyPreview contains the specified substring.",
|
|
651
|
-
show=False,
|
|
652
|
-
advanced=True,
|
|
653
|
-
),
|
|
654
|
-
MessageTextInput(
|
|
655
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_sent_date_time_gt",
|
|
656
|
-
display_name="Sent Date Time Gt",
|
|
657
|
-
info="Filter messages with a sentDateTime greater than the specified value.",
|
|
658
|
-
show=False,
|
|
659
|
-
advanced=True,
|
|
660
|
-
),
|
|
661
|
-
MessageTextInput(
|
|
662
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_sent_date_time_lt",
|
|
663
|
-
display_name="Sent Date Time Lt",
|
|
664
|
-
info="Filter messages with a sentDateTime less than the specified value.",
|
|
665
|
-
show=False,
|
|
666
|
-
advanced=True,
|
|
667
|
-
),
|
|
668
|
-
MessageTextInput(
|
|
669
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_categories",
|
|
670
|
-
display_name="Categories",
|
|
671
|
-
info="Filter messages by categories. Matches if the message contains any of the specified categories.",
|
|
672
|
-
show=False,
|
|
673
|
-
advanced=True,
|
|
674
|
-
),
|
|
675
|
-
MessageTextInput(
|
|
676
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_select",
|
|
677
|
-
display_name="Select",
|
|
678
|
-
info="A list of properties to include in the response comma separated. Common properties: 'subject', 'from', 'toRecipients', 'receivedDateTime'.", # noqa: E501
|
|
679
|
-
show=False,
|
|
680
|
-
advanced=True,
|
|
681
|
-
),
|
|
682
|
-
MessageTextInput(
|
|
683
|
-
name="OUTLOOK_OUTLOOK_LIST_MESSAGES_orderby",
|
|
684
|
-
display_name="Orderby",
|
|
685
|
-
info="Specify properties to sort results by. For example, 'receivedDateTime desc' for newest messages first.", # noqa: E501
|
|
686
|
-
show=False,
|
|
687
|
-
advanced=True,
|
|
688
|
-
),
|
|
689
|
-
]
|
|
690
|
-
|
|
691
|
-
def execute_action(self):
|
|
692
|
-
"""Execute action and return response as Message."""
|
|
693
|
-
toolset = self._build_wrapper()
|
|
694
|
-
|
|
695
|
-
try:
|
|
696
|
-
self._build_action_maps()
|
|
697
|
-
display_name = self.action[0]["name"] if isinstance(self.action, list) and self.action else self.action
|
|
698
|
-
action_key = self._display_to_key_map.get(display_name)
|
|
699
|
-
if not action_key:
|
|
700
|
-
msg = f"Invalid action: {display_name}"
|
|
701
|
-
raise ValueError(msg)
|
|
702
|
-
|
|
703
|
-
enum_name = getattr(Action, action_key)
|
|
704
|
-
params = {}
|
|
705
|
-
if action_key in self._actions_data:
|
|
706
|
-
for field in self._actions_data[action_key]["action_fields"]:
|
|
707
|
-
value = getattr(self, field)
|
|
708
|
-
|
|
709
|
-
if value is None or value == "":
|
|
710
|
-
continue
|
|
711
|
-
|
|
712
|
-
if field in self._list_variables and value:
|
|
713
|
-
value = [item.strip() for item in value.split(",")]
|
|
714
|
-
|
|
715
|
-
if field in self._bool_variables:
|
|
716
|
-
value = bool(value)
|
|
717
|
-
|
|
718
|
-
param_name = field.replace(action_key + "_", "")
|
|
719
|
-
|
|
720
|
-
params[param_name] = value
|
|
721
|
-
|
|
722
|
-
result = toolset.execute_action(
|
|
723
|
-
action=enum_name,
|
|
724
|
-
params=params,
|
|
725
|
-
)
|
|
726
|
-
if not result.get("successful"):
|
|
727
|
-
error_data = result.get("data", {})
|
|
728
|
-
error_message = error_data.get("message", str(result.get("error", "Unknown Error")))
|
|
729
|
-
|
|
730
|
-
if isinstance(error_message, str):
|
|
731
|
-
try:
|
|
732
|
-
error_obj = json.loads(error_message).get("error", {})
|
|
733
|
-
error_obj["status_code"] = error_data.get("status_code", 400)
|
|
734
|
-
return error_obj # noqa: TRY300
|
|
735
|
-
except json.JSONDecodeError:
|
|
736
|
-
return {"error": error_message, "status_code": error_data.get("status_code", 400)}
|
|
737
|
-
|
|
738
|
-
return error_message
|
|
739
|
-
|
|
740
|
-
result_data = result.get("data", {})
|
|
741
|
-
actions_data = self._actions_data.get(action_key, {})
|
|
742
|
-
if actions_data.get("get_result_field") and actions_data.get("result_field"):
|
|
743
|
-
response_data = result_data.get("response_data", {})
|
|
744
|
-
if response_data and actions_data.get("result_field") in response_data:
|
|
745
|
-
result_data = response_data.get(actions_data.get("result_field"), result.get("data", []))
|
|
746
|
-
else:
|
|
747
|
-
result_data = result_data.get(actions_data.get("result_field"), result.get("data", []))
|
|
748
|
-
if len(result_data) != 1 and not actions_data.get("result_field") and actions_data.get("get_result_field"):
|
|
749
|
-
msg = f"Expected a dict with a single key, got {len(result_data)} keys: {result_data.keys()}"
|
|
750
|
-
raise ValueError(msg)
|
|
751
|
-
return result_data # noqa: TRY300
|
|
752
|
-
except Exception as e:
|
|
753
|
-
logger.error(f"Error executing action: {e}")
|
|
754
|
-
display_name = self.action[0]["name"] if isinstance(self.action, list) and self.action else str(self.action)
|
|
755
|
-
msg = f"Failed to execute {display_name}: {e!s}"
|
|
756
|
-
raise ValueError(msg) from e
|
|
757
|
-
|
|
758
|
-
def update_build_config(self, build_config: dict, field_value: Any, field_name: str | None = None) -> dict:
|
|
759
|
-
return super().update_build_config(build_config, field_value, field_name)
|
|
760
|
-
|
|
761
10
|
def set_default_tools(self):
|
|
762
|
-
|
|
763
|
-
self.sanitize_action_name("OUTLOOK_OUTLOOK_SEND_EMAIL").replace(" ", "-"),
|
|
764
|
-
self.sanitize_action_name("OUTLOOK_OUTLOOK_LIST_MESSAGES").replace(" ", "-"),
|
|
765
|
-
}
|
|
11
|
+
"""Set the default tools for Gmail component."""
|