airbyte-agent-zendesk-chat 0.1.4__py3-none-any.whl → 0.1.8__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.
@@ -14,10 +14,10 @@ from .models import (
14
14
  AgentRoles,
15
15
  AgentTimeline,
16
16
  Ban,
17
- ChatHistoryItem,
18
17
  ChatEngagement,
19
- ChatConversion,
20
18
  WebpathItem,
19
+ ChatConversion,
20
+ ChatHistoryItem,
21
21
  Chat,
22
22
  Visitor,
23
23
  ChatSession,
@@ -109,10 +109,10 @@ __all__ = [
109
109
  "AgentRoles",
110
110
  "AgentTimeline",
111
111
  "Ban",
112
- "ChatHistoryItem",
113
112
  "ChatEngagement",
114
- "ChatConversion",
115
113
  "WebpathItem",
114
+ "ChatConversion",
115
+ "ChatHistoryItem",
116
116
  "Chat",
117
117
  "Visitor",
118
118
  "ChatSession",
@@ -634,9 +634,7 @@ class OAuth2AuthStrategy(AuthStrategy):
634
634
  Headers dict with additional headers added
635
635
  """
636
636
  # Build template context with extracted secret values
637
- template_context = {
638
- key: extract_secret_value(value) for key, value in secrets.items()
639
- }
637
+ template_context = {key: extract_secret_value(value) for key, value in secrets.items()}
640
638
 
641
639
  for header_name, value_template in additional_headers.items():
642
640
  # Use Jinja2 templating for variable substitution
@@ -694,9 +694,7 @@ class LocalExecutor:
694
694
  """
695
695
  return {key: value for key, value in params.items() if key in allowed_fields and value is not None}
696
696
 
697
- def _extract_header_params(
698
- self, endpoint: EndpointDefinition, params: dict[str, Any], body: dict[str, Any] | None = None
699
- ) -> dict[str, str]:
697
+ def _extract_header_params(self, endpoint: EndpointDefinition, params: dict[str, Any], body: dict[str, Any] | None = None) -> dict[str, str]:
700
698
  """Extract header parameters from params and schema defaults.
701
699
 
702
700
  Also adds Content-Type header when there's a request body (unless already specified
@@ -132,25 +132,6 @@ class Ban(BaseModel):
132
132
  reason: Union[str | None, Any] = Field(default=None)
133
133
  created_at: Union[str | None, Any] = Field(default=None)
134
134
 
135
- class ChatHistoryItem(BaseModel):
136
- """ChatHistoryItem type definition"""
137
- model_config = ConfigDict(extra="allow", populate_by_name=True)
138
-
139
- type: Union[str | None, Any] = Field(default=None)
140
- timestamp: Union[str | None, Any] = Field(default=None)
141
- name: Union[str | None, Any] = Field(default=None)
142
- nick: Union[str | None, Any] = Field(default=None)
143
- msg: Union[str | None, Any] = Field(default=None)
144
- msg_id: Union[str | None, Any] = Field(default=None)
145
- channel: Union[str | None, Any] = Field(default=None)
146
- department_id: Union[int | None, Any] = Field(default=None)
147
- department_name: Union[str | None, Any] = Field(default=None)
148
- rating: Union[str | None, Any] = Field(default=None)
149
- new_rating: Union[str | None, Any] = Field(default=None)
150
- tags: Union[list[str] | None, Any] = Field(default=None)
151
- new_tags: Union[list[str] | None, Any] = Field(default=None)
152
- options: Union[str | None, Any] = Field(default=None)
153
-
154
135
  class ChatEngagement(BaseModel):
155
136
  """ChatEngagement type definition"""
156
137
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -172,6 +153,13 @@ class ChatEngagement(BaseModel):
172
153
  skills_requested: Union[list[int] | None, Any] = Field(default=None)
173
154
  skills_fulfilled: Union[bool | None, Any] = Field(default=None)
174
155
 
156
+ class WebpathItem(BaseModel):
157
+ """WebpathItem type definition"""
158
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
159
+
160
+ from_: Union[str | None, Any] = Field(default=None, alias="from")
161
+ timestamp: Union[str | None, Any] = Field(default=None)
162
+
175
163
  class ChatConversion(BaseModel):
176
164
  """ChatConversion type definition"""
177
165
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -182,12 +170,24 @@ class ChatConversion(BaseModel):
182
170
  timestamp: Union[str | None, Any] = Field(default=None)
183
171
  attribution: Union[Any, Any] = Field(default=None)
184
172
 
185
- class WebpathItem(BaseModel):
186
- """WebpathItem type definition"""
173
+ class ChatHistoryItem(BaseModel):
174
+ """ChatHistoryItem type definition"""
187
175
  model_config = ConfigDict(extra="allow", populate_by_name=True)
188
176
 
189
- from_: Union[str | None, Any] = Field(default=None, alias="from")
177
+ type: Union[str | None, Any] = Field(default=None)
190
178
  timestamp: Union[str | None, Any] = Field(default=None)
179
+ name: Union[str | None, Any] = Field(default=None)
180
+ nick: Union[str | None, Any] = Field(default=None)
181
+ msg: Union[str | None, Any] = Field(default=None)
182
+ msg_id: Union[str | None, Any] = Field(default=None)
183
+ channel: Union[str | None, Any] = Field(default=None)
184
+ department_id: Union[int | None, Any] = Field(default=None)
185
+ department_name: Union[str | None, Any] = Field(default=None)
186
+ rating: Union[str | None, Any] = Field(default=None)
187
+ new_rating: Union[str | None, Any] = Field(default=None)
188
+ tags: Union[list[str] | None, Any] = Field(default=None)
189
+ new_tags: Union[list[str] | None, Any] = Field(default=None)
190
+ options: Union[str | None, Any] = Field(default=None)
191
191
 
192
192
  class Chat(BaseModel):
193
193
  """Chat conversation transcript"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airbyte-agent-zendesk-chat
3
- Version: 0.1.4
3
+ Version: 0.1.8
4
4
  Summary: Airbyte Zendesk-Chat 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,17 +87,48 @@ uv pip install airbyte-agent-zendesk-chat
87
87
 
88
88
  ## Usage
89
89
 
90
+ Connectors can run in open source or hosted mode.
91
+
92
+ ### Open source
93
+
94
+ In open source mode, you provide API credentials directly to the connector.
95
+
90
96
  ```python
91
- from airbyte_agent_zendesk_chat import ZendeskChatConnector, ZendeskChatAuthConfig
97
+ from airbyte_agent_zendesk-chat import ZendeskChatConnector
98
+ from airbyte_agent_zendesk_chat.models import ZendeskChatAuthConfig
92
99
 
93
100
  connector = ZendeskChatConnector(
94
- auth_config=ZendeskChatAuthConfig(
95
- access_token="..."
96
- )
101
+ auth_config=ZendeskChatAuthConfig(
102
+ access_token="<Your Zendesk Chat OAuth 2.0 access token>"
103
+ )
97
104
  )
98
- result = await connector.accounts.get()
105
+
106
+ @agent.tool_plain # assumes you're using Pydantic AI
107
+ @ZendeskChatConnector.describe
108
+ async def zendesk-chat_execute(entity: str, action: str, params: dict | None = None):
109
+ return await connector.execute(entity, action, params or {})
99
110
  ```
100
111
 
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).
117
+
118
+ ```python
119
+ from airbyte_agent_zendesk-chat import ZendeskChatConnector
120
+
121
+ connector = ZendeskChatConnector(
122
+ external_user_id="<your-scoped-token>",
123
+ airbyte_client_id="<your-client-id>",
124
+ airbyte_client_secret="<your-client-secret>"
125
+ )
126
+
127
+ @agent.tool_plain # assumes you're using Pydantic AI
128
+ @ZendeskChatConnector.describe
129
+ async def zendesk-chat_execute(entity: str, action: str, params: dict | None = None):
130
+ return await connector.execute(entity, action, params or {})
131
+ ```
101
132
 
102
133
  ## Full documentation
103
134
 
@@ -119,12 +150,14 @@ This connector supports the following entities and actions.
119
150
  | Triggers | [List](./REFERENCE.md#triggers-list) |
120
151
 
121
152
 
153
+ For all authentication options, see the connector's [authentication documentation](AUTH.md).
154
+
122
155
  For detailed documentation on available actions and parameters, see this connector's [full reference documentation](./REFERENCE.md).
123
156
 
124
157
  For the service's official API docs, see the [Zendesk-Chat API reference](https://developer.zendesk.com/api-reference/live-chat/chat-api/introduction/).
125
158
 
126
159
  ## Version information
127
160
 
128
- - **Package version:** 0.1.4
161
+ - **Package version:** 0.1.8
129
162
  - **Connector version:** 0.1.3
130
- - **Generated with Connector SDK commit SHA:** c713ec4833c2b52dc89926ec68caa343423884cd
163
+ - **Generated with Connector SDK commit SHA:** f17cdd8c92950751a75daff9c6bf74df05774ede
@@ -1,11 +1,11 @@
1
- airbyte_agent_zendesk_chat/__init__.py,sha256=9j8dwvCgWylg210rlYlCcgmZoAUL8Fh_-FyMxXqYkzE,4292
1
+ airbyte_agent_zendesk_chat/__init__.py,sha256=AshWCdXzeum--_qJbMIA7hyjs4FjkO6TcoPZoLYxRmk,4292
2
2
  airbyte_agent_zendesk_chat/connector.py,sha256=a_xt5L6rMOcW2DjUCNvsjCCSDrHPAfxhd7pLp_znsPo,43092
3
3
  airbyte_agent_zendesk_chat/connector_model.py,sha256=Z0Q2nmk8jl3rJH5FWkUlDbuL00ACnxQWBGN7DaPdUM4,121081
4
- airbyte_agent_zendesk_chat/models.py,sha256=Bt_x6PyWx6RzFX6NhkjfT0gSuaed-j1Gt75IDpPWs6A,23905
4
+ airbyte_agent_zendesk_chat/models.py,sha256=7V8RncyV2JZnGT5gX72MfO9gyuhDJ2LFHLNDq5F84Ww,23905
5
5
  airbyte_agent_zendesk_chat/types.py,sha256=C5laH7V__abYm0F1Jck49Az6SCJQdnXLgtahxponDgM,28925
6
6
  airbyte_agent_zendesk_chat/_vendored/__init__.py,sha256=ILl7AHXMui__swyrjxrh9yRa4dLiwBvV6axPWFWty80,38
7
7
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/__init__.py,sha256=T5o7roU6NSpH-lCAGZ338sE5dlh4ZU6i6IkeG1zpems,1949
8
- airbyte_agent_zendesk_chat/_vendored/connector_sdk/auth_strategies.py,sha256=Ve7ObJc_A0N99b8ouuicQzVauDunOvFNG1SRKDfV4ag,42110
8
+ airbyte_agent_zendesk_chat/_vendored/connector_sdk/auth_strategies.py,sha256=5Sb9moUp623o67Q2wMa8iZldJH08y4gQdoutoO_75Iw,42088
9
9
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/auth_template.py,sha256=nju4jqlFC_KI82ILNumNIyiUtRJcy7J94INIZ0QraI4,4454
10
10
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/connector_model_loader.py,sha256=SY_Juqw-cap156MsdgrMfe5MAuFdX0vUcSbH5LUYNK0,36295
11
11
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/constants.py,sha256=AtzOvhDMWbRJgpsQNWl5tkogHD6mWgEY668PgRmgtOY,2737
@@ -21,7 +21,7 @@ airbyte_agent_zendesk_chat/_vendored/connector_sdk/cloud_utils/__init__.py,sha25
21
21
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/cloud_utils/client.py,sha256=YxdRpQr9XjDzih6csSseBVGn9kfMtaqbOCXP0TPuzFY,7189
22
22
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/executor/__init__.py,sha256=EmG9YQNAjSuYCVB4D5VoLm4qpD1KfeiiOf7bpALj8p8,702
23
23
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/executor/hosted_executor.py,sha256=ydHcG-biRS1ITT5ELwPShdJW-KYpvK--Fos1ipNgHho,6995
24
- airbyte_agent_zendesk_chat/_vendored/connector_sdk/executor/local_executor.py,sha256=AgBQBlYIra7kyWcZtRRWSJLqrPbuDq38j13hoVoWJJA,73863
24
+ airbyte_agent_zendesk_chat/_vendored/connector_sdk/executor/local_executor.py,sha256=Vg4rPk0sbgXEdYLx2n2Spgj9XrDUWykD2E2o7sWloRM,73849
25
25
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/executor/models.py,sha256=lYVT_bNcw-PoIks4WHNyl2VY-lJVf2FntzINSOBIheE,5845
26
26
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/http/__init__.py,sha256=y8fbzZn-3yV9OxtYz8Dy6FFGI5v6TOqADd1G3xHH3Hw,911
27
27
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/http/config.py,sha256=6J7YIIwHC6sRu9i-yKa5XvArwK2KU60rlnmxzDZq3lw,3283
@@ -52,6 +52,6 @@ airbyte_agent_zendesk_chat/_vendored/connector_sdk/telemetry/__init__.py,sha256=
52
52
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/telemetry/config.py,sha256=tLmQwAFD0kP1WyBGWBS3ysaudN9H3e-3EopKZi6cGKg,885
53
53
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/telemetry/events.py,sha256=8Y1NbXiwISX-V_wRofY7PqcwEXD0dLMnntKkY6XFU2s,1328
54
54
  airbyte_agent_zendesk_chat/_vendored/connector_sdk/telemetry/tracker.py,sha256=Ftrk0_ddfM7dZG8hF9xBuPwhbc9D6JZ7Q9qs5o3LEyA,5579
55
- airbyte_agent_zendesk_chat-0.1.4.dist-info/METADATA,sha256=lmfeZpEmZXYO427bwkkHhayQJNEuomqF6p74O10WJ-E,4942
56
- airbyte_agent_zendesk_chat-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
57
- airbyte_agent_zendesk_chat-0.1.4.dist-info/RECORD,,
55
+ airbyte_agent_zendesk_chat-0.1.8.dist-info/METADATA,sha256=I-pAmXYelI7XRPApByb6sOO_bUmdGqJZel8TjaXmDLI,6362
56
+ airbyte_agent_zendesk_chat-0.1.8.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
57
+ airbyte_agent_zendesk_chat-0.1.8.dist-info/RECORD,,