pluggy-sdk 1.0.0.post26__py3-none-any.whl → 1.0.0.post28__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 CHANGED
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "1.0.0.post26"
18
+ __version__ = "1.0.0.post28"
19
19
 
20
20
  # import apis into sdk package
21
21
  from pluggy_sdk.api.account_api import AccountApi
pluggy_sdk/api_client.py CHANGED
@@ -91,7 +91,7 @@ class ApiClient:
91
91
  self.default_headers[header_name] = header_value
92
92
  self.cookie = cookie
93
93
  # Set default User-Agent.
94
- self.user_agent = 'OpenAPI-Generator/1.0.0.post26/python'
94
+ self.user_agent = 'OpenAPI-Generator/1.0.0.post28/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -14,14 +14,16 @@
14
14
 
15
15
 
16
16
  import copy
17
+ import http.client as httplib
17
18
  import logging
18
19
  from logging import FileHandler
19
20
  import multiprocessing
20
21
  import sys
21
- from typing import Optional
22
+ from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict
23
+ from typing_extensions import NotRequired, Self
24
+
22
25
  import urllib3
23
26
 
24
- import http.client as httplib
25
27
 
26
28
  JSON_SCHEMA_VALIDATION_KEYWORDS = {
27
29
  'multipleOf', 'maximum', 'exclusiveMaximum',
@@ -29,6 +31,107 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = {
29
31
  'minLength', 'pattern', 'maxItems', 'minItems'
30
32
  }
31
33
 
34
+ ServerVariablesT = Dict[str, str]
35
+
36
+ GenericAuthSetting = TypedDict(
37
+ "GenericAuthSetting",
38
+ {
39
+ "type": str,
40
+ "in": str,
41
+ "key": str,
42
+ "value": str,
43
+ },
44
+ )
45
+
46
+
47
+ OAuth2AuthSetting = TypedDict(
48
+ "OAuth2AuthSetting",
49
+ {
50
+ "type": Literal["oauth2"],
51
+ "in": Literal["header"],
52
+ "key": Literal["Authorization"],
53
+ "value": str,
54
+ },
55
+ )
56
+
57
+
58
+ APIKeyAuthSetting = TypedDict(
59
+ "APIKeyAuthSetting",
60
+ {
61
+ "type": Literal["api_key"],
62
+ "in": str,
63
+ "key": str,
64
+ "value": Optional[str],
65
+ },
66
+ )
67
+
68
+
69
+ BasicAuthSetting = TypedDict(
70
+ "BasicAuthSetting",
71
+ {
72
+ "type": Literal["basic"],
73
+ "in": Literal["header"],
74
+ "key": Literal["Authorization"],
75
+ "value": Optional[str],
76
+ },
77
+ )
78
+
79
+
80
+ BearerFormatAuthSetting = TypedDict(
81
+ "BearerFormatAuthSetting",
82
+ {
83
+ "type": Literal["bearer"],
84
+ "in": Literal["header"],
85
+ "format": Literal["JWT"],
86
+ "key": Literal["Authorization"],
87
+ "value": str,
88
+ },
89
+ )
90
+
91
+
92
+ BearerAuthSetting = TypedDict(
93
+ "BearerAuthSetting",
94
+ {
95
+ "type": Literal["bearer"],
96
+ "in": Literal["header"],
97
+ "key": Literal["Authorization"],
98
+ "value": str,
99
+ },
100
+ )
101
+
102
+
103
+ HTTPSignatureAuthSetting = TypedDict(
104
+ "HTTPSignatureAuthSetting",
105
+ {
106
+ "type": Literal["http-signature"],
107
+ "in": Literal["header"],
108
+ "key": Literal["Authorization"],
109
+ "value": None,
110
+ },
111
+ )
112
+
113
+
114
+ AuthSettings = TypedDict(
115
+ "AuthSettings",
116
+ {
117
+ "default": APIKeyAuthSetting,
118
+ },
119
+ total=False,
120
+ )
121
+
122
+
123
+ class HostSettingVariable(TypedDict):
124
+ description: str
125
+ default_value: str
126
+ enum_values: List[str]
127
+
128
+
129
+ class HostSetting(TypedDict):
130
+ url: str
131
+ description: str
132
+ variables: NotRequired[Dict[str, HostSettingVariable]]
133
+
134
+
32
135
  class Configuration:
33
136
  """This class contains various settings of the API client.
34
137
 
@@ -82,20 +185,26 @@ conf = pluggy_sdk.Configuration(
82
185
  Cookie: JSESSIONID abc123
83
186
  """
84
187
 
85
- _default = None
86
-
87
- def __init__(self, host=None,
88
- api_key=None, api_key_prefix=None,
89
- username=None, password=None,
90
- access_token=None,
91
- server_index=None, server_variables=None,
92
- server_operation_index=None, server_operation_variables=None,
93
- ignore_operation_servers=False,
94
- ssl_ca_cert=None,
95
- retries=None,
96
- *,
97
- debug: Optional[bool] = None
98
- ) -> None:
188
+ _default: ClassVar[Optional[Self]] = None
189
+
190
+ def __init__(
191
+ self,
192
+ host: Optional[str]=None,
193
+ api_key: Optional[Dict[str, str]]=None,
194
+ api_key_prefix: Optional[Dict[str, str]]=None,
195
+ username: Optional[str]=None,
196
+ password: Optional[str]=None,
197
+ access_token: Optional[str]=None,
198
+ server_index: Optional[int]=None,
199
+ server_variables: Optional[ServerVariablesT]=None,
200
+ server_operation_index: Optional[Dict[int, int]]=None,
201
+ server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None,
202
+ ignore_operation_servers: bool=False,
203
+ ssl_ca_cert: Optional[str]=None,
204
+ retries: Optional[int] = None,
205
+ *,
206
+ debug: Optional[bool] = None,
207
+ ) -> None:
99
208
  """Constructor
100
209
  """
101
210
  self._base_path = "https://api.pluggy.ai" if host is None else host
@@ -219,7 +328,7 @@ conf = pluggy_sdk.Configuration(
219
328
  """date format
220
329
  """
221
330
 
222
- def __deepcopy__(self, memo):
331
+ def __deepcopy__(self, memo: Dict[int, Any]) -> Self:
223
332
  cls = self.__class__
224
333
  result = cls.__new__(cls)
225
334
  memo[id(self)] = result
@@ -233,11 +342,11 @@ conf = pluggy_sdk.Configuration(
233
342
  result.debug = self.debug
234
343
  return result
235
344
 
236
- def __setattr__(self, name, value):
345
+ def __setattr__(self, name: str, value: Any) -> None:
237
346
  object.__setattr__(self, name, value)
238
347
 
239
348
  @classmethod
240
- def set_default(cls, default):
349
+ def set_default(cls, default: Optional[Self]) -> None:
241
350
  """Set default instance of configuration.
242
351
 
243
352
  It stores default configuration, which can be
@@ -248,7 +357,7 @@ conf = pluggy_sdk.Configuration(
248
357
  cls._default = default
249
358
 
250
359
  @classmethod
251
- def get_default_copy(cls):
360
+ def get_default_copy(cls) -> Self:
252
361
  """Deprecated. Please use `get_default` instead.
253
362
 
254
363
  Deprecated. Please use `get_default` instead.
@@ -258,7 +367,7 @@ conf = pluggy_sdk.Configuration(
258
367
  return cls.get_default()
259
368
 
260
369
  @classmethod
261
- def get_default(cls):
370
+ def get_default(cls) -> Self:
262
371
  """Return the default configuration.
263
372
 
264
373
  This method returns newly created, based on default constructor,
@@ -268,11 +377,11 @@ conf = pluggy_sdk.Configuration(
268
377
  :return: The configuration object.
269
378
  """
270
379
  if cls._default is None:
271
- cls._default = Configuration()
380
+ cls._default = cls()
272
381
  return cls._default
273
382
 
274
383
  @property
275
- def logger_file(self):
384
+ def logger_file(self) -> Optional[str]:
276
385
  """The logger file.
277
386
 
278
387
  If the logger_file is None, then add stream handler and remove file
@@ -284,7 +393,7 @@ conf = pluggy_sdk.Configuration(
284
393
  return self.__logger_file
285
394
 
286
395
  @logger_file.setter
287
- def logger_file(self, value):
396
+ def logger_file(self, value: Optional[str]) -> None:
288
397
  """The logger file.
289
398
 
290
399
  If the logger_file is None, then add stream handler and remove file
@@ -303,7 +412,7 @@ conf = pluggy_sdk.Configuration(
303
412
  logger.addHandler(self.logger_file_handler)
304
413
 
305
414
  @property
306
- def debug(self):
415
+ def debug(self) -> bool:
307
416
  """Debug status
308
417
 
309
418
  :param value: The debug status, True or False.
@@ -312,7 +421,7 @@ conf = pluggy_sdk.Configuration(
312
421
  return self.__debug
313
422
 
314
423
  @debug.setter
315
- def debug(self, value):
424
+ def debug(self, value: bool) -> None:
316
425
  """Debug status
317
426
 
318
427
  :param value: The debug status, True or False.
@@ -334,7 +443,7 @@ conf = pluggy_sdk.Configuration(
334
443
  httplib.HTTPConnection.debuglevel = 0
335
444
 
336
445
  @property
337
- def logger_format(self):
446
+ def logger_format(self) -> str:
338
447
  """The logger format.
339
448
 
340
449
  The logger_formatter will be updated when sets logger_format.
@@ -345,7 +454,7 @@ conf = pluggy_sdk.Configuration(
345
454
  return self.__logger_format
346
455
 
347
456
  @logger_format.setter
348
- def logger_format(self, value):
457
+ def logger_format(self, value: str) -> None:
349
458
  """The logger format.
350
459
 
351
460
  The logger_formatter will be updated when sets logger_format.
@@ -356,7 +465,7 @@ conf = pluggy_sdk.Configuration(
356
465
  self.__logger_format = value
357
466
  self.logger_formatter = logging.Formatter(self.__logger_format)
358
467
 
359
- def get_api_key_with_prefix(self, identifier, alias=None):
468
+ def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]:
360
469
  """Gets API key (with prefix if set).
361
470
 
362
471
  :param identifier: The identifier of apiKey.
@@ -373,7 +482,9 @@ conf = pluggy_sdk.Configuration(
373
482
  else:
374
483
  return key
375
484
 
376
- def get_basic_auth_token(self):
485
+ return None
486
+
487
+ def get_basic_auth_token(self) -> Optional[str]:
377
488
  """Gets HTTP basic authentication header (string).
378
489
 
379
490
  :return: The token for basic HTTP authentication.
@@ -388,12 +499,12 @@ conf = pluggy_sdk.Configuration(
388
499
  basic_auth=username + ':' + password
389
500
  ).get('authorization')
390
501
 
391
- def auth_settings(self):
502
+ def auth_settings(self)-> AuthSettings:
392
503
  """Gets Auth Settings dict for api client.
393
504
 
394
505
  :return: The Auth Settings information dict.
395
506
  """
396
- auth = {}
507
+ auth: AuthSettings = {}
397
508
  if 'default' in self.api_key:
398
509
  auth['default'] = {
399
510
  'type': 'api_key',
@@ -405,7 +516,7 @@ conf = pluggy_sdk.Configuration(
405
516
  }
406
517
  return auth
407
518
 
408
- def to_debug_report(self):
519
+ def to_debug_report(self) -> str:
409
520
  """Gets the essential information for debugging.
410
521
 
411
522
  :return: The report for debugging.
@@ -414,10 +525,10 @@ conf = pluggy_sdk.Configuration(
414
525
  "OS: {env}\n"\
415
526
  "Python Version: {pyversion}\n"\
416
527
  "Version of the API: 1.0.0\n"\
417
- "SDK Package Version: 1.0.0.post26".\
528
+ "SDK Package Version: 1.0.0.post28".\
418
529
  format(env=sys.platform, pyversion=sys.version)
419
530
 
420
- def get_host_settings(self):
531
+ def get_host_settings(self) -> List[HostSetting]:
421
532
  """Gets an array of host settings
422
533
 
423
534
  :return: An array of host settings
@@ -429,7 +540,12 @@ conf = pluggy_sdk.Configuration(
429
540
  }
430
541
  ]
431
542
 
432
- def get_host_from_settings(self, index, variables=None, servers=None):
543
+ def get_host_from_settings(
544
+ self,
545
+ index: Optional[int],
546
+ variables: Optional[ServerVariablesT]=None,
547
+ servers: Optional[List[HostSetting]]=None,
548
+ ) -> str:
433
549
  """Gets host URL based on the index and variables
434
550
  :param index: array index of the host settings
435
551
  :param variables: hash of variable and the corresponding value
@@ -469,12 +585,12 @@ conf = pluggy_sdk.Configuration(
469
585
  return url
470
586
 
471
587
  @property
472
- def host(self):
588
+ def host(self) -> str:
473
589
  """Return generated host."""
474
590
  return self.get_host_from_settings(self.server_index, variables=self.server_variables)
475
591
 
476
592
  @host.setter
477
- def host(self, value):
593
+ def host(self, value: str) -> None:
478
594
  """Fix base path."""
479
595
  self._base_path = value
480
596
  self.server_index = None
@@ -29,11 +29,10 @@ class CreateClientCategoryRule(BaseModel):
29
29
  """ # noqa: E501
30
30
  description: StrictStr = Field(description="Description of the transaction rule.")
31
31
  category_id: StrictStr = Field(description="Identifier of the category", alias="categoryId")
32
- client_id: StrictStr = Field(description="Identifier of the client", alias="clientId")
33
32
  transaction_type: Optional[StrictStr] = Field(default=None, description="Transaction type (DEBIT/CREDIT)", alias="transactionType")
34
33
  account_type: Optional[StrictStr] = Field(default=None, description="Account type (CHECKING_ACCOUNT/CREDIT_CARD)", alias="accountType")
35
34
  match_type: Optional[StrictStr] = Field(default=None, description="Type of match used to identify the rule (exact/contains/startsWith/endsWith), if not provided, defaults to 'exact'", alias="matchType")
36
- __properties: ClassVar[List[str]] = ["description", "categoryId", "clientId", "transactionType", "accountType", "matchType"]
35
+ __properties: ClassVar[List[str]] = ["description", "categoryId", "transactionType", "accountType", "matchType"]
37
36
 
38
37
  model_config = ConfigDict(
39
38
  populate_by_name=True,
@@ -88,7 +87,6 @@ class CreateClientCategoryRule(BaseModel):
88
87
  _obj = cls.model_validate({
89
88
  "description": obj.get("description"),
90
89
  "categoryId": obj.get("categoryId"),
91
- "clientId": obj.get("clientId"),
92
90
  "transactionType": obj.get("transactionType"),
93
91
  "accountType": obj.get("accountType"),
94
92
  "matchType": obj.get("matchType")
@@ -42,8 +42,8 @@ class InvestmentTransaction(BaseModel):
42
42
  @field_validator('type')
43
43
  def type_validate_enum(cls, value):
44
44
  """Validates the enum"""
45
- if value not in set(['BUY', 'SELL', 'TAX', 'TRANSFER']):
46
- raise ValueError("must be one of enum values ('BUY', 'SELL', 'TAX', 'TRANSFER')")
45
+ if value not in set(['BUY', 'SELL', 'TAX', 'TRANSFER', 'INTEREST', 'AMORTIZATION']):
46
+ raise ValueError("must be one of enum values ('BUY', 'SELL', 'TAX', 'TRANSFER', 'INTEREST', 'AMORTIZATION')")
47
47
  return value
48
48
 
49
49
  @field_validator('movement_type')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pluggy-sdk
3
- Version: 1.0.0.post26
3
+ Version: 1.0.0.post28
4
4
  Summary: Pluggy API
5
5
  Home-page: https://github.com/diraol/pluggy-python
6
6
  Author: Pluggy
@@ -19,7 +19,7 @@ Pluggy's main API to review data and execute connectors
19
19
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
20
20
 
21
21
  - API version: 1.0.0
22
- - Package version: 1.0.0.post26
22
+ - Package version: 1.0.0.post28
23
23
  - Generator version: 7.10.0-SNAPSHOT
24
24
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
25
25
  For more information, please visit [https://pluggy.ai](https://pluggy.ai)
@@ -1,7 +1,7 @@
1
- pluggy_sdk/__init__.py,sha256=srpfHHEy-VDut0b1KhYH26E1PUvp2FN7ZEOjBg720tI,12753
2
- pluggy_sdk/api_client.py,sha256=E7gGHGq1sJdL13hG1nkcsay8iKm9JncXzzRPpkBbJe0,27431
1
+ pluggy_sdk/__init__.py,sha256=qGyx_6BwpDKl9lIFkwLtJcAfuOPJc2jvrUIVcnGLfcs,12753
2
+ pluggy_sdk/api_client.py,sha256=nJSR-lsszmgTLIniADROyQiWnJRgUYdy7tBbPR2mkwU,27431
3
3
  pluggy_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- pluggy_sdk/configuration.py,sha256=3gpUO29l05giiBHiP2c5U29YyR4JaNgdOH9qGT0PMs0,15910
4
+ pluggy_sdk/configuration.py,sha256=LVrtbevpvk1F1cFKBxyUaO1jaRmqS4NMY6iD_4RI7DQ,18485
5
5
  pluggy_sdk/exceptions.py,sha256=nnh92yDlGdY1-zRsb0vQLebe4oyhrO63RXCYBhbrhoU,5953
6
6
  pluggy_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  pluggy_sdk/rest.py,sha256=vVdVX3R4AbYt0r6TChhsMVAnyL1nf0RA6eZYjkaaBzY,9389
@@ -84,7 +84,7 @@ pluggy_sdk/models/connector_user_action.py,sha256=k1Y8DHn5zEVFRmTEVL7Z8J8js3i7G-
84
84
  pluggy_sdk/models/consent.py,sha256=2iGU-3JCbWzjUsFU1g4UYXz_zm0EziBJgki8XaBz1Kk,5451
85
85
  pluggy_sdk/models/create_boleto_payment_request.py,sha256=j7aLjY1Pllj67K0BifGj43CZCBpIqfjI8xAPD1QoQgo,3577
86
86
  pluggy_sdk/models/create_bulk_payment.py,sha256=g5S2C_vtgvuTY9om2RvOZSebTXosp5WrzwdS4IbQMMs,3438
87
- pluggy_sdk/models/create_client_category_rule.py,sha256=3q8GujhhKwMzDxY8j_W6ixwKHmtThDff8drDMrX1iB8,3596
87
+ pluggy_sdk/models/create_client_category_rule.py,sha256=CBmaEU87ba_EgxLIcFwb8YWe-FcMdKcaOiu9hGDoGFo,3448
88
88
  pluggy_sdk/models/create_item.py,sha256=UY9M25dLuonvzKeF5aOA_zPvHIXlG68sSYIo8yRJALE,4529
89
89
  pluggy_sdk/models/create_item_parameters.py,sha256=ZAT3HYQRIJMCTO6XRJtBFWLix2LrKrZTWnLtuYMw11k,5380
90
90
  pluggy_sdk/models/create_or_update_payment_customer.py,sha256=ZvN-Pa9LGAR33L5G4XFSbIUPP3RaUsOeD45K5oOKZ-U,3455
@@ -120,7 +120,7 @@ pluggy_sdk/models/income_reports_response.py,sha256=cXTY6QSoXZ5gSzJD2rz992dQRHk0
120
120
  pluggy_sdk/models/investment.py,sha256=Wgrcn1BupoR-_2GRYHI5w_r7iuJJhQ-hNFPxaypXu7E,11148
121
121
  pluggy_sdk/models/investment_expenses.py,sha256=Tggx0ZhQV-EF1amRK5Qc-qTGMjw1bUkM4bo3re18OCk,5224
122
122
  pluggy_sdk/models/investment_metadata.py,sha256=iPjyP8eP7IM6Yp2angdHGN9ZrRlbIa4m9eO8XDxYQU8,3696
123
- pluggy_sdk/models/investment_transaction.py,sha256=sxdtNZ0ppU34lOqWDnK5r6zFmVOItVIaGv0dCcd-8yk,4733
123
+ pluggy_sdk/models/investment_transaction.py,sha256=1A3Ak7W5jcXzZycd05eLDYHsAikgJQXe73cp_a11NeA,4789
124
124
  pluggy_sdk/models/investments_list200_response.py,sha256=JqUTarakPV6yzY162pLugeFudbwj6pHeCJYGdKVz8Js,3458
125
125
  pluggy_sdk/models/item.py,sha256=z__AH74riALcam8VE0U_GPCZPH7JrQydR1QeEHvlQRg,7295
126
126
  pluggy_sdk/models/item_creation_error_response.py,sha256=_zdN0Go6iU2deVKxRrexeYlDxWxYfWhjyrxisyQbjUI,3607
@@ -214,7 +214,7 @@ pluggy_sdk/models/webhook.py,sha256=2KV31zqFfHMzYzdrfVW7Sam6BsKigdQnPOKjsRiFYqI,
214
214
  pluggy_sdk/models/webhook_creation_error_response.py,sha256=SMvNMvJANk1NTn9BEugfwRtnEsJuoMsFo8tVvci3ayw,2681
215
215
  pluggy_sdk/models/webhooks_list200_response.py,sha256=_C8cwBIpZZrODNt-BS_pwAyBjZPxls6ffsy8vqYA6RU,3384
216
216
  pluggy_sdk/models/weekly.py,sha256=rEjJdwn52bBC5sNRUoWsMQ2uoaX7tDz68R5OOgBF1uw,4096
217
- pluggy_sdk-1.0.0.post26.dist-info/METADATA,sha256=a-KfRpAF_38fN3WqbBJ4sIrZFP2DP2QfIneVxjztmBU,22952
218
- pluggy_sdk-1.0.0.post26.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
219
- pluggy_sdk-1.0.0.post26.dist-info/top_level.txt,sha256=4RLkSSAcNiYLnk0_CN2vRQoezuSTIa7VPuNnaVutZP0,11
220
- pluggy_sdk-1.0.0.post26.dist-info/RECORD,,
217
+ pluggy_sdk-1.0.0.post28.dist-info/METADATA,sha256=l0Dh0AK8_HllQ8GUR4t4hVn09GGySO0u0TnfroyKKxI,22952
218
+ pluggy_sdk-1.0.0.post28.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
219
+ pluggy_sdk-1.0.0.post28.dist-info/top_level.txt,sha256=4RLkSSAcNiYLnk0_CN2vRQoezuSTIa7VPuNnaVutZP0,11
220
+ pluggy_sdk-1.0.0.post28.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.5.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5