airbyte-agent-orb 0.1.9__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.
- airbyte_agent_orb/__init__.py +4 -4
- airbyte_agent_orb/_vendored/connector_sdk/cloud_utils/client.py +2 -3
- airbyte_agent_orb/models.py +16 -16
- {airbyte_agent_orb-0.1.9.dist-info → airbyte_agent_orb-0.1.10.dist-info}/METADATA +3 -3
- {airbyte_agent_orb-0.1.9.dist-info → airbyte_agent_orb-0.1.10.dist-info}/RECORD +6 -6
- {airbyte_agent_orb-0.1.9.dist-info → airbyte_agent_orb-0.1.10.dist-info}/WHEEL +0 -0
airbyte_agent_orb/__init__.py
CHANGED
|
@@ -12,17 +12,17 @@ from .models import (
|
|
|
12
12
|
Customer,
|
|
13
13
|
PaginationMetadata,
|
|
14
14
|
CustomersList,
|
|
15
|
-
SubscriptionCustomer,
|
|
16
15
|
SubscriptionPlan,
|
|
16
|
+
SubscriptionCustomer,
|
|
17
17
|
Subscription,
|
|
18
18
|
SubscriptionsList,
|
|
19
19
|
PlanProduct,
|
|
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,
|
|
@@ -80,17 +80,17 @@ __all__ = [
|
|
|
80
80
|
"Customer",
|
|
81
81
|
"PaginationMetadata",
|
|
82
82
|
"CustomersList",
|
|
83
|
-
"SubscriptionCustomer",
|
|
84
83
|
"SubscriptionPlan",
|
|
84
|
+
"SubscriptionCustomer",
|
|
85
85
|
"Subscription",
|
|
86
86
|
"SubscriptionsList",
|
|
87
87
|
"PlanProduct",
|
|
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
|
-
|
|
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.
|
|
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,
|
airbyte_agent_orb/models.py
CHANGED
|
@@ -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 SubscriptionCustomer(BaseModel):
|
|
82
|
-
"""The customer 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 customer ID")
|
|
86
|
-
"""The customer ID"""
|
|
87
|
-
external_customer_id: Union[str | None, Any] = Field(default=None, description="The external customer ID")
|
|
88
|
-
"""The external customer ID"""
|
|
89
|
-
|
|
90
81
|
class SubscriptionPlan(BaseModel):
|
|
91
82
|
"""The plan associated with the subscription"""
|
|
92
83
|
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
@@ -96,6 +87,15 @@ class SubscriptionPlan(BaseModel):
|
|
|
96
87
|
name: Union[str | None, Any] = Field(default=None, description="The plan name")
|
|
97
88
|
"""The plan name"""
|
|
98
89
|
|
|
90
|
+
class SubscriptionCustomer(BaseModel):
|
|
91
|
+
"""The customer 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 customer ID")
|
|
95
|
+
"""The customer ID"""
|
|
96
|
+
external_customer_id: Union[str | None, Any] = Field(default=None, description="The external customer ID")
|
|
97
|
+
"""The external customer ID"""
|
|
98
|
+
|
|
99
99
|
class Subscription(BaseModel):
|
|
100
100
|
"""Subscription object"""
|
|
101
101
|
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
@@ -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.
|
|
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.
|
|
150
|
+
- **Package version:** 0.1.10
|
|
151
151
|
- **Connector version:** 0.1.1
|
|
152
|
-
- **Generated with Connector SDK commit SHA:**
|
|
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=
|
|
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=
|
|
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=
|
|
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.
|
|
57
|
-
airbyte_agent_orb-0.1.
|
|
58
|
-
airbyte_agent_orb-0.1.
|
|
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,,
|
|
File without changes
|