airbyte-agent-orb 0.1.1__py3-none-any.whl → 0.1.3__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,12 +12,12 @@ 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
23
  InvoiceLineItemsItem,
@@ -80,12 +80,12 @@ __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
91
  "InvoiceLineItemsItem",
@@ -3,7 +3,7 @@
3
3
  import logging
4
4
  import platform
5
5
  import sys
6
- from datetime import datetime
6
+ from datetime import UTC, datetime
7
7
 
8
8
  from ..observability import ObservabilitySession
9
9
 
@@ -56,7 +56,7 @@ class SegmentTracker:
56
56
 
57
57
  try:
58
58
  event = ConnectorInitEvent(
59
- timestamp=datetime.utcnow(),
59
+ timestamp=datetime.now(UTC),
60
60
  session_id=self.session.session_id,
61
61
  user_id=self.session.user_id,
62
62
  execution_context=self.session.execution_context,
@@ -99,7 +99,7 @@ class SegmentTracker:
99
99
 
100
100
  try:
101
101
  event = OperationEvent(
102
- timestamp=datetime.utcnow(),
102
+ timestamp=datetime.now(UTC),
103
103
  session_id=self.session.session_id,
104
104
  user_id=self.session.user_id,
105
105
  execution_context=self.session.execution_context,
@@ -129,7 +129,7 @@ class SegmentTracker:
129
129
 
130
130
  try:
131
131
  event = SessionEndEvent(
132
- timestamp=datetime.utcnow(),
132
+ timestamp=datetime.now(UTC),
133
133
  session_id=self.session.session_id,
134
134
  user_id=self.session.user_id,
135
135
  execution_context=self.session.execution_context,
@@ -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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airbyte-agent-orb
3
- Version: 0.1.1
3
+ Version: 0.1.3
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.1
150
+ - **Package version:** 0.1.3
151
151
  - **Connector version:** 0.1.1
152
- - **Generated with Connector SDK commit SHA:** c718c683a61ee72524442b7fd5e9ac3a1b94698c
152
+ - **Generated with Connector SDK commit SHA:** e4eb233f8dd57ad9bc825064625222a988db2cc6
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=6-HuN7UbbzC7tcjmwR6rY92slD7cK5DSXhsNEeMvIFo,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=yQRDTy5X5FM7jw3jbdW0PTfbe8J1JP6Ahjdvd40VbMM,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
@@ -51,7 +51,7 @@ airbyte_agent_orb/_vendored/connector_sdk/schema/security.py,sha256=1CVCavrPdHHy
51
51
  airbyte_agent_orb/_vendored/connector_sdk/telemetry/__init__.py,sha256=RaLgkBU4dfxn1LC5Y0Q9rr2PJbrwjxvPgBLmq8_WafE,211
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
- airbyte_agent_orb/_vendored/connector_sdk/telemetry/tracker.py,sha256=Ftrk0_ddfM7dZG8hF9xBuPwhbc9D6JZ7Q9qs5o3LEyA,5579
55
- airbyte_agent_orb-0.1.1.dist-info/METADATA,sha256=D5Fgp399U9X-XneIvS5REKD50BImgu3hfk3GVGxBIsY,5543
56
- airbyte_agent_orb-0.1.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
57
- airbyte_agent_orb-0.1.1.dist-info/RECORD,,
54
+ airbyte_agent_orb/_vendored/connector_sdk/telemetry/tracker.py,sha256=SginFQbHqVUVYG82NnNzG34O-tAQ_wZYjGDcuo0q4Kk,5584
55
+ airbyte_agent_orb-0.1.3.dist-info/METADATA,sha256=BhVGuR77voXVZ8RbMvz8l_YMxYIWDNDN70ZLVcRdQak,5670
56
+ airbyte_agent_orb-0.1.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
57
+ airbyte_agent_orb-0.1.3.dist-info/RECORD,,