airbyte-agent-orb 0.1.0__tar.gz → 0.1.2__tar.gz

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.
Files changed (62) hide show
  1. airbyte_agent_orb-0.1.2/CHANGELOG.md +16 -0
  2. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/PKG-INFO +3 -3
  3. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/README.md +2 -2
  4. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/__init__.py +8 -6
  5. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/connector_model_loader.py +4 -0
  6. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/executor/hosted_executor.py +5 -0
  7. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/executor/local_executor.py +81 -0
  8. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/executor/models.py +12 -0
  9. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/schema/operations.py +10 -0
  10. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/telemetry/tracker.py +4 -4
  11. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/types.py +16 -1
  12. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/validation.py +20 -0
  13. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/connector.py +35 -0
  14. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/models.py +46 -27
  15. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/pyproject.toml +1 -1
  16. airbyte_agent_orb-0.1.0/CHANGELOG.md +0 -6
  17. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/.gitignore +0 -0
  18. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/AUTH.md +0 -0
  19. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/REFERENCE.md +0 -0
  20. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/__init__.py +0 -0
  21. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/__init__.py +0 -0
  22. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/auth_strategies.py +0 -0
  23. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/auth_template.py +0 -0
  24. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/cloud_utils/__init__.py +0 -0
  25. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/cloud_utils/client.py +0 -0
  26. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/constants.py +0 -0
  27. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/exceptions.py +0 -0
  28. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/executor/__init__.py +0 -0
  29. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/extensions.py +0 -0
  30. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/http/__init__.py +0 -0
  31. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/http/adapters/__init__.py +0 -0
  32. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/http/adapters/httpx_adapter.py +0 -0
  33. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/http/config.py +0 -0
  34. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/http/exceptions.py +0 -0
  35. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/http/protocols.py +0 -0
  36. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/http/response.py +0 -0
  37. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/http_client.py +0 -0
  38. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/introspection.py +0 -0
  39. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/logging/__init__.py +0 -0
  40. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/logging/logger.py +0 -0
  41. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/logging/types.py +0 -0
  42. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/observability/__init__.py +0 -0
  43. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/observability/config.py +0 -0
  44. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/observability/models.py +0 -0
  45. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/observability/redactor.py +0 -0
  46. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/observability/session.py +0 -0
  47. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/performance/__init__.py +0 -0
  48. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/performance/instrumentation.py +0 -0
  49. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/performance/metrics.py +0 -0
  50. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/schema/__init__.py +0 -0
  51. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/schema/base.py +0 -0
  52. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/schema/components.py +0 -0
  53. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/schema/connector.py +0 -0
  54. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/schema/extensions.py +0 -0
  55. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/schema/security.py +0 -0
  56. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/secrets.py +0 -0
  57. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/telemetry/__init__.py +0 -0
  58. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/telemetry/config.py +0 -0
  59. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/telemetry/events.py +0 -0
  60. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/_vendored/connector_sdk/utils.py +0 -0
  61. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/connector_model.py +0 -0
  62. {airbyte_agent_orb-0.1.0 → airbyte_agent_orb-0.1.2}/airbyte_agent_orb/types.py +0 -0
@@ -0,0 +1,16 @@
1
+ # Orb changelog
2
+
3
+ ## [0.1.2] - 2026-01-29
4
+ - Updated connector definition (YAML version 0.1.1)
5
+ - Source commit: 43200eed
6
+ - SDK version: 0.1.0
7
+
8
+ ## [0.1.1] - 2026-01-29
9
+ - Updated connector definition (YAML version 0.1.1)
10
+ - Source commit: c718c683
11
+ - SDK version: 0.1.0
12
+
13
+ ## [0.1.0] - 2026-01-29
14
+ - Updated connector definition (YAML version 0.1.1)
15
+ - Source commit: 68ca482c
16
+ - SDK version: 0.1.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airbyte-agent-orb
3
- Version: 0.1.0
3
+ Version: 0.1.2
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,6 @@ 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.0
150
+ - **Package version:** 0.1.2
151
151
  - **Connector version:** 0.1.1
152
- - **Generated with Connector SDK commit SHA:** 68ca482c0154f5364832daa205c3e43f44bc45c4
152
+ - **Generated with Connector SDK commit SHA:** 43200eed5845ee089ef5b9afc0199a8af3966169
@@ -114,6 +114,6 @@ See the official [Orb API reference](https://docs.withorb.com/api-reference).
114
114
 
115
115
  ## Version information
116
116
 
117
- - **Package version:** 0.1.0
117
+ - **Package version:** 0.1.2
118
118
  - **Connector version:** 0.1.1
119
- - **Generated with Connector SDK commit SHA:** 68ca482c0154f5364832daa205c3e43f44bc45c4
119
+ - **Generated with Connector SDK commit SHA:** 43200eed5845ee089ef5b9afc0199a8af3966169
@@ -12,16 +12,16 @@ 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
- PlanProduct,
20
19
  PlanPricesItem,
20
+ PlanProduct,
21
21
  Plan,
22
22
  PlansList,
23
- InvoiceCustomer,
24
23
  InvoiceLineItemsItem,
24
+ InvoiceCustomer,
25
25
  InvoiceSubscription,
26
26
  Invoice,
27
27
  InvoicesList,
@@ -29,6 +29,7 @@ from .models import (
29
29
  SubscriptionsListResultMeta,
30
30
  PlansListResultMeta,
31
31
  InvoicesListResultMeta,
32
+ OrbCheckResult,
32
33
  OrbExecuteResult,
33
34
  OrbExecuteResultWithMeta,
34
35
  CustomersListResult,
@@ -79,16 +80,16 @@ __all__ = [
79
80
  "Customer",
80
81
  "PaginationMetadata",
81
82
  "CustomersList",
82
- "SubscriptionCustomer",
83
83
  "SubscriptionPlan",
84
+ "SubscriptionCustomer",
84
85
  "Subscription",
85
86
  "SubscriptionsList",
86
- "PlanProduct",
87
87
  "PlanPricesItem",
88
+ "PlanProduct",
88
89
  "Plan",
89
90
  "PlansList",
90
- "InvoiceCustomer",
91
91
  "InvoiceLineItemsItem",
92
+ "InvoiceCustomer",
92
93
  "InvoiceSubscription",
93
94
  "Invoice",
94
95
  "InvoicesList",
@@ -96,6 +97,7 @@ __all__ = [
96
97
  "SubscriptionsListResultMeta",
97
98
  "PlansListResultMeta",
98
99
  "InvoicesListResultMeta",
100
+ "OrbCheckResult",
99
101
  "OrbExecuteResult",
100
102
  "OrbExecuteResultWithMeta",
101
103
  "CustomersListResult",
@@ -496,6 +496,9 @@ def convert_openapi_to_connector_model(spec: OpenAPIConnector) -> ConnectorModel
496
496
  # Extract untested flag
497
497
  untested = getattr(operation, "x_airbyte_untested", None) or False
498
498
 
499
+ # Extract preferred_for_check flag
500
+ preferred_for_check = getattr(operation, "x_airbyte_preferred_for_check", None) or False
501
+
499
502
  # Create endpoint definition
500
503
  endpoint = EndpointDefinition(
501
504
  method=method_name.upper(),
@@ -520,6 +523,7 @@ def convert_openapi_to_connector_model(spec: OpenAPIConnector) -> ConnectorModel
520
523
  graphql_body=graphql_body,
521
524
  file_field=file_field,
522
525
  untested=untested,
526
+ preferred_for_check=preferred_for_check,
523
527
  )
524
528
 
525
529
  # Add to entities map
@@ -164,6 +164,11 @@ class HostedExecutor:
164
164
  span.record_exception(e)
165
165
  raise
166
166
 
167
+ async def check(self) -> ExecutionResult:
168
+ """Perform a health check via the cloud API."""
169
+ config = ExecutionConfig(entity="*", action="check", params={})
170
+ return await self.execute(config)
171
+
167
172
  def _parse_execution_result(self, response: dict) -> ExecutionResult:
168
173
  """Parse API response into ExecutionResult.
169
174
 
@@ -70,6 +70,14 @@ class _OperationContext:
70
70
  self.validate_required_body_fields = executor._validate_required_body_fields
71
71
  self.extract_records = executor._extract_records
72
72
 
73
+ @property
74
+ def standard_handler(self) -> _StandardOperationHandler | None:
75
+ """Return the standard operation handler, or None if not registered."""
76
+ for h in self.executor._operation_handlers:
77
+ if isinstance(h, _StandardOperationHandler):
78
+ return h
79
+ return None
80
+
73
81
 
74
82
  class _OperationHandler(Protocol):
75
83
  """Protocol for operation handlers."""
@@ -544,6 +552,79 @@ class LocalExecutor:
544
552
  # These are "expected" execution errors - return them in ExecutionResult
545
553
  return ExecutionResult(success=False, data={}, error=str(e))
546
554
 
555
+ async def check(self) -> ExecutionResult:
556
+ """Perform a health check by running a lightweight list operation.
557
+
558
+ Finds the operation marked with preferred_for_check=True, or falls back
559
+ to the first list operation. Executes it with limit=1 to verify
560
+ connectivity and credentials.
561
+
562
+ Returns:
563
+ ExecutionResult with data containing status, error, and checked operation details.
564
+ """
565
+ check_entity = None
566
+ check_endpoint = None
567
+
568
+ # Look for preferred check operation
569
+ for (ent_name, op_action), endpoint in self._operation_index.items():
570
+ if getattr(endpoint, "preferred_for_check", False):
571
+ check_entity = ent_name
572
+ check_endpoint = endpoint
573
+ break
574
+
575
+ # Fallback to first list operation
576
+ if check_endpoint is None:
577
+ for (ent_name, op_action), endpoint in self._operation_index.items():
578
+ if op_action == Action.LIST:
579
+ check_entity = ent_name
580
+ check_endpoint = endpoint
581
+ break
582
+
583
+ if check_endpoint is None or check_entity is None:
584
+ return ExecutionResult(
585
+ success=True,
586
+ data={
587
+ "status": "unhealthy",
588
+ "error": "No list operation available for health check",
589
+ },
590
+ )
591
+
592
+ # Find the standard handler to execute the list operation
593
+ standard_handler = next(
594
+ (h for h in self._operation_handlers if isinstance(h, _StandardOperationHandler)),
595
+ None,
596
+ )
597
+
598
+ if standard_handler is None:
599
+ return ExecutionResult(
600
+ success=True,
601
+ data={
602
+ "status": "unhealthy",
603
+ "error": "No standard handler available",
604
+ },
605
+ )
606
+
607
+ try:
608
+ await standard_handler.execute_operation(check_entity, Action.LIST, {"limit": 1})
609
+ return ExecutionResult(
610
+ success=True,
611
+ data={
612
+ "status": "healthy",
613
+ "checked_entity": check_entity,
614
+ "checked_action": "list",
615
+ },
616
+ )
617
+ except Exception as e:
618
+ return ExecutionResult(
619
+ success=True,
620
+ data={
621
+ "status": "unhealthy",
622
+ "error": str(e),
623
+ "checked_entity": check_entity,
624
+ "checked_action": "list",
625
+ },
626
+ )
627
+
547
628
  async def _execute_operation(
548
629
  self,
549
630
  entity: str,
@@ -154,6 +154,18 @@ class ExecutorProtocol(Protocol):
154
154
  """
155
155
  ...
156
156
 
157
+ async def check(self) -> ExecutionResult:
158
+ """Perform a health check to verify connectivity and credentials.
159
+
160
+ Returns:
161
+ ExecutionResult with data containing:
162
+ - status: "healthy" or "unhealthy"
163
+ - error: Error message if unhealthy
164
+ - checked_entity: Entity used for the check
165
+ - checked_action: Action used for the check
166
+ """
167
+ ...
168
+
157
169
 
158
170
  # ============================================================================
159
171
  # Executor Exceptions
@@ -86,6 +86,16 @@ class Operation(BaseModel):
86
86
  "Validation will generate a warning instead of an error when cassettes are missing."
87
87
  ),
88
88
  )
89
+ x_airbyte_preferred_for_check: bool | None = Field(
90
+ None,
91
+ alias="x-airbyte-preferred-for-check",
92
+ description=(
93
+ "Mark this list operation as the preferred operation for health checks. "
94
+ "When the CHECK action is executed, this operation will be used instead of "
95
+ "falling back to the first available list operation. Choose a lightweight, "
96
+ "always-available endpoint (e.g., users, accounts)."
97
+ ),
98
+ )
89
99
 
90
100
  # Future extensions (commented out, defined for future use)
91
101
  # from .extensions import PaginationConfig
@@ -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,
@@ -15,7 +15,16 @@ from .schema.security import AirbyteAuthConfig
15
15
 
16
16
 
17
17
  class Action(str, Enum):
18
- """Supported actions for Entity operations."""
18
+ """Supported actions for Entity operations.
19
+
20
+ Standard CRUD actions:
21
+ GET, CREATE, UPDATE, DELETE, LIST
22
+
23
+ Special actions:
24
+ API_SEARCH - Search via API endpoint
25
+ DOWNLOAD - Download file content
26
+ AUTHORIZE - OAuth authorization flow
27
+ """
19
28
 
20
29
  GET = "get"
21
30
  CREATE = "create"
@@ -223,6 +232,12 @@ class EndpointDefinition(BaseModel):
223
232
  description="Mark operation as untested to skip cassette validation (from x-airbyte-untested extension)",
224
233
  )
225
234
 
235
+ # Health check support (Airbyte extension)
236
+ preferred_for_check: bool = Field(
237
+ False,
238
+ description="Mark this list operation as preferred for health checks (from x-airbyte-preferred-for-check extension)",
239
+ )
240
+
226
241
 
227
242
  class EntityDefinition(BaseModel):
228
243
  """Definition of an API entity."""
@@ -810,11 +810,31 @@ def validate_connector_readiness(connector_dir: str | Path) -> Dict[str, Any]:
810
810
 
811
811
  success = operations_missing_cassettes == 0 and cassettes_invalid == 0 and total_operations > 0
812
812
 
813
+ # Check for preferred_for_check on at least one list operation
814
+ has_preferred_check = False
815
+ for entity in config.entities:
816
+ for action_val in entity.actions:
817
+ endpoint = entity.endpoints.get(action_val)
818
+ if endpoint and getattr(endpoint, "preferred_for_check", False):
819
+ has_preferred_check = True
820
+ break
821
+ if has_preferred_check:
822
+ break
823
+
824
+ readiness_warnings = []
825
+ if not has_preferred_check:
826
+ readiness_warnings.append(
827
+ "No operation has x-airbyte-preferred-for-check: true. "
828
+ "Add this extension to a lightweight list operation (e.g., users.list) "
829
+ "to enable reliable health checks."
830
+ )
831
+
813
832
  return {
814
833
  "success": success,
815
834
  "connector_name": config.name,
816
835
  "connector_path": str(connector_path),
817
836
  "validation_results": validation_results,
837
+ "readiness_warnings": readiness_warnings,
818
838
  "summary": {
819
839
  "total_operations": total_operations,
820
840
  "operations_with_cassettes": operations_with_cassettes,
@@ -39,6 +39,7 @@ if TYPE_CHECKING:
39
39
  from .models import OrbAuthConfig
40
40
  # Import response models and envelope models at runtime
41
41
  from .models import (
42
+ OrbCheckResult,
42
43
  OrbExecuteResult,
43
44
  OrbExecuteResultWithMeta,
44
45
  CustomersListResult,
@@ -355,6 +356,40 @@ class OrbConnector:
355
356
  # No extractors - return raw response data
356
357
  return result.data
357
358
 
359
+ # ===== HEALTH CHECK METHOD =====
360
+
361
+ async def check(self) -> OrbCheckResult:
362
+ """
363
+ Perform a health check to verify connectivity and credentials.
364
+
365
+ Executes a lightweight list operation (limit=1) to validate that
366
+ the connector can communicate with the API and credentials are valid.
367
+
368
+ Returns:
369
+ OrbCheckResult with status ("healthy" or "unhealthy") and optional error message
370
+
371
+ Example:
372
+ result = await connector.check()
373
+ if result.status == "healthy":
374
+ print("Connection verified!")
375
+ else:
376
+ print(f"Check failed: {result.error}")
377
+ """
378
+ result = await self._executor.check()
379
+
380
+ if result.success and isinstance(result.data, dict):
381
+ return OrbCheckResult(
382
+ status=result.data.get("status", "unhealthy"),
383
+ error=result.data.get("error"),
384
+ checked_entity=result.data.get("checked_entity"),
385
+ checked_action=result.data.get("checked_action"),
386
+ )
387
+ else:
388
+ return OrbCheckResult(
389
+ status="unhealthy",
390
+ error=result.error or "Unknown error during health check",
391
+ )
392
+
358
393
  # ===== INTROSPECTION METHODS =====
359
394
 
360
395
  @classmethod
@@ -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)
@@ -126,15 +126,6 @@ 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
-
138
129
  class PlanPricesItem(BaseModel):
139
130
  """Nested schema for Plan.prices_item"""
140
131
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -150,6 +141,15 @@ class PlanPricesItem(BaseModel):
150
141
  currency: Union[str | None, Any] = Field(default=None, description="The currency of the price")
151
142
  """The currency of the price"""
152
143
 
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,15 +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 InvoiceCustomer(BaseModel):
184
- """The customer 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 customer ID")
188
- """The customer ID"""
189
- external_customer_id: Union[str | None, Any] = Field(default=None, description="The external customer ID")
190
- """The external customer ID"""
191
-
192
183
  class InvoiceLineItemsItem(BaseModel):
193
184
  """Nested schema for Invoice.line_items_item"""
194
185
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -206,6 +197,15 @@ class InvoiceLineItemsItem(BaseModel):
206
197
  end_date: Union[str | None, Any] = Field(default=None, description="The end date of the line item")
207
198
  """The end date of the line item"""
208
199
 
200
+ class InvoiceCustomer(BaseModel):
201
+ """The customer associated with the invoice"""
202
+ model_config = ConfigDict(extra="allow", populate_by_name=True)
203
+
204
+ id: Union[str | None, Any] = Field(default=None, description="The customer ID")
205
+ """The customer ID"""
206
+ external_customer_id: Union[str | None, Any] = Field(default=None, description="The external customer ID")
207
+ """The external customer ID"""
208
+
209
209
  class InvoiceSubscription(BaseModel):
210
210
  """The subscription associated with the invoice"""
211
211
  model_config = ConfigDict(extra="allow", populate_by_name=True)
@@ -286,6 +286,25 @@ class InvoicesListResultMeta(BaseModel):
286
286
 
287
287
  next_cursor: Union[str | None, Any] = Field(default=None)
288
288
 
289
+ # ===== CHECK RESULT MODEL =====
290
+
291
+ class OrbCheckResult(BaseModel):
292
+ """Result of a health check operation.
293
+
294
+ Returned by the check() method to indicate connectivity and credential status.
295
+ """
296
+ model_config = ConfigDict(extra="forbid")
297
+
298
+ status: str
299
+ """Health check status: 'healthy' or 'unhealthy'."""
300
+ error: str | None = None
301
+ """Error message if status is 'unhealthy', None otherwise."""
302
+ checked_entity: str | None = None
303
+ """Entity name used for the health check."""
304
+ checked_action: str | None = None
305
+ """Action name used for the health check."""
306
+
307
+
289
308
  # ===== RESPONSE ENVELOPE MODELS =====
290
309
 
291
310
  # Type variables for generic envelope models
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "airbyte-agent-orb"
3
- version = "0.1.0"
3
+ version = "0.1.2"
4
4
  description = "Airbyte Orb Connector for AI platforms"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
@@ -1,6 +0,0 @@
1
- # Orb changelog
2
-
3
- ## [0.1.0] - 2026-01-29
4
- - Updated connector definition (YAML version 0.1.1)
5
- - Source commit: 68ca482c
6
- - SDK version: 0.1.0