vitable-connect 1.0.0__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.
- vitable_connect/__init__.py +626 -0
- vitable_connect/_default_clients.py +32 -0
- vitable_connect/auth/__init__.py +4 -0
- vitable_connect/auth/client.py +141 -0
- vitable_connect/auth/raw_client.py +338 -0
- vitable_connect/client.py +395 -0
- vitable_connect/core/__init__.py +132 -0
- vitable_connect/core/api_error.py +23 -0
- vitable_connect/core/client_wrapper.py +147 -0
- vitable_connect/core/datetime_utils.py +70 -0
- vitable_connect/core/file.py +67 -0
- vitable_connect/core/force_multipart.py +18 -0
- vitable_connect/core/http_client.py +940 -0
- vitable_connect/core/http_response.py +63 -0
- vitable_connect/core/http_sse/__init__.py +42 -0
- vitable_connect/core/http_sse/_api.py +455 -0
- vitable_connect/core/http_sse/_decoders.py +74 -0
- vitable_connect/core/http_sse/_exceptions.py +7 -0
- vitable_connect/core/http_sse/_models.py +17 -0
- vitable_connect/core/jsonable_encoder.py +133 -0
- vitable_connect/core/logging.py +107 -0
- vitable_connect/core/pagination.py +82 -0
- vitable_connect/core/parse_error.py +36 -0
- vitable_connect/core/pydantic_utilities.py +486 -0
- vitable_connect/core/query_encoder.py +58 -0
- vitable_connect/core/remove_none_from_dict.py +11 -0
- vitable_connect/core/request_options.py +40 -0
- vitable_connect/core/serialization.py +347 -0
- vitable_connect/employees/__init__.py +4 -0
- vitable_connect/employees/client.py +456 -0
- vitable_connect/employees/raw_client.py +1021 -0
- vitable_connect/employers/__init__.py +4 -0
- vitable_connect/employers/client.py +2267 -0
- vitable_connect/employers/raw_client.py +5733 -0
- vitable_connect/enrollments/__init__.py +4 -0
- vitable_connect/enrollments/client.py +361 -0
- vitable_connect/enrollments/raw_client.py +949 -0
- vitable_connect/environment.py +8 -0
- vitable_connect/errors/__init__.py +62 -0
- vitable_connect/errors/bad_gateway_error.py +11 -0
- vitable_connect/errors/bad_request_error.py +11 -0
- vitable_connect/errors/conflict_error.py +11 -0
- vitable_connect/errors/forbidden_error.py +11 -0
- vitable_connect/errors/internal_server_error.py +11 -0
- vitable_connect/errors/not_found_error.py +11 -0
- vitable_connect/errors/too_many_requests_error.py +11 -0
- vitable_connect/errors/unauthorized_error.py +11 -0
- vitable_connect/errors/unprocessable_entity_error.py +11 -0
- vitable_connect/groups/__init__.py +34 -0
- vitable_connect/groups/client.py +432 -0
- vitable_connect/groups/members/__init__.py +34 -0
- vitable_connect/groups/members/client.py +63 -0
- vitable_connect/groups/members/raw_client.py +13 -0
- vitable_connect/groups/members/sync/__init__.py +4 -0
- vitable_connect/groups/members/sync/client.py +260 -0
- vitable_connect/groups/members/sync/raw_client.py +618 -0
- vitable_connect/groups/raw_client.py +1238 -0
- vitable_connect/members/__init__.py +4 -0
- vitable_connect/members/client.py +715 -0
- vitable_connect/members/raw_client.py +2254 -0
- vitable_connect/organizations/__init__.py +4 -0
- vitable_connect/organizations/client.py +195 -0
- vitable_connect/organizations/raw_client.py +585 -0
- vitable_connect/plans/__init__.py +4 -0
- vitable_connect/plans/client.py +143 -0
- vitable_connect/plans/raw_client.py +340 -0
- vitable_connect/py.typed +0 -0
- vitable_connect/types/__init__.py +560 -0
- vitable_connect/types/access_method.py +5 -0
- vitable_connect/types/access_token_response.py +38 -0
- vitable_connect/types/additional_access_method.py +5 -0
- vitable_connect/types/address.py +60 -0
- vitable_connect/types/address_request.py +52 -0
- vitable_connect/types/benefit_family.py +5 -0
- vitable_connect/types/benefit_family_param_item.py +5 -0
- vitable_connect/types/benefit_lifecycle_stage_item.py +7 -0
- vitable_connect/types/benefit_plan_network.py +73 -0
- vitable_connect/types/benefit_plan_year_detail.py +144 -0
- vitable_connect/types/benefit_plan_year_id.py +6 -0
- vitable_connect/types/benefit_plan_year_list.py +131 -0
- vitable_connect/types/benefit_status.py +5 -0
- vitable_connect/types/benefit_summary.py +60 -0
- vitable_connect/types/bound_entity.py +31 -0
- vitable_connect/types/bound_entity_response.py +31 -0
- vitable_connect/types/bound_entity_type.py +5 -0
- vitable_connect/types/card_type.py +5 -0
- vitable_connect/types/category.py +5 -0
- vitable_connect/types/census_sync_detail_response.py +27 -0
- vitable_connect/types/census_sync_employee_address_request.py +53 -0
- vitable_connect/types/census_sync_employee_request.py +71 -0
- vitable_connect/types/census_sync_response.py +28 -0
- vitable_connect/types/classification_correction_source.py +5 -0
- vitable_connect/types/compensation_type.py +5 -0
- vitable_connect/types/contribution_class_compensation.py +5 -0
- vitable_connect/types/contribution_class_employment.py +7 -0
- vitable_connect/types/contribution_class_location.py +5 -0
- vitable_connect/types/contribution_range.py +27 -0
- vitable_connect/types/contribution_strategy.py +34 -0
- vitable_connect/types/contribution_tier.py +70 -0
- vitable_connect/types/coverage_tier.py +5 -0
- vitable_connect/types/create_organization_request_type.py +8 -0
- vitable_connect/types/created_after.py +5 -0
- vitable_connect/types/created_before.py +5 -0
- vitable_connect/types/deduction_detail.py +64 -0
- vitable_connect/types/deduction_frequency.py +5 -0
- vitable_connect/types/digital_benefit_card.py +115 -0
- vitable_connect/types/election_status_item.py +5 -0
- vitable_connect/types/eligibility_policy.py +52 -0
- vitable_connect/types/eligibility_policy_rule.py +52 -0
- vitable_connect/types/eligibility_rule_compensation_type.py +5 -0
- vitable_connect/types/eligibility_rule_employee_class.py +8 -0
- vitable_connect/types/eligible_geographical_location.py +31 -0
- vitable_connect/types/eligible_geographical_location_type.py +5 -0
- vitable_connect/types/employee.py +145 -0
- vitable_connect/types/employee_address.py +52 -0
- vitable_connect/types/employee_address_input.py +55 -0
- vitable_connect/types/employee_class.py +7 -0
- vitable_connect/types/employee_id.py +6 -0
- vitable_connect/types/employee_list_response.py +33 -0
- vitable_connect/types/employee_response.py +27 -0
- vitable_connect/types/employee_search.py +6 -0
- vitable_connect/types/employee_status.py +5 -0
- vitable_connect/types/employer.py +89 -0
- vitable_connect/types/employer_address.py +56 -0
- vitable_connect/types/employer_address_input.py +52 -0
- vitable_connect/types/employer_benefit_lifecycle_stage.py +28 -0
- vitable_connect/types/employer_benefit_plan_year_response.py +27 -0
- vitable_connect/types/employer_benefit_plan_years_list_response.py +23 -0
- vitable_connect/types/employer_contact.py +31 -0
- vitable_connect/types/employer_hris.py +23 -0
- vitable_connect/types/employer_hris_response.py +27 -0
- vitable_connect/types/employer_hris_status.py +32 -0
- vitable_connect/types/employer_id.py +6 -0
- vitable_connect/types/employer_invoice_pdf.py +22 -0
- vitable_connect/types/employer_invoice_pdf_response.py +27 -0
- vitable_connect/types/employer_invoices_list_response.py +33 -0
- vitable_connect/types/employer_payroll_deduction_statement_list_response.py +33 -0
- vitable_connect/types/employer_response.py +27 -0
- vitable_connect/types/employer_search.py +6 -0
- vitable_connect/types/employer_settings.py +28 -0
- vitable_connect/types/employer_settings_response.py +27 -0
- vitable_connect/types/enrollment.py +94 -0
- vitable_connect/types/enrollment_detail.py +102 -0
- vitable_connect/types/enrollment_id.py +6 -0
- vitable_connect/types/enrollment_list_response.py +33 -0
- vitable_connect/types/enrollment_rate.py +32 -0
- vitable_connect/types/enrollment_rate_summary.py +32 -0
- vitable_connect/types/enrollment_response.py +27 -0
- vitable_connect/types/enrollment_status.py +5 -0
- vitable_connect/types/error_response.py +43 -0
- vitable_connect/types/event_id.py +3 -0
- vitable_connect/types/event_name.py +20 -0
- vitable_connect/types/gender.py +7 -0
- vitable_connect/types/grant_type.py +5 -0
- vitable_connect/types/group.py +48 -0
- vitable_connect/types/group_id.py +6 -0
- vitable_connect/types/group_list_response.py +33 -0
- vitable_connect/types/group_member_sync_detail_response.py +27 -0
- vitable_connect/types/group_member_sync_failure.py +33 -0
- vitable_connect/types/group_member_sync_member_request.py +59 -0
- vitable_connect/types/group_member_sync_request_detail.py +44 -0
- vitable_connect/types/group_member_sync_request_detail_response.py +27 -0
- vitable_connect/types/group_member_sync_response.py +33 -0
- vitable_connect/types/group_member_sync_results.py +33 -0
- vitable_connect/types/group_response.py +27 -0
- vitable_connect/types/household_member.py +68 -0
- vitable_connect/types/household_member_relationship.py +5 -0
- vitable_connect/types/household_member_type.py +5 -0
- vitable_connect/types/household_members_response.py +27 -0
- vitable_connect/types/hris_connection.py +43 -0
- vitable_connect/types/hris_status_item.py +5 -0
- vitable_connect/types/ichra_contribution_class.py +92 -0
- vitable_connect/types/idp_provider.py +5 -0
- vitable_connect/types/include_cancelled.py +6 -0
- vitable_connect/types/invoice.py +37 -0
- vitable_connect/types/invoice_id.py +6 -0
- vitable_connect/types/invoices_cursor_pagination.py +22 -0
- vitable_connect/types/limit.py +6 -0
- vitable_connect/types/list_webhook_event_deliveries_response.py +23 -0
- vitable_connect/types/marital_status.py +5 -0
- vitable_connect/types/member.py +143 -0
- vitable_connect/types/member_address.py +116 -0
- vitable_connect/types/member_dependents_response.py +27 -0
- vitable_connect/types/member_digital_benefit_cards_response.py +27 -0
- vitable_connect/types/member_employments_response.py +27 -0
- vitable_connect/types/member_enrollment.py +182 -0
- vitable_connect/types/member_enrollments_response.py +27 -0
- vitable_connect/types/member_id.py +6 -0
- vitable_connect/types/member_legal_dependent.py +72 -0
- vitable_connect/types/member_list_item.py +52 -0
- vitable_connect/types/member_list_response.py +33 -0
- vitable_connect/types/member_qualifying_life_event.py +76 -0
- vitable_connect/types/member_qualifying_life_event_list_response.py +33 -0
- vitable_connect/types/member_response.py +27 -0
- vitable_connect/types/member_search.py +6 -0
- vitable_connect/types/member_status.py +5 -0
- vitable_connect/types/missing_employee_resolution.py +5 -0
- vitable_connect/types/name_suffix.py +5 -0
- vitable_connect/types/offset.py +8 -0
- vitable_connect/types/operation.py +5 -0
- vitable_connect/types/organization.py +59 -0
- vitable_connect/types/organization_employer.py +110 -0
- vitable_connect/types/organization_employer_list_response.py +33 -0
- vitable_connect/types/organization_hris_provider.py +27 -0
- vitable_connect/types/organization_hris_providers_response.py +27 -0
- vitable_connect/types/organization_type.py +8 -0
- vitable_connect/types/organizations_list_response.py +32 -0
- vitable_connect/types/page.py +6 -0
- vitable_connect/types/pagination.py +41 -0
- vitable_connect/types/payroll_access_setup_status.py +28 -0
- vitable_connect/types/payroll_access_setup_status_response.py +27 -0
- vitable_connect/types/payroll_deduction_statement.py +76 -0
- vitable_connect/types/payroll_integration_email.py +22 -0
- vitable_connect/types/payroll_integration_email_response.py +27 -0
- vitable_connect/types/plan.py +27 -0
- vitable_connect/types/plan_list_response.py +33 -0
- vitable_connect/types/plan_year_enrollment.py +99 -0
- vitable_connect/types/plan_year_enrollment_election_status.py +5 -0
- vitable_connect/types/plan_year_enrollment_list_response.py +33 -0
- vitable_connect/types/plan_year_enrollment_policy_status.py +7 -0
- vitable_connect/types/preferred_language.py +5 -0
- vitable_connect/types/product_code.py +24 -0
- vitable_connect/types/qualifying_life_event_status.py +5 -0
- vitable_connect/types/qualifying_life_event_type.py +30 -0
- vitable_connect/types/reissue_enrollment.py +22 -0
- vitable_connect/types/reissue_enrollment_response.py +27 -0
- vitable_connect/types/relationship.py +5 -0
- vitable_connect/types/remaining_employee_action.py +5 -0
- vitable_connect/types/request_id.py +3 -0
- vitable_connect/types/resource_id.py +3 -0
- vitable_connect/types/resource_type.py +7 -0
- vitable_connect/types/search.py +8 -0
- vitable_connect/types/sex_at_birth.py +5 -0
- vitable_connect/types/state.py +71 -0
- vitable_connect/types/status.py +5 -0
- vitable_connect/types/tax_classification.py +5 -0
- vitable_connect/types/termination_rule.py +5 -0
- vitable_connect/types/update_employer_address_input.py +52 -0
- vitable_connect/types/waiting_period.py +5 -0
- vitable_connect/types/webhook_delivery.py +63 -0
- vitable_connect/types/webhook_event.py +48 -0
- vitable_connect/types/webhook_event_list_response.py +33 -0
- vitable_connect/types/webhook_event_response.py +27 -0
- vitable_connect/version.py +3 -0
- vitable_connect/webhook_events/__init__.py +4 -0
- vitable_connect/webhook_events/client.py +373 -0
- vitable_connect/webhook_events/raw_client.py +951 -0
- vitable_connect-1.0.0.dist-info/METADATA +472 -0
- vitable_connect-1.0.0.dist-info/RECORD +251 -0
- vitable_connect-1.0.0.dist-info/WHEEL +4 -0
- vitable_connect-1.0.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .types import (
|
|
10
|
+
AccessMethod,
|
|
11
|
+
AccessTokenResponse,
|
|
12
|
+
AdditionalAccessMethod,
|
|
13
|
+
Address,
|
|
14
|
+
AddressRequest,
|
|
15
|
+
BenefitFamily,
|
|
16
|
+
BenefitFamilyParamItem,
|
|
17
|
+
BenefitLifecycleStageItem,
|
|
18
|
+
BenefitPlanNetwork,
|
|
19
|
+
BenefitPlanYearDetail,
|
|
20
|
+
BenefitPlanYearId,
|
|
21
|
+
BenefitPlanYearList,
|
|
22
|
+
BenefitStatus,
|
|
23
|
+
BenefitSummary,
|
|
24
|
+
BoundEntity,
|
|
25
|
+
BoundEntityResponse,
|
|
26
|
+
BoundEntityType,
|
|
27
|
+
CardType,
|
|
28
|
+
Category,
|
|
29
|
+
CensusSyncDetailResponse,
|
|
30
|
+
CensusSyncEmployeeAddressRequest,
|
|
31
|
+
CensusSyncEmployeeRequest,
|
|
32
|
+
CensusSyncResponse,
|
|
33
|
+
ClassificationCorrectionSource,
|
|
34
|
+
CompensationType,
|
|
35
|
+
ContributionClassCompensation,
|
|
36
|
+
ContributionClassEmployment,
|
|
37
|
+
ContributionClassLocation,
|
|
38
|
+
ContributionRange,
|
|
39
|
+
ContributionStrategy,
|
|
40
|
+
ContributionTier,
|
|
41
|
+
CoverageTier,
|
|
42
|
+
CreateOrganizationRequestType,
|
|
43
|
+
CreatedAfter,
|
|
44
|
+
CreatedBefore,
|
|
45
|
+
DeductionDetail,
|
|
46
|
+
DeductionFrequency,
|
|
47
|
+
DigitalBenefitCard,
|
|
48
|
+
ElectionStatusItem,
|
|
49
|
+
EligibilityPolicy,
|
|
50
|
+
EligibilityPolicyRule,
|
|
51
|
+
EligibilityRuleCompensationType,
|
|
52
|
+
EligibilityRuleEmployeeClass,
|
|
53
|
+
EligibleGeographicalLocation,
|
|
54
|
+
EligibleGeographicalLocationType,
|
|
55
|
+
Employee,
|
|
56
|
+
EmployeeAddress,
|
|
57
|
+
EmployeeAddressInput,
|
|
58
|
+
EmployeeClass,
|
|
59
|
+
EmployeeId,
|
|
60
|
+
EmployeeListResponse,
|
|
61
|
+
EmployeeResponse,
|
|
62
|
+
EmployeeSearch,
|
|
63
|
+
EmployeeStatus,
|
|
64
|
+
Employer,
|
|
65
|
+
EmployerAddress,
|
|
66
|
+
EmployerAddressInput,
|
|
67
|
+
EmployerBenefitLifecycleStage,
|
|
68
|
+
EmployerBenefitPlanYearResponse,
|
|
69
|
+
EmployerBenefitPlanYearsListResponse,
|
|
70
|
+
EmployerContact,
|
|
71
|
+
EmployerHris,
|
|
72
|
+
EmployerHrisResponse,
|
|
73
|
+
EmployerHrisStatus,
|
|
74
|
+
EmployerId,
|
|
75
|
+
EmployerInvoicePdf,
|
|
76
|
+
EmployerInvoicePdfResponse,
|
|
77
|
+
EmployerInvoicesListResponse,
|
|
78
|
+
EmployerPayrollDeductionStatementListResponse,
|
|
79
|
+
EmployerResponse,
|
|
80
|
+
EmployerSearch,
|
|
81
|
+
EmployerSettings,
|
|
82
|
+
EmployerSettingsResponse,
|
|
83
|
+
Enrollment,
|
|
84
|
+
EnrollmentDetail,
|
|
85
|
+
EnrollmentId,
|
|
86
|
+
EnrollmentListResponse,
|
|
87
|
+
EnrollmentRate,
|
|
88
|
+
EnrollmentRateSummary,
|
|
89
|
+
EnrollmentResponse,
|
|
90
|
+
EnrollmentStatus,
|
|
91
|
+
ErrorResponse,
|
|
92
|
+
EventId,
|
|
93
|
+
EventName,
|
|
94
|
+
Gender,
|
|
95
|
+
GrantType,
|
|
96
|
+
Group,
|
|
97
|
+
GroupId,
|
|
98
|
+
GroupListResponse,
|
|
99
|
+
GroupMemberSyncDetailResponse,
|
|
100
|
+
GroupMemberSyncFailure,
|
|
101
|
+
GroupMemberSyncMemberRequest,
|
|
102
|
+
GroupMemberSyncRequestDetail,
|
|
103
|
+
GroupMemberSyncRequestDetailResponse,
|
|
104
|
+
GroupMemberSyncResponse,
|
|
105
|
+
GroupMemberSyncResults,
|
|
106
|
+
GroupResponse,
|
|
107
|
+
HouseholdMember,
|
|
108
|
+
HouseholdMemberRelationship,
|
|
109
|
+
HouseholdMemberType,
|
|
110
|
+
HouseholdMembersResponse,
|
|
111
|
+
HrisConnection,
|
|
112
|
+
HrisStatusItem,
|
|
113
|
+
IchraContributionClass,
|
|
114
|
+
IdpProvider,
|
|
115
|
+
IncludeCancelled,
|
|
116
|
+
Invoice,
|
|
117
|
+
InvoiceId,
|
|
118
|
+
InvoicesCursorPagination,
|
|
119
|
+
Limit,
|
|
120
|
+
ListWebhookEventDeliveriesResponse,
|
|
121
|
+
MaritalStatus,
|
|
122
|
+
Member,
|
|
123
|
+
MemberAddress,
|
|
124
|
+
MemberDependentsResponse,
|
|
125
|
+
MemberDigitalBenefitCardsResponse,
|
|
126
|
+
MemberEmploymentsResponse,
|
|
127
|
+
MemberEnrollment,
|
|
128
|
+
MemberEnrollmentsResponse,
|
|
129
|
+
MemberId,
|
|
130
|
+
MemberLegalDependent,
|
|
131
|
+
MemberListItem,
|
|
132
|
+
MemberListResponse,
|
|
133
|
+
MemberQualifyingLifeEvent,
|
|
134
|
+
MemberQualifyingLifeEventListResponse,
|
|
135
|
+
MemberResponse,
|
|
136
|
+
MemberSearch,
|
|
137
|
+
MemberStatus,
|
|
138
|
+
MissingEmployeeResolution,
|
|
139
|
+
NameSuffix,
|
|
140
|
+
Offset,
|
|
141
|
+
Operation,
|
|
142
|
+
Organization,
|
|
143
|
+
OrganizationEmployer,
|
|
144
|
+
OrganizationEmployerListResponse,
|
|
145
|
+
OrganizationHrisProvider,
|
|
146
|
+
OrganizationHrisProvidersResponse,
|
|
147
|
+
OrganizationType,
|
|
148
|
+
OrganizationsListResponse,
|
|
149
|
+
Page,
|
|
150
|
+
Pagination,
|
|
151
|
+
PayrollAccessSetupStatus,
|
|
152
|
+
PayrollAccessSetupStatusResponse,
|
|
153
|
+
PayrollDeductionStatement,
|
|
154
|
+
PayrollIntegrationEmail,
|
|
155
|
+
PayrollIntegrationEmailResponse,
|
|
156
|
+
Plan,
|
|
157
|
+
PlanListResponse,
|
|
158
|
+
PlanYearEnrollment,
|
|
159
|
+
PlanYearEnrollmentElectionStatus,
|
|
160
|
+
PlanYearEnrollmentListResponse,
|
|
161
|
+
PlanYearEnrollmentPolicyStatus,
|
|
162
|
+
PreferredLanguage,
|
|
163
|
+
ProductCode,
|
|
164
|
+
QualifyingLifeEventStatus,
|
|
165
|
+
QualifyingLifeEventType,
|
|
166
|
+
ReissueEnrollment,
|
|
167
|
+
ReissueEnrollmentResponse,
|
|
168
|
+
Relationship,
|
|
169
|
+
RemainingEmployeeAction,
|
|
170
|
+
RequestId,
|
|
171
|
+
ResourceId,
|
|
172
|
+
ResourceType,
|
|
173
|
+
Search,
|
|
174
|
+
SexAtBirth,
|
|
175
|
+
State,
|
|
176
|
+
Status,
|
|
177
|
+
TaxClassification,
|
|
178
|
+
TerminationRule,
|
|
179
|
+
UpdateEmployerAddressInput,
|
|
180
|
+
WaitingPeriod,
|
|
181
|
+
WebhookDelivery,
|
|
182
|
+
WebhookEvent,
|
|
183
|
+
WebhookEventListResponse,
|
|
184
|
+
WebhookEventResponse,
|
|
185
|
+
)
|
|
186
|
+
from .errors import (
|
|
187
|
+
BadGatewayError,
|
|
188
|
+
BadRequestError,
|
|
189
|
+
ConflictError,
|
|
190
|
+
ForbiddenError,
|
|
191
|
+
InternalServerError,
|
|
192
|
+
NotFoundError,
|
|
193
|
+
TooManyRequestsError,
|
|
194
|
+
UnauthorizedError,
|
|
195
|
+
UnprocessableEntityError,
|
|
196
|
+
)
|
|
197
|
+
from . import auth, employees, employers, enrollments, groups, members, organizations, plans, webhook_events
|
|
198
|
+
from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient
|
|
199
|
+
from .client import AsyncVitableConnect, VitableConnect
|
|
200
|
+
from .environment import VitableConnectEnvironment
|
|
201
|
+
from .version import __version__
|
|
202
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
203
|
+
"AccessMethod": ".types",
|
|
204
|
+
"AccessTokenResponse": ".types",
|
|
205
|
+
"AdditionalAccessMethod": ".types",
|
|
206
|
+
"Address": ".types",
|
|
207
|
+
"AddressRequest": ".types",
|
|
208
|
+
"AsyncVitableConnect": ".client",
|
|
209
|
+
"BadGatewayError": ".errors",
|
|
210
|
+
"BadRequestError": ".errors",
|
|
211
|
+
"BenefitFamily": ".types",
|
|
212
|
+
"BenefitFamilyParamItem": ".types",
|
|
213
|
+
"BenefitLifecycleStageItem": ".types",
|
|
214
|
+
"BenefitPlanNetwork": ".types",
|
|
215
|
+
"BenefitPlanYearDetail": ".types",
|
|
216
|
+
"BenefitPlanYearId": ".types",
|
|
217
|
+
"BenefitPlanYearList": ".types",
|
|
218
|
+
"BenefitStatus": ".types",
|
|
219
|
+
"BenefitSummary": ".types",
|
|
220
|
+
"BoundEntity": ".types",
|
|
221
|
+
"BoundEntityResponse": ".types",
|
|
222
|
+
"BoundEntityType": ".types",
|
|
223
|
+
"CardType": ".types",
|
|
224
|
+
"Category": ".types",
|
|
225
|
+
"CensusSyncDetailResponse": ".types",
|
|
226
|
+
"CensusSyncEmployeeAddressRequest": ".types",
|
|
227
|
+
"CensusSyncEmployeeRequest": ".types",
|
|
228
|
+
"CensusSyncResponse": ".types",
|
|
229
|
+
"ClassificationCorrectionSource": ".types",
|
|
230
|
+
"CompensationType": ".types",
|
|
231
|
+
"ConflictError": ".errors",
|
|
232
|
+
"ContributionClassCompensation": ".types",
|
|
233
|
+
"ContributionClassEmployment": ".types",
|
|
234
|
+
"ContributionClassLocation": ".types",
|
|
235
|
+
"ContributionRange": ".types",
|
|
236
|
+
"ContributionStrategy": ".types",
|
|
237
|
+
"ContributionTier": ".types",
|
|
238
|
+
"CoverageTier": ".types",
|
|
239
|
+
"CreateOrganizationRequestType": ".types",
|
|
240
|
+
"CreatedAfter": ".types",
|
|
241
|
+
"CreatedBefore": ".types",
|
|
242
|
+
"DeductionDetail": ".types",
|
|
243
|
+
"DeductionFrequency": ".types",
|
|
244
|
+
"DefaultAioHttpClient": "._default_clients",
|
|
245
|
+
"DefaultAsyncHttpxClient": "._default_clients",
|
|
246
|
+
"DigitalBenefitCard": ".types",
|
|
247
|
+
"ElectionStatusItem": ".types",
|
|
248
|
+
"EligibilityPolicy": ".types",
|
|
249
|
+
"EligibilityPolicyRule": ".types",
|
|
250
|
+
"EligibilityRuleCompensationType": ".types",
|
|
251
|
+
"EligibilityRuleEmployeeClass": ".types",
|
|
252
|
+
"EligibleGeographicalLocation": ".types",
|
|
253
|
+
"EligibleGeographicalLocationType": ".types",
|
|
254
|
+
"Employee": ".types",
|
|
255
|
+
"EmployeeAddress": ".types",
|
|
256
|
+
"EmployeeAddressInput": ".types",
|
|
257
|
+
"EmployeeClass": ".types",
|
|
258
|
+
"EmployeeId": ".types",
|
|
259
|
+
"EmployeeListResponse": ".types",
|
|
260
|
+
"EmployeeResponse": ".types",
|
|
261
|
+
"EmployeeSearch": ".types",
|
|
262
|
+
"EmployeeStatus": ".types",
|
|
263
|
+
"Employer": ".types",
|
|
264
|
+
"EmployerAddress": ".types",
|
|
265
|
+
"EmployerAddressInput": ".types",
|
|
266
|
+
"EmployerBenefitLifecycleStage": ".types",
|
|
267
|
+
"EmployerBenefitPlanYearResponse": ".types",
|
|
268
|
+
"EmployerBenefitPlanYearsListResponse": ".types",
|
|
269
|
+
"EmployerContact": ".types",
|
|
270
|
+
"EmployerHris": ".types",
|
|
271
|
+
"EmployerHrisResponse": ".types",
|
|
272
|
+
"EmployerHrisStatus": ".types",
|
|
273
|
+
"EmployerId": ".types",
|
|
274
|
+
"EmployerInvoicePdf": ".types",
|
|
275
|
+
"EmployerInvoicePdfResponse": ".types",
|
|
276
|
+
"EmployerInvoicesListResponse": ".types",
|
|
277
|
+
"EmployerPayrollDeductionStatementListResponse": ".types",
|
|
278
|
+
"EmployerResponse": ".types",
|
|
279
|
+
"EmployerSearch": ".types",
|
|
280
|
+
"EmployerSettings": ".types",
|
|
281
|
+
"EmployerSettingsResponse": ".types",
|
|
282
|
+
"Enrollment": ".types",
|
|
283
|
+
"EnrollmentDetail": ".types",
|
|
284
|
+
"EnrollmentId": ".types",
|
|
285
|
+
"EnrollmentListResponse": ".types",
|
|
286
|
+
"EnrollmentRate": ".types",
|
|
287
|
+
"EnrollmentRateSummary": ".types",
|
|
288
|
+
"EnrollmentResponse": ".types",
|
|
289
|
+
"EnrollmentStatus": ".types",
|
|
290
|
+
"ErrorResponse": ".types",
|
|
291
|
+
"EventId": ".types",
|
|
292
|
+
"EventName": ".types",
|
|
293
|
+
"ForbiddenError": ".errors",
|
|
294
|
+
"Gender": ".types",
|
|
295
|
+
"GrantType": ".types",
|
|
296
|
+
"Group": ".types",
|
|
297
|
+
"GroupId": ".types",
|
|
298
|
+
"GroupListResponse": ".types",
|
|
299
|
+
"GroupMemberSyncDetailResponse": ".types",
|
|
300
|
+
"GroupMemberSyncFailure": ".types",
|
|
301
|
+
"GroupMemberSyncMemberRequest": ".types",
|
|
302
|
+
"GroupMemberSyncRequestDetail": ".types",
|
|
303
|
+
"GroupMemberSyncRequestDetailResponse": ".types",
|
|
304
|
+
"GroupMemberSyncResponse": ".types",
|
|
305
|
+
"GroupMemberSyncResults": ".types",
|
|
306
|
+
"GroupResponse": ".types",
|
|
307
|
+
"HouseholdMember": ".types",
|
|
308
|
+
"HouseholdMemberRelationship": ".types",
|
|
309
|
+
"HouseholdMemberType": ".types",
|
|
310
|
+
"HouseholdMembersResponse": ".types",
|
|
311
|
+
"HrisConnection": ".types",
|
|
312
|
+
"HrisStatusItem": ".types",
|
|
313
|
+
"IchraContributionClass": ".types",
|
|
314
|
+
"IdpProvider": ".types",
|
|
315
|
+
"IncludeCancelled": ".types",
|
|
316
|
+
"InternalServerError": ".errors",
|
|
317
|
+
"Invoice": ".types",
|
|
318
|
+
"InvoiceId": ".types",
|
|
319
|
+
"InvoicesCursorPagination": ".types",
|
|
320
|
+
"Limit": ".types",
|
|
321
|
+
"ListWebhookEventDeliveriesResponse": ".types",
|
|
322
|
+
"MaritalStatus": ".types",
|
|
323
|
+
"Member": ".types",
|
|
324
|
+
"MemberAddress": ".types",
|
|
325
|
+
"MemberDependentsResponse": ".types",
|
|
326
|
+
"MemberDigitalBenefitCardsResponse": ".types",
|
|
327
|
+
"MemberEmploymentsResponse": ".types",
|
|
328
|
+
"MemberEnrollment": ".types",
|
|
329
|
+
"MemberEnrollmentsResponse": ".types",
|
|
330
|
+
"MemberId": ".types",
|
|
331
|
+
"MemberLegalDependent": ".types",
|
|
332
|
+
"MemberListItem": ".types",
|
|
333
|
+
"MemberListResponse": ".types",
|
|
334
|
+
"MemberQualifyingLifeEvent": ".types",
|
|
335
|
+
"MemberQualifyingLifeEventListResponse": ".types",
|
|
336
|
+
"MemberResponse": ".types",
|
|
337
|
+
"MemberSearch": ".types",
|
|
338
|
+
"MemberStatus": ".types",
|
|
339
|
+
"MissingEmployeeResolution": ".types",
|
|
340
|
+
"NameSuffix": ".types",
|
|
341
|
+
"NotFoundError": ".errors",
|
|
342
|
+
"Offset": ".types",
|
|
343
|
+
"Operation": ".types",
|
|
344
|
+
"Organization": ".types",
|
|
345
|
+
"OrganizationEmployer": ".types",
|
|
346
|
+
"OrganizationEmployerListResponse": ".types",
|
|
347
|
+
"OrganizationHrisProvider": ".types",
|
|
348
|
+
"OrganizationHrisProvidersResponse": ".types",
|
|
349
|
+
"OrganizationType": ".types",
|
|
350
|
+
"OrganizationsListResponse": ".types",
|
|
351
|
+
"Page": ".types",
|
|
352
|
+
"Pagination": ".types",
|
|
353
|
+
"PayrollAccessSetupStatus": ".types",
|
|
354
|
+
"PayrollAccessSetupStatusResponse": ".types",
|
|
355
|
+
"PayrollDeductionStatement": ".types",
|
|
356
|
+
"PayrollIntegrationEmail": ".types",
|
|
357
|
+
"PayrollIntegrationEmailResponse": ".types",
|
|
358
|
+
"Plan": ".types",
|
|
359
|
+
"PlanListResponse": ".types",
|
|
360
|
+
"PlanYearEnrollment": ".types",
|
|
361
|
+
"PlanYearEnrollmentElectionStatus": ".types",
|
|
362
|
+
"PlanYearEnrollmentListResponse": ".types",
|
|
363
|
+
"PlanYearEnrollmentPolicyStatus": ".types",
|
|
364
|
+
"PreferredLanguage": ".types",
|
|
365
|
+
"ProductCode": ".types",
|
|
366
|
+
"QualifyingLifeEventStatus": ".types",
|
|
367
|
+
"QualifyingLifeEventType": ".types",
|
|
368
|
+
"ReissueEnrollment": ".types",
|
|
369
|
+
"ReissueEnrollmentResponse": ".types",
|
|
370
|
+
"Relationship": ".types",
|
|
371
|
+
"RemainingEmployeeAction": ".types",
|
|
372
|
+
"RequestId": ".types",
|
|
373
|
+
"ResourceId": ".types",
|
|
374
|
+
"ResourceType": ".types",
|
|
375
|
+
"Search": ".types",
|
|
376
|
+
"SexAtBirth": ".types",
|
|
377
|
+
"State": ".types",
|
|
378
|
+
"Status": ".types",
|
|
379
|
+
"TaxClassification": ".types",
|
|
380
|
+
"TerminationRule": ".types",
|
|
381
|
+
"TooManyRequestsError": ".errors",
|
|
382
|
+
"UnauthorizedError": ".errors",
|
|
383
|
+
"UnprocessableEntityError": ".errors",
|
|
384
|
+
"UpdateEmployerAddressInput": ".types",
|
|
385
|
+
"VitableConnect": ".client",
|
|
386
|
+
"VitableConnectEnvironment": ".environment",
|
|
387
|
+
"WaitingPeriod": ".types",
|
|
388
|
+
"WebhookDelivery": ".types",
|
|
389
|
+
"WebhookEvent": ".types",
|
|
390
|
+
"WebhookEventListResponse": ".types",
|
|
391
|
+
"WebhookEventResponse": ".types",
|
|
392
|
+
"__version__": ".version",
|
|
393
|
+
"auth": ".auth",
|
|
394
|
+
"employees": ".employees",
|
|
395
|
+
"employers": ".employers",
|
|
396
|
+
"enrollments": ".enrollments",
|
|
397
|
+
"groups": ".groups",
|
|
398
|
+
"members": ".members",
|
|
399
|
+
"organizations": ".organizations",
|
|
400
|
+
"plans": ".plans",
|
|
401
|
+
"webhook_events": ".webhook_events",
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
406
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
407
|
+
if module_name is None:
|
|
408
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
409
|
+
try:
|
|
410
|
+
module = import_module(module_name, __package__)
|
|
411
|
+
if module_name == f".{attr_name}":
|
|
412
|
+
return module
|
|
413
|
+
else:
|
|
414
|
+
return getattr(module, attr_name)
|
|
415
|
+
except ImportError as e:
|
|
416
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
417
|
+
except AttributeError as e:
|
|
418
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
def __dir__():
|
|
422
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
423
|
+
return sorted(lazy_attrs)
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
__all__ = [
|
|
427
|
+
"AccessMethod",
|
|
428
|
+
"AccessTokenResponse",
|
|
429
|
+
"AdditionalAccessMethod",
|
|
430
|
+
"Address",
|
|
431
|
+
"AddressRequest",
|
|
432
|
+
"AsyncVitableConnect",
|
|
433
|
+
"BadGatewayError",
|
|
434
|
+
"BadRequestError",
|
|
435
|
+
"BenefitFamily",
|
|
436
|
+
"BenefitFamilyParamItem",
|
|
437
|
+
"BenefitLifecycleStageItem",
|
|
438
|
+
"BenefitPlanNetwork",
|
|
439
|
+
"BenefitPlanYearDetail",
|
|
440
|
+
"BenefitPlanYearId",
|
|
441
|
+
"BenefitPlanYearList",
|
|
442
|
+
"BenefitStatus",
|
|
443
|
+
"BenefitSummary",
|
|
444
|
+
"BoundEntity",
|
|
445
|
+
"BoundEntityResponse",
|
|
446
|
+
"BoundEntityType",
|
|
447
|
+
"CardType",
|
|
448
|
+
"Category",
|
|
449
|
+
"CensusSyncDetailResponse",
|
|
450
|
+
"CensusSyncEmployeeAddressRequest",
|
|
451
|
+
"CensusSyncEmployeeRequest",
|
|
452
|
+
"CensusSyncResponse",
|
|
453
|
+
"ClassificationCorrectionSource",
|
|
454
|
+
"CompensationType",
|
|
455
|
+
"ConflictError",
|
|
456
|
+
"ContributionClassCompensation",
|
|
457
|
+
"ContributionClassEmployment",
|
|
458
|
+
"ContributionClassLocation",
|
|
459
|
+
"ContributionRange",
|
|
460
|
+
"ContributionStrategy",
|
|
461
|
+
"ContributionTier",
|
|
462
|
+
"CoverageTier",
|
|
463
|
+
"CreateOrganizationRequestType",
|
|
464
|
+
"CreatedAfter",
|
|
465
|
+
"CreatedBefore",
|
|
466
|
+
"DeductionDetail",
|
|
467
|
+
"DeductionFrequency",
|
|
468
|
+
"DefaultAioHttpClient",
|
|
469
|
+
"DefaultAsyncHttpxClient",
|
|
470
|
+
"DigitalBenefitCard",
|
|
471
|
+
"ElectionStatusItem",
|
|
472
|
+
"EligibilityPolicy",
|
|
473
|
+
"EligibilityPolicyRule",
|
|
474
|
+
"EligibilityRuleCompensationType",
|
|
475
|
+
"EligibilityRuleEmployeeClass",
|
|
476
|
+
"EligibleGeographicalLocation",
|
|
477
|
+
"EligibleGeographicalLocationType",
|
|
478
|
+
"Employee",
|
|
479
|
+
"EmployeeAddress",
|
|
480
|
+
"EmployeeAddressInput",
|
|
481
|
+
"EmployeeClass",
|
|
482
|
+
"EmployeeId",
|
|
483
|
+
"EmployeeListResponse",
|
|
484
|
+
"EmployeeResponse",
|
|
485
|
+
"EmployeeSearch",
|
|
486
|
+
"EmployeeStatus",
|
|
487
|
+
"Employer",
|
|
488
|
+
"EmployerAddress",
|
|
489
|
+
"EmployerAddressInput",
|
|
490
|
+
"EmployerBenefitLifecycleStage",
|
|
491
|
+
"EmployerBenefitPlanYearResponse",
|
|
492
|
+
"EmployerBenefitPlanYearsListResponse",
|
|
493
|
+
"EmployerContact",
|
|
494
|
+
"EmployerHris",
|
|
495
|
+
"EmployerHrisResponse",
|
|
496
|
+
"EmployerHrisStatus",
|
|
497
|
+
"EmployerId",
|
|
498
|
+
"EmployerInvoicePdf",
|
|
499
|
+
"EmployerInvoicePdfResponse",
|
|
500
|
+
"EmployerInvoicesListResponse",
|
|
501
|
+
"EmployerPayrollDeductionStatementListResponse",
|
|
502
|
+
"EmployerResponse",
|
|
503
|
+
"EmployerSearch",
|
|
504
|
+
"EmployerSettings",
|
|
505
|
+
"EmployerSettingsResponse",
|
|
506
|
+
"Enrollment",
|
|
507
|
+
"EnrollmentDetail",
|
|
508
|
+
"EnrollmentId",
|
|
509
|
+
"EnrollmentListResponse",
|
|
510
|
+
"EnrollmentRate",
|
|
511
|
+
"EnrollmentRateSummary",
|
|
512
|
+
"EnrollmentResponse",
|
|
513
|
+
"EnrollmentStatus",
|
|
514
|
+
"ErrorResponse",
|
|
515
|
+
"EventId",
|
|
516
|
+
"EventName",
|
|
517
|
+
"ForbiddenError",
|
|
518
|
+
"Gender",
|
|
519
|
+
"GrantType",
|
|
520
|
+
"Group",
|
|
521
|
+
"GroupId",
|
|
522
|
+
"GroupListResponse",
|
|
523
|
+
"GroupMemberSyncDetailResponse",
|
|
524
|
+
"GroupMemberSyncFailure",
|
|
525
|
+
"GroupMemberSyncMemberRequest",
|
|
526
|
+
"GroupMemberSyncRequestDetail",
|
|
527
|
+
"GroupMemberSyncRequestDetailResponse",
|
|
528
|
+
"GroupMemberSyncResponse",
|
|
529
|
+
"GroupMemberSyncResults",
|
|
530
|
+
"GroupResponse",
|
|
531
|
+
"HouseholdMember",
|
|
532
|
+
"HouseholdMemberRelationship",
|
|
533
|
+
"HouseholdMemberType",
|
|
534
|
+
"HouseholdMembersResponse",
|
|
535
|
+
"HrisConnection",
|
|
536
|
+
"HrisStatusItem",
|
|
537
|
+
"IchraContributionClass",
|
|
538
|
+
"IdpProvider",
|
|
539
|
+
"IncludeCancelled",
|
|
540
|
+
"InternalServerError",
|
|
541
|
+
"Invoice",
|
|
542
|
+
"InvoiceId",
|
|
543
|
+
"InvoicesCursorPagination",
|
|
544
|
+
"Limit",
|
|
545
|
+
"ListWebhookEventDeliveriesResponse",
|
|
546
|
+
"MaritalStatus",
|
|
547
|
+
"Member",
|
|
548
|
+
"MemberAddress",
|
|
549
|
+
"MemberDependentsResponse",
|
|
550
|
+
"MemberDigitalBenefitCardsResponse",
|
|
551
|
+
"MemberEmploymentsResponse",
|
|
552
|
+
"MemberEnrollment",
|
|
553
|
+
"MemberEnrollmentsResponse",
|
|
554
|
+
"MemberId",
|
|
555
|
+
"MemberLegalDependent",
|
|
556
|
+
"MemberListItem",
|
|
557
|
+
"MemberListResponse",
|
|
558
|
+
"MemberQualifyingLifeEvent",
|
|
559
|
+
"MemberQualifyingLifeEventListResponse",
|
|
560
|
+
"MemberResponse",
|
|
561
|
+
"MemberSearch",
|
|
562
|
+
"MemberStatus",
|
|
563
|
+
"MissingEmployeeResolution",
|
|
564
|
+
"NameSuffix",
|
|
565
|
+
"NotFoundError",
|
|
566
|
+
"Offset",
|
|
567
|
+
"Operation",
|
|
568
|
+
"Organization",
|
|
569
|
+
"OrganizationEmployer",
|
|
570
|
+
"OrganizationEmployerListResponse",
|
|
571
|
+
"OrganizationHrisProvider",
|
|
572
|
+
"OrganizationHrisProvidersResponse",
|
|
573
|
+
"OrganizationType",
|
|
574
|
+
"OrganizationsListResponse",
|
|
575
|
+
"Page",
|
|
576
|
+
"Pagination",
|
|
577
|
+
"PayrollAccessSetupStatus",
|
|
578
|
+
"PayrollAccessSetupStatusResponse",
|
|
579
|
+
"PayrollDeductionStatement",
|
|
580
|
+
"PayrollIntegrationEmail",
|
|
581
|
+
"PayrollIntegrationEmailResponse",
|
|
582
|
+
"Plan",
|
|
583
|
+
"PlanListResponse",
|
|
584
|
+
"PlanYearEnrollment",
|
|
585
|
+
"PlanYearEnrollmentElectionStatus",
|
|
586
|
+
"PlanYearEnrollmentListResponse",
|
|
587
|
+
"PlanYearEnrollmentPolicyStatus",
|
|
588
|
+
"PreferredLanguage",
|
|
589
|
+
"ProductCode",
|
|
590
|
+
"QualifyingLifeEventStatus",
|
|
591
|
+
"QualifyingLifeEventType",
|
|
592
|
+
"ReissueEnrollment",
|
|
593
|
+
"ReissueEnrollmentResponse",
|
|
594
|
+
"Relationship",
|
|
595
|
+
"RemainingEmployeeAction",
|
|
596
|
+
"RequestId",
|
|
597
|
+
"ResourceId",
|
|
598
|
+
"ResourceType",
|
|
599
|
+
"Search",
|
|
600
|
+
"SexAtBirth",
|
|
601
|
+
"State",
|
|
602
|
+
"Status",
|
|
603
|
+
"TaxClassification",
|
|
604
|
+
"TerminationRule",
|
|
605
|
+
"TooManyRequestsError",
|
|
606
|
+
"UnauthorizedError",
|
|
607
|
+
"UnprocessableEntityError",
|
|
608
|
+
"UpdateEmployerAddressInput",
|
|
609
|
+
"VitableConnect",
|
|
610
|
+
"VitableConnectEnvironment",
|
|
611
|
+
"WaitingPeriod",
|
|
612
|
+
"WebhookDelivery",
|
|
613
|
+
"WebhookEvent",
|
|
614
|
+
"WebhookEventListResponse",
|
|
615
|
+
"WebhookEventResponse",
|
|
616
|
+
"__version__",
|
|
617
|
+
"auth",
|
|
618
|
+
"employees",
|
|
619
|
+
"employers",
|
|
620
|
+
"enrollments",
|
|
621
|
+
"groups",
|
|
622
|
+
"members",
|
|
623
|
+
"organizations",
|
|
624
|
+
"plans",
|
|
625
|
+
"webhook_events",
|
|
626
|
+
]
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
SDK_DEFAULT_TIMEOUT = 60
|
|
8
|
+
|
|
9
|
+
try:
|
|
10
|
+
import httpx_aiohttp # type: ignore[import-not-found]
|
|
11
|
+
except ImportError:
|
|
12
|
+
|
|
13
|
+
class DefaultAioHttpClient(httpx.AsyncClient): # type: ignore
|
|
14
|
+
def __init__(self, **kwargs: typing.Any) -> None:
|
|
15
|
+
raise RuntimeError(
|
|
16
|
+
"To use the aiohttp client, install the aiohttp extra: pip install vitable-connect[aiohttp]"
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class DefaultAioHttpClient(httpx_aiohttp.HttpxAiohttpClient): # type: ignore
|
|
22
|
+
def __init__(self, **kwargs: typing.Any) -> None:
|
|
23
|
+
kwargs.setdefault("timeout", SDK_DEFAULT_TIMEOUT)
|
|
24
|
+
kwargs.setdefault("follow_redirects", True)
|
|
25
|
+
super().__init__(**kwargs)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class DefaultAsyncHttpxClient(httpx.AsyncClient):
|
|
29
|
+
def __init__(self, **kwargs: typing.Any) -> None:
|
|
30
|
+
kwargs.setdefault("timeout", SDK_DEFAULT_TIMEOUT)
|
|
31
|
+
kwargs.setdefault("follow_redirects", True)
|
|
32
|
+
super().__init__(**kwargs)
|