airbyte-agent-slack 0.1.11__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.
@@ -17,9 +17,9 @@ from .models import (
17
17
  ChannelPurpose,
18
18
  ChannelsListResponse,
19
19
  ChannelResponse,
20
- File,
21
20
  Reaction,
22
21
  Attachment,
22
+ File,
23
23
  Message,
24
24
  Thread,
25
25
  EditedInfo,
@@ -81,9 +81,9 @@ __all__ = [
81
81
  "ChannelPurpose",
82
82
  "ChannelsListResponse",
83
83
  "ChannelResponse",
84
- "File",
85
84
  "Reaction",
86
85
  "Attachment",
86
+ "File",
87
87
  "Message",
88
88
  "Thread",
89
89
  "EditedInfo",
@@ -61,7 +61,7 @@ class SlackConnector:
61
61
  """
62
62
 
63
63
  connector_name = "slack"
64
- connector_version = "0.1.4"
64
+ connector_version = "0.1.5"
65
65
  vendored_sdk_version = "0.1.0" # Version of vendored connector-sdk
66
66
 
67
67
  # Map of (entity, action) -> needs_envelope for envelope wrapping decision
@@ -27,7 +27,7 @@ from uuid import (
27
27
  SlackConnectorModel: ConnectorModel = ConnectorModel(
28
28
  id=UUID('c2281cee-86f9-4a86-bb48-d23286b4c7bd'),
29
29
  name='slack',
30
- version='0.1.4',
30
+ version='0.1.5',
31
31
  base_url='https://slack.com/api',
32
32
  auth=AuthConfig(
33
33
  options=[
@@ -84,7 +84,11 @@ SlackConnectorModel: ConnectorModel = ConnectorModel(
84
84
  'client_secret': '${client_secret}',
85
85
  'access_token': '${access_token}',
86
86
  },
87
- replication_auth_key_mapping={'credentials.client_id': 'client_id', 'credentials.client_secret': 'client_secret'},
87
+ replication_auth_key_mapping={
88
+ 'credentials.client_id': 'client_id',
89
+ 'credentials.client_secret': 'client_secret',
90
+ 'credentials.access_token': 'access_token',
91
+ },
88
92
  replication_auth_key_constants={'credentials.option_title': 'Default OAuth2.0 authorization'},
89
93
  ),
90
94
  ),
@@ -176,30 +176,6 @@ 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 File(BaseModel):
180
- """File object"""
181
- model_config = ConfigDict(extra="allow", populate_by_name=True)
182
-
183
- id: Union[str | None, Any] = Field(default=None)
184
- name: Union[str | None, Any] = Field(default=None)
185
- title: Union[str | None, Any] = Field(default=None)
186
- mimetype: Union[str | None, Any] = Field(default=None)
187
- filetype: Union[str | None, Any] = Field(default=None)
188
- pretty_type: Union[str | None, Any] = Field(default=None)
189
- user: Union[str | None, Any] = Field(default=None)
190
- size: Union[int | None, Any] = Field(default=None)
191
- mode: Union[str | None, Any] = Field(default=None)
192
- is_external: Union[bool | None, Any] = Field(default=None)
193
- external_type: Union[str | None, Any] = Field(default=None)
194
- is_public: Union[bool | None, Any] = Field(default=None)
195
- public_url_shared: Union[bool | None, Any] = Field(default=None)
196
- url_private: Union[str | None, Any] = Field(default=None)
197
- url_private_download: Union[str | None, Any] = Field(default=None)
198
- permalink: Union[str | None, Any] = Field(default=None)
199
- permalink_public: Union[str | None, Any] = Field(default=None)
200
- created: Union[int | None, Any] = Field(default=None)
201
- timestamp: Union[int | None, Any] = Field(default=None)
202
-
203
179
  class Reaction(BaseModel):
204
180
  """Message reaction"""
205
181
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -229,6 +205,30 @@ class Attachment(BaseModel):
229
205
  footer_icon: Union[str | None, Any] = Field(default=None)
230
206
  ts: Union[Any, Any] = Field(default=None)
231
207
 
208
+ class File(BaseModel):
209
+ """File object"""
210
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
211
+
212
+ id: Union[str | None, Any] = Field(default=None)
213
+ name: Union[str | None, Any] = Field(default=None)
214
+ title: Union[str | None, Any] = Field(default=None)
215
+ mimetype: Union[str | None, Any] = Field(default=None)
216
+ filetype: Union[str | None, Any] = Field(default=None)
217
+ pretty_type: Union[str | None, Any] = Field(default=None)
218
+ user: Union[str | None, Any] = Field(default=None)
219
+ size: Union[int | None, Any] = Field(default=None)
220
+ mode: Union[str | None, Any] = Field(default=None)
221
+ is_external: Union[bool | None, Any] = Field(default=None)
222
+ external_type: Union[str | None, Any] = Field(default=None)
223
+ is_public: Union[bool | None, Any] = Field(default=None)
224
+ public_url_shared: Union[bool | None, Any] = Field(default=None)
225
+ url_private: Union[str | None, Any] = Field(default=None)
226
+ url_private_download: Union[str | None, Any] = Field(default=None)
227
+ permalink: Union[str | None, Any] = Field(default=None)
228
+ permalink_public: Union[str | None, Any] = Field(default=None)
229
+ created: Union[int | None, Any] = Field(default=None)
230
+ timestamp: 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.11
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.11
146
- - **Connector version:** 0.1.4
147
- - **Generated with Connector SDK commit SHA:** d9dfd306cb7789621cc84e01d83f9401b03ab839
157
+ - **Package version:** 0.1.14
158
+ - **Connector version:** 0.1.5
159
+ - **Generated with Connector SDK commit SHA:** 1da193dd2b3d4b2e2147ba74bd9a4062a62c4186
@@ -1,7 +1,7 @@
1
- airbyte_agent_slack/__init__.py,sha256=5Od-bQD8Lu7rou3JPVHzzdRC6vzBf9PUgqYGaaLscOU,3021
2
- airbyte_agent_slack/connector.py,sha256=fibtyqaZslp099WTyqjBiB4e1ahJUG62C0WGt-gL6VE,29292
3
- airbyte_agent_slack/connector_model.py,sha256=Yenf0-mQz60UXNXS4rf1oBSeIeHppqhJVrG6U7KzMkg,191601
4
- airbyte_agent_slack/models.py,sha256=WFC-G74lSuRTcrsfGd1VETobk4QaEVUca5G6vXYlAuI,22473
1
+ airbyte_agent_slack/__init__.py,sha256=opPBP7DJq2UMJVKuubO2Ov-MmdpD2s-6xEZFFkbe4Yg,3021
2
+ airbyte_agent_slack/connector.py,sha256=C-runzVQOFsrOAM0mEV8pGL4fJfk8vY6TqYPvKq1bNU,29292
3
+ airbyte_agent_slack/connector_model.py,sha256=e-lj4OySCyhaGYpor6YGQbgLNItRurZVg4HhmE2_R5s,191740
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.11.dist-info/METADATA,sha256=a-lVFendfEVBzl-khldmMnYFxhMXSl_r2pOcz-TmC2Y,5541
56
- airbyte_agent_slack-0.1.11.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
57
- airbyte_agent_slack-0.1.11.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,,