Skip to content
Closed
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
48 changes: 3 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,14 @@ name: CI
on:
push:
branches:
- '**'
- '!integrated/**'
- '!stl-preview-head/**'
- '!stl-preview-base/**'
- '!generated'
- '!codegen/**'
- 'codegen/stl/**'
- main
pull_request:
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
ci:
timeout-minutes: 10
name: lint
name: CI
runs-on: ubuntu-latest
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

Expand All @@ -34,41 +24,9 @@ jobs:
- name: Run lints
run: ./scripts/lint

build:
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
timeout-minutes: 10
name: build
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install uv
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
version: '0.10.2'

- name: Install dependencies
run: uv sync --all-extras

- name: Run build
run: uv build

test:
timeout-minutes: 10
name: test
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install uv
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
version: '0.10.2'

- name: Bootstrap
run: ./scripts/bootstrap

Expand Down
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 238
openapi_spec_hash: f0bad5120513d7de237614c51d7b56e8
openapi_spec_hash: c3bfa12ef9a500b4220b37a6b2f512eb
config_hash: 2ae0d8aaecf01b38cbf9f9e112822c23
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

27 changes: 0 additions & 27 deletions scripts/utils/upload-artifact.sh

This file was deleted.

4 changes: 4 additions & 0 deletions src/increase/resources/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def list(
idempotency_key: str | Omit = omit,
limit: int | Omit = omit,
status: entity_list_params.Status | Omit = omit,
validation_status: entity_list_params.ValidationStatus | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -325,6 +326,7 @@ def list(
"idempotency_key": idempotency_key,
"limit": limit,
"status": status,
"validation_status": validation_status,
},
entity_list_params.EntityListParams,
),
Expand Down Expand Up @@ -632,6 +634,7 @@ def list(
idempotency_key: str | Omit = omit,
limit: int | Omit = omit,
status: entity_list_params.Status | Omit = omit,
validation_status: entity_list_params.ValidationStatus | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -676,6 +679,7 @@ def list(
"idempotency_key": idempotency_key,
"limit": limit,
"status": status,
"validation_status": validation_status,
},
entity_list_params.EntityListParams,
),
Expand Down
2 changes: 1 addition & 1 deletion src/increase/types/account_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AccountCreateParams(TypedDict, total=False):
"""


class Loan(TypedDict, total=False):
class Loan(TypedDict, total=False, extra_items=object): # type: ignore[call-arg]
"""The loan details for the account."""

credit_limit: Required[int]
Expand Down
17 changes: 16 additions & 1 deletion src/increase/types/entity_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from .._utils import PropertyInfo

__all__ = ["EntityListParams", "CreatedAt", "Status"]
__all__ = ["EntityListParams", "CreatedAt", "Status", "ValidationStatus"]


class EntityListParams(TypedDict, total=False):
Expand All @@ -33,6 +33,8 @@ class EntityListParams(TypedDict, total=False):

status: Status

validation_status: ValidationStatus


class CreatedAt(TypedDict, total=False):
after: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
Expand Down Expand Up @@ -71,3 +73,16 @@ class CreatedAt(TypedDict, total=False):

class Status(_StatusReservedKeywords, total=False):
pass


_ValidationStatusReservedKeywords = TypedDict(
"_ValidationStatusReservedKeywords",
{
"in": List[Literal["pending", "valid", "invalid"]],
},
total=False,
)


class ValidationStatus(_ValidationStatusReservedKeywords, total=False):
pass
2 changes: 2 additions & 0 deletions tests/api_resources/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None:
idempotency_key="x",
limit=1,
status={"in": ["active"]},
validation_status={"in": ["pending"]},
)
assert_matches_type(SyncPage[Entity], entity, path=["response"])

Expand Down Expand Up @@ -1052,6 +1053,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncIncrease) ->
idempotency_key="x",
limit=1,
status={"in": ["active"]},
validation_status={"in": ["pending"]},
)
assert_matches_type(AsyncPage[Entity], entity, path=["response"])

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading