Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.488.0
speakeasyVersion: 1.492.0
sources:
Gusto-OAS:
sourceNamespace: gusto-oas
sourceRevisionDigest: sha256:74665203bcbdbd7738a1f84d2d30fca1e5f9632b9c27048ab670489db0bbf419
sourceBlobDigest: sha256:a8e49c6e476c51ffcc73653a800deb3d3eca380083f2b4f9d227813c97a6197d
sourceRevisionDigest: sha256:536c65456adde4a4062968edc3e8ef7930f216f2c7a412e411a9df8b510dcf34
sourceBlobDigest: sha256:e0b4d897d0190d7d91d6258aca3edbf1e5a6f504615b516b89dabf3e7079a781
tags:
- latest
- speakeasy-sdk-regen-1739295921
- speakeasy-sdk-regen-1739319735
- "2024-04-01"
targets:
gusto:
source: Gusto-OAS
sourceNamespace: gusto-oas
sourceRevisionDigest: sha256:74665203bcbdbd7738a1f84d2d30fca1e5f9632b9c27048ab670489db0bbf419
sourceBlobDigest: sha256:a8e49c6e476c51ffcc73653a800deb3d3eca380083f2b4f9d227813c97a6197d
sourceRevisionDigest: sha256:536c65456adde4a4062968edc3e8ef7930f216f2c7a412e411a9df8b510dcf34
sourceBlobDigest: sha256:e0b4d897d0190d7d91d6258aca3edbf1e5a6f504615b516b89dabf3e7079a781
codeSamplesNamespace: gusto-oas-python-code-samples
codeSamplesRevisionDigest: sha256:94d03ed8df17a6e1bb5f40a00eefd4e963ef03d0b381d38ed1be4108dfee5a30
codeSamplesRevisionDigest: sha256:093d427a72ff9ed05d044db539ee06f1ca0c6faaa32c21f05ff7ba146ce7e36d
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
14 changes: 7 additions & 7 deletions gusto_embedded/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f70034eb-4870-4b8d-aeb4-4c71b6c1ec45
management:
docChecksum: eb643d6727733f900bdf394468313a87
docChecksum: 81ecef0044bed3adf210d4f852d098fe
docVersion: "2024-04-01"
speakeasyVersion: 1.488.0
generationVersion: 2.506.0
releaseVersion: 0.0.7
configChecksum: 750ca3f863d4cc76d213754fdd03e77d
speakeasyVersion: 1.492.0
generationVersion: 2.512.4
releaseVersion: 0.0.8
configChecksum: afbbe5c4727b8ba5bd14b821c0c04128
repoURL: https://github.com/Gusto/gusto-python-client.git
repoSubDirectory: gusto_embedded
installationURL: https://github.com/Gusto/gusto-python-client.git#subdirectory=gusto_embedded
Expand All @@ -25,14 +25,14 @@ features:
flatRequests: 1.0.1
flattening: 3.1.1
getRequestBodies: 3.0.0
globalSecurity: 3.0.2
globalSecurity: 3.0.3
globalSecurityCallbacks: 1.0.0
globalSecurityFlattening: 1.0.0
globalServerURLs: 3.1.0
groups: 3.0.0
inputOutputModels: 3.0.0
methodArguments: 1.0.2
methodSecurity: 3.0.0
methodSecurity: 3.0.1
multipartFileContentType: 1.0.0
nameOverrides: 3.0.1
nullables: 1.0.0
Expand Down
4 changes: 3 additions & 1 deletion gusto_embedded/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ generation:
nameResolutionDec2023: true
parameterOrderingFeb2024: true
requestResponseComponentNamesFeb2024: true
securityFeb2025: false
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
python:
version: 0.0.7
version: 0.0.8
additionalDependencies:
dev: {}
main: {}
Expand Down Expand Up @@ -46,5 +47,6 @@ python:
methodArguments: infer-optional-args
outputModelSuffix: output
packageName: gusto_embedded
pytestTimeout: 0
responseFormat: flat
templateVersion: v2
12 changes: 11 additions & 1 deletion gusto_embedded/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@ Based on:
### Generated
- [python v0.0.7] gusto_embedded
### Releases
- [PyPI v0.0.7] https://pypi.org/project/gusto_embedded/0.0.7 - gusto_embedded
- [PyPI v0.0.7] https://pypi.org/project/gusto_embedded/0.0.7 - gusto_embedded

## 2025-02-14 00:21:52
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.492.0 (2.512.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.0.8] gusto_embedded
### Releases
- [PyPI v0.0.8] https://pypi.org/project/gusto_embedded/0.0.8 - gusto_embedded
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
| `title` | *Optional[str]* | :heavy_minus_sign: | User-friendly description of the onboarding step. |
| `id` | *Optional[str]* | :heavy_minus_sign: | String identifier for the onboarding step. |
| `required` | *Optional[bool]* | :heavy_minus_sign: | When true, this step has been completed. |
| `required` | *Optional[bool]* | :heavy_minus_sign: | When true, this step is required. |
| `completed` | *Optional[bool]* | :heavy_minus_sign: | When true, this step has been completed. |
| `requirements` | List[*str*] | :heavy_minus_sign: | A list of onboarding steps required to begin this step. |
2 changes: 1 addition & 1 deletion gusto_embedded/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "gusto_embedded"
version = "0.0.7"
version = "0.0.8"
description = "Python Client SDK Generated by Speakeasy."
authors = [{ name = "Speakeasy" },]
readme = "README-PYPI.md"
Expand Down
18 changes: 15 additions & 3 deletions gusto_embedded/src/gusto_embedded/_hooks/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@


class HookContext:
base_url: str
operation_id: str
oauth2_scopes: Optional[List[str]] = None
security_source: Optional[Union[Any, Callable[[], Any]]] = None

def __init__(
self,
base_url: str,
operation_id: str,
oauth2_scopes: Optional[List[str]],
security_source: Optional[Union[Any, Callable[[], Any]]],
):
self.base_url = base_url
self.operation_id = operation_id
self.oauth2_scopes = oauth2_scopes
self.security_source = security_source
Expand All @@ -25,21 +28,30 @@ def __init__(
class BeforeRequestContext(HookContext):
def __init__(self, hook_ctx: HookContext):
super().__init__(
hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source
hook_ctx.base_url,
hook_ctx.operation_id,
hook_ctx.oauth2_scopes,
hook_ctx.security_source,
)


class AfterSuccessContext(HookContext):
def __init__(self, hook_ctx: HookContext):
super().__init__(
hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source
hook_ctx.base_url,
hook_ctx.operation_id,
hook_ctx.oauth2_scopes,
hook_ctx.security_source,
)


class AfterErrorContext(HookContext):
def __init__(self, hook_ctx: HookContext):
super().__init__(
hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source
hook_ctx.base_url,
hook_ctx.operation_id,
hook_ctx.oauth2_scopes,
hook_ctx.security_source,
)


Expand Down
6 changes: 3 additions & 3 deletions gusto_embedded/src/gusto_embedded/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "gusto_embedded"
__version__: str = "0.0.7"
__version__: str = "0.0.8"
__openapi_doc_version__: str = "2024-04-01"
__gen_version__: str = "2.506.0"
__user_agent__: str = "speakeasy-sdk/python 0.0.7 2.506.0 2024-04-01 gusto_embedded"
__gen_version__: str = "2.512.4"
__user_agent__: str = "speakeasy-sdk/python 0.0.8 2.512.4 2024-04-01 gusto_embedded"

try:
if __package__ is not None:
Expand Down
2 changes: 2 additions & 0 deletions gusto_embedded/src/gusto_embedded/ach_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def list(

http_res = self.do_request(
hook_ctx=HookContext(
base_url=base_url or "",
operation_id="get-ach-transactions",
oauth2_scopes=[],
security_source=get_security_from_env(
Expand Down Expand Up @@ -202,6 +203,7 @@ async def list_async(

http_res = await self.do_request_async(
hook_ctx=HookContext(
base_url=base_url or "",
operation_id="get-ach-transactions",
oauth2_scopes=[],
security_source=get_security_from_env(
Expand Down
8 changes: 8 additions & 0 deletions gusto_embedded/src/gusto_embedded/bank_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def post_v1_companies_company_id_bank_accounts(

http_res = self.do_request(
hook_ctx=HookContext(
base_url=base_url or "",
operation_id="post-v1-companies-company_id-bank-accounts",
oauth2_scopes=[],
security_source=get_security_from_env(
Expand Down Expand Up @@ -230,6 +231,7 @@ async def post_v1_companies_company_id_bank_accounts_async(

http_res = await self.do_request_async(
hook_ctx=HookContext(
base_url=base_url or "",
operation_id="post-v1-companies-company_id-bank-accounts",
oauth2_scopes=[],
security_source=get_security_from_env(
Expand Down Expand Up @@ -331,6 +333,7 @@ def get_v1_companies_company_id_bank_accounts(

http_res = self.do_request(
hook_ctx=HookContext(
base_url=base_url or "",
operation_id="get-v1-companies-company_id-bank-accounts",
oauth2_scopes=[],
security_source=get_security_from_env(
Expand Down Expand Up @@ -426,6 +429,7 @@ async def get_v1_companies_company_id_bank_accounts_async(

http_res = await self.do_request_async(
hook_ctx=HookContext(
base_url=base_url or "",
operation_id="get-v1-companies-company_id-bank-accounts",
oauth2_scopes=[],
security_source=get_security_from_env(
Expand Down Expand Up @@ -552,6 +556,7 @@ def put_v1_companies_company_id_bank_accounts_verify(

http_res = self.do_request(
hook_ctx=HookContext(
base_url=base_url or "",
operation_id="put-v1-companies-company_id-bank-accounts-verify",
oauth2_scopes=[],
security_source=get_security_from_env(
Expand Down Expand Up @@ -684,6 +689,7 @@ async def put_v1_companies_company_id_bank_accounts_verify_async(

http_res = await self.do_request_async(
hook_ctx=HookContext(
base_url=base_url or "",
operation_id="put-v1-companies-company_id-bank-accounts-verify",
oauth2_scopes=[],
security_source=get_security_from_env(
Expand Down Expand Up @@ -807,6 +813,7 @@ def post_v1_plaid_processor_token(

http_res = self.do_request(
hook_ctx=HookContext(
base_url=base_url or "",
operation_id="post-v1-plaid-processor_token",
oauth2_scopes=[],
security_source=get_security_from_env(
Expand Down Expand Up @@ -932,6 +939,7 @@ async def post_v1_plaid_processor_token_async(

http_res = await self.do_request_async(
hook_ctx=HookContext(
base_url=base_url or "",
operation_id="post-v1-plaid-processor_token",
oauth2_scopes=[],
security_source=get_security_from_env(
Expand Down
Loading