airbyte-agent-orb 0.1.8__py3-none-any.whl → 0.1.10__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.
@@ -20,9 +20,9 @@ from .models import (
20
20
  PlanPricesItem,
21
21
  Plan,
22
22
  PlansList,
23
- InvoiceSubscription,
24
23
  InvoiceCustomer,
25
24
  InvoiceLineItemsItem,
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",
92
91
  "InvoiceCustomer",
93
92
  "InvoiceLineItemsItem",
93
+ "InvoiceSubscription",
94
94
  "Invoice",
95
95
  "InvoicesList",
96
96
  "CustomersListResultMeta",
@@ -37,8 +37,7 @@ class AirbyteCloudClient:
37
37
  )
38
38
  """
39
39
 
40
- AUTH_BASE_URL = "https://cloud.airbyte.com" # For token endpoint
41
- API_BASE_URL = "https://api.airbyte.ai" # For instance lookup & execution
40
+ API_BASE_URL = "https://api.airbyte.ai" # For all API calls including token endpoint
42
41
 
43
42
  def __init__(self, client_id: str, client_secret: str):
44
43
  """Initialize AirbyteCloudClient.
@@ -85,7 +84,7 @@ class AirbyteCloudClient:
85
84
  return self._cached_token
86
85
 
87
86
  # Token is missing or expired, fetch a new one
88
- url = f"{self.AUTH_BASE_URL}/api/v1/applications/token"
87
+ url = f"{self.API_BASE_URL}/api/v1/account/applications/token"
89
88
  request_body = {
90
89
  "client_id": self._client_id,
91
90
  "client_secret": self._client_secret,
@@ -317,7 +316,7 @@ class AirbyteCloudClient:
317
316
  )
318
317
  """
319
318
  token = await self.get_bearer_token()
320
- url = f"{self.API_BASE_URL}/api/v1/connectors/sources/{connector_id}/execute"
319
+ url = f"{self.API_BASE_URL}/api/v1/integrations/connectors/{connector_id}/execute"
321
320
  headers = {"Authorization": f"Bearer {token}"}
322
321
  request_body = {
323
322
  "entity": entity,
@@ -180,13 +180,6 @@ 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
-
190
183
  class InvoiceCustomer(BaseModel):
191
184
  """The customer associated with the invoice"""
192
185
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -213,6 +206,13 @@ class InvoiceLineItemsItem(BaseModel):
213
206
  end_date: Union[str | None, Any] = Field(default=None, description="The end date of the line item")
214
207
  """The end date of the line item"""
215
208
 
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.8
3
+ Version: 0.1.10
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.8
150
+ - **Package version:** 0.1.10
151
151
  - **Connector version:** 0.1.1
152
- - **Generated with Connector SDK commit SHA:** 5c6dbf883d3b057550333775bd83a78777527017
152
+ - **Generated with Connector SDK commit SHA:** 30d23e05ea640689df95fa82153916c6f67fa916
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=jHWqgCDpIiDZB1WLwcKo4aNXkp5ypSdV0WQWkCNJv_Y,3225
1
+ airbyte_agent_orb/__init__.py,sha256=3nv_RzOT2NHm4pADoHQ4_45LiQQBRlFg79v9q-b0Yek,3225
2
2
  airbyte_agent_orb/connector.py,sha256=dCsSG2QFX4hdIyMJzNiP0sCj4xWoAKAKKrGxH83AVmc,41497
3
3
  airbyte_agent_orb/connector_model.py,sha256=mhxwbi31hLA-oU2I8oQq7uMK4S0KV8XGjCELQRGth50,120056
4
- airbyte_agent_orb/models.py,sha256=dFg7AeDxlgoGO8eU9ypRTLqULqSAHDA3cuaXKEKbsyk,22410
4
+ airbyte_agent_orb/models.py,sha256=VwTSUnZnncFyO3ZnCBJ4PVnIWgpr0SzU8bGrVz5Xduo,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
@@ -19,7 +19,7 @@ airbyte_agent_orb/_vendored/connector_sdk/utils.py,sha256=UYwYuSLhsDD-4C0dBs7Qy0
19
19
  airbyte_agent_orb/_vendored/connector_sdk/validation.py,sha256=LcbmBfGkWx0Xv4pWZYpFf4JlhFjvwqGcwvliRSalN8Y,39677
20
20
  airbyte_agent_orb/_vendored/connector_sdk/validation_replication.py,sha256=v7F5YWd5m4diIF7_4m4nOkC9crg97vqRUUkt9ka9HZ4,36043
21
21
  airbyte_agent_orb/_vendored/connector_sdk/cloud_utils/__init__.py,sha256=4799Hv9f2zxDVj1aLyQ8JpTEuFTp_oOZMRz-NZCdBJg,134
22
- airbyte_agent_orb/_vendored/connector_sdk/cloud_utils/client.py,sha256=e0VLNCmesGGfo2uD0GiICgXsXTeTkh0GYiVgx_e4VEc,12296
22
+ airbyte_agent_orb/_vendored/connector_sdk/cloud_utils/client.py,sha256=PAEBGGti1wrTXRCbFw3FK3ANexKHD5qhVaKtekn7l3M,12249
23
23
  airbyte_agent_orb/_vendored/connector_sdk/executor/__init__.py,sha256=EmG9YQNAjSuYCVB4D5VoLm4qpD1KfeiiOf7bpALj8p8,702
24
24
  airbyte_agent_orb/_vendored/connector_sdk/executor/hosted_executor.py,sha256=tv0njAdy-gdHBg4izgcxhEWYbrNiBifEYEca9AWzaL0,8693
25
25
  airbyte_agent_orb/_vendored/connector_sdk/executor/local_executor.py,sha256=chrTenrg1BRQ2ODPUcNj_KAY14UFiPmFT_mteUhyNRE,76440
@@ -53,6 +53,6 @@ airbyte_agent_orb/_vendored/connector_sdk/telemetry/__init__.py,sha256=RaLgkBU4d
53
53
  airbyte_agent_orb/_vendored/connector_sdk/telemetry/config.py,sha256=tLmQwAFD0kP1WyBGWBS3ysaudN9H3e-3EopKZi6cGKg,885
54
54
  airbyte_agent_orb/_vendored/connector_sdk/telemetry/events.py,sha256=8Y1NbXiwISX-V_wRofY7PqcwEXD0dLMnntKkY6XFU2s,1328
55
55
  airbyte_agent_orb/_vendored/connector_sdk/telemetry/tracker.py,sha256=SginFQbHqVUVYG82NnNzG34O-tAQ_wZYjGDcuo0q4Kk,5584
56
- airbyte_agent_orb-0.1.8.dist-info/METADATA,sha256=dHG3ahERGB9IMYwFDp0eM1dmoDqyzFzI2WkOEYZklpQ,5670
57
- airbyte_agent_orb-0.1.8.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
58
- airbyte_agent_orb-0.1.8.dist-info/RECORD,,
56
+ airbyte_agent_orb-0.1.10.dist-info/METADATA,sha256=38IKrXNsMtlvMSoz3B2kYBjBYn5XlBqtHicxVng_D58,5672
57
+ airbyte_agent_orb-0.1.10.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
58
+ airbyte_agent_orb-0.1.10.dist-info/RECORD,,