airbyte-agent-slack 0.1.11__tar.gz → 0.1.15__tar.gz
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-0.1.11 → airbyte_agent_slack-0.1.15}/CHANGELOG.md +20 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/PKG-INFO +31 -19
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/README.md +30 -18
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/REFERENCE.md +14 -86
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/__init__.py +2 -2
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/connector.py +1 -1
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/connector_model.py +6 -2
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/pyproject.toml +1 -1
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/.gitignore +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/auth_strategies.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/auth_template.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/cloud_utils/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/cloud_utils/client.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/connector_model_loader.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/constants.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/exceptions.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/executor/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/executor/hosted_executor.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/executor/local_executor.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/executor/models.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/extensions.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/http/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/http/adapters/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/http/adapters/httpx_adapter.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/http/config.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/http/exceptions.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/http/protocols.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/http/response.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/http_client.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/introspection.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/logging/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/logging/logger.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/logging/types.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/observability/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/observability/config.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/observability/models.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/observability/redactor.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/observability/session.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/performance/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/performance/instrumentation.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/performance/metrics.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/schema/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/schema/base.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/schema/components.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/schema/connector.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/schema/extensions.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/schema/operations.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/schema/security.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/secrets.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/telemetry/__init__.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/telemetry/config.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/telemetry/events.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/telemetry/tracker.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/types.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/utils.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/connector_sdk/validation.py +0 -0
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/models.py +21 -21
- {airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/types.py +0 -0
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Slack changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.15] - 2026-01-22
|
|
4
|
+
- Updated connector definition (YAML version 0.1.5)
|
|
5
|
+
- Source commit: b27328e2
|
|
6
|
+
- SDK version: 0.1.0
|
|
7
|
+
|
|
8
|
+
## [0.1.14] - 2026-01-22
|
|
9
|
+
- Updated connector definition (YAML version 0.1.5)
|
|
10
|
+
- Source commit: 1da193dd
|
|
11
|
+
- SDK version: 0.1.0
|
|
12
|
+
|
|
13
|
+
## [0.1.13] - 2026-01-22
|
|
14
|
+
- Updated connector definition (YAML version 0.1.5)
|
|
15
|
+
- Source commit: c713ec48
|
|
16
|
+
- SDK version: 0.1.0
|
|
17
|
+
|
|
18
|
+
## [0.1.12] - 2026-01-22
|
|
19
|
+
- Updated connector definition (YAML version 0.1.5)
|
|
20
|
+
- Source commit: 0cd3e79e
|
|
21
|
+
- SDK version: 0.1.0
|
|
22
|
+
|
|
3
23
|
## [0.1.11] - 2026-01-21
|
|
4
24
|
- Updated connector definition (YAML version 0.1.4)
|
|
5
25
|
- Source commit: d9dfd306
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: airbyte-agent-slack
|
|
3
|
-
Version: 0.1.
|
|
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
|
-
|
|
90
|
+
Connectors can run in open source or hosted mode.
|
|
91
91
|
|
|
92
|
-
###
|
|
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
|
-
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
auth_config=SlackTokenAuthenticationAuthConfig(
|
|
102
|
+
access_token="<Your Slack Bot Token (xoxb-) or User Token (xoxp-)>"
|
|
103
|
+
)
|
|
102
104
|
)
|
|
103
|
-
|
|
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
|
-
###
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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.
|
|
146
|
-
- **Connector version:** 0.1.
|
|
147
|
-
- **Generated with Connector SDK commit SHA:**
|
|
157
|
+
- **Package version:** 0.1.15
|
|
158
|
+
- **Connector version:** 0.1.5
|
|
159
|
+
- **Generated with Connector SDK commit SHA:** b27328e2162813ea6315b9f890a6784b0fb9caba
|
|
@@ -54,38 +54,48 @@ uv pip install airbyte-agent-slack
|
|
|
54
54
|
|
|
55
55
|
## Usage
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
Connectors can run in open source or hosted mode.
|
|
58
58
|
|
|
59
|
-
###
|
|
59
|
+
### Open source
|
|
60
|
+
|
|
61
|
+
In open source mode, you provide API credentials directly to the connector.
|
|
60
62
|
|
|
61
63
|
```python
|
|
62
64
|
from airbyte_agent_slack import SlackConnector
|
|
63
65
|
from airbyte_agent_slack.models import SlackTokenAuthenticationAuthConfig
|
|
64
66
|
|
|
65
67
|
connector = SlackConnector(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
auth_config=SlackTokenAuthenticationAuthConfig(
|
|
69
|
+
access_token="<Your Slack Bot Token (xoxb-) or User Token (xoxp-)>"
|
|
70
|
+
)
|
|
69
71
|
)
|
|
70
|
-
|
|
72
|
+
|
|
73
|
+
@agent.tool_plain # assumes you're using Pydantic AI
|
|
74
|
+
@SlackConnector.describe
|
|
75
|
+
async def slack_execute(entity: str, action: str, params: dict | None = None):
|
|
76
|
+
return await connector.execute(entity, action, params or {})
|
|
71
77
|
```
|
|
72
78
|
|
|
73
|
-
###
|
|
79
|
+
### Hosted
|
|
80
|
+
|
|
81
|
+
In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead.
|
|
82
|
+
|
|
83
|
+
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).
|
|
74
84
|
|
|
75
85
|
```python
|
|
76
86
|
from airbyte_agent_slack import SlackConnector
|
|
77
|
-
from airbyte_agent_slack.models import SlackOauth20AuthenticationAuthConfig
|
|
78
87
|
|
|
79
88
|
connector = SlackConnector(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
access_token="..."
|
|
84
|
-
)
|
|
89
|
+
external_user_id="<your-scoped-token>",
|
|
90
|
+
airbyte_client_id="<your-client-id>",
|
|
91
|
+
airbyte_client_secret="<your-client-secret>"
|
|
85
92
|
)
|
|
86
|
-
result = await connector.users.list()
|
|
87
|
-
```
|
|
88
93
|
|
|
94
|
+
@agent.tool_plain # assumes you're using Pydantic AI
|
|
95
|
+
@SlackConnector.describe
|
|
96
|
+
async def slack_execute(entity: str, action: str, params: dict | None = None):
|
|
97
|
+
return await connector.execute(entity, action, params or {})
|
|
98
|
+
```
|
|
89
99
|
|
|
90
100
|
## Full documentation
|
|
91
101
|
|
|
@@ -103,12 +113,14 @@ This connector supports the following entities and actions.
|
|
|
103
113
|
| Reactions | [Create](./REFERENCE.md#reactions-create) |
|
|
104
114
|
|
|
105
115
|
|
|
116
|
+
For all authentication options, see the connector's [authentication documentation](AUTH.md).
|
|
117
|
+
|
|
106
118
|
For detailed documentation on available actions and parameters, see this connector's [full reference documentation](./REFERENCE.md).
|
|
107
119
|
|
|
108
120
|
For the service's official API docs, see the [Slack API reference](https://api.slack.com/methods).
|
|
109
121
|
|
|
110
122
|
## Version information
|
|
111
123
|
|
|
112
|
-
- **Package version:** 0.1.
|
|
113
|
-
- **Connector version:** 0.1.
|
|
114
|
-
- **Generated with Connector SDK commit SHA:**
|
|
124
|
+
- **Package version:** 0.1.15
|
|
125
|
+
- **Connector version:** 0.1.5
|
|
126
|
+
- **Generated with Connector SDK commit SHA:** b27328e2162813ea6315b9f890a6784b0fb9caba
|
|
@@ -321,7 +321,8 @@ Creates a new public or private channel
|
|
|
321
321
|
|
|
322
322
|
```python
|
|
323
323
|
await slack.channels.create(
|
|
324
|
-
name="<str>"
|
|
324
|
+
name="<str>",
|
|
325
|
+
is_private=True
|
|
325
326
|
)
|
|
326
327
|
```
|
|
327
328
|
|
|
@@ -335,7 +336,8 @@ curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_i
|
|
|
335
336
|
"entity": "channels",
|
|
336
337
|
"action": "create",
|
|
337
338
|
"params": {
|
|
338
|
-
"name": "<str>"
|
|
339
|
+
"name": "<str>",
|
|
340
|
+
"is_private": True
|
|
339
341
|
}
|
|
340
342
|
}'
|
|
341
343
|
```
|
|
@@ -722,7 +724,11 @@ Posts a message to a public channel, private channel, or direct message conversa
|
|
|
722
724
|
```python
|
|
723
725
|
await slack.messages.create(
|
|
724
726
|
channel="<str>",
|
|
725
|
-
text="<str>"
|
|
727
|
+
text="<str>",
|
|
728
|
+
thread_ts="<str>",
|
|
729
|
+
reply_broadcast=True,
|
|
730
|
+
unfurl_links=True,
|
|
731
|
+
unfurl_media=True
|
|
726
732
|
)
|
|
727
733
|
```
|
|
728
734
|
|
|
@@ -737,7 +743,11 @@ curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_i
|
|
|
737
743
|
"action": "create",
|
|
738
744
|
"params": {
|
|
739
745
|
"channel": "<str>",
|
|
740
|
-
"text": "<str>"
|
|
746
|
+
"text": "<str>",
|
|
747
|
+
"thread_ts": "<str>",
|
|
748
|
+
"reply_broadcast": True,
|
|
749
|
+
"unfurl_links": True,
|
|
750
|
+
"unfurl_media": True
|
|
741
751
|
}
|
|
742
752
|
}'
|
|
743
753
|
```
|
|
@@ -1055,85 +1065,3 @@ curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_i
|
|
|
1055
1065
|
|
|
1056
1066
|
</details>
|
|
1057
1067
|
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
## Authentication
|
|
1061
|
-
|
|
1062
|
-
The Slack connector supports the following authentication methods.
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
### Token Authentication
|
|
1066
|
-
|
|
1067
|
-
| Field Name | Type | Required | Description |
|
|
1068
|
-
|------------|------|----------|-------------|
|
|
1069
|
-
| `access_token` | `str` | Yes | Your Slack Bot Token (xoxb-) or User Token (xoxp-) |
|
|
1070
|
-
|
|
1071
|
-
#### Example
|
|
1072
|
-
|
|
1073
|
-
**Python SDK**
|
|
1074
|
-
|
|
1075
|
-
```python
|
|
1076
|
-
SlackConnector(
|
|
1077
|
-
auth_config=SlackTokenAuthenticationAuthConfig(
|
|
1078
|
-
access_token="<Your Slack Bot Token (xoxb-) or User Token (xoxp-)>"
|
|
1079
|
-
)
|
|
1080
|
-
)
|
|
1081
|
-
```
|
|
1082
|
-
|
|
1083
|
-
**API**
|
|
1084
|
-
|
|
1085
|
-
```bash
|
|
1086
|
-
curl --location 'https://api.airbyte.ai/api/v1/integrations/sources' \
|
|
1087
|
-
--header 'Content-Type: application/json' \
|
|
1088
|
-
--header 'Authorization: Bearer {your_auth_token}' \
|
|
1089
|
-
--data '{
|
|
1090
|
-
"workspace_id": "{your_workspace_id}",
|
|
1091
|
-
"source_template_id": "{source_template_id}",
|
|
1092
|
-
"auth_config": {
|
|
1093
|
-
"access_token": "<Your Slack Bot Token (xoxb-) or User Token (xoxp-)>"
|
|
1094
|
-
},
|
|
1095
|
-
"name": "My Slack Connector"
|
|
1096
|
-
}'
|
|
1097
|
-
```
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
### OAuth 2.0 Authentication
|
|
1101
|
-
|
|
1102
|
-
| Field Name | Type | Required | Description |
|
|
1103
|
-
|------------|------|----------|-------------|
|
|
1104
|
-
| `client_id` | `str` | Yes | Your Slack App's Client ID |
|
|
1105
|
-
| `client_secret` | `str` | Yes | Your Slack App's Client Secret |
|
|
1106
|
-
| `access_token` | `str` | Yes | OAuth access token (bot token from oauth.v2.access response) |
|
|
1107
|
-
|
|
1108
|
-
#### Example
|
|
1109
|
-
|
|
1110
|
-
**Python SDK**
|
|
1111
|
-
|
|
1112
|
-
```python
|
|
1113
|
-
SlackConnector(
|
|
1114
|
-
auth_config=SlackOauth20AuthenticationAuthConfig(
|
|
1115
|
-
client_id="<Your Slack App's Client ID>",
|
|
1116
|
-
client_secret="<Your Slack App's Client Secret>",
|
|
1117
|
-
access_token="<OAuth access token (bot token from oauth.v2.access response)>"
|
|
1118
|
-
)
|
|
1119
|
-
)
|
|
1120
|
-
```
|
|
1121
|
-
|
|
1122
|
-
**API**
|
|
1123
|
-
|
|
1124
|
-
```bash
|
|
1125
|
-
curl --location 'https://api.airbyte.ai/api/v1/integrations/sources' \
|
|
1126
|
-
--header 'Content-Type: application/json' \
|
|
1127
|
-
--header 'Authorization: Bearer {your_auth_token}' \
|
|
1128
|
-
--data '{
|
|
1129
|
-
"workspace_id": "{your_workspace_id}",
|
|
1130
|
-
"source_template_id": "{source_template_id}",
|
|
1131
|
-
"auth_config": {
|
|
1132
|
-
"client_id": "<Your Slack App's Client ID>",
|
|
1133
|
-
"client_secret": "<Your Slack App's Client Secret>",
|
|
1134
|
-
"access_token": "<OAuth access token (bot token from oauth.v2.access response)>"
|
|
1135
|
-
},
|
|
1136
|
-
"name": "My Slack Connector"
|
|
1137
|
-
}'
|
|
1138
|
-
```
|
|
1139
|
-
|
|
@@ -17,9 +17,9 @@ from .models import (
|
|
|
17
17
|
ChannelPurpose,
|
|
18
18
|
ChannelsListResponse,
|
|
19
19
|
ChannelResponse,
|
|
20
|
+
Attachment,
|
|
20
21
|
File,
|
|
21
22
|
Reaction,
|
|
22
|
-
Attachment,
|
|
23
23
|
Message,
|
|
24
24
|
Thread,
|
|
25
25
|
EditedInfo,
|
|
@@ -81,9 +81,9 @@ __all__ = [
|
|
|
81
81
|
"ChannelPurpose",
|
|
82
82
|
"ChannelsListResponse",
|
|
83
83
|
"ChannelResponse",
|
|
84
|
+
"Attachment",
|
|
84
85
|
"File",
|
|
85
86
|
"Reaction",
|
|
86
|
-
"Attachment",
|
|
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.
|
|
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
|
{airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/connector_model.py
RENAMED
|
@@ -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.
|
|
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={
|
|
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
|
),
|
|
File without changes
|
{airbyte_agent_slack-0.1.11 → airbyte_agent_slack-0.1.15}/airbyte_agent_slack/_vendored/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -176,6 +176,27 @@ 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 Attachment(BaseModel):
|
|
180
|
+
"""Message attachment"""
|
|
181
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
182
|
+
|
|
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)
|
|
199
|
+
|
|
179
200
|
class File(BaseModel):
|
|
180
201
|
"""File object"""
|
|
181
202
|
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
@@ -208,27 +229,6 @@ class Reaction(BaseModel):
|
|
|
208
229
|
users: Union[list[str] | None, Any] = Field(default=None)
|
|
209
230
|
count: 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)
|
|
File without changes
|