Skip to content

Commit

Permalink
feat: update client all
Browse files Browse the repository at this point in the history
  • Loading branch information
maratsh committed Oct 29, 2024
1 parent 999fb6d commit be333d4
Show file tree
Hide file tree
Showing 69 changed files with 126 additions and 83 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
2 changes: 1 addition & 1 deletion clients/dart/credential_issuance_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Generator version: 7.8.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.DartClientCodegen
For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
2 changes: 1 addition & 1 deletion clients/dart/credential_verification_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Generator version: 7.8.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.DartClientCodegen
For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)

Expand Down
2 changes: 1 addition & 1 deletion clients/dart/iam_client/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
2 changes: 1 addition & 1 deletion clients/dart/iam_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Generator version: 7.8.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.DartClientCodegen
For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)

Expand Down
2 changes: 1 addition & 1 deletion clients/dart/iota_client/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
2 changes: 1 addition & 1 deletion clients/dart/iota_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Generator version: 7.8.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.DartClientCodegen
For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)

Expand Down
1 change: 1 addition & 0 deletions clients/dart/iota_client/doc/CallbackInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ import 'package:affinidi_tdk_iota_client/api.dart';
| **vpToken** | **String** | A string that must be a valid JSON object. Ensure to escape special characters properly.. | [optional] |
| **error** | **String** | The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to access_denied | [optional] |
| **errorDescription** | **String** | Description of the error in a human readable format | [optional] |
| **onboarded** | **bool** | Specifies whether the Iota share triggered the creation of a Vault | [optional] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
24 changes: 21 additions & 3 deletions clients/dart/iota_client/lib/model/callback_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class CallbackInput {
this.vpToken,
this.error,
this.errorDescription,
this.onboarded,
});

/// A string that must be a valid UUID (version 1-5).
Expand Down Expand Up @@ -59,13 +60,23 @@ class CallbackInput {
///
String? errorDescription;

/// Specifies whether the Iota share triggered the creation of a Vault
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
bool? onboarded;

@override
bool operator ==(Object other) => identical(this, other) || other is CallbackInput &&
other.state == state &&
other.presentationSubmission == presentationSubmission &&
other.vpToken == vpToken &&
other.error == error &&
other.errorDescription == errorDescription;
other.errorDescription == errorDescription &&
other.onboarded == onboarded;

@override
int get hashCode =>
Expand All @@ -74,10 +85,11 @@ class CallbackInput {
(presentationSubmission == null ? 0 : presentationSubmission!.hashCode) +
(vpToken == null ? 0 : vpToken!.hashCode) +
(error == null ? 0 : error!.hashCode) +
(errorDescription == null ? 0 : errorDescription!.hashCode);
(errorDescription == null ? 0 : errorDescription!.hashCode) +
(onboarded == null ? 0 : onboarded!.hashCode);

@override
String toString() => 'CallbackInput[state=$state, presentationSubmission=$presentationSubmission, vpToken=$vpToken, error=$error, errorDescription=$errorDescription]';
String toString() => 'CallbackInput[state=$state, presentationSubmission=$presentationSubmission, vpToken=$vpToken, error=$error, errorDescription=$errorDescription, onboarded=$onboarded]';

Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
Expand All @@ -102,6 +114,11 @@ class CallbackInput {
} else {
json[r'error_description'] = null;
}
if (this.onboarded != null) {
json[r'onboarded'] = this.onboarded;
} else {
json[r'onboarded'] = null;
}
return json;
}

Expand Down Expand Up @@ -129,6 +146,7 @@ class CallbackInput {
vpToken: mapValueOfType<String>(json, r'vp_token'),
error: mapValueOfType<String>(json, r'error'),
errorDescription: mapValueOfType<String>(json, r'error_description'),
onboarded: mapValueOfType<bool>(json, r'onboarded'),
);
}
return null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
2 changes: 1 addition & 1 deletion clients/dart/login_configuration_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Generator version: 7.8.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.DartClientCodegen
For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)

Expand Down
2 changes: 1 addition & 1 deletion clients/dart/wallets_client/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
2 changes: 1 addition & 1 deletion clients/dart/wallets_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Generator version: 7.8.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.DartClientCodegen
For more information, please visit [https://github.com/affinidi/affinidi-tdk](https://github.com/affinidi/affinidi-tdk)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ def request(self, method, url, query_params=None, headers=None,
# Content-Type which generated by urllib3 will be
# overwritten.
del headers['Content-Type']
# Ensures that dict objects are serialized
post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
r = self.pool_manager.request(
method, url,
fields=post_params,
Expand Down
2 changes: 1 addition & 1 deletion clients/python/credential_issuance_client/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "CredentialIssuanceService"]
include = ["affinidi_tdk_credential_issuance_client/py.typed"]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"

urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2"
Expand Down
2 changes: 1 addition & 1 deletion clients/python/credential_issuance_client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3 >= 1.25.3, < 2.1.0
urllib3 >= 1.25.3, < 3.0.0
pydantic >= 1.10.5, < 2
aenum >= 3.1.11
2 changes: 1 addition & 1 deletion clients/python/credential_issuance_client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
VERSION = "1.0.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
"urllib3 >= 1.25.3, < 3.0.0",
"python-dateutil",
"pydantic >= 1.10.5, < 2",
"aenum"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def to_dict(self) -> dict:
if callable(to_json):
return self.actual_instance.to_dict()
else:
return json.dumps(self.actual_instance)
# primitive type
return self.actual_instance

def to_str(self) -> str:
"""Returns the string representation of the actual instance"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def to_dict(self) -> dict:
if callable(to_json):
return self.actual_instance.to_dict()
else:
return json.dumps(self.actual_instance)
# primitive type
return self.actual_instance

def to_str(self) -> str:
"""Returns the string representation of the actual instance"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ def request(self, method, url, query_params=None, headers=None,
# Content-Type which generated by urllib3 will be
# overwritten.
del headers['Content-Type']
# Ensures that dict objects are serialized
post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
r = self.pool_manager.request(
method, url,
fields=post_params,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "VerificationService"]
include = ["affinidi_tdk_credential_verification_client/py.typed"]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"

urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3 >= 1.25.3, < 2.1.0
urllib3 >= 1.25.3, < 3.0.0
pydantic >= 1.10.5, < 2
aenum >= 3.1.11
2 changes: 1 addition & 1 deletion clients/python/credential_verification_client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
VERSION = "1.0.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
"urllib3 >= 1.25.3, < 3.0.0",
"python-dateutil",
"pydantic >= 1.10.5, < 2",
"aenum"
Expand Down
4 changes: 2 additions & 2 deletions clients/python/iam_client/.github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion clients/python/iam_client/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
2 changes: 2 additions & 0 deletions clients/python/iam_client/affinidi_tdk_iam_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ def request(self, method, url, query_params=None, headers=None,
# Content-Type which generated by urllib3 will be
# overwritten.
del headers['Content-Type']
# Ensures that dict objects are serialized
post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
r = self.pool_manager.request(
method, url,
fields=post_params,
Expand Down
2 changes: 1 addition & 1 deletion clients/python/iam_client/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Iam"]
include = ["affinidi_tdk_iam_client/py.typed"]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"

urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2"
Expand Down
2 changes: 1 addition & 1 deletion clients/python/iam_client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3 >= 1.25.3, < 2.1.0
urllib3 >= 1.25.3, < 3.0.0
pydantic >= 1.10.5, < 2
aenum >= 3.1.11
2 changes: 1 addition & 1 deletion clients/python/iam_client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
VERSION = "1.0.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
"urllib3 >= 1.25.3, < 3.0.0",
"python-dateutil",
"pydantic >= 1.10.5, < 2",
"aenum"
Expand Down
4 changes: 2 additions & 2 deletions clients/python/iota_client/.github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion clients/python/iota_client/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0
7.9.0
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


from typing import Optional
from pydantic import BaseModel, Field, StrictStr
from pydantic import BaseModel, Field, StrictBool, StrictStr

class CallbackInput(BaseModel):
"""
Expand All @@ -31,7 +31,8 @@ class CallbackInput(BaseModel):
vp_token: Optional[StrictStr] = Field(default=None, description="A string that must be a valid JSON object. Ensure to escape special characters properly..")
error: Optional[StrictStr] = Field(default=None, description="The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to access_denied")
error_description: Optional[StrictStr] = Field(default=None, description="Description of the error in a human readable format")
__properties = ["state", "presentation_submission", "vp_token", "error", "error_description"]
onboarded: Optional[StrictBool] = Field(default=None, description="Specifies whether the Iota share triggered the creation of a Vault")
__properties = ["state", "presentation_submission", "vp_token", "error", "error_description", "onboarded"]

class Config:
"""Pydantic configuration"""
Expand Down Expand Up @@ -73,7 +74,8 @@ def from_dict(cls, obj: dict) -> CallbackInput:
"presentation_submission": obj.get("presentation_submission"),
"vp_token": obj.get("vp_token"),
"error": obj.get("error"),
"error_description": obj.get("error_description")
"error_description": obj.get("error_description"),
"onboarded": obj.get("onboarded")
})
return _obj

Expand Down
2 changes: 2 additions & 0 deletions clients/python/iota_client/affinidi_tdk_iota_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ def request(self, method, url, query_params=None, headers=None,
# Content-Type which generated by urllib3 will be
# overwritten.
del headers['Content-Type']
# Ensures that dict objects are serialized
post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
r = self.pool_manager.request(
method, url,
fields=post_params,
Expand Down
15 changes: 8 additions & 7 deletions clients/python/iota_client/docs/CallbackInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

## Properties

| Name | Type | Description | Notes |
| --------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------ | ---------- |
| **state** | **str** | A string that must be a valid UUID (version 1-5). |
| **presentation_submission** | **str** | A string that must be a valid JSON object. The structure of presentation submission should follow OID4VP standard. | [optional] |
| **vp_token** | **str** | A string that must be a valid JSON object. Ensure to escape special characters properly.. | [optional] |
| **error** | **str** | The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to access_denied | [optional] |
| **error_description** | **str** | Description of the error in a human readable format | [optional] |
| Name | Type | Description | Notes |
| --------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------ | ---------- |
| **state** | **str** | A string that must be a valid UUID (version 1-5). |
| **presentation_submission** | **str** | A string that must be a valid JSON object. The structure of presentation submission should follow OID4VP standard. | [optional] |
| **vp_token** | **str** | A string that must be a valid JSON object. Ensure to escape special characters properly.. | [optional] |
| **error** | **str** | The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to access_denied | [optional] |
| **error_description** | **str** | Description of the error in a human readable format | [optional] |
| **onboarded** | **bool** | Specifies whether the Iota share triggered the creation of a Vault | [optional] |

## Example

Expand Down
Loading

0 comments on commit be333d4

Please sign in to comment.