pluggy-sdk 1.0.0.post34__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.
- pluggy_sdk/__init__.py +200 -0
- pluggy_sdk/api/__init__.py +25 -0
- pluggy_sdk/api/account_api.py +588 -0
- pluggy_sdk/api/acquirer_anticipation_api.py +664 -0
- pluggy_sdk/api/acquirer_receivable_api.py +664 -0
- pluggy_sdk/api/acquirer_sale_api.py +664 -0
- pluggy_sdk/api/auth_api.py +605 -0
- pluggy_sdk/api/benefit_api.py +567 -0
- pluggy_sdk/api/bill_api.py +567 -0
- pluggy_sdk/api/bulk_payment_api.py +1127 -0
- pluggy_sdk/api/category_api.py +1096 -0
- pluggy_sdk/api/connector_api.py +979 -0
- pluggy_sdk/api/consent_api.py +576 -0
- pluggy_sdk/api/identity_api.py +581 -0
- pluggy_sdk/api/income_report_api.py +311 -0
- pluggy_sdk/api/investment_api.py +918 -0
- pluggy_sdk/api/items_api.py +1456 -0
- pluggy_sdk/api/loan_api.py +567 -0
- pluggy_sdk/api/payment_customer_api.py +1414 -0
- pluggy_sdk/api/payment_intent_api.py +842 -0
- pluggy_sdk/api/payment_receipts_api.py +842 -0
- pluggy_sdk/api/payment_recipient_api.py +1997 -0
- pluggy_sdk/api/payment_request_api.py +2739 -0
- pluggy_sdk/api/payment_schedule_api.py +823 -0
- pluggy_sdk/api/payroll_loan_api.py +561 -0
- pluggy_sdk/api/portfolio_yield_api.py +580 -0
- pluggy_sdk/api/smart_account_api.py +1704 -0
- pluggy_sdk/api/smart_account_transfer_api.py +610 -0
- pluggy_sdk/api/smart_transfer_api.py +1406 -0
- pluggy_sdk/api/transaction_api.py +963 -0
- pluggy_sdk/api/webhook_api.py +1406 -0
- pluggy_sdk/api_client.py +798 -0
- pluggy_sdk/api_response.py +21 -0
- pluggy_sdk/configuration.py +596 -0
- pluggy_sdk/exceptions.py +217 -0
- pluggy_sdk/models/__init__.py +163 -0
- pluggy_sdk/models/account.py +134 -0
- pluggy_sdk/models/accounts_list200_response.py +102 -0
- pluggy_sdk/models/acquirer_anticipation.py +117 -0
- pluggy_sdk/models/acquirer_anticipation_data.py +101 -0
- pluggy_sdk/models/acquirer_data.py +113 -0
- pluggy_sdk/models/acquirer_receivable.py +143 -0
- pluggy_sdk/models/acquirer_receivable_data.py +108 -0
- pluggy_sdk/models/acquirer_receivable_data_establishment.py +96 -0
- pluggy_sdk/models/acquirer_receivable_destination_account.py +92 -0
- pluggy_sdk/models/acquirer_receivable_related_sale.py +99 -0
- pluggy_sdk/models/acquirer_sale.py +171 -0
- pluggy_sdk/models/acquirer_sale_data.py +150 -0
- pluggy_sdk/models/acquirer_sale_installment.py +93 -0
- pluggy_sdk/models/acquirer_sale_installment_data.py +95 -0
- pluggy_sdk/models/address.py +110 -0
- pluggy_sdk/models/aggregated_portfolio.py +120 -0
- pluggy_sdk/models/aggregated_portfolio_response.py +102 -0
- pluggy_sdk/models/asset_distribution.py +88 -0
- pluggy_sdk/models/auth_request.py +90 -0
- pluggy_sdk/models/auth_response.py +88 -0
- pluggy_sdk/models/bank_data.py +92 -0
- pluggy_sdk/models/benefit_loan.py +121 -0
- pluggy_sdk/models/benefit_loan_client.py +102 -0
- pluggy_sdk/models/benefit_response.py +118 -0
- pluggy_sdk/models/benefit_response_paying_institution.py +94 -0
- pluggy_sdk/models/benefits_list200_response.py +102 -0
- pluggy_sdk/models/bill.py +109 -0
- pluggy_sdk/models/bill_finance_charge.py +103 -0
- pluggy_sdk/models/bills_list200_response.py +102 -0
- pluggy_sdk/models/boleto.py +121 -0
- pluggy_sdk/models/boleto_payer.py +90 -0
- pluggy_sdk/models/boleto_recipient.py +90 -0
- pluggy_sdk/models/bulk_payment.py +128 -0
- pluggy_sdk/models/bulk_payments_list200_response.py +102 -0
- pluggy_sdk/models/category.py +96 -0
- pluggy_sdk/models/client_category_rule.py +98 -0
- pluggy_sdk/models/company.py +90 -0
- pluggy_sdk/models/connect_token_request.py +94 -0
- pluggy_sdk/models/connect_token_response.py +88 -0
- pluggy_sdk/models/connector.py +145 -0
- pluggy_sdk/models/connector_credential.py +121 -0
- pluggy_sdk/models/connector_health.py +96 -0
- pluggy_sdk/models/connector_health_details.py +90 -0
- pluggy_sdk/models/connector_list_response.py +102 -0
- pluggy_sdk/models/connector_user_action.py +93 -0
- pluggy_sdk/models/consent.py +120 -0
- pluggy_sdk/models/create_boleto_payment_request.py +98 -0
- pluggy_sdk/models/create_bulk_payment.py +96 -0
- pluggy_sdk/models/create_client_category_rule.py +96 -0
- pluggy_sdk/models/create_item.py +115 -0
- pluggy_sdk/models/create_item_parameters.py +144 -0
- pluggy_sdk/models/create_or_update_payment_customer.py +105 -0
- pluggy_sdk/models/create_payment_customer_request_body.py +103 -0
- pluggy_sdk/models/create_payment_intent.py +110 -0
- pluggy_sdk/models/create_payment_recipient.py +104 -0
- pluggy_sdk/models/create_payment_request.py +115 -0
- pluggy_sdk/models/create_payment_request_schedule.py +189 -0
- pluggy_sdk/models/create_pix_qr_payment_request.py +96 -0
- pluggy_sdk/models/create_smart_account_request.py +104 -0
- pluggy_sdk/models/create_smart_account_transfer_request.py +92 -0
- pluggy_sdk/models/create_smart_transfer_payment.py +96 -0
- pluggy_sdk/models/create_smart_transfer_preauthorization.py +104 -0
- pluggy_sdk/models/create_webhook.py +99 -0
- pluggy_sdk/models/credential_select_option.py +90 -0
- pluggy_sdk/models/credit_card_metadata.py +101 -0
- pluggy_sdk/models/credit_data.py +127 -0
- pluggy_sdk/models/custom.py +100 -0
- pluggy_sdk/models/daily.py +101 -0
- pluggy_sdk/models/document.py +100 -0
- pluggy_sdk/models/email.py +100 -0
- pluggy_sdk/models/global_error_response.py +94 -0
- pluggy_sdk/models/i_count_response.py +88 -0
- pluggy_sdk/models/identity_relation.py +102 -0
- pluggy_sdk/models/identity_response.py +173 -0
- pluggy_sdk/models/identity_response_financial_relationships.py +111 -0
- pluggy_sdk/models/identity_response_financial_relationships_accounts_inner.py +98 -0
- pluggy_sdk/models/identity_response_financial_relationships_procurators_inner.py +101 -0
- pluggy_sdk/models/identity_response_qualifications.py +112 -0
- pluggy_sdk/models/identity_response_qualifications_informed_income.py +100 -0
- pluggy_sdk/models/identity_response_qualifications_informed_patrimony.py +90 -0
- pluggy_sdk/models/income_report.py +90 -0
- pluggy_sdk/models/income_reports_response.py +102 -0
- pluggy_sdk/models/investment.py +192 -0
- pluggy_sdk/models/investment_expenses.py +108 -0
- pluggy_sdk/models/investment_metadata.py +100 -0
- pluggy_sdk/models/investment_transaction.py +124 -0
- pluggy_sdk/models/investments_list200_response.py +102 -0
- pluggy_sdk/models/item.py +150 -0
- pluggy_sdk/models/item_creation_error_response.py +102 -0
- pluggy_sdk/models/item_error.py +94 -0
- pluggy_sdk/models/item_options.py +94 -0
- pluggy_sdk/models/loan.py +199 -0
- pluggy_sdk/models/loan_contracted_fee.py +118 -0
- pluggy_sdk/models/loan_contracted_finance_charge.py +92 -0
- pluggy_sdk/models/loan_installment_balloon_payment.py +95 -0
- pluggy_sdk/models/loan_installment_balloon_payment_amount.py +90 -0
- pluggy_sdk/models/loan_installments.py +130 -0
- pluggy_sdk/models/loan_interest_rate.py +136 -0
- pluggy_sdk/models/loan_payment_release.py +103 -0
- pluggy_sdk/models/loan_payment_release_over_parcel.py +106 -0
- pluggy_sdk/models/loan_payment_release_over_parcel_charge.py +92 -0
- pluggy_sdk/models/loan_payment_release_over_parcel_fee.py +92 -0
- pluggy_sdk/models/loan_payments.py +98 -0
- pluggy_sdk/models/loan_warranty.py +94 -0
- pluggy_sdk/models/loans_list200_response.py +102 -0
- pluggy_sdk/models/merchant.py +96 -0
- pluggy_sdk/models/monthly.py +103 -0
- pluggy_sdk/models/monthly_portfolio.py +100 -0
- pluggy_sdk/models/monthly_portfolio_response.py +102 -0
- pluggy_sdk/models/not_authenticated_response.py +90 -0
- pluggy_sdk/models/page_response_acquirer_anticipations.py +102 -0
- pluggy_sdk/models/page_response_acquirer_receivables.py +102 -0
- pluggy_sdk/models/page_response_acquirer_sales.py +102 -0
- pluggy_sdk/models/page_response_category_rules.py +102 -0
- pluggy_sdk/models/page_response_consents.py +102 -0
- pluggy_sdk/models/page_response_investment_transactions.py +102 -0
- pluggy_sdk/models/page_response_transactions.py +102 -0
- pluggy_sdk/models/parameter_validation_error.py +92 -0
- pluggy_sdk/models/parameter_validation_response.py +98 -0
- pluggy_sdk/models/payment_customer.py +105 -0
- pluggy_sdk/models/payment_customers_list200_response.py +102 -0
- pluggy_sdk/models/payment_data.py +111 -0
- pluggy_sdk/models/payment_data_boleto_metadata.py +98 -0
- pluggy_sdk/models/payment_data_participant.py +102 -0
- pluggy_sdk/models/payment_institution.py +101 -0
- pluggy_sdk/models/payment_intent.py +145 -0
- pluggy_sdk/models/payment_intent_parameter.py +90 -0
- pluggy_sdk/models/payment_intents_list200_response.py +102 -0
- pluggy_sdk/models/payment_receipt.py +120 -0
- pluggy_sdk/models/payment_receipt_bank_account.py +92 -0
- pluggy_sdk/models/payment_receipt_person.py +96 -0
- pluggy_sdk/models/payment_recipient.py +110 -0
- pluggy_sdk/models/payment_recipient_account.py +92 -0
- pluggy_sdk/models/payment_recipients_institution_list200_response.py +102 -0
- pluggy_sdk/models/payment_recipients_list200_response.py +102 -0
- pluggy_sdk/models/payment_request.py +132 -0
- pluggy_sdk/models/payment_request_callback_urls.py +92 -0
- pluggy_sdk/models/payment_request_receipt_list200_response.py +102 -0
- pluggy_sdk/models/payment_request_schedule.py +183 -0
- pluggy_sdk/models/payment_requests_list200_response.py +102 -0
- pluggy_sdk/models/payment_schedules_list200_response.py +102 -0
- pluggy_sdk/models/payroll_loan.py +121 -0
- pluggy_sdk/models/payroll_loan_client.py +102 -0
- pluggy_sdk/models/payroll_loan_response.py +125 -0
- pluggy_sdk/models/payroll_loan_response_client.py +102 -0
- pluggy_sdk/models/payroll_loans_list200_response.py +102 -0
- pluggy_sdk/models/percentage_over_index.py +90 -0
- pluggy_sdk/models/phone_number.py +100 -0
- pluggy_sdk/models/pix_data.py +90 -0
- pluggy_sdk/models/schedule_payment.py +102 -0
- pluggy_sdk/models/schedule_type_custom.py +100 -0
- pluggy_sdk/models/schedule_type_daily.py +101 -0
- pluggy_sdk/models/schedule_type_monthly.py +103 -0
- pluggy_sdk/models/schedule_type_single.py +98 -0
- pluggy_sdk/models/schedule_type_weekly.py +110 -0
- pluggy_sdk/models/single.py +98 -0
- pluggy_sdk/models/smart_account.py +107 -0
- pluggy_sdk/models/smart_account_address.py +112 -0
- pluggy_sdk/models/smart_account_balance.py +95 -0
- pluggy_sdk/models/smart_account_transfer.py +123 -0
- pluggy_sdk/models/smart_accounts_list200_response.py +102 -0
- pluggy_sdk/models/smart_tranfers_preauthorizations_list200_response.py +102 -0
- pluggy_sdk/models/smart_transfer_callback_urls.py +90 -0
- pluggy_sdk/models/smart_transfer_payment.py +116 -0
- pluggy_sdk/models/smart_transfer_preauthorization.py +128 -0
- pluggy_sdk/models/smart_transfer_preauthorization_parameter.py +90 -0
- pluggy_sdk/models/status_detail.py +127 -0
- pluggy_sdk/models/status_detail_product.py +101 -0
- pluggy_sdk/models/status_detail_product_warning.py +92 -0
- pluggy_sdk/models/transaction.py +141 -0
- pluggy_sdk/models/update_item.py +109 -0
- pluggy_sdk/models/update_item_parameters.py +144 -0
- pluggy_sdk/models/update_payment_recipient.py +102 -0
- pluggy_sdk/models/update_payment_request.py +102 -0
- pluggy_sdk/models/update_transaction.py +88 -0
- pluggy_sdk/models/webhook.py +106 -0
- pluggy_sdk/models/webhook_creation_error_response.py +90 -0
- pluggy_sdk/models/webhooks_list200_response.py +102 -0
- pluggy_sdk/models/weekly.py +110 -0
- pluggy_sdk/py.typed +0 -0
- pluggy_sdk/rest.py +258 -0
- pluggy_sdk-1.0.0.post34.dist-info/METADATA +373 -0
- pluggy_sdk-1.0.0.post34.dist-info/RECORD +221 -0
- pluggy_sdk-1.0.0.post34.dist-info/WHEEL +5 -0
- pluggy_sdk-1.0.0.post34.dist-info/top_level.txt +1 -0
@@ -0,0 +1,605 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Pluggy API
|
5
|
+
|
6
|
+
Pluggy's main API to review data and execute connectors
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: hello@pluggy.ai
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
import warnings
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
|
+
from typing_extensions import Annotated
|
19
|
+
|
20
|
+
from pydantic import Field
|
21
|
+
from typing import Optional
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from pluggy_sdk.models.auth_request import AuthRequest
|
24
|
+
from pluggy_sdk.models.auth_response import AuthResponse
|
25
|
+
from pluggy_sdk.models.connect_token_request import ConnectTokenRequest
|
26
|
+
from pluggy_sdk.models.connect_token_response import ConnectTokenResponse
|
27
|
+
|
28
|
+
from pluggy_sdk.api_client import ApiClient, RequestSerialized
|
29
|
+
from pluggy_sdk.api_response import ApiResponse
|
30
|
+
from pluggy_sdk.rest import RESTResponseType
|
31
|
+
|
32
|
+
|
33
|
+
class AuthApi:
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
35
|
+
Ref: https://openapi-generator.tech
|
36
|
+
|
37
|
+
Do not edit the class manually.
|
38
|
+
"""
|
39
|
+
|
40
|
+
def __init__(self, api_client=None) -> None:
|
41
|
+
if api_client is None:
|
42
|
+
api_client = ApiClient.get_default()
|
43
|
+
self.api_client = api_client
|
44
|
+
|
45
|
+
|
46
|
+
@validate_call
|
47
|
+
def auth_create(
|
48
|
+
self,
|
49
|
+
auth_request: AuthRequest,
|
50
|
+
_request_timeout: Union[
|
51
|
+
None,
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
53
|
+
Tuple[
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
55
|
+
Annotated[StrictFloat, Field(gt=0)]
|
56
|
+
]
|
57
|
+
] = None,
|
58
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
59
|
+
_content_type: Optional[StrictStr] = None,
|
60
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
61
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
62
|
+
) -> AuthResponse:
|
63
|
+
"""Create API Key
|
64
|
+
|
65
|
+
Validate clientId and clientSecret and return an API Key
|
66
|
+
|
67
|
+
:param auth_request: (required)
|
68
|
+
:type auth_request: AuthRequest
|
69
|
+
:param _request_timeout: timeout setting for this request. If one
|
70
|
+
number provided, it will be total request
|
71
|
+
timeout. It can also be a pair (tuple) of
|
72
|
+
(connection, read) timeouts.
|
73
|
+
:type _request_timeout: int, tuple(int, int), optional
|
74
|
+
:param _request_auth: set to override the auth_settings for an a single
|
75
|
+
request; this effectively ignores the
|
76
|
+
authentication in the spec for a single request.
|
77
|
+
:type _request_auth: dict, optional
|
78
|
+
:param _content_type: force content-type for the request.
|
79
|
+
:type _content_type: str, Optional
|
80
|
+
:param _headers: set to override the headers for a single
|
81
|
+
request; this effectively ignores the headers
|
82
|
+
in the spec for a single request.
|
83
|
+
:type _headers: dict, optional
|
84
|
+
:param _host_index: set to override the host_index for a single
|
85
|
+
request; this effectively ignores the host_index
|
86
|
+
in the spec for a single request.
|
87
|
+
:type _host_index: int, optional
|
88
|
+
:return: Returns the result object.
|
89
|
+
""" # noqa: E501
|
90
|
+
|
91
|
+
_param = self._auth_create_serialize(
|
92
|
+
auth_request=auth_request,
|
93
|
+
_request_auth=_request_auth,
|
94
|
+
_content_type=_content_type,
|
95
|
+
_headers=_headers,
|
96
|
+
_host_index=_host_index
|
97
|
+
)
|
98
|
+
|
99
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
100
|
+
'200': "AuthResponse",
|
101
|
+
'401': "GlobalErrorResponse",
|
102
|
+
'500': "GlobalErrorResponse",
|
103
|
+
}
|
104
|
+
response_data = self.api_client.call_api(
|
105
|
+
*_param,
|
106
|
+
_request_timeout=_request_timeout
|
107
|
+
)
|
108
|
+
response_data.read()
|
109
|
+
return self.api_client.response_deserialize(
|
110
|
+
response_data=response_data,
|
111
|
+
response_types_map=_response_types_map,
|
112
|
+
).data
|
113
|
+
|
114
|
+
|
115
|
+
@validate_call
|
116
|
+
def auth_create_with_http_info(
|
117
|
+
self,
|
118
|
+
auth_request: AuthRequest,
|
119
|
+
_request_timeout: Union[
|
120
|
+
None,
|
121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
122
|
+
Tuple[
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
124
|
+
Annotated[StrictFloat, Field(gt=0)]
|
125
|
+
]
|
126
|
+
] = None,
|
127
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
128
|
+
_content_type: Optional[StrictStr] = None,
|
129
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
130
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
131
|
+
) -> ApiResponse[AuthResponse]:
|
132
|
+
"""Create API Key
|
133
|
+
|
134
|
+
Validate clientId and clientSecret and return an API Key
|
135
|
+
|
136
|
+
:param auth_request: (required)
|
137
|
+
:type auth_request: AuthRequest
|
138
|
+
:param _request_timeout: timeout setting for this request. If one
|
139
|
+
number provided, it will be total request
|
140
|
+
timeout. It can also be a pair (tuple) of
|
141
|
+
(connection, read) timeouts.
|
142
|
+
:type _request_timeout: int, tuple(int, int), optional
|
143
|
+
:param _request_auth: set to override the auth_settings for an a single
|
144
|
+
request; this effectively ignores the
|
145
|
+
authentication in the spec for a single request.
|
146
|
+
:type _request_auth: dict, optional
|
147
|
+
:param _content_type: force content-type for the request.
|
148
|
+
:type _content_type: str, Optional
|
149
|
+
:param _headers: set to override the headers for a single
|
150
|
+
request; this effectively ignores the headers
|
151
|
+
in the spec for a single request.
|
152
|
+
:type _headers: dict, optional
|
153
|
+
:param _host_index: set to override the host_index for a single
|
154
|
+
request; this effectively ignores the host_index
|
155
|
+
in the spec for a single request.
|
156
|
+
:type _host_index: int, optional
|
157
|
+
:return: Returns the result object.
|
158
|
+
""" # noqa: E501
|
159
|
+
|
160
|
+
_param = self._auth_create_serialize(
|
161
|
+
auth_request=auth_request,
|
162
|
+
_request_auth=_request_auth,
|
163
|
+
_content_type=_content_type,
|
164
|
+
_headers=_headers,
|
165
|
+
_host_index=_host_index
|
166
|
+
)
|
167
|
+
|
168
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
169
|
+
'200': "AuthResponse",
|
170
|
+
'401': "GlobalErrorResponse",
|
171
|
+
'500': "GlobalErrorResponse",
|
172
|
+
}
|
173
|
+
response_data = self.api_client.call_api(
|
174
|
+
*_param,
|
175
|
+
_request_timeout=_request_timeout
|
176
|
+
)
|
177
|
+
response_data.read()
|
178
|
+
return self.api_client.response_deserialize(
|
179
|
+
response_data=response_data,
|
180
|
+
response_types_map=_response_types_map,
|
181
|
+
)
|
182
|
+
|
183
|
+
|
184
|
+
@validate_call
|
185
|
+
def auth_create_without_preload_content(
|
186
|
+
self,
|
187
|
+
auth_request: AuthRequest,
|
188
|
+
_request_timeout: Union[
|
189
|
+
None,
|
190
|
+
Annotated[StrictFloat, Field(gt=0)],
|
191
|
+
Tuple[
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
193
|
+
Annotated[StrictFloat, Field(gt=0)]
|
194
|
+
]
|
195
|
+
] = None,
|
196
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
197
|
+
_content_type: Optional[StrictStr] = None,
|
198
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
199
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
200
|
+
) -> RESTResponseType:
|
201
|
+
"""Create API Key
|
202
|
+
|
203
|
+
Validate clientId and clientSecret and return an API Key
|
204
|
+
|
205
|
+
:param auth_request: (required)
|
206
|
+
:type auth_request: AuthRequest
|
207
|
+
:param _request_timeout: timeout setting for this request. If one
|
208
|
+
number provided, it will be total request
|
209
|
+
timeout. It can also be a pair (tuple) of
|
210
|
+
(connection, read) timeouts.
|
211
|
+
:type _request_timeout: int, tuple(int, int), optional
|
212
|
+
:param _request_auth: set to override the auth_settings for an a single
|
213
|
+
request; this effectively ignores the
|
214
|
+
authentication in the spec for a single request.
|
215
|
+
:type _request_auth: dict, optional
|
216
|
+
:param _content_type: force content-type for the request.
|
217
|
+
:type _content_type: str, Optional
|
218
|
+
:param _headers: set to override the headers for a single
|
219
|
+
request; this effectively ignores the headers
|
220
|
+
in the spec for a single request.
|
221
|
+
:type _headers: dict, optional
|
222
|
+
:param _host_index: set to override the host_index for a single
|
223
|
+
request; this effectively ignores the host_index
|
224
|
+
in the spec for a single request.
|
225
|
+
:type _host_index: int, optional
|
226
|
+
:return: Returns the result object.
|
227
|
+
""" # noqa: E501
|
228
|
+
|
229
|
+
_param = self._auth_create_serialize(
|
230
|
+
auth_request=auth_request,
|
231
|
+
_request_auth=_request_auth,
|
232
|
+
_content_type=_content_type,
|
233
|
+
_headers=_headers,
|
234
|
+
_host_index=_host_index
|
235
|
+
)
|
236
|
+
|
237
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
238
|
+
'200': "AuthResponse",
|
239
|
+
'401': "GlobalErrorResponse",
|
240
|
+
'500': "GlobalErrorResponse",
|
241
|
+
}
|
242
|
+
response_data = self.api_client.call_api(
|
243
|
+
*_param,
|
244
|
+
_request_timeout=_request_timeout
|
245
|
+
)
|
246
|
+
return response_data.response
|
247
|
+
|
248
|
+
|
249
|
+
def _auth_create_serialize(
|
250
|
+
self,
|
251
|
+
auth_request,
|
252
|
+
_request_auth,
|
253
|
+
_content_type,
|
254
|
+
_headers,
|
255
|
+
_host_index,
|
256
|
+
) -> RequestSerialized:
|
257
|
+
|
258
|
+
_host = None
|
259
|
+
|
260
|
+
_collection_formats: Dict[str, str] = {
|
261
|
+
}
|
262
|
+
|
263
|
+
_path_params: Dict[str, str] = {}
|
264
|
+
_query_params: List[Tuple[str, str]] = []
|
265
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
266
|
+
_form_params: List[Tuple[str, str]] = []
|
267
|
+
_files: Dict[
|
268
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
269
|
+
] = {}
|
270
|
+
_body_params: Optional[bytes] = None
|
271
|
+
|
272
|
+
# process the path parameters
|
273
|
+
# process the query parameters
|
274
|
+
# process the header parameters
|
275
|
+
# process the form parameters
|
276
|
+
# process the body parameter
|
277
|
+
if auth_request is not None:
|
278
|
+
_body_params = auth_request
|
279
|
+
|
280
|
+
|
281
|
+
# set the HTTP header `Accept`
|
282
|
+
if 'Accept' not in _header_params:
|
283
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
284
|
+
[
|
285
|
+
'application/json'
|
286
|
+
]
|
287
|
+
)
|
288
|
+
|
289
|
+
# set the HTTP header `Content-Type`
|
290
|
+
if _content_type:
|
291
|
+
_header_params['Content-Type'] = _content_type
|
292
|
+
else:
|
293
|
+
_default_content_type = (
|
294
|
+
self.api_client.select_header_content_type(
|
295
|
+
[
|
296
|
+
'application/json'
|
297
|
+
]
|
298
|
+
)
|
299
|
+
)
|
300
|
+
if _default_content_type is not None:
|
301
|
+
_header_params['Content-Type'] = _default_content_type
|
302
|
+
|
303
|
+
# authentication setting
|
304
|
+
_auth_settings: List[str] = [
|
305
|
+
]
|
306
|
+
|
307
|
+
return self.api_client.param_serialize(
|
308
|
+
method='POST',
|
309
|
+
resource_path='/auth',
|
310
|
+
path_params=_path_params,
|
311
|
+
query_params=_query_params,
|
312
|
+
header_params=_header_params,
|
313
|
+
body=_body_params,
|
314
|
+
post_params=_form_params,
|
315
|
+
files=_files,
|
316
|
+
auth_settings=_auth_settings,
|
317
|
+
collection_formats=_collection_formats,
|
318
|
+
_host=_host,
|
319
|
+
_request_auth=_request_auth
|
320
|
+
)
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
@validate_call
|
326
|
+
def connect_token_create(
|
327
|
+
self,
|
328
|
+
connect_token_request: Annotated[Optional[ConnectTokenRequest], Field(description="Create connect token payload")] = None,
|
329
|
+
_request_timeout: Union[
|
330
|
+
None,
|
331
|
+
Annotated[StrictFloat, Field(gt=0)],
|
332
|
+
Tuple[
|
333
|
+
Annotated[StrictFloat, Field(gt=0)],
|
334
|
+
Annotated[StrictFloat, Field(gt=0)]
|
335
|
+
]
|
336
|
+
] = None,
|
337
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
338
|
+
_content_type: Optional[StrictStr] = None,
|
339
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
340
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
341
|
+
) -> ConnectTokenResponse:
|
342
|
+
"""Create Connect Token
|
343
|
+
|
344
|
+
Creates a connect token
|
345
|
+
|
346
|
+
:param connect_token_request: Create connect token payload
|
347
|
+
:type connect_token_request: ConnectTokenRequest
|
348
|
+
:param _request_timeout: timeout setting for this request. If one
|
349
|
+
number provided, it will be total request
|
350
|
+
timeout. It can also be a pair (tuple) of
|
351
|
+
(connection, read) timeouts.
|
352
|
+
:type _request_timeout: int, tuple(int, int), optional
|
353
|
+
:param _request_auth: set to override the auth_settings for an a single
|
354
|
+
request; this effectively ignores the
|
355
|
+
authentication in the spec for a single request.
|
356
|
+
:type _request_auth: dict, optional
|
357
|
+
:param _content_type: force content-type for the request.
|
358
|
+
:type _content_type: str, Optional
|
359
|
+
:param _headers: set to override the headers for a single
|
360
|
+
request; this effectively ignores the headers
|
361
|
+
in the spec for a single request.
|
362
|
+
:type _headers: dict, optional
|
363
|
+
:param _host_index: set to override the host_index for a single
|
364
|
+
request; this effectively ignores the host_index
|
365
|
+
in the spec for a single request.
|
366
|
+
:type _host_index: int, optional
|
367
|
+
:return: Returns the result object.
|
368
|
+
""" # noqa: E501
|
369
|
+
|
370
|
+
_param = self._connect_token_create_serialize(
|
371
|
+
connect_token_request=connect_token_request,
|
372
|
+
_request_auth=_request_auth,
|
373
|
+
_content_type=_content_type,
|
374
|
+
_headers=_headers,
|
375
|
+
_host_index=_host_index
|
376
|
+
)
|
377
|
+
|
378
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
379
|
+
'200': "ConnectTokenResponse",
|
380
|
+
'403': "NotAuthenticatedResponse",
|
381
|
+
'404': "GlobalErrorResponse",
|
382
|
+
'500': "GlobalErrorResponse",
|
383
|
+
}
|
384
|
+
response_data = self.api_client.call_api(
|
385
|
+
*_param,
|
386
|
+
_request_timeout=_request_timeout
|
387
|
+
)
|
388
|
+
response_data.read()
|
389
|
+
return self.api_client.response_deserialize(
|
390
|
+
response_data=response_data,
|
391
|
+
response_types_map=_response_types_map,
|
392
|
+
).data
|
393
|
+
|
394
|
+
|
395
|
+
@validate_call
|
396
|
+
def connect_token_create_with_http_info(
|
397
|
+
self,
|
398
|
+
connect_token_request: Annotated[Optional[ConnectTokenRequest], Field(description="Create connect token payload")] = None,
|
399
|
+
_request_timeout: Union[
|
400
|
+
None,
|
401
|
+
Annotated[StrictFloat, Field(gt=0)],
|
402
|
+
Tuple[
|
403
|
+
Annotated[StrictFloat, Field(gt=0)],
|
404
|
+
Annotated[StrictFloat, Field(gt=0)]
|
405
|
+
]
|
406
|
+
] = None,
|
407
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
408
|
+
_content_type: Optional[StrictStr] = None,
|
409
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
410
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
411
|
+
) -> ApiResponse[ConnectTokenResponse]:
|
412
|
+
"""Create Connect Token
|
413
|
+
|
414
|
+
Creates a connect token
|
415
|
+
|
416
|
+
:param connect_token_request: Create connect token payload
|
417
|
+
:type connect_token_request: ConnectTokenRequest
|
418
|
+
:param _request_timeout: timeout setting for this request. If one
|
419
|
+
number provided, it will be total request
|
420
|
+
timeout. It can also be a pair (tuple) of
|
421
|
+
(connection, read) timeouts.
|
422
|
+
:type _request_timeout: int, tuple(int, int), optional
|
423
|
+
:param _request_auth: set to override the auth_settings for an a single
|
424
|
+
request; this effectively ignores the
|
425
|
+
authentication in the spec for a single request.
|
426
|
+
:type _request_auth: dict, optional
|
427
|
+
:param _content_type: force content-type for the request.
|
428
|
+
:type _content_type: str, Optional
|
429
|
+
:param _headers: set to override the headers for a single
|
430
|
+
request; this effectively ignores the headers
|
431
|
+
in the spec for a single request.
|
432
|
+
:type _headers: dict, optional
|
433
|
+
:param _host_index: set to override the host_index for a single
|
434
|
+
request; this effectively ignores the host_index
|
435
|
+
in the spec for a single request.
|
436
|
+
:type _host_index: int, optional
|
437
|
+
:return: Returns the result object.
|
438
|
+
""" # noqa: E501
|
439
|
+
|
440
|
+
_param = self._connect_token_create_serialize(
|
441
|
+
connect_token_request=connect_token_request,
|
442
|
+
_request_auth=_request_auth,
|
443
|
+
_content_type=_content_type,
|
444
|
+
_headers=_headers,
|
445
|
+
_host_index=_host_index
|
446
|
+
)
|
447
|
+
|
448
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
449
|
+
'200': "ConnectTokenResponse",
|
450
|
+
'403': "NotAuthenticatedResponse",
|
451
|
+
'404': "GlobalErrorResponse",
|
452
|
+
'500': "GlobalErrorResponse",
|
453
|
+
}
|
454
|
+
response_data = self.api_client.call_api(
|
455
|
+
*_param,
|
456
|
+
_request_timeout=_request_timeout
|
457
|
+
)
|
458
|
+
response_data.read()
|
459
|
+
return self.api_client.response_deserialize(
|
460
|
+
response_data=response_data,
|
461
|
+
response_types_map=_response_types_map,
|
462
|
+
)
|
463
|
+
|
464
|
+
|
465
|
+
@validate_call
|
466
|
+
def connect_token_create_without_preload_content(
|
467
|
+
self,
|
468
|
+
connect_token_request: Annotated[Optional[ConnectTokenRequest], Field(description="Create connect token payload")] = None,
|
469
|
+
_request_timeout: Union[
|
470
|
+
None,
|
471
|
+
Annotated[StrictFloat, Field(gt=0)],
|
472
|
+
Tuple[
|
473
|
+
Annotated[StrictFloat, Field(gt=0)],
|
474
|
+
Annotated[StrictFloat, Field(gt=0)]
|
475
|
+
]
|
476
|
+
] = None,
|
477
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
478
|
+
_content_type: Optional[StrictStr] = None,
|
479
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
480
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
481
|
+
) -> RESTResponseType:
|
482
|
+
"""Create Connect Token
|
483
|
+
|
484
|
+
Creates a connect token
|
485
|
+
|
486
|
+
:param connect_token_request: Create connect token payload
|
487
|
+
:type connect_token_request: ConnectTokenRequest
|
488
|
+
:param _request_timeout: timeout setting for this request. If one
|
489
|
+
number provided, it will be total request
|
490
|
+
timeout. It can also be a pair (tuple) of
|
491
|
+
(connection, read) timeouts.
|
492
|
+
:type _request_timeout: int, tuple(int, int), optional
|
493
|
+
:param _request_auth: set to override the auth_settings for an a single
|
494
|
+
request; this effectively ignores the
|
495
|
+
authentication in the spec for a single request.
|
496
|
+
:type _request_auth: dict, optional
|
497
|
+
:param _content_type: force content-type for the request.
|
498
|
+
:type _content_type: str, Optional
|
499
|
+
:param _headers: set to override the headers for a single
|
500
|
+
request; this effectively ignores the headers
|
501
|
+
in the spec for a single request.
|
502
|
+
:type _headers: dict, optional
|
503
|
+
:param _host_index: set to override the host_index for a single
|
504
|
+
request; this effectively ignores the host_index
|
505
|
+
in the spec for a single request.
|
506
|
+
:type _host_index: int, optional
|
507
|
+
:return: Returns the result object.
|
508
|
+
""" # noqa: E501
|
509
|
+
|
510
|
+
_param = self._connect_token_create_serialize(
|
511
|
+
connect_token_request=connect_token_request,
|
512
|
+
_request_auth=_request_auth,
|
513
|
+
_content_type=_content_type,
|
514
|
+
_headers=_headers,
|
515
|
+
_host_index=_host_index
|
516
|
+
)
|
517
|
+
|
518
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
519
|
+
'200': "ConnectTokenResponse",
|
520
|
+
'403': "NotAuthenticatedResponse",
|
521
|
+
'404': "GlobalErrorResponse",
|
522
|
+
'500': "GlobalErrorResponse",
|
523
|
+
}
|
524
|
+
response_data = self.api_client.call_api(
|
525
|
+
*_param,
|
526
|
+
_request_timeout=_request_timeout
|
527
|
+
)
|
528
|
+
return response_data.response
|
529
|
+
|
530
|
+
|
531
|
+
def _connect_token_create_serialize(
|
532
|
+
self,
|
533
|
+
connect_token_request,
|
534
|
+
_request_auth,
|
535
|
+
_content_type,
|
536
|
+
_headers,
|
537
|
+
_host_index,
|
538
|
+
) -> RequestSerialized:
|
539
|
+
|
540
|
+
_host = None
|
541
|
+
|
542
|
+
_collection_formats: Dict[str, str] = {
|
543
|
+
}
|
544
|
+
|
545
|
+
_path_params: Dict[str, str] = {}
|
546
|
+
_query_params: List[Tuple[str, str]] = []
|
547
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
548
|
+
_form_params: List[Tuple[str, str]] = []
|
549
|
+
_files: Dict[
|
550
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
551
|
+
] = {}
|
552
|
+
_body_params: Optional[bytes] = None
|
553
|
+
|
554
|
+
# process the path parameters
|
555
|
+
# process the query parameters
|
556
|
+
# process the header parameters
|
557
|
+
# process the form parameters
|
558
|
+
# process the body parameter
|
559
|
+
if connect_token_request is not None:
|
560
|
+
_body_params = connect_token_request
|
561
|
+
|
562
|
+
|
563
|
+
# set the HTTP header `Accept`
|
564
|
+
if 'Accept' not in _header_params:
|
565
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
566
|
+
[
|
567
|
+
'application/json'
|
568
|
+
]
|
569
|
+
)
|
570
|
+
|
571
|
+
# set the HTTP header `Content-Type`
|
572
|
+
if _content_type:
|
573
|
+
_header_params['Content-Type'] = _content_type
|
574
|
+
else:
|
575
|
+
_default_content_type = (
|
576
|
+
self.api_client.select_header_content_type(
|
577
|
+
[
|
578
|
+
'application/json'
|
579
|
+
]
|
580
|
+
)
|
581
|
+
)
|
582
|
+
if _default_content_type is not None:
|
583
|
+
_header_params['Content-Type'] = _default_content_type
|
584
|
+
|
585
|
+
# authentication setting
|
586
|
+
_auth_settings: List[str] = [
|
587
|
+
'default'
|
588
|
+
]
|
589
|
+
|
590
|
+
return self.api_client.param_serialize(
|
591
|
+
method='POST',
|
592
|
+
resource_path='/connect_token',
|
593
|
+
path_params=_path_params,
|
594
|
+
query_params=_query_params,
|
595
|
+
header_params=_header_params,
|
596
|
+
body=_body_params,
|
597
|
+
post_params=_form_params,
|
598
|
+
files=_files,
|
599
|
+
auth_settings=_auth_settings,
|
600
|
+
collection_formats=_collection_formats,
|
601
|
+
_host=_host,
|
602
|
+
_request_auth=_request_auth
|
603
|
+
)
|
604
|
+
|
605
|
+
|