airbyte-agent-slack 0.1.13__py3-none-any.whl → 0.1.15__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.
@@ -17,9 +17,9 @@ from .models import (
17
17
  ChannelPurpose,
18
18
  ChannelsListResponse,
19
19
  ChannelResponse,
20
- Reaction,
21
- File,
22
20
  Attachment,
21
+ File,
22
+ Reaction,
23
23
  Message,
24
24
  Thread,
25
25
  EditedInfo,
@@ -81,9 +81,9 @@ __all__ = [
81
81
  "ChannelPurpose",
82
82
  "ChannelsListResponse",
83
83
  "ChannelResponse",
84
- "Reaction",
85
- "File",
86
84
  "Attachment",
85
+ "File",
86
+ "Reaction",
87
87
  "Message",
88
88
  "Thread",
89
89
  "EditedInfo",
@@ -176,13 +176,26 @@ class ChannelResponse(BaseModel):
176
176
  ok: Union[bool, Any] = Field(default=None)
177
177
  channel: Union[Channel, Any] = Field(default=None)
178
178
 
179
- class Reaction(BaseModel):
180
- """Message reaction"""
179
+ class Attachment(BaseModel):
180
+ """Message attachment"""
181
181
  model_config = ConfigDict(extra="allow", populate_by_name=True)
182
182
 
183
- name: Union[str | None, Any] = Field(default=None)
184
- users: Union[list[str] | None, Any] = Field(default=None)
185
- count: Union[int | None, Any] = Field(default=None)
183
+ id: Union[int | None, Any] = Field(default=None)
184
+ fallback: Union[str | None, Any] = Field(default=None)
185
+ color: Union[str | None, Any] = Field(default=None)
186
+ pretext: Union[str | None, Any] = Field(default=None)
187
+ author_name: Union[str | None, Any] = Field(default=None)
188
+ author_link: Union[str | None, Any] = Field(default=None)
189
+ author_icon: Union[str | None, Any] = Field(default=None)
190
+ title: Union[str | None, Any] = Field(default=None)
191
+ title_link: Union[str | None, Any] = Field(default=None)
192
+ text: Union[str | None, Any] = Field(default=None)
193
+ fields: Union[list[dict[str, Any]] | None, Any] = Field(default=None)
194
+ image_url: Union[str | None, Any] = Field(default=None)
195
+ thumb_url: Union[str | None, Any] = Field(default=None)
196
+ footer: Union[str | None, Any] = Field(default=None)
197
+ footer_icon: Union[str | None, Any] = Field(default=None)
198
+ ts: Union[Any, Any] = Field(default=None)
186
199
 
187
200
  class File(BaseModel):
188
201
  """File object"""
@@ -208,26 +221,13 @@ class File(BaseModel):
208
221
  created: Union[int | None, Any] = Field(default=None)
209
222
  timestamp: Union[int | None, Any] = Field(default=None)
210
223
 
211
- class Attachment(BaseModel):
212
- """Message attachment"""
224
+ class Reaction(BaseModel):
225
+ """Message reaction"""
213
226
  model_config = ConfigDict(extra="allow", populate_by_name=True)
214
227
 
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)
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
231
 
232
232
  class Message(BaseModel):
233
233
  """Slack message object"""
@@ -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.15
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/quickstarts/tutorial-hosted).
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.15
146
158
  - **Connector version:** 0.1.5
147
- - **Generated with Connector SDK commit SHA:** c713ec4833c2b52dc89926ec68caa343423884cd
159
+ - **Generated with Connector SDK commit SHA:** b27328e2162813ea6315b9f890a6784b0fb9caba
@@ -1,7 +1,7 @@
1
- airbyte_agent_slack/__init__.py,sha256=JaQBqd7I7QGv0pVCtOnG1mW4ba_VC8cQLny-hQIk-yE,3021
1
+ airbyte_agent_slack/__init__.py,sha256=RSQl8MRWObBZ-qHIRkerpwqooFSQFk5_nQWMCuQ4sKI,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=NBqIp579laht73q1iKw66scVIZ048fxAFL_qeYsF40w,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.15.dist-info/METADATA,sha256=P_Cw-wpAWLjD10ZFrU0X8EMuoqISmKiD9SqHEV8fY3A,6437
56
+ airbyte_agent_slack-0.1.15.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
57
+ airbyte_agent_slack-0.1.15.dist-info/RECORD,,