airbyte-agent-orb 0.1.2__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.
@@ -12,17 +12,17 @@ from .models import (
12
12
  Customer,
13
13
  PaginationMetadata,
14
14
  CustomersList,
15
- SubscriptionPlan,
16
15
  SubscriptionCustomer,
16
+ SubscriptionPlan,
17
17
  Subscription,
18
18
  SubscriptionsList,
19
- PlanPricesItem,
20
19
  PlanProduct,
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,
@@ -80,17 +80,17 @@ __all__ = [
80
80
  "Customer",
81
81
  "PaginationMetadata",
82
82
  "CustomersList",
83
- "SubscriptionPlan",
84
83
  "SubscriptionCustomer",
84
+ "SubscriptionPlan",
85
85
  "Subscription",
86
86
  "SubscriptionsList",
87
- "PlanPricesItem",
88
87
  "PlanProduct",
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": "unhealthy",
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": "unhealthy",
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=True,
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
- error_message = error_data.get("message") or error_data.get("error") or str(error_data)
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
 
@@ -78,15 +78,6 @@ class CustomersList(BaseModel):
78
78
  data: Union[list[Customer], Any] = Field(default=None)
79
79
  pagination_metadata: Union[PaginationMetadata, Any] = Field(default=None)
80
80
 
81
- class SubscriptionPlan(BaseModel):
82
- """The plan associated with the subscription"""
83
- model_config = ConfigDict(extra="allow", populate_by_name=True)
84
-
85
- id: Union[str | None, Any] = Field(default=None, description="The plan ID")
86
- """The plan ID"""
87
- name: Union[str | None, Any] = Field(default=None, description="The plan name")
88
- """The plan name"""
89
-
90
81
  class SubscriptionCustomer(BaseModel):
91
82
  """The customer associated with the subscription"""
92
83
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -96,6 +87,15 @@ class SubscriptionCustomer(BaseModel):
96
87
  external_customer_id: Union[str | None, Any] = Field(default=None, description="The external customer ID")
97
88
  """The external customer ID"""
98
89
 
90
+ class SubscriptionPlan(BaseModel):
91
+ """The plan associated with the subscription"""
92
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
93
+
94
+ id: Union[str | None, Any] = Field(default=None, description="The plan ID")
95
+ """The plan ID"""
96
+ name: Union[str | None, Any] = Field(default=None, description="The plan name")
97
+ """The plan name"""
98
+
99
99
  class Subscription(BaseModel):
100
100
  """Subscription object"""
101
101
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -126,6 +126,15 @@ class SubscriptionsList(BaseModel):
126
126
  data: Union[list[Subscription], Any] = Field(default=None)
127
127
  pagination_metadata: Union[PaginationMetadata, Any] = Field(default=None)
128
128
 
129
+ class PlanProduct(BaseModel):
130
+ """The product associated with the plan"""
131
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
132
+
133
+ id: Union[str | None, Any] = Field(default=None, description="The product ID")
134
+ """The product ID"""
135
+ name: Union[str | None, Any] = Field(default=None, description="The product name")
136
+ """The product name"""
137
+
129
138
  class PlanPricesItem(BaseModel):
130
139
  """Nested schema for Plan.prices_item"""
131
140
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -141,15 +150,6 @@ class PlanPricesItem(BaseModel):
141
150
  currency: Union[str | None, Any] = Field(default=None, description="The currency of the price")
142
151
  """The currency of the price"""
143
152
 
144
- class PlanProduct(BaseModel):
145
- """The product associated with the plan"""
146
- model_config = ConfigDict(extra="allow", populate_by_name=True)
147
-
148
- id: Union[str | None, Any] = Field(default=None, description="The product ID")
149
- """The product ID"""
150
- name: Union[str | None, Any] = Field(default=None, description="The product name")
151
- """The product name"""
152
-
153
153
  class Plan(BaseModel):
154
154
  """Plan object"""
155
155
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -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.2
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,6 +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.2
150
+ - **Package version:** 0.1.4
151
151
  - **Connector version:** 0.1.1
152
- - **Generated with Connector SDK commit SHA:** 43200eed5845ee089ef5b9afc0199a8af3966169
152
+ - **Generated with Connector SDK commit SHA:** 5b20f488dec0e8f29410823753106603c23a4b65
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=q7-UzVeCnZH6bhLvXby-g9qoDOp1lcGVaLjr5sSMxyc,3225
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=xRweMpk4o3Me_78s5wSjvqk0wa7A7WPMLoaAclCvm8c,22410
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=abtQOMZhJBrvE3ioKi-g-R_GZJZozYJNczYySQEEIX8,76981
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=dkYhzBWiKBmzWZlc-cRTx50Hb6fy3OI8kOQvXRfS1CQ,8465
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.2.dist-info/METADATA,sha256=WoJbDVjvn8VPxUFlzSWPJUBqKVtAP6XFLMT5CcBP6I4,5543
56
- airbyte_agent_orb-0.1.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
57
- airbyte_agent_orb-0.1.2.dist-info/RECORD,,
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,,