Skip to content

Commit 8a6d0ac

Browse files
authored
Test release: 1.0.0b0 with pagination ordering support (#197)
* 1.0.0b0 * 🚧 generated with ordering options * 🚧 update with order_by query param * ⬆️ Bump pytest to latest * ⬆️ Bump black to latest * ⬆️ Bump ruff to latest * 🎨 fix ruff errors * 🎨 * 🎨 fix duplicate method name * Empty commit
1 parent 9f25236 commit 8a6d0ac

File tree

393 files changed

+8105
-9627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

393 files changed

+8105
-9627
lines changed

.github/workflows/python-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
python -m pip install --upgrade pip
3838
pip install \
3939
isort~=5.13.2 \
40-
black~=24.4.2
40+
black~=24.8.0
4141
- name: Check import style with isort
4242
run: |
4343
isort . --check --profile black --diff

.github/workflows/python-test-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
python -m pip install --upgrade pip
4040
pip install \
4141
isort~=5.13.2 \
42-
black~=24.4.2
42+
black~=24.8.0
4343
- name: Check import style with isort
4444
run: |
4545
isort . --check --profile black --diff

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ For legacy versions, please review our release history to found the version comp
4747
Aries CloudController Python provides a robust client for interacting with Aries Cloud Agents (ACA-Py).
4848

4949
- **Fully Typed**: Offers a strongly-typed wrapper around the Aries Cloud Agent Python, enhancing developer experience and reducing errors.
50-
- **Up-to-Date Support**: Compatible with the latest ACA-Py version (1.0.0), ensuring access to the most recent features and improvements.
50+
- **Up-to-Date Support**: Compatible with the latest ACA-Py version (1.0.0b0), ensuring access to the most recent features and improvements.
5151
- **Auto-Generated Client**: Utilizes OpenAPI definitions for automatic generation, ensuring timely updates in line with new ACA-Py releases.
5252
- **Multi-Tenancy and Authentication Support**: Facilitates working with multi-tenant APIs and integrates various authentication mechanisms.
5353
- **Asynchronous API**: Supports asynchronous operations, enabling efficient handling of I/O-bound tasks.

aries_cloudcontroller/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
88
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
99
10-
The version of the OpenAPI document: v1.0.0
10+
The version of the OpenAPI document: v1.0.0b0
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.0.0"
17+
__version__ = "1.0.0b0"
1818

1919
from aries_cloudcontroller.acapy_client import AcaPyClient
2020

aries_cloudcontroller/api/action_menu_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/anoncreds_credential_definitions_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/anoncreds_revocation_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/anoncreds_schemas_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/anoncreds_wallet_upgrade_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/basicmessage_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/connection_api.py

+27-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.
@@ -852,6 +852,10 @@ async def get_connections(
852852
connection_protocol: Annotated[
853853
Optional[StrictStr], Field(description="Connection protocol used")
854854
] = None,
855+
descending: Annotated[
856+
Optional[StrictBool],
857+
Field(description="Order results in descending order if true"),
858+
] = None,
855859
invitation_key: Annotated[
856860
Optional[Annotated[str, Field(strict=True)]],
857861
Field(description="invitation key"),
@@ -869,6 +873,12 @@ async def get_connections(
869873
offset: Annotated[
870874
Optional[StrictInt], Field(description="Offset for pagination")
871875
] = None,
876+
order_by: Annotated[
877+
Optional[StrictStr],
878+
Field(
879+
description='The column to order results by. Only "id" is currently supported.'
880+
),
881+
] = None,
872882
state: Annotated[
873883
Optional[StrictStr], Field(description="Connection state")
874884
] = None,
@@ -902,6 +912,8 @@ async def get_connections(
902912
:type alias: str
903913
:param connection_protocol: Connection protocol used
904914
:type connection_protocol: str
915+
:param descending: Order results in descending order if true
916+
:type descending: bool
905917
:param invitation_key: invitation key
906918
:type invitation_key: str
907919
:param invitation_msg_id: Identifier of the associated Invitation Message
@@ -912,6 +924,8 @@ async def get_connections(
912924
:type my_did: str
913925
:param offset: Offset for pagination
914926
:type offset: int
927+
:param order_by: The column to order results by. Only \"id\" is currently supported.
928+
:type order_by: str
915929
:param state: Connection state
916930
:type state: str
917931
:param their_did: Their DID
@@ -926,11 +940,13 @@ async def get_connections(
926940
_param = self._get_connections_serialize(
927941
alias=alias,
928942
connection_protocol=connection_protocol,
943+
descending=descending,
929944
invitation_key=invitation_key,
930945
invitation_msg_id=invitation_msg_id,
931946
limit=limit,
932947
my_did=my_did,
933948
offset=offset,
949+
order_by=order_by,
934950
state=state,
935951
their_did=their_did,
936952
their_public_did=their_public_did,
@@ -957,11 +973,13 @@ def _get_connections_serialize(
957973
self,
958974
alias,
959975
connection_protocol,
976+
descending,
960977
invitation_key,
961978
invitation_msg_id,
962979
limit,
963980
my_did,
964981
offset,
982+
order_by,
965983
state,
966984
their_did,
967985
their_public_did,
@@ -993,6 +1011,10 @@ def _get_connections_serialize(
9931011

9941012
_query_params.append(("connection_protocol", connection_protocol))
9951013

1014+
if descending is not None:
1015+
1016+
_query_params.append(("descending", descending))
1017+
9961018
if invitation_key is not None:
9971019

9981020
_query_params.append(("invitation_key", invitation_key))
@@ -1013,6 +1035,10 @@ def _get_connections_serialize(
10131035

10141036
_query_params.append(("offset", offset))
10151037

1038+
if order_by is not None:
1039+
1040+
_query_params.append(("order_by", order_by))
1041+
10161042
if state is not None:
10171043

10181044
_query_params.append(("state", state))

aries_cloudcontroller/api/credential_definition_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/credentials_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/default_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/did_exchange_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/did_rotate_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/discover_features_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/discover_features_v20_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/endorse_transaction_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/introduction_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

aries_cloudcontroller/api/issue_credential_v10_api.py

+28-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
77
8-
The version of the OpenAPI document: v1.0.0
8+
The version of the OpenAPI document: v1.0.0b0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.
@@ -14,7 +14,7 @@
1414
import warnings
1515
from typing import Any, Dict, List, Optional, Tuple, Union
1616

17-
from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
17+
from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, validate_call
1818
from typing_extensions import Annotated
1919

2020
from aries_cloudcontroller.api_client import ApiClient, RequestSerialized
@@ -492,12 +492,22 @@ async def get_records(
492492
connection_id: Annotated[
493493
Optional[StrictStr], Field(description="Connection identifier")
494494
] = None,
495+
descending: Annotated[
496+
Optional[StrictBool],
497+
Field(description="Order results in descending order if true"),
498+
] = None,
495499
limit: Annotated[
496500
Optional[StrictInt], Field(description="Number of results to return")
497501
] = None,
498502
offset: Annotated[
499503
Optional[StrictInt], Field(description="Offset for pagination")
500504
] = None,
505+
order_by: Annotated[
506+
Optional[StrictStr],
507+
Field(
508+
description='The column to order results by. Only "id" is currently supported.'
509+
),
510+
] = None,
501511
role: Annotated[
502512
Optional[StrictStr],
503513
Field(description="Role assigned in credential exchange"),
@@ -525,10 +535,14 @@ async def get_records(
525535
526536
:param connection_id: Connection identifier
527537
:type connection_id: str
538+
:param descending: Order results in descending order if true
539+
:type descending: bool
528540
:param limit: Number of results to return
529541
:type limit: int
530542
:param offset: Offset for pagination
531543
:type offset: int
544+
:param order_by: The column to order results by. Only \"id\" is currently supported.
545+
:type order_by: str
532546
:param role: Role assigned in credential exchange
533547
:type role: str
534548
:param state: Credential exchange state
@@ -543,8 +557,10 @@ async def get_records(
543557

544558
_param = self._get_records_serialize(
545559
connection_id=connection_id,
560+
descending=descending,
546561
limit=limit,
547562
offset=offset,
563+
order_by=order_by,
548564
role=role,
549565
state=state,
550566
thread_id=thread_id,
@@ -569,8 +585,10 @@ async def get_records(
569585
def _get_records_serialize(
570586
self,
571587
connection_id,
588+
descending,
572589
limit,
573590
offset,
591+
order_by,
574592
role,
575593
state,
576594
thread_id,
@@ -597,6 +615,10 @@ def _get_records_serialize(
597615

598616
_query_params.append(("connection_id", connection_id))
599617

618+
if descending is not None:
619+
620+
_query_params.append(("descending", descending))
621+
600622
if limit is not None:
601623

602624
_query_params.append(("limit", limit))
@@ -605,6 +627,10 @@ def _get_records_serialize(
605627

606628
_query_params.append(("offset", offset))
607629

630+
if order_by is not None:
631+
632+
_query_params.append(("order_by", order_by))
633+
608634
if role is not None:
609635

610636
_query_params.append(("role", role))

0 commit comments

Comments
 (0)