airbyte-agent-orb 0.1.3__py3-none-any.whl → 0.1.4__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.
- airbyte_agent_orb/__init__.py +2 -2
- airbyte_agent_orb/_vendored/connector_sdk/executor/local_executor.py +4 -3
- airbyte_agent_orb/_vendored/connector_sdk/http/adapters/httpx_adapter.py +10 -1
- airbyte_agent_orb/models.py +7 -7
- {airbyte_agent_orb-0.1.3.dist-info → airbyte_agent_orb-0.1.4.dist-info}/METADATA +3 -3
- {airbyte_agent_orb-0.1.3.dist-info → airbyte_agent_orb-0.1.4.dist-info}/RECORD +7 -7
- {airbyte_agent_orb-0.1.3.dist-info → airbyte_agent_orb-0.1.4.dist-info}/WHEEL +0 -0
airbyte_agent_orb/__init__.py
CHANGED
|
@@ -20,9 +20,9 @@ from .models import (
|
|
|
20
20
|
PlanPricesItem,
|
|
21
21
|
Plan,
|
|
22
22
|
PlansList,
|
|
23
|
+
InvoiceSubscription,
|
|
23
24
|
InvoiceLineItemsItem,
|
|
24
25
|
InvoiceCustomer,
|
|
25
|
-
InvoiceSubscription,
|
|
26
26
|
Invoice,
|
|
27
27
|
InvoicesList,
|
|
28
28
|
CustomersListResultMeta,
|
|
@@ -88,9 +88,9 @@ __all__ = [
|
|
|
88
88
|
"PlanPricesItem",
|
|
89
89
|
"Plan",
|
|
90
90
|
"PlansList",
|
|
91
|
+
"InvoiceSubscription",
|
|
91
92
|
"InvoiceLineItemsItem",
|
|
92
93
|
"InvoiceCustomer",
|
|
93
|
-
"InvoiceSubscription",
|
|
94
94
|
"Invoice",
|
|
95
95
|
"InvoicesList",
|
|
96
96
|
"CustomersListResultMeta",
|
|
@@ -584,7 +584,7 @@ class LocalExecutor:
|
|
|
584
584
|
return ExecutionResult(
|
|
585
585
|
success=True,
|
|
586
586
|
data={
|
|
587
|
-
"status": "
|
|
587
|
+
"status": "skipped",
|
|
588
588
|
"error": "No list operation available for health check",
|
|
589
589
|
},
|
|
590
590
|
)
|
|
@@ -599,7 +599,7 @@ class LocalExecutor:
|
|
|
599
599
|
return ExecutionResult(
|
|
600
600
|
success=True,
|
|
601
601
|
data={
|
|
602
|
-
"status": "
|
|
602
|
+
"status": "skipped",
|
|
603
603
|
"error": "No standard handler available",
|
|
604
604
|
},
|
|
605
605
|
)
|
|
@@ -616,13 +616,14 @@ class LocalExecutor:
|
|
|
616
616
|
)
|
|
617
617
|
except Exception as e:
|
|
618
618
|
return ExecutionResult(
|
|
619
|
-
success=
|
|
619
|
+
success=False,
|
|
620
620
|
data={
|
|
621
621
|
"status": "unhealthy",
|
|
622
622
|
"error": str(e),
|
|
623
623
|
"checked_entity": check_entity,
|
|
624
624
|
"checked_action": "list",
|
|
625
625
|
},
|
|
626
|
+
error=str(e),
|
|
626
627
|
)
|
|
627
628
|
|
|
628
629
|
async def _execute_operation(
|
|
@@ -186,7 +186,16 @@ class HTTPXClient:
|
|
|
186
186
|
# Try to get error message from response
|
|
187
187
|
try:
|
|
188
188
|
error_data = httpx_response.json()
|
|
189
|
-
|
|
189
|
+
errors_list = error_data.get("errors")
|
|
190
|
+
if isinstance(errors_list, list):
|
|
191
|
+
|
|
192
|
+
def _extract_error(e: object) -> str:
|
|
193
|
+
if isinstance(e, dict):
|
|
194
|
+
return str(e.get("userPresentableMessage") or e.get("message") or e.get("error") or e)
|
|
195
|
+
return str(e)
|
|
196
|
+
|
|
197
|
+
errors_list = ", ".join(_extract_error(e) for e in errors_list)
|
|
198
|
+
error_message = errors_list or error_data.get("message") or error_data.get("error") or str(error_data)
|
|
190
199
|
except Exception:
|
|
191
200
|
error_message = httpx_response.text or f"HTTP {status_code} error"
|
|
192
201
|
|
airbyte_agent_orb/models.py
CHANGED
|
@@ -180,6 +180,13 @@ class PlansList(BaseModel):
|
|
|
180
180
|
data: Union[list[Plan], Any] = Field(default=None)
|
|
181
181
|
pagination_metadata: Union[PaginationMetadata, Any] = Field(default=None)
|
|
182
182
|
|
|
183
|
+
class InvoiceSubscription(BaseModel):
|
|
184
|
+
"""The subscription associated with the invoice"""
|
|
185
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
186
|
+
|
|
187
|
+
id: Union[str | None, Any] = Field(default=None, description="The subscription ID")
|
|
188
|
+
"""The subscription ID"""
|
|
189
|
+
|
|
183
190
|
class InvoiceLineItemsItem(BaseModel):
|
|
184
191
|
"""Nested schema for Invoice.line_items_item"""
|
|
185
192
|
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
@@ -206,13 +213,6 @@ class InvoiceCustomer(BaseModel):
|
|
|
206
213
|
external_customer_id: Union[str | None, Any] = Field(default=None, description="The external customer ID")
|
|
207
214
|
"""The external customer ID"""
|
|
208
215
|
|
|
209
|
-
class InvoiceSubscription(BaseModel):
|
|
210
|
-
"""The subscription associated with the invoice"""
|
|
211
|
-
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
212
|
-
|
|
213
|
-
id: Union[str | None, Any] = Field(default=None, description="The subscription ID")
|
|
214
|
-
"""The subscription ID"""
|
|
215
|
-
|
|
216
216
|
class Invoice(BaseModel):
|
|
217
217
|
"""Invoice object"""
|
|
218
218
|
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: airbyte-agent-orb
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Airbyte Orb 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/
|
|
@@ -147,7 +147,7 @@ See the official [Orb API reference](https://docs.withorb.com/api-reference).
|
|
|
147
147
|
|
|
148
148
|
## Version information
|
|
149
149
|
|
|
150
|
-
- **Package version:** 0.1.
|
|
150
|
+
- **Package version:** 0.1.4
|
|
151
151
|
- **Connector version:** 0.1.1
|
|
152
|
-
- **Generated with Connector SDK commit SHA:**
|
|
152
|
+
- **Generated with Connector SDK commit SHA:** 5b20f488dec0e8f29410823753106603c23a4b65
|
|
153
153
|
- **Changelog:** [View changelog](https://github.com/airbytehq/airbyte-agent-connectors/blob/main/connectors/orb/CHANGELOG.md)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
airbyte_agent_orb/__init__.py,sha256=
|
|
1
|
+
airbyte_agent_orb/__init__.py,sha256=06Age5isMjdaazmBhE_YYkF6e0xCj2TA7SQo1XKIXK4,3225
|
|
2
2
|
airbyte_agent_orb/connector.py,sha256=amDoNVcveqSHuk58ScakpXYCRfWSz9PljlzOXggy1c4,37258
|
|
3
3
|
airbyte_agent_orb/connector_model.py,sha256=mhxwbi31hLA-oU2I8oQq7uMK4S0KV8XGjCELQRGth50,120056
|
|
4
|
-
airbyte_agent_orb/models.py,sha256=
|
|
4
|
+
airbyte_agent_orb/models.py,sha256=ts5x0n2QZngjEkRho_hhrVswW5WPIVs_OlK6eEK5wmQ,22410
|
|
5
5
|
airbyte_agent_orb/types.py,sha256=O6Q2AOp8BYjYhpEFvOZXnzQDf-7GAKnpCorER2Puh2E,37077
|
|
6
6
|
airbyte_agent_orb/_vendored/__init__.py,sha256=ILl7AHXMui__swyrjxrh9yRa4dLiwBvV6axPWFWty80,38
|
|
7
7
|
airbyte_agent_orb/_vendored/connector_sdk/__init__.py,sha256=T5o7roU6NSpH-lCAGZ338sE5dlh4ZU6i6IkeG1zpems,1949
|
|
@@ -21,7 +21,7 @@ airbyte_agent_orb/_vendored/connector_sdk/cloud_utils/__init__.py,sha256=4799Hv9
|
|
|
21
21
|
airbyte_agent_orb/_vendored/connector_sdk/cloud_utils/client.py,sha256=YxdRpQr9XjDzih6csSseBVGn9kfMtaqbOCXP0TPuzFY,7189
|
|
22
22
|
airbyte_agent_orb/_vendored/connector_sdk/executor/__init__.py,sha256=EmG9YQNAjSuYCVB4D5VoLm4qpD1KfeiiOf7bpALj8p8,702
|
|
23
23
|
airbyte_agent_orb/_vendored/connector_sdk/executor/hosted_executor.py,sha256=AC5aJtdcMPQfRuam0ZGE4QdhUBu2oGEmNZ6oVQLHTE8,7212
|
|
24
|
-
airbyte_agent_orb/_vendored/connector_sdk/executor/local_executor.py,sha256=
|
|
24
|
+
airbyte_agent_orb/_vendored/connector_sdk/executor/local_executor.py,sha256=l2b0VILgtOlUNyG19J0UkbCa6rJXkU8g1uzLot8BJjQ,77008
|
|
25
25
|
airbyte_agent_orb/_vendored/connector_sdk/executor/models.py,sha256=mUUBnuShKXxVIfsTOhMiI2rn2a-50jJG7SFGKT_P6Jk,6281
|
|
26
26
|
airbyte_agent_orb/_vendored/connector_sdk/http/__init__.py,sha256=y8fbzZn-3yV9OxtYz8Dy6FFGI5v6TOqADd1G3xHH3Hw,911
|
|
27
27
|
airbyte_agent_orb/_vendored/connector_sdk/http/config.py,sha256=6J7YIIwHC6sRu9i-yKa5XvArwK2KU60rlnmxzDZq3lw,3283
|
|
@@ -29,7 +29,7 @@ airbyte_agent_orb/_vendored/connector_sdk/http/exceptions.py,sha256=eYdYmxqcwA6p
|
|
|
29
29
|
airbyte_agent_orb/_vendored/connector_sdk/http/protocols.py,sha256=eV7NbBIQOcPLw-iu8mtkV2zCVgScDwP0ek1SbPNQo0g,3323
|
|
30
30
|
airbyte_agent_orb/_vendored/connector_sdk/http/response.py,sha256=Q-RyM5D0D05ZhmZVJk4hVpmoS8YtyXNOTM5hqBt7rWI,3475
|
|
31
31
|
airbyte_agent_orb/_vendored/connector_sdk/http/adapters/__init__.py,sha256=gjbWdU4LfzUG2PETI0TkfkukdzoCAhpL6FZtIEnkO-s,209
|
|
32
|
-
airbyte_agent_orb/_vendored/connector_sdk/http/adapters/httpx_adapter.py,sha256=
|
|
32
|
+
airbyte_agent_orb/_vendored/connector_sdk/http/adapters/httpx_adapter.py,sha256=7ounOUlpx7RBLLqYSGWzEsOnnCgCBH3WCDaQFJcmKj0,8902
|
|
33
33
|
airbyte_agent_orb/_vendored/connector_sdk/logging/__init__.py,sha256=IZoE5yXhwSA0m3xQqh0FiCifjp1sB3S8jnnFPuJLYf8,227
|
|
34
34
|
airbyte_agent_orb/_vendored/connector_sdk/logging/logger.py,sha256=rUdKDEQe3pOODmBLEcvhgZeEZi48BvrgKXKq1xvCXu0,8387
|
|
35
35
|
airbyte_agent_orb/_vendored/connector_sdk/logging/types.py,sha256=ONb9xKNXUkrR2lojSBMF7ruof7S2r92WjrO_kEZic84,3239
|
|
@@ -52,6 +52,6 @@ airbyte_agent_orb/_vendored/connector_sdk/telemetry/__init__.py,sha256=RaLgkBU4d
|
|
|
52
52
|
airbyte_agent_orb/_vendored/connector_sdk/telemetry/config.py,sha256=tLmQwAFD0kP1WyBGWBS3ysaudN9H3e-3EopKZi6cGKg,885
|
|
53
53
|
airbyte_agent_orb/_vendored/connector_sdk/telemetry/events.py,sha256=8Y1NbXiwISX-V_wRofY7PqcwEXD0dLMnntKkY6XFU2s,1328
|
|
54
54
|
airbyte_agent_orb/_vendored/connector_sdk/telemetry/tracker.py,sha256=SginFQbHqVUVYG82NnNzG34O-tAQ_wZYjGDcuo0q4Kk,5584
|
|
55
|
-
airbyte_agent_orb-0.1.
|
|
56
|
-
airbyte_agent_orb-0.1.
|
|
57
|
-
airbyte_agent_orb-0.1.
|
|
55
|
+
airbyte_agent_orb-0.1.4.dist-info/METADATA,sha256=PbJSqT3k-1jWttYWYdu_aiIjzgj2QQClVf1vZn6Q3OA,5670
|
|
56
|
+
airbyte_agent_orb-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
57
|
+
airbyte_agent_orb-0.1.4.dist-info/RECORD,,
|
|
File without changes
|