airbyte-agent-slack 0.1.28__tar.gz → 0.1.32__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.28 → airbyte_agent_slack-0.1.32}/AUTH.md +63 -8
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/CHANGELOG.md +20 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/PKG-INFO +12 -12
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/README.md +11 -11
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/REFERENCE.md +0 -36
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/__init__.py +2 -2
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/introspection.py +12 -5
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/connector.py +7 -2
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/connector_model.py +1 -1
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/pyproject.toml +1 -1
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/.gitignore +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/auth_strategies.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/auth_template.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/cloud_utils/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/cloud_utils/client.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/connector_model_loader.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/constants.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/exceptions.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/executor/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/executor/hosted_executor.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/executor/local_executor.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/executor/models.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/extensions.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/http/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/http/adapters/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/http/adapters/httpx_adapter.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/http/config.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/http/exceptions.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/http/protocols.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/http/response.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/http_client.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/logging/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/logging/logger.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/logging/types.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/observability/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/observability/config.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/observability/models.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/observability/redactor.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/observability/session.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/performance/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/performance/instrumentation.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/performance/metrics.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/schema/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/schema/base.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/schema/components.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/schema/connector.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/schema/extensions.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/schema/operations.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/schema/security.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/secrets.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/telemetry/__init__.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/telemetry/config.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/telemetry/events.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/telemetry/tracker.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/types.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/utils.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/_vendored/connector_sdk/validation.py +0 -0
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/models.py +8 -8
- {airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/airbyte_agent_slack/types.py +0 -0
|
@@ -10,12 +10,17 @@ In open source mode, you provide API credentials directly to the connector.
|
|
|
10
10
|
|
|
11
11
|
#### OAuth
|
|
12
12
|
|
|
13
|
+
`credentials` fields you need:
|
|
14
|
+
|
|
15
|
+
|
|
13
16
|
| Field Name | Type | Required | Description |
|
|
14
17
|
|------------|------|----------|-------------|
|
|
15
18
|
| `client_id` | `str` | Yes | Your Slack App's Client ID |
|
|
16
19
|
| `client_secret` | `str` | Yes | Your Slack App's Client Secret |
|
|
17
20
|
| `access_token` | `str` | Yes | OAuth access token (bot token from oauth.v2.access response) |
|
|
18
21
|
|
|
22
|
+
Example request:
|
|
23
|
+
|
|
19
24
|
```python
|
|
20
25
|
from airbyte_agent_slack import SlackConnector
|
|
21
26
|
from airbyte_agent_slack.models import SlackOauth20AuthenticationAuthConfig
|
|
@@ -31,10 +36,14 @@ connector = SlackConnector(
|
|
|
31
36
|
|
|
32
37
|
#### Token
|
|
33
38
|
|
|
39
|
+
`credentials` fields you need:
|
|
40
|
+
|
|
34
41
|
| Field Name | Type | Required | Description |
|
|
35
42
|
|------------|------|----------|-------------|
|
|
36
43
|
| `api_token` | `str` | Yes | Your Slack Bot Token (xoxb-) or User Token (xoxp-) |
|
|
37
44
|
|
|
45
|
+
Example request:
|
|
46
|
+
|
|
38
47
|
```python
|
|
39
48
|
from airbyte_agent_slack import SlackConnector
|
|
40
49
|
from airbyte_agent_slack.models import SlackTokenAuthenticationAuthConfig
|
|
@@ -51,13 +60,31 @@ connector = SlackConnector(
|
|
|
51
60
|
In hosted mode, you first create a connector via the Airbyte API (providing your OAuth or Token credentials), then execute operations using either the Python SDK or API. If you need a step-by-step guide, see the [hosted execution tutorial](https://docs.airbyte.com/ai-agents/quickstarts/tutorial-hosted).
|
|
52
61
|
|
|
53
62
|
#### OAuth
|
|
63
|
+
Create a connector with OAuth credentials.
|
|
64
|
+
|
|
65
|
+
`credentials` fields you need:
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
| Field Name | Type | Required | Description |
|
|
69
|
+
|------------|------|----------|-------------|
|
|
70
|
+
| `client_id` | `str` | Yes | Your Slack App's Client ID |
|
|
71
|
+
| `client_secret` | `str` | Yes | Your Slack App's Client Secret |
|
|
72
|
+
| `access_token` | `str` | Yes | OAuth access token (bot token from oauth.v2.access response) |
|
|
73
|
+
|
|
74
|
+
`replication_config` fields you need:
|
|
75
|
+
|
|
76
|
+
| Field Name | Type | Required | Description |
|
|
77
|
+
|------------|------|----------|-------------|
|
|
78
|
+
| `start_date` | `str (date-time)` | Yes | UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ from which to start replicating data. |
|
|
79
|
+
| `lookback_window` | `int` | Yes | Number of days to look back when syncing data (0-365). |
|
|
80
|
+
| `join_channels` | `bool` | Yes | Whether to automatically join public channels to sync messages. |
|
|
54
81
|
|
|
55
|
-
|
|
82
|
+
Example request:
|
|
56
83
|
|
|
57
84
|
```bash
|
|
58
|
-
curl -X POST
|
|
59
|
-
-H
|
|
60
|
-
-H
|
|
85
|
+
curl -X POST "https://api.airbyte.ai/v1/integrations/connectors" \
|
|
86
|
+
-H "Authorization: Bearer <SCOPED_TOKEN>" \
|
|
87
|
+
-H "Content-Type: application/json" \
|
|
61
88
|
-d '{
|
|
62
89
|
"external_user_id": "<EXTERNAL_USER_ID>",
|
|
63
90
|
"connector_type": "Slack",
|
|
@@ -66,23 +93,51 @@ curl -X POST 'https://api.airbyte.ai/v1/integrations/connectors' \
|
|
|
66
93
|
"client_id": "<Your Slack App's Client ID>",
|
|
67
94
|
"client_secret": "<Your Slack App's Client Secret>",
|
|
68
95
|
"access_token": "<OAuth access token (bot token from oauth.v2.access response)>"
|
|
96
|
+
},
|
|
97
|
+
"replication_config": {
|
|
98
|
+
"start_date": "<UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ from which to start replicating data.>",
|
|
99
|
+
"lookback_window": "<Number of days to look back when syncing data (0-365).>",
|
|
100
|
+
"join_channels": "<Whether to automatically join public channels to sync messages.>"
|
|
69
101
|
}
|
|
70
102
|
}'
|
|
71
103
|
```
|
|
72
104
|
|
|
73
105
|
#### Token
|
|
106
|
+
Create a connector with Token credentials.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
`credentials` fields you need:
|
|
110
|
+
|
|
111
|
+
| Field Name | Type | Required | Description |
|
|
112
|
+
|------------|------|----------|-------------|
|
|
113
|
+
| `api_token` | `str` | Yes | Your Slack Bot Token (xoxb-) or User Token (xoxp-) |
|
|
114
|
+
|
|
115
|
+
`replication_config` fields you need:
|
|
116
|
+
|
|
117
|
+
| Field Name | Type | Required | Description |
|
|
118
|
+
|------------|------|----------|-------------|
|
|
119
|
+
| `start_date` | `str (date-time)` | Yes | UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ from which to start replicating data. |
|
|
120
|
+
| `lookback_window` | `int` | Yes | Number of days to look back when syncing data (0-365). |
|
|
121
|
+
| `join_channels` | `bool` | Yes | Whether to automatically join public channels to sync messages. |
|
|
122
|
+
|
|
123
|
+
Example request:
|
|
74
124
|
|
|
75
|
-
Create a connector with Token credentials:
|
|
76
125
|
|
|
77
126
|
```bash
|
|
78
|
-
curl -X POST
|
|
79
|
-
-H
|
|
80
|
-
-H
|
|
127
|
+
curl -X POST "https://api.airbyte.ai/v1/integrations/connectors" \
|
|
128
|
+
-H "Authorization: Bearer <SCOPED_TOKEN>" \
|
|
129
|
+
-H "Content-Type: application/json" \
|
|
81
130
|
-d '{
|
|
82
131
|
"external_user_id": "<EXTERNAL_USER_ID>",
|
|
83
132
|
"connector_type": "Slack",
|
|
133
|
+
"name": "My Slack Connector",
|
|
84
134
|
"credentials": {
|
|
85
135
|
"api_token": "<Your Slack Bot Token (xoxb-) or User Token (xoxp-)>"
|
|
136
|
+
},
|
|
137
|
+
"replication_config": {
|
|
138
|
+
"start_date": "<UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ from which to start replicating data.>",
|
|
139
|
+
"lookback_window": "<Number of days to look back when syncing data (0-365).>",
|
|
140
|
+
"join_channels": "<Whether to automatically join public channels to sync messages.>"
|
|
86
141
|
}
|
|
87
142
|
}'
|
|
88
143
|
```
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Slack changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.32] - 2026-01-28
|
|
4
|
+
- Updated connector definition (YAML version 0.1.10)
|
|
5
|
+
- Source commit: 97007bbd
|
|
6
|
+
- SDK version: 0.1.0
|
|
7
|
+
|
|
8
|
+
## [0.1.31] - 2026-01-28
|
|
9
|
+
- Updated connector definition (YAML version 0.1.10)
|
|
10
|
+
- Source commit: f6c6fca2
|
|
11
|
+
- SDK version: 0.1.0
|
|
12
|
+
|
|
13
|
+
## [0.1.30] - 2026-01-28
|
|
14
|
+
- Updated connector definition (YAML version 0.1.10)
|
|
15
|
+
- Source commit: 9aef9bd2
|
|
16
|
+
- SDK version: 0.1.0
|
|
17
|
+
|
|
18
|
+
## [0.1.29] - 2026-01-28
|
|
19
|
+
- Updated connector definition (YAML version 0.1.9)
|
|
20
|
+
- Source commit: 71f48c10
|
|
21
|
+
- SDK version: 0.1.0
|
|
22
|
+
|
|
3
23
|
## [0.1.28] - 2026-01-27
|
|
4
24
|
- Updated connector definition (YAML version 0.1.9)
|
|
5
25
|
- Source commit: 0f5e1914
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: airbyte-agent-slack
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.32
|
|
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/
|
|
@@ -130,13 +130,11 @@ async def slack_execute(entity: str, action: str, params: dict | None = None):
|
|
|
130
130
|
return await connector.execute(entity, action, params or {})
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
-
## Replication Configuration
|
|
134
|
-
|
|
135
|
-
This connector supports replication configuration for MULTI mode sources. See the [full reference documentation](./REFERENCE.md#replication-configuration) for details on available options like `start_date`.
|
|
136
|
-
|
|
137
133
|
## Full documentation
|
|
138
134
|
|
|
139
|
-
|
|
135
|
+
### Entities and actions
|
|
136
|
+
|
|
137
|
+
This connector supports the following entities and actions. For more details, see this connector's [full reference documentation](REFERENCE.md).
|
|
140
138
|
|
|
141
139
|
| Entity | Actions |
|
|
142
140
|
|--------|---------|
|
|
@@ -150,14 +148,16 @@ This connector supports the following entities and actions.
|
|
|
150
148
|
| Reactions | [Create](./REFERENCE.md#reactions-create) |
|
|
151
149
|
|
|
152
150
|
|
|
153
|
-
|
|
151
|
+
### Authentication and configuration
|
|
152
|
+
|
|
153
|
+
For all authentication and configuration options, see the connector's [authentication documentation](AUTH.md).
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
### Slack API docs
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
See the official [Slack API reference](https://api.slack.com/methods).
|
|
158
158
|
|
|
159
159
|
## Version information
|
|
160
160
|
|
|
161
|
-
- **Package version:** 0.1.
|
|
162
|
-
- **Connector version:** 0.1.
|
|
163
|
-
- **Generated with Connector SDK commit SHA:**
|
|
161
|
+
- **Package version:** 0.1.32
|
|
162
|
+
- **Connector version:** 0.1.10
|
|
163
|
+
- **Generated with Connector SDK commit SHA:** 97007bbdad3a6ac982ee2c0cdd667acdb5c12d3c
|
|
@@ -97,13 +97,11 @@ async def slack_execute(entity: str, action: str, params: dict | None = None):
|
|
|
97
97
|
return await connector.execute(entity, action, params or {})
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
## Replication Configuration
|
|
101
|
-
|
|
102
|
-
This connector supports replication configuration for MULTI mode sources. See the [full reference documentation](./REFERENCE.md#replication-configuration) for details on available options like `start_date`.
|
|
103
|
-
|
|
104
100
|
## Full documentation
|
|
105
101
|
|
|
106
|
-
|
|
102
|
+
### Entities and actions
|
|
103
|
+
|
|
104
|
+
This connector supports the following entities and actions. For more details, see this connector's [full reference documentation](REFERENCE.md).
|
|
107
105
|
|
|
108
106
|
| Entity | Actions |
|
|
109
107
|
|--------|---------|
|
|
@@ -117,14 +115,16 @@ This connector supports the following entities and actions.
|
|
|
117
115
|
| Reactions | [Create](./REFERENCE.md#reactions-create) |
|
|
118
116
|
|
|
119
117
|
|
|
120
|
-
|
|
118
|
+
### Authentication and configuration
|
|
119
|
+
|
|
120
|
+
For all authentication and configuration options, see the connector's [authentication documentation](AUTH.md).
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
### Slack API docs
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
See the official [Slack API reference](https://api.slack.com/methods).
|
|
125
125
|
|
|
126
126
|
## Version information
|
|
127
127
|
|
|
128
|
-
- **Package version:** 0.1.
|
|
129
|
-
- **Connector version:** 0.1.
|
|
130
|
-
- **Generated with Connector SDK commit SHA:**
|
|
128
|
+
- **Package version:** 0.1.32
|
|
129
|
+
- **Connector version:** 0.1.10
|
|
130
|
+
- **Generated with Connector SDK commit SHA:** 97007bbdad3a6ac982ee2c0cdd667acdb5c12d3c
|
|
@@ -1287,39 +1287,3 @@ curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_i
|
|
|
1287
1287
|
|
|
1288
1288
|
</details>
|
|
1289
1289
|
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
## Replication Configuration
|
|
1293
|
-
|
|
1294
|
-
Settings for data replication from Slack
|
|
1295
|
-
|
|
1296
|
-
These settings control how data is replicated from the source. Pass them via the `replication_config` parameter when creating a source.
|
|
1297
|
-
|
|
1298
|
-
| Field Name | Type | Required | Description |
|
|
1299
|
-
|------------|------|----------|-------------|
|
|
1300
|
-
| `start_date` | `str (date-time)` | Yes | UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ from which to start replicating data. |
|
|
1301
|
-
| `lookback_window` | `int` | Yes | Number of days to look back when syncing data (0-365). |
|
|
1302
|
-
| `join_channels` | `bool` | Yes | Whether to automatically join public channels to sync messages. |
|
|
1303
|
-
|
|
1304
|
-
### Example
|
|
1305
|
-
|
|
1306
|
-
**API**
|
|
1307
|
-
|
|
1308
|
-
```bash
|
|
1309
|
-
curl --location 'https://api.airbyte.ai/integrations/connectors' \
|
|
1310
|
-
--header 'Content-Type: application/json' \
|
|
1311
|
-
--header 'Authorization: Bearer {your_auth_token}' \
|
|
1312
|
-
--data '{
|
|
1313
|
-
"external_user_id": "{your_external_user_id}",
|
|
1314
|
-
"connector_type": "slack",
|
|
1315
|
-
"credentials": {
|
|
1316
|
-
...
|
|
1317
|
-
},
|
|
1318
|
-
"replication_config": {
|
|
1319
|
-
"start_date": "<UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ from which to start replicating data.>",
|
|
1320
|
-
"lookback_window": "<Number of days to look back when syncing data (0-365).>",
|
|
1321
|
-
"join_channels": "<Whether to automatically join public channels to sync messages.>"
|
|
1322
|
-
},
|
|
1323
|
-
"name": "My Slack Connector"
|
|
1324
|
-
}'
|
|
1325
|
-
```
|
|
@@ -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,
|
|
@@ -96,8 +96,8 @@ __all__ = [
|
|
|
96
96
|
"ChannelsListResponse",
|
|
97
97
|
"ChannelResponse",
|
|
98
98
|
"File",
|
|
99
|
-
"Attachment",
|
|
100
99
|
"Reaction",
|
|
100
|
+
"Attachment",
|
|
101
101
|
"Message",
|
|
102
102
|
"Thread",
|
|
103
103
|
"EditedInfo",
|
|
@@ -380,7 +380,11 @@ def describe_entities(model: ConnectorModelProtocol) -> list[dict[str, Any]]:
|
|
|
380
380
|
return entities
|
|
381
381
|
|
|
382
382
|
|
|
383
|
-
def generate_tool_description(
|
|
383
|
+
def generate_tool_description(
|
|
384
|
+
model: ConnectorModelProtocol,
|
|
385
|
+
*,
|
|
386
|
+
enable_hosted_mode_features: bool = True,
|
|
387
|
+
) -> str:
|
|
384
388
|
"""Generate AI tool description from connector metadata.
|
|
385
389
|
|
|
386
390
|
Produces a detailed description that includes:
|
|
@@ -393,6 +397,7 @@ def generate_tool_description(model: ConnectorModelProtocol) -> str:
|
|
|
393
397
|
|
|
394
398
|
Args:
|
|
395
399
|
model: Object conforming to ConnectorModelProtocol (e.g., ConnectorModel)
|
|
400
|
+
enable_hosted_mode_features: When False, omit hosted-mode search guidance from the docstring.
|
|
396
401
|
|
|
397
402
|
Returns:
|
|
398
403
|
Formatted description string suitable for AI tool documentation
|
|
@@ -402,8 +407,9 @@ def generate_tool_description(model: ConnectorModelProtocol) -> str:
|
|
|
402
407
|
# at the first empty line and only keeps the initial section.
|
|
403
408
|
|
|
404
409
|
# Entity/action parameter details (including pagination params like limit, starting_after)
|
|
405
|
-
search_field_paths = _collect_search_field_paths(model)
|
|
406
|
-
|
|
410
|
+
search_field_paths = _collect_search_field_paths(model) if enable_hosted_mode_features else {}
|
|
411
|
+
# Avoid a "PARAMETERS:" header because some docstring parsers treat it as a params section marker.
|
|
412
|
+
lines.append("ENTITIES (ACTIONS + PARAMS):")
|
|
407
413
|
for entity in model.entities:
|
|
408
414
|
lines.append(f" {entity.name}:")
|
|
409
415
|
actions = getattr(entity, "actions", []) or []
|
|
@@ -427,8 +433,9 @@ def generate_tool_description(model: ConnectorModelProtocol) -> str:
|
|
|
427
433
|
lines.append(" To paginate: pass starting_after=<last_id> while has_more is true")
|
|
428
434
|
|
|
429
435
|
lines.append("GUIDELINES:")
|
|
430
|
-
|
|
431
|
-
|
|
436
|
+
if enable_hosted_mode_features:
|
|
437
|
+
lines.append(' - Prefer cached search over direct API calls when using execute(): action="search" whenever possible.')
|
|
438
|
+
lines.append(" - Direct API actions (list/get/download) are slower and should be used only if search cannot answer the query.")
|
|
432
439
|
lines.append(" - Keep results small: use params.fields, params.query.filter, small params.limit, and cursor pagination.")
|
|
433
440
|
lines.append(" - If output is too large, refine the query with tighter filters/fields/limit.")
|
|
434
441
|
|
|
@@ -107,7 +107,7 @@ class SlackConnector:
|
|
|
107
107
|
"""
|
|
108
108
|
|
|
109
109
|
connector_name = "slack"
|
|
110
|
-
connector_version = "0.1.
|
|
110
|
+
connector_version = "0.1.10"
|
|
111
111
|
vendored_sdk_version = "0.1.0" # Version of vendored connector-sdk
|
|
112
112
|
|
|
113
113
|
# Map of (entity, action) -> needs_envelope for envelope wrapping decision
|
|
@@ -427,6 +427,7 @@ class SlackConnector:
|
|
|
427
427
|
func: _F | None = None,
|
|
428
428
|
*,
|
|
429
429
|
update_docstring: bool = True,
|
|
430
|
+
enable_hosted_mode_features: bool = True,
|
|
430
431
|
max_output_chars: int | None = DEFAULT_MAX_OUTPUT_CHARS,
|
|
431
432
|
) -> _F | Callable[[_F], _F]:
|
|
432
433
|
"""
|
|
@@ -445,12 +446,16 @@ class SlackConnector:
|
|
|
445
446
|
|
|
446
447
|
Args:
|
|
447
448
|
update_docstring: When True, append connector capabilities to __doc__.
|
|
449
|
+
enable_hosted_mode_features: When False, omit hosted-mode search sections from docstrings.
|
|
448
450
|
max_output_chars: Max serialized output size before raising. Use None to disable.
|
|
449
451
|
"""
|
|
450
452
|
|
|
451
453
|
def decorate(inner: _F) -> _F:
|
|
452
454
|
if update_docstring:
|
|
453
|
-
description = generate_tool_description(
|
|
455
|
+
description = generate_tool_description(
|
|
456
|
+
SlackConnectorModel,
|
|
457
|
+
enable_hosted_mode_features=enable_hosted_mode_features,
|
|
458
|
+
)
|
|
454
459
|
original_doc = inner.__doc__ or ""
|
|
455
460
|
if original_doc.strip():
|
|
456
461
|
full_doc = f"{original_doc.strip()}\n{description}"
|
|
File without changes
|
{airbyte_agent_slack-0.1.28 → airbyte_agent_slack-0.1.32}/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
|
|
@@ -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)
|
|
File without changes
|