airbyte-agent-slack 0.1.35__py3-none-any.whl → 0.1.36__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.
- airbyte_agent_slack/__init__.py +2 -2
- airbyte_agent_slack/_vendored/connector_sdk/executor/local_executor.py +4 -3
- airbyte_agent_slack/_vendored/connector_sdk/http/adapters/httpx_adapter.py +10 -1
- airbyte_agent_slack/models.py +8 -8
- {airbyte_agent_slack-0.1.35.dist-info → airbyte_agent_slack-0.1.36.dist-info}/METADATA +3 -3
- {airbyte_agent_slack-0.1.35.dist-info → airbyte_agent_slack-0.1.36.dist-info}/RECORD +7 -7
- {airbyte_agent_slack-0.1.35.dist-info → airbyte_agent_slack-0.1.36.dist-info}/WHEEL +0 -0
airbyte_agent_slack/__init__.py
CHANGED
|
@@ -18,8 +18,8 @@ from .models import (
|
|
|
18
18
|
ChannelsListResponse,
|
|
19
19
|
ChannelResponse,
|
|
20
20
|
File,
|
|
21
|
-
Attachment,
|
|
22
21
|
Reaction,
|
|
22
|
+
Attachment,
|
|
23
23
|
Message,
|
|
24
24
|
Thread,
|
|
25
25
|
EditedInfo,
|
|
@@ -97,8 +97,8 @@ __all__ = [
|
|
|
97
97
|
"ChannelsListResponse",
|
|
98
98
|
"ChannelResponse",
|
|
99
99
|
"File",
|
|
100
|
-
"Attachment",
|
|
101
100
|
"Reaction",
|
|
101
|
+
"Attachment",
|
|
102
102
|
"Message",
|
|
103
103
|
"Thread",
|
|
104
104
|
"EditedInfo",
|
|
@@ -584,7 +584,7 @@ class LocalExecutor:
|
|
|
584
584
|
return ExecutionResult(
|
|
585
585
|
success=True,
|
|
586
586
|
data={
|
|
587
|
-
"status": "
|
|
587
|
+
"status": "skipped",
|
|
588
588
|
"error": "No list operation available for health check",
|
|
589
589
|
},
|
|
590
590
|
)
|
|
@@ -599,7 +599,7 @@ class LocalExecutor:
|
|
|
599
599
|
return ExecutionResult(
|
|
600
600
|
success=True,
|
|
601
601
|
data={
|
|
602
|
-
"status": "
|
|
602
|
+
"status": "skipped",
|
|
603
603
|
"error": "No standard handler available",
|
|
604
604
|
},
|
|
605
605
|
)
|
|
@@ -616,13 +616,14 @@ class LocalExecutor:
|
|
|
616
616
|
)
|
|
617
617
|
except Exception as e:
|
|
618
618
|
return ExecutionResult(
|
|
619
|
-
success=
|
|
619
|
+
success=False,
|
|
620
620
|
data={
|
|
621
621
|
"status": "unhealthy",
|
|
622
622
|
"error": str(e),
|
|
623
623
|
"checked_entity": check_entity,
|
|
624
624
|
"checked_action": "list",
|
|
625
625
|
},
|
|
626
|
+
error=str(e),
|
|
626
627
|
)
|
|
627
628
|
|
|
628
629
|
async def _execute_operation(
|
|
@@ -186,7 +186,16 @@ class HTTPXClient:
|
|
|
186
186
|
# Try to get error message from response
|
|
187
187
|
try:
|
|
188
188
|
error_data = httpx_response.json()
|
|
189
|
-
|
|
189
|
+
errors_list = error_data.get("errors")
|
|
190
|
+
if isinstance(errors_list, list):
|
|
191
|
+
|
|
192
|
+
def _extract_error(e: object) -> str:
|
|
193
|
+
if isinstance(e, dict):
|
|
194
|
+
return str(e.get("userPresentableMessage") or e.get("message") or e.get("error") or e)
|
|
195
|
+
return str(e)
|
|
196
|
+
|
|
197
|
+
errors_list = ", ".join(_extract_error(e) for e in errors_list)
|
|
198
|
+
error_message = errors_list or error_data.get("message") or error_data.get("error") or str(error_data)
|
|
190
199
|
except Exception:
|
|
191
200
|
error_message = httpx_response.text or f"HTTP {status_code} error"
|
|
192
201
|
|
airbyte_agent_slack/models.py
CHANGED
|
@@ -200,6 +200,14 @@ class File(BaseModel):
|
|
|
200
200
|
created: Union[int | None, Any] = Field(default=None)
|
|
201
201
|
timestamp: Union[int | None, Any] = Field(default=None)
|
|
202
202
|
|
|
203
|
+
class Reaction(BaseModel):
|
|
204
|
+
"""Message reaction"""
|
|
205
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
206
|
+
|
|
207
|
+
name: Union[str | None, Any] = Field(default=None)
|
|
208
|
+
users: Union[list[str] | None, Any] = Field(default=None)
|
|
209
|
+
count: Union[int | None, Any] = Field(default=None)
|
|
210
|
+
|
|
203
211
|
class Attachment(BaseModel):
|
|
204
212
|
"""Message attachment"""
|
|
205
213
|
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
@@ -221,14 +229,6 @@ class Attachment(BaseModel):
|
|
|
221
229
|
footer_icon: Union[str | None, Any] = Field(default=None)
|
|
222
230
|
ts: Union[Any, Any] = Field(default=None)
|
|
223
231
|
|
|
224
|
-
class Reaction(BaseModel):
|
|
225
|
-
"""Message reaction"""
|
|
226
|
-
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
227
|
-
|
|
228
|
-
name: Union[str | None, Any] = Field(default=None)
|
|
229
|
-
users: Union[list[str] | None, Any] = Field(default=None)
|
|
230
|
-
count: Union[int | None, Any] = Field(default=None)
|
|
231
|
-
|
|
232
232
|
class Message(BaseModel):
|
|
233
233
|
"""Slack message object"""
|
|
234
234
|
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: airbyte-agent-slack
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.36
|
|
4
4
|
Summary: Airbyte Slack Connector for AI platforms
|
|
5
5
|
Project-URL: Homepage, https://github.com/airbytehq/airbyte-agent-connectors
|
|
6
6
|
Project-URL: Documentation, https://docs.airbyte.com/ai-agents/
|
|
@@ -158,7 +158,7 @@ See the official [Slack API reference](https://api.slack.com/methods).
|
|
|
158
158
|
|
|
159
159
|
## Version information
|
|
160
160
|
|
|
161
|
-
- **Package version:** 0.1.
|
|
161
|
+
- **Package version:** 0.1.36
|
|
162
162
|
- **Connector version:** 0.1.10
|
|
163
|
-
- **Generated with Connector SDK commit SHA:**
|
|
163
|
+
- **Generated with Connector SDK commit SHA:** 5b20f488dec0e8f29410823753106603c23a4b65
|
|
164
164
|
- **Changelog:** [View changelog](https://github.com/airbytehq/airbyte-agent-connectors/blob/main/connectors/slack/CHANGELOG.md)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
airbyte_agent_slack/__init__.py,sha256=
|
|
1
|
+
airbyte_agent_slack/__init__.py,sha256=EPC2KyBAfUlxJSW7sJZJa1HG42ncMTSEb8tSxFCTvdg,3749
|
|
2
2
|
airbyte_agent_slack/connector.py,sha256=-QcVvtfwp7DB120h_s82Qb9jh3-s_xrcQuOmYDfxYTg,41130
|
|
3
3
|
airbyte_agent_slack/connector_model.py,sha256=M5CY1RwqU7_yuhTpl43OkjSRWfeE__EnsffIIJpliIU,194546
|
|
4
|
-
airbyte_agent_slack/models.py,sha256=
|
|
4
|
+
airbyte_agent_slack/models.py,sha256=ohzxciXjKMfvjpedBU-q7crUGd7KII4OUficaR3Gv1A,29511
|
|
5
5
|
airbyte_agent_slack/types.py,sha256=QDLOYuH23w4H_5fxVjTcBBz6BMYm2PWbuM1K_EOcD4o,32154
|
|
6
6
|
airbyte_agent_slack/_vendored/__init__.py,sha256=ILl7AHXMui__swyrjxrh9yRa4dLiwBvV6axPWFWty80,38
|
|
7
7
|
airbyte_agent_slack/_vendored/connector_sdk/__init__.py,sha256=T5o7roU6NSpH-lCAGZ338sE5dlh4ZU6i6IkeG1zpems,1949
|
|
@@ -21,7 +21,7 @@ airbyte_agent_slack/_vendored/connector_sdk/cloud_utils/__init__.py,sha256=4799H
|
|
|
21
21
|
airbyte_agent_slack/_vendored/connector_sdk/cloud_utils/client.py,sha256=YxdRpQr9XjDzih6csSseBVGn9kfMtaqbOCXP0TPuzFY,7189
|
|
22
22
|
airbyte_agent_slack/_vendored/connector_sdk/executor/__init__.py,sha256=EmG9YQNAjSuYCVB4D5VoLm4qpD1KfeiiOf7bpALj8p8,702
|
|
23
23
|
airbyte_agent_slack/_vendored/connector_sdk/executor/hosted_executor.py,sha256=AC5aJtdcMPQfRuam0ZGE4QdhUBu2oGEmNZ6oVQLHTE8,7212
|
|
24
|
-
airbyte_agent_slack/_vendored/connector_sdk/executor/local_executor.py,sha256=
|
|
24
|
+
airbyte_agent_slack/_vendored/connector_sdk/executor/local_executor.py,sha256=l2b0VILgtOlUNyG19J0UkbCa6rJXkU8g1uzLot8BJjQ,77008
|
|
25
25
|
airbyte_agent_slack/_vendored/connector_sdk/executor/models.py,sha256=mUUBnuShKXxVIfsTOhMiI2rn2a-50jJG7SFGKT_P6Jk,6281
|
|
26
26
|
airbyte_agent_slack/_vendored/connector_sdk/http/__init__.py,sha256=y8fbzZn-3yV9OxtYz8Dy6FFGI5v6TOqADd1G3xHH3Hw,911
|
|
27
27
|
airbyte_agent_slack/_vendored/connector_sdk/http/config.py,sha256=6J7YIIwHC6sRu9i-yKa5XvArwK2KU60rlnmxzDZq3lw,3283
|
|
@@ -29,7 +29,7 @@ airbyte_agent_slack/_vendored/connector_sdk/http/exceptions.py,sha256=eYdYmxqcwA
|
|
|
29
29
|
airbyte_agent_slack/_vendored/connector_sdk/http/protocols.py,sha256=eV7NbBIQOcPLw-iu8mtkV2zCVgScDwP0ek1SbPNQo0g,3323
|
|
30
30
|
airbyte_agent_slack/_vendored/connector_sdk/http/response.py,sha256=Q-RyM5D0D05ZhmZVJk4hVpmoS8YtyXNOTM5hqBt7rWI,3475
|
|
31
31
|
airbyte_agent_slack/_vendored/connector_sdk/http/adapters/__init__.py,sha256=gjbWdU4LfzUG2PETI0TkfkukdzoCAhpL6FZtIEnkO-s,209
|
|
32
|
-
airbyte_agent_slack/_vendored/connector_sdk/http/adapters/httpx_adapter.py,sha256=
|
|
32
|
+
airbyte_agent_slack/_vendored/connector_sdk/http/adapters/httpx_adapter.py,sha256=7ounOUlpx7RBLLqYSGWzEsOnnCgCBH3WCDaQFJcmKj0,8902
|
|
33
33
|
airbyte_agent_slack/_vendored/connector_sdk/logging/__init__.py,sha256=IZoE5yXhwSA0m3xQqh0FiCifjp1sB3S8jnnFPuJLYf8,227
|
|
34
34
|
airbyte_agent_slack/_vendored/connector_sdk/logging/logger.py,sha256=rUdKDEQe3pOODmBLEcvhgZeEZi48BvrgKXKq1xvCXu0,8387
|
|
35
35
|
airbyte_agent_slack/_vendored/connector_sdk/logging/types.py,sha256=ONb9xKNXUkrR2lojSBMF7ruof7S2r92WjrO_kEZic84,3239
|
|
@@ -52,6 +52,6 @@ airbyte_agent_slack/_vendored/connector_sdk/telemetry/__init__.py,sha256=RaLgkBU
|
|
|
52
52
|
airbyte_agent_slack/_vendored/connector_sdk/telemetry/config.py,sha256=tLmQwAFD0kP1WyBGWBS3ysaudN9H3e-3EopKZi6cGKg,885
|
|
53
53
|
airbyte_agent_slack/_vendored/connector_sdk/telemetry/events.py,sha256=8Y1NbXiwISX-V_wRofY7PqcwEXD0dLMnntKkY6XFU2s,1328
|
|
54
54
|
airbyte_agent_slack/_vendored/connector_sdk/telemetry/tracker.py,sha256=SginFQbHqVUVYG82NnNzG34O-tAQ_wZYjGDcuo0q4Kk,5584
|
|
55
|
-
airbyte_agent_slack-0.1.
|
|
56
|
-
airbyte_agent_slack-0.1.
|
|
57
|
-
airbyte_agent_slack-0.1.
|
|
55
|
+
airbyte_agent_slack-0.1.36.dist-info/METADATA,sha256=A4yB-GynWjKtQb24H4Y9IYSMHxC1FpbveGT-6LTZRG8,6597
|
|
56
|
+
airbyte_agent_slack-0.1.36.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
57
|
+
airbyte_agent_slack-0.1.36.dist-info/RECORD,,
|
|
File without changes
|