airbyte-agent-slack 0.1.13__py3-none-any.whl → 0.1.14__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.
@@ -18,8 +18,8 @@ from .models import (
18
18
  ChannelsListResponse,
19
19
  ChannelResponse,
20
20
  Reaction,
21
- File,
22
21
  Attachment,
22
+ File,
23
23
  Message,
24
24
  Thread,
25
25
  EditedInfo,
@@ -82,8 +82,8 @@ __all__ = [
82
82
  "ChannelsListResponse",
83
83
  "ChannelResponse",
84
84
  "Reaction",
85
- "File",
86
85
  "Attachment",
86
+ "File",
87
87
  "Message",
88
88
  "Thread",
89
89
  "EditedInfo",
@@ -184,6 +184,27 @@ class Reaction(BaseModel):
184
184
  users: Union[list[str] | None, Any] = Field(default=None)
185
185
  count: Union[int | None, Any] = Field(default=None)
186
186
 
187
+ class Attachment(BaseModel):
188
+ """Message attachment"""
189
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
190
+
191
+ id: Union[int | None, Any] = Field(default=None)
192
+ fallback: Union[str | None, Any] = Field(default=None)
193
+ color: Union[str | None, Any] = Field(default=None)
194
+ pretext: Union[str | None, Any] = Field(default=None)
195
+ author_name: Union[str | None, Any] = Field(default=None)
196
+ author_link: Union[str | None, Any] = Field(default=None)
197
+ author_icon: Union[str | None, Any] = Field(default=None)
198
+ title: Union[str | None, Any] = Field(default=None)
199
+ title_link: Union[str | None, Any] = Field(default=None)
200
+ text: Union[str | None, Any] = Field(default=None)
201
+ fields: Union[list[dict[str, Any]] | None, Any] = Field(default=None)
202
+ image_url: Union[str | None, Any] = Field(default=None)
203
+ thumb_url: Union[str | None, Any] = Field(default=None)
204
+ footer: Union[str | None, Any] = Field(default=None)
205
+ footer_icon: Union[str | None, Any] = Field(default=None)
206
+ ts: Union[Any, Any] = Field(default=None)
207
+
187
208
  class File(BaseModel):
188
209
  """File object"""
189
210
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -208,27 +229,6 @@ class File(BaseModel):
208
229
  created: Union[int | None, Any] = Field(default=None)
209
230
  timestamp: Union[int | None, Any] = Field(default=None)
210
231
 
211
- class Attachment(BaseModel):
212
- """Message attachment"""
213
- model_config = ConfigDict(extra="allow", populate_by_name=True)
214
-
215
- id: Union[int | None, Any] = Field(default=None)
216
- fallback: Union[str | None, Any] = Field(default=None)
217
- color: Union[str | None, Any] = Field(default=None)
218
- pretext: Union[str | None, Any] = Field(default=None)
219
- author_name: Union[str | None, Any] = Field(default=None)
220
- author_link: Union[str | None, Any] = Field(default=None)
221
- author_icon: Union[str | None, Any] = Field(default=None)
222
- title: Union[str | None, Any] = Field(default=None)
223
- title_link: Union[str | None, Any] = Field(default=None)
224
- text: Union[str | None, Any] = Field(default=None)
225
- fields: Union[list[dict[str, Any]] | None, Any] = Field(default=None)
226
- image_url: Union[str | None, Any] = Field(default=None)
227
- thumb_url: Union[str | None, Any] = Field(default=None)
228
- footer: Union[str | None, Any] = Field(default=None)
229
- footer_icon: Union[str | None, Any] = Field(default=None)
230
- ts: Union[Any, 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.13
3
+ Version: 0.1.14
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/
@@ -87,38 +87,48 @@ uv pip install airbyte-agent-slack
87
87
 
88
88
  ## Usage
89
89
 
90
- This connector supports multiple authentication methods:
90
+ Connectors can run in open source or hosted mode.
91
91
 
92
- ### Token Authentication
92
+ ### Open source
93
+
94
+ In open source mode, you provide API credentials directly to the connector.
93
95
 
94
96
  ```python
95
97
  from airbyte_agent_slack import SlackConnector
96
98
  from airbyte_agent_slack.models import SlackTokenAuthenticationAuthConfig
97
99
 
98
100
  connector = SlackConnector(
99
- auth_config=SlackTokenAuthenticationAuthConfig(
100
- access_token="..."
101
- )
101
+ auth_config=SlackTokenAuthenticationAuthConfig(
102
+ access_token="<Your Slack Bot Token (xoxb-) or User Token (xoxp-)>"
103
+ )
102
104
  )
103
- result = await connector.users.list()
105
+
106
+ @agent.tool_plain # assumes you're using Pydantic AI
107
+ @SlackConnector.describe
108
+ async def slack_execute(entity: str, action: str, params: dict | None = None):
109
+ return await connector.execute(entity, action, params or {})
104
110
  ```
105
111
 
106
- ### OAuth 2.0 Authentication
112
+ ### Hosted
113
+
114
+ In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead.
115
+
116
+ This example assumes you've already authenticated your connector with Airbyte. See [Authentication](AUTH.md) to learn more about authenticating. If you need a step-by-step guide, see the [hosted execution tutorial](https://docs.airbyte.com/ai-agents/hosted-execution).
107
117
 
108
118
  ```python
109
119
  from airbyte_agent_slack import SlackConnector
110
- from airbyte_agent_slack.models import SlackOauth20AuthenticationAuthConfig
111
120
 
112
121
  connector = SlackConnector(
113
- auth_config=SlackOauth20AuthenticationAuthConfig(
114
- client_id="...",
115
- client_secret="...",
116
- access_token="..."
117
- )
122
+ external_user_id="<your-scoped-token>",
123
+ airbyte_client_id="<your-client-id>",
124
+ airbyte_client_secret="<your-client-secret>"
118
125
  )
119
- result = await connector.users.list()
120
- ```
121
126
 
127
+ @agent.tool_plain # assumes you're using Pydantic AI
128
+ @SlackConnector.describe
129
+ async def slack_execute(entity: str, action: str, params: dict | None = None):
130
+ return await connector.execute(entity, action, params or {})
131
+ ```
122
132
 
123
133
  ## Full documentation
124
134
 
@@ -136,12 +146,14 @@ This connector supports the following entities and actions.
136
146
  | Reactions | [Create](./REFERENCE.md#reactions-create) |
137
147
 
138
148
 
149
+ For all authentication options, see the connector's [authentication documentation](AUTH.md).
150
+
139
151
  For detailed documentation on available actions and parameters, see this connector's [full reference documentation](./REFERENCE.md).
140
152
 
141
153
  For the service's official API docs, see the [Slack API reference](https://api.slack.com/methods).
142
154
 
143
155
  ## Version information
144
156
 
145
- - **Package version:** 0.1.13
157
+ - **Package version:** 0.1.14
146
158
  - **Connector version:** 0.1.5
147
- - **Generated with Connector SDK commit SHA:** c713ec4833c2b52dc89926ec68caa343423884cd
159
+ - **Generated with Connector SDK commit SHA:** 1da193dd2b3d4b2e2147ba74bd9a4062a62c4186
@@ -1,7 +1,7 @@
1
- airbyte_agent_slack/__init__.py,sha256=JaQBqd7I7QGv0pVCtOnG1mW4ba_VC8cQLny-hQIk-yE,3021
1
+ airbyte_agent_slack/__init__.py,sha256=opPBP7DJq2UMJVKuubO2Ov-MmdpD2s-6xEZFFkbe4Yg,3021
2
2
  airbyte_agent_slack/connector.py,sha256=C-runzVQOFsrOAM0mEV8pGL4fJfk8vY6TqYPvKq1bNU,29292
3
3
  airbyte_agent_slack/connector_model.py,sha256=e-lj4OySCyhaGYpor6YGQbgLNItRurZVg4HhmE2_R5s,191740
4
- airbyte_agent_slack/models.py,sha256=s4I8jf7mVu1ATyCybXbIVvDLLXLQ99_z6gai3dCFBtU,22473
4
+ airbyte_agent_slack/models.py,sha256=fybjTwD3PLUvdLynsEzRbhaK0dd6LXGi-tPdn81k6as,22473
5
5
  airbyte_agent_slack/types.py,sha256=PzLbXxZt3-K9Kux3U_Bn6tW9sTQho_UVoMU_Hqzo5d4,2628
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
@@ -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=Ftrk0_ddfM7dZG8hF9xBuPwhbc9D6JZ7Q9qs5o3LEyA,5579
55
- airbyte_agent_slack-0.1.13.dist-info/METADATA,sha256=0VkLBtlU3wrxyce89sC1VO9V8EykoWYciK0PEi1LGfw,5541
56
- airbyte_agent_slack-0.1.13.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
57
- airbyte_agent_slack-0.1.13.dist-info/RECORD,,
55
+ airbyte_agent_slack-0.1.14.dist-info/METADATA,sha256=t_a9cJkr_7WjnFNoYgRTgGTh2GGuLnKzQfrKpyHE3hM,6426
56
+ airbyte_agent_slack-0.1.14.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
57
+ airbyte_agent_slack-0.1.14.dist-info/RECORD,,