kombo 0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kombo/__init__.py +17 -0
- kombo/_hooks/__init__.py +5 -0
- kombo/_hooks/registration.py +13 -0
- kombo/_hooks/sdkhooks.py +76 -0
- kombo/_hooks/types.py +112 -0
- kombo/_version.py +15 -0
- kombo/assessment.py +1023 -0
- kombo/ats.py +6795 -0
- kombo/basesdk.py +360 -0
- kombo/connect.py +480 -0
- kombo/errors/__init__.py +78 -0
- kombo/errors/komboatserror.py +34 -0
- kombo/errors/kombogeneralerror.py +34 -0
- kombo/errors/kombohriserror.py +34 -0
- kombo/errors/no_response_error.py +17 -0
- kombo/errors/responsevalidationerror.py +27 -0
- kombo/errors/sdkdefaulterror.py +40 -0
- kombo/errors/sdkerror.py +30 -0
- kombo/general.py +2545 -0
- kombo/hris.py +4766 -0
- kombo/httpclient.py +125 -0
- kombo/models/__init__.py +5546 -0
- kombo/models/assessmentorderreceivedwebhookpayload.py +399 -0
- kombo/models/connectionflowfailedwebhookpayload.py +116 -0
- kombo/models/datachangedwebhookpayload.py +109 -0
- kombo/models/deleteatscandidatescandidateidtagsop.py +51 -0
- kombo/models/deleteatscandidatescandidateidtagspositiveresponse.py +44 -0
- kombo/models/deleteatscandidatescandidateidtagsrequestbody.py +136 -0
- kombo/models/deletehrisabsencesabsenceidop.py +51 -0
- kombo/models/deletehrisabsencesabsenceidpositiveresponse.py +204 -0
- kombo/models/deletehrisabsencesabsenceidrequestbody.py +50 -0
- kombo/models/deleteintegrationsintegrationidop.py +30 -0
- kombo/models/deleteintegrationsintegrationidpositiveresponse.py +31 -0
- kombo/models/deleteintegrationsintegrationidrequestbody.py +13 -0
- kombo/models/getassessmentordersopenop.py +60 -0
- kombo/models/getassessmentordersopenpositiveresponse.py +416 -0
- kombo/models/getassessmentpackagesop.py +30 -0
- kombo/models/getassessmentpackagespositiveresponse.py +98 -0
- kombo/models/getatsapplicationsapplicationidattachmentsop.py +34 -0
- kombo/models/getatsapplicationsapplicationidattachmentspositiveresponse.py +134 -0
- kombo/models/getatsapplicationsop.py +157 -0
- kombo/models/getatsapplicationspositiveresponse.py +1578 -0
- kombo/models/getatsapplicationstagesop.py +103 -0
- kombo/models/getatsapplicationstagespositiveresponse.py +136 -0
- kombo/models/getatscandidatescandidateidattachmentsop.py +34 -0
- kombo/models/getatscandidatescandidateidattachmentspositiveresponse.py +138 -0
- kombo/models/getatscandidatesop.py +135 -0
- kombo/models/getatscandidatespositiveresponse.py +737 -0
- kombo/models/getatsinterviewsop.py +111 -0
- kombo/models/getatsinterviewspositiveresponse.py +591 -0
- kombo/models/getatsjobsop.py +177 -0
- kombo/models/getatsjobspositiveresponse.py +1275 -0
- kombo/models/getatsoffersop.py +103 -0
- kombo/models/getatsofferspositiveresponse.py +431 -0
- kombo/models/getatsrejectionreasonsop.py +103 -0
- kombo/models/getatsrejectionreasonspositiveresponse.py +136 -0
- kombo/models/getatstagsop.py +103 -0
- kombo/models/getatstagspositiveresponse.py +134 -0
- kombo/models/getatsusersop.py +111 -0
- kombo/models/getatsuserspositiveresponse.py +165 -0
- kombo/models/getcheckapikeypositiveresponse.py +31 -0
- kombo/models/getconnectintegrationbytokentokenop.py +18 -0
- kombo/models/getconnectintegrationbytokentokenpositiveresponse.py +102 -0
- kombo/models/gethrisabsencesop.py +135 -0
- kombo/models/gethrisabsencespositiveresponse.py +334 -0
- kombo/models/gethrisabsencetypesop.py +103 -0
- kombo/models/gethrisabsencetypespositiveresponse.py +164 -0
- kombo/models/gethrisemployeedocumentcategoriesop.py +103 -0
- kombo/models/gethrisemployeedocumentcategoriespositiveresponse.py +136 -0
- kombo/models/gethrisemployeesformop.py +30 -0
- kombo/models/gethrisemployeesformpositiveresponse.py +1009 -0
- kombo/models/gethrisemployeesop.py +175 -0
- kombo/models/gethrisemployeespositiveresponse.py +1500 -0
- kombo/models/gethrisemploymentsop.py +103 -0
- kombo/models/gethrisemploymentspositiveresponse.py +293 -0
- kombo/models/gethrisgroupsop.py +125 -0
- kombo/models/gethrisgroupspositiveresponse.py +154 -0
- kombo/models/gethrislegalentitiesop.py +111 -0
- kombo/models/gethrislegalentitiespositiveresponse.py +223 -0
- kombo/models/gethrislocationsop.py +111 -0
- kombo/models/gethrislocationspositiveresponse.py +228 -0
- kombo/models/gethrisperformancereviewcyclesop.py +103 -0
- kombo/models/gethrisperformancereviewcyclespositiveresponse.py +145 -0
- kombo/models/gethrisperformancereviewsop.py +133 -0
- kombo/models/gethrisperformancereviewspositiveresponse.py +542 -0
- kombo/models/gethristimeoffbalancesop.py +111 -0
- kombo/models/gethristimeoffbalancespositiveresponse.py +279 -0
- kombo/models/gethristimesheetsop.py +143 -0
- kombo/models/gethristimesheetspositiveresponse.py +231 -0
- kombo/models/getintegrationsintegrationidcustomfieldsop.py +54 -0
- kombo/models/getintegrationsintegrationidcustomfieldspositiveresponse.py +210 -0
- kombo/models/getintegrationsintegrationidintegrationfieldsop.py +55 -0
- kombo/models/getintegrationsintegrationidintegrationfieldspositiveresponse.py +153 -0
- kombo/models/getintegrationsintegrationidop.py +18 -0
- kombo/models/getintegrationsintegrationidpositiveresponse.py +406 -0
- kombo/models/gettoolscategoryop.py +20 -0
- kombo/models/gettoolscategoryparametercategory.py +11 -0
- kombo/models/gettoolscategorypositiveresponse.py +330 -0
- kombo/models/inlineassessmentorderreceivedwebhookpayload.py +403 -0
- kombo/models/integrationcreatedwebhookpayload.py +116 -0
- kombo/models/integrationdeletedwebhookpayload.py +122 -0
- kombo/models/integrationstatechangedwebhookpayload.py +148 -0
- kombo/models/internal/__init__.py +54 -0
- kombo/models/internal/globals.py +22 -0
- kombo/models/komboatserror.py +96 -0
- kombo/models/kombogeneralerror.py +80 -0
- kombo/models/kombohriserror.py +94 -0
- kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidop.py +41 -0
- kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.py +112 -0
- kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.py +48 -0
- kombo/models/postatsapplicationsapplicationidattachmentsop.py +51 -0
- kombo/models/postatsapplicationsapplicationidattachmentspositiveresponse.py +50 -0
- kombo/models/postatsapplicationsapplicationidattachmentsrequestbody.py +247 -0
- kombo/models/postatsapplicationsapplicationidnotesop.py +51 -0
- kombo/models/postatsapplicationsapplicationidnotespositiveresponse.py +46 -0
- kombo/models/postatsapplicationsapplicationidnotesrequestbody.py +211 -0
- kombo/models/postatsapplicationsapplicationidrejectop.py +51 -0
- kombo/models/postatsapplicationsapplicationidrejectpositiveresponse.py +46 -0
- kombo/models/postatsapplicationsapplicationidrejectrequestbody.py +135 -0
- kombo/models/postatsapplicationsapplicationidresultlinksop.py +51 -0
- kombo/models/postatsapplicationsapplicationidresultlinkspositiveresponse.py +50 -0
- kombo/models/postatsapplicationsapplicationidresultlinksrequestbody.py +266 -0
- kombo/models/postatscandidatescandidateidattachmentsop.py +51 -0
- kombo/models/postatscandidatescandidateidattachmentspositiveresponse.py +48 -0
- kombo/models/postatscandidatescandidateidattachmentsrequestbody.py +196 -0
- kombo/models/postatscandidatescandidateidresultlinksop.py +51 -0
- kombo/models/postatscandidatescandidateidresultlinkspositiveresponse.py +48 -0
- kombo/models/postatscandidatescandidateidresultlinksrequestbody.py +250 -0
- kombo/models/postatscandidatescandidateidtagsop.py +51 -0
- kombo/models/postatscandidatescandidateidtagspositiveresponse.py +44 -0
- kombo/models/postatscandidatescandidateidtagsrequestbody.py +134 -0
- kombo/models/postatscandidatesop.py +22 -0
- kombo/models/postatscandidatespositiveresponse.py +707 -0
- kombo/models/postatscandidatesrequestbody.py +1606 -0
- kombo/models/postatsimporttrackedapplicationop.py +22 -0
- kombo/models/postatsimporttrackedapplicationpositiveresponse.py +356 -0
- kombo/models/postatsimporttrackedapplicationrequestbody.py +323 -0
- kombo/models/postatsjobsjobidapplicationsop.py +51 -0
- kombo/models/postatsjobsjobidapplicationspositiveresponse.py +1462 -0
- kombo/models/postatsjobsjobidapplicationsrequestbody.py +1665 -0
- kombo/models/postconnectcreatelinkpositiveresponse.py +31 -0
- kombo/models/postconnectcreatelinkrequestbody.py +324 -0
- kombo/models/postforcesyncop.py +22 -0
- kombo/models/postforcesyncpositiveresponse.py +50 -0
- kombo/models/postforcesyncrequestbody.py +23 -0
- kombo/models/posthrisabsencesop.py +22 -0
- kombo/models/posthrisabsencespositiveresponse.py +204 -0
- kombo/models/posthrisabsencesrequestbody.py +172 -0
- kombo/models/posthrisemployeesemployeeiddocumentsop.py +51 -0
- kombo/models/posthrisemployeesemployeeiddocumentspositiveresponse.py +44 -0
- kombo/models/posthrisemployeesemployeeiddocumentsrequestbody.py +68 -0
- kombo/models/posthrisemployeesformop.py +22 -0
- kombo/models/posthrisemployeesformpositiveresponse.py +77 -0
- kombo/models/posthrisemployeesformrequestbody.py +15 -0
- kombo/models/postintegrationsintegrationidrelinkop.py +30 -0
- kombo/models/postintegrationsintegrationidrelinkpositiveresponse.py +31 -0
- kombo/models/postintegrationsintegrationidrelinkrequestbody.py +95 -0
- kombo/models/postpassthroughtoolapiop.py +58 -0
- kombo/models/postpassthroughtoolapipositiveresponse.py +67 -0
- kombo/models/postpassthroughtoolapirequestbody.py +133 -0
- kombo/models/putassessmentordersassessmentorderidresultop.py +51 -0
- kombo/models/putassessmentordersassessmentorderidresultpositiveresponse.py +50 -0
- kombo/models/putassessmentordersassessmentorderidresultrequestbody.py +236 -0
- kombo/models/putassessmentpackagesop.py +22 -0
- kombo/models/putassessmentpackagespositiveresponse.py +44 -0
- kombo/models/putassessmentpackagesrequestbody.py +46 -0
- kombo/models/putatsapplicationsapplicationidstageop.py +51 -0
- kombo/models/putatsapplicationsapplicationidstagepositiveresponse.py +44 -0
- kombo/models/putatsapplicationsapplicationidstagerequestbody.py +130 -0
- kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidop.py +37 -0
- kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidpositiveresponse.py +169 -0
- kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.py +48 -0
- kombo/models/schema1.py +13 -0
- kombo/models/schema1_union_1.py +940 -0
- kombo/models/schema1_union_2.py +126 -0
- kombo/models/schema2_union_1.py +939 -0
- kombo/models/schema2_union_2.py +181 -0
- kombo/models/schema4.py +16 -0
- kombo/models/security.py +24 -0
- kombo/models/syncfinishedwebhookpayload.py +147 -0
- kombo/models/webhookassessmentorderreceivedwebhookpayloadop.py +31 -0
- kombo/models/webhookconnectionflowfailedwebhookpayloadop.py +31 -0
- kombo/models/webhookdatachangedwebhookpayloadop.py +31 -0
- kombo/models/webhookinlineassessmentorderreceivedwebhookpayloadop.py +31 -0
- kombo/models/webhookintegrationcreatedwebhookpayloadop.py +31 -0
- kombo/models/webhookintegrationdeletedwebhookpayloadop.py +31 -0
- kombo/models/webhookintegrationstatechangedwebhookpayloadop.py +31 -0
- kombo/models/webhooksyncfinishedwebhookpayloadop.py +31 -0
- kombo/py.typed +1 -0
- kombo/sdk.py +196 -0
- kombo/sdkconfiguration.py +58 -0
- kombo/types/__init__.py +21 -0
- kombo/types/basemodel.py +39 -0
- kombo/utils/__init__.py +197 -0
- kombo/utils/annotations.py +79 -0
- kombo/utils/datetimes.py +23 -0
- kombo/utils/enums.py +74 -0
- kombo/utils/eventstreaming.py +248 -0
- kombo/utils/forms.py +223 -0
- kombo/utils/headers.py +136 -0
- kombo/utils/logger.py +22 -0
- kombo/utils/metadata.py +118 -0
- kombo/utils/queryparams.py +205 -0
- kombo/utils/requestbodies.py +66 -0
- kombo/utils/retries.py +217 -0
- kombo/utils/security.py +174 -0
- kombo/utils/serializers.py +249 -0
- kombo/utils/unmarshal_json_response.py +38 -0
- kombo/utils/url.py +155 -0
- kombo/utils/values.py +137 -0
- kombo-0.0.3.dist-info/METADATA +537 -0
- kombo-0.0.3.dist-info/RECORD +216 -0
- kombo-0.0.3.dist-info/WHEEL +5 -0
- kombo-0.0.3.dist-info/top_level.txt +3 -0
- kombo_python/_hooks/registration.py +13 -0
- openapi/_hooks/registration.py +13 -0
kombo/__init__.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from ._version import (
|
|
4
|
+
__title__,
|
|
5
|
+
__version__,
|
|
6
|
+
__openapi_doc_version__,
|
|
7
|
+
__gen_version__,
|
|
8
|
+
__user_agent__,
|
|
9
|
+
)
|
|
10
|
+
from .sdk import *
|
|
11
|
+
from .sdkconfiguration import *
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
VERSION: str = __version__
|
|
15
|
+
OPENAPI_DOC_VERSION = __openapi_doc_version__
|
|
16
|
+
SPEAKEASY_GENERATOR_VERSION = __gen_version__
|
|
17
|
+
USER_AGENT = __user_agent__
|
kombo/_hooks/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from .types import Hooks
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# This file is only ever generated once on the first generation and then is free to be modified.
|
|
5
|
+
# Any hooks you wish to add should be registered in the init_hooks function. Feel free to define them
|
|
6
|
+
# in this file or in separate files in the hooks folder.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def init_hooks(hooks: Hooks):
|
|
10
|
+
# pylint: disable=unused-argument
|
|
11
|
+
"""Add hooks by calling hooks.register{sdk_init/before_request/after_success/after_error}Hook
|
|
12
|
+
with an instance of a hook that implements that specific Hook interface
|
|
13
|
+
Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance"""
|
kombo/_hooks/sdkhooks.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
import httpx
|
|
4
|
+
from .types import (
|
|
5
|
+
SDKInitHook,
|
|
6
|
+
BeforeRequestContext,
|
|
7
|
+
BeforeRequestHook,
|
|
8
|
+
AfterSuccessContext,
|
|
9
|
+
AfterSuccessHook,
|
|
10
|
+
AfterErrorContext,
|
|
11
|
+
AfterErrorHook,
|
|
12
|
+
Hooks,
|
|
13
|
+
)
|
|
14
|
+
from .registration import init_hooks
|
|
15
|
+
from typing import List, Optional, Tuple
|
|
16
|
+
from kombo.sdkconfiguration import SDKConfiguration
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class SDKHooks(Hooks):
|
|
20
|
+
def __init__(self) -> None:
|
|
21
|
+
self.sdk_init_hooks: List[SDKInitHook] = []
|
|
22
|
+
self.before_request_hooks: List[BeforeRequestHook] = []
|
|
23
|
+
self.after_success_hooks: List[AfterSuccessHook] = []
|
|
24
|
+
self.after_error_hooks: List[AfterErrorHook] = []
|
|
25
|
+
init_hooks(self)
|
|
26
|
+
|
|
27
|
+
def register_sdk_init_hook(self, hook: SDKInitHook) -> None:
|
|
28
|
+
self.sdk_init_hooks.append(hook)
|
|
29
|
+
|
|
30
|
+
def register_before_request_hook(self, hook: BeforeRequestHook) -> None:
|
|
31
|
+
self.before_request_hooks.append(hook)
|
|
32
|
+
|
|
33
|
+
def register_after_success_hook(self, hook: AfterSuccessHook) -> None:
|
|
34
|
+
self.after_success_hooks.append(hook)
|
|
35
|
+
|
|
36
|
+
def register_after_error_hook(self, hook: AfterErrorHook) -> None:
|
|
37
|
+
self.after_error_hooks.append(hook)
|
|
38
|
+
|
|
39
|
+
def sdk_init(self, config: SDKConfiguration) -> SDKConfiguration:
|
|
40
|
+
for hook in self.sdk_init_hooks:
|
|
41
|
+
config = hook.sdk_init(config)
|
|
42
|
+
return config
|
|
43
|
+
|
|
44
|
+
def before_request(
|
|
45
|
+
self, hook_ctx: BeforeRequestContext, request: httpx.Request
|
|
46
|
+
) -> httpx.Request:
|
|
47
|
+
for hook in self.before_request_hooks:
|
|
48
|
+
out = hook.before_request(hook_ctx, request)
|
|
49
|
+
if isinstance(out, Exception):
|
|
50
|
+
raise out
|
|
51
|
+
request = out
|
|
52
|
+
|
|
53
|
+
return request
|
|
54
|
+
|
|
55
|
+
def after_success(
|
|
56
|
+
self, hook_ctx: AfterSuccessContext, response: httpx.Response
|
|
57
|
+
) -> httpx.Response:
|
|
58
|
+
for hook in self.after_success_hooks:
|
|
59
|
+
out = hook.after_success(hook_ctx, response)
|
|
60
|
+
if isinstance(out, Exception):
|
|
61
|
+
raise out
|
|
62
|
+
response = out
|
|
63
|
+
return response
|
|
64
|
+
|
|
65
|
+
def after_error(
|
|
66
|
+
self,
|
|
67
|
+
hook_ctx: AfterErrorContext,
|
|
68
|
+
response: Optional[httpx.Response],
|
|
69
|
+
error: Optional[Exception],
|
|
70
|
+
) -> Tuple[Optional[httpx.Response], Optional[Exception]]:
|
|
71
|
+
for hook in self.after_error_hooks:
|
|
72
|
+
result = hook.after_error(hook_ctx, response, error)
|
|
73
|
+
if isinstance(result, Exception):
|
|
74
|
+
raise result
|
|
75
|
+
response, error = result
|
|
76
|
+
return response, error
|
kombo/_hooks/types.py
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC, abstractmethod
|
|
4
|
+
import httpx
|
|
5
|
+
from kombo.sdkconfiguration import SDKConfiguration
|
|
6
|
+
from typing import Any, Callable, List, Optional, Tuple, Union
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class HookContext:
|
|
10
|
+
config: SDKConfiguration
|
|
11
|
+
base_url: str
|
|
12
|
+
operation_id: str
|
|
13
|
+
oauth2_scopes: Optional[List[str]] = None
|
|
14
|
+
security_source: Optional[Union[Any, Callable[[], Any]]] = None
|
|
15
|
+
|
|
16
|
+
def __init__(
|
|
17
|
+
self,
|
|
18
|
+
config: SDKConfiguration,
|
|
19
|
+
base_url: str,
|
|
20
|
+
operation_id: str,
|
|
21
|
+
oauth2_scopes: Optional[List[str]],
|
|
22
|
+
security_source: Optional[Union[Any, Callable[[], Any]]],
|
|
23
|
+
):
|
|
24
|
+
self.config = config
|
|
25
|
+
self.base_url = base_url
|
|
26
|
+
self.operation_id = operation_id
|
|
27
|
+
self.oauth2_scopes = oauth2_scopes
|
|
28
|
+
self.security_source = security_source
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class BeforeRequestContext(HookContext):
|
|
32
|
+
def __init__(self, hook_ctx: HookContext):
|
|
33
|
+
super().__init__(
|
|
34
|
+
hook_ctx.config,
|
|
35
|
+
hook_ctx.base_url,
|
|
36
|
+
hook_ctx.operation_id,
|
|
37
|
+
hook_ctx.oauth2_scopes,
|
|
38
|
+
hook_ctx.security_source,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class AfterSuccessContext(HookContext):
|
|
43
|
+
def __init__(self, hook_ctx: HookContext):
|
|
44
|
+
super().__init__(
|
|
45
|
+
hook_ctx.config,
|
|
46
|
+
hook_ctx.base_url,
|
|
47
|
+
hook_ctx.operation_id,
|
|
48
|
+
hook_ctx.oauth2_scopes,
|
|
49
|
+
hook_ctx.security_source,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class AfterErrorContext(HookContext):
|
|
54
|
+
def __init__(self, hook_ctx: HookContext):
|
|
55
|
+
super().__init__(
|
|
56
|
+
hook_ctx.config,
|
|
57
|
+
hook_ctx.base_url,
|
|
58
|
+
hook_ctx.operation_id,
|
|
59
|
+
hook_ctx.oauth2_scopes,
|
|
60
|
+
hook_ctx.security_source,
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class SDKInitHook(ABC):
|
|
65
|
+
@abstractmethod
|
|
66
|
+
def sdk_init(self, config: SDKConfiguration) -> SDKConfiguration:
|
|
67
|
+
pass
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class BeforeRequestHook(ABC):
|
|
71
|
+
@abstractmethod
|
|
72
|
+
def before_request(
|
|
73
|
+
self, hook_ctx: BeforeRequestContext, request: httpx.Request
|
|
74
|
+
) -> Union[httpx.Request, Exception]:
|
|
75
|
+
pass
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class AfterSuccessHook(ABC):
|
|
79
|
+
@abstractmethod
|
|
80
|
+
def after_success(
|
|
81
|
+
self, hook_ctx: AfterSuccessContext, response: httpx.Response
|
|
82
|
+
) -> Union[httpx.Response, Exception]:
|
|
83
|
+
pass
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class AfterErrorHook(ABC):
|
|
87
|
+
@abstractmethod
|
|
88
|
+
def after_error(
|
|
89
|
+
self,
|
|
90
|
+
hook_ctx: AfterErrorContext,
|
|
91
|
+
response: Optional[httpx.Response],
|
|
92
|
+
error: Optional[Exception],
|
|
93
|
+
) -> Union[Tuple[Optional[httpx.Response], Optional[Exception]], Exception]:
|
|
94
|
+
pass
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
class Hooks(ABC):
|
|
98
|
+
@abstractmethod
|
|
99
|
+
def register_sdk_init_hook(self, hook: SDKInitHook):
|
|
100
|
+
pass
|
|
101
|
+
|
|
102
|
+
@abstractmethod
|
|
103
|
+
def register_before_request_hook(self, hook: BeforeRequestHook):
|
|
104
|
+
pass
|
|
105
|
+
|
|
106
|
+
@abstractmethod
|
|
107
|
+
def register_after_success_hook(self, hook: AfterSuccessHook):
|
|
108
|
+
pass
|
|
109
|
+
|
|
110
|
+
@abstractmethod
|
|
111
|
+
def register_after_error_hook(self, hook: AfterErrorHook):
|
|
112
|
+
pass
|
kombo/_version.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
import importlib.metadata
|
|
4
|
+
|
|
5
|
+
__title__: str = "kombo"
|
|
6
|
+
__version__: str = "0.0.3"
|
|
7
|
+
__openapi_doc_version__: str = "1.0.0"
|
|
8
|
+
__gen_version__: str = "2.755.6"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.0.3 2.755.6 1.0.0 kombo"
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
if __package__ is not None:
|
|
13
|
+
__version__ = importlib.metadata.version(__package__)
|
|
14
|
+
except importlib.metadata.PackageNotFoundError:
|
|
15
|
+
pass
|