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 7, 2024
1 parent 72cdf10 commit 2963614
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 44 deletions.
24 changes: 12 additions & 12 deletions clients/dart/iota_client/doc/UpdateConfigurationByIdInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import 'package:affinidi_tdk_iota_client/api.dart';

## Properties

| Name | Type | Description | Notes |
| -------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
| **name** | **String** | The name of the config | [optional] |
| **walletAri** | **String** | The wallet Ari that will be used to sign | [optional] |
| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] |
| **enableVerification** | **bool** | | [optional] |
| **enableConsentAuditLog** | **bool** | | [optional] |
| **tokenMaxAge** | **int** | token time to live in seconds | [optional] |
| **description** | **String** | The description of the config | [optional] |
| **clientMetadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | [optional] |
| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [optional] [default to 'websocket'] |
| **redirectUris** | **List<String>** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect. | [optional] [default to const []] |
| Name | Type | Description | Notes |
| -------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| **name** | **String** | The name of the config | [optional] |
| **walletAri** | **String** | The wallet Ari that will be used to sign | [optional] |
| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] |
| **enableVerification** | **bool** | | [optional] |
| **enableConsentAuditLog** | **bool** | | [optional] |
| **tokenMaxAge** | **int** | token time to live in seconds | [optional] |
| **description** | **String** | The description of the config | [optional] |
| **clientMetadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | [optional] |
| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [optional] |
| **redirectUris** | **List<String>** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect. | [optional] [default to const []] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class UpdateConfigurationByIdInput {
this.tokenMaxAge,
this.description,
this.clientMetadata,
this.mode = const UpdateConfigurationByIdInputModeEnum._('websocket'),
this.mode,
this.redirectUris = const [],
});

Expand Down Expand Up @@ -95,7 +95,7 @@ class UpdateConfigurationByIdInput {
IotaConfigurationDtoClientMetadata? clientMetadata;

/// indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request.
UpdateConfigurationByIdInputModeEnum mode;
UpdateConfigurationByIdInputModeEnum? mode;

/// the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect.
List<String> redirectUris;
Expand Down Expand Up @@ -124,7 +124,7 @@ class UpdateConfigurationByIdInput {
(tokenMaxAge == null ? 0 : tokenMaxAge!.hashCode) +
(description == null ? 0 : description!.hashCode) +
(clientMetadata == null ? 0 : clientMetadata!.hashCode) +
(mode.hashCode) +
(mode == null ? 0 : mode!.hashCode) +
(redirectUris.hashCode);

@override
Expand Down Expand Up @@ -172,7 +172,11 @@ class UpdateConfigurationByIdInput {
} else {
json[r'clientMetadata'] = null;
}
if (this.mode != null) {
json[r'mode'] = this.mode;
} else {
json[r'mode'] = null;
}
json[r'redirectUris'] = this.redirectUris;
return json;
}
Expand Down Expand Up @@ -204,7 +208,7 @@ class UpdateConfigurationByIdInput {
tokenMaxAge: mapValueOfType<int>(json, r'tokenMaxAge'),
description: mapValueOfType<String>(json, r'description'),
clientMetadata: IotaConfigurationDtoClientMetadata.fromJson(json[r'clientMetadata']),
mode: UpdateConfigurationByIdInputModeEnum.fromJson(json[r'mode']) ?? 'websocket',
mode: UpdateConfigurationByIdInputModeEnum.fromJson(json[r'mode']),
redirectUris: json[r'redirectUris'] is Iterable
? (json[r'redirectUris'] as Iterable).cast<String>().toList(growable: false)
: const [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@



from pydantic import BaseModel, Field, StrictStr
from pydantic import BaseModel, Field, StrictStr, constr

class FetchIOTAVPResponseInput(BaseModel):
"""
FetchIOTAVPResponseInput
"""
correlation_id: StrictStr = Field(default=..., alias="correlationId", description="The correlation ID")
transaction_id: StrictStr = Field(default=..., alias="transactionId", description="The transaction ID")
response_code: StrictStr = Field(default=..., alias="responseCode", description="The response code.")
response_code: constr(strict=True, max_length=255, min_length=1) = Field(default=..., alias="responseCode", description="The response code.")
configuration_id: StrictStr = Field(default=..., alias="configurationId", description="The configuration ID")
__properties = ["correlationId", "transactionId", "responseCode", "configurationId"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class UpdateConfigurationByIdInput(BaseModel):
token_max_age: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="tokenMaxAge", description="token time to live in seconds")
description: Optional[StrictStr] = Field(default=None, description="The description of the config")
client_metadata: Optional[IotaConfigurationDtoClientMetadata] = Field(default=None, alias="clientMetadata")
mode: Optional[StrictStr] = Field(default='websocket', description="indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request.")
mode: Optional[StrictStr] = Field(default=None, description="indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request.")
redirect_uris: Optional[conlist(StrictStr)] = Field(default=None, alias="redirectUris", description="the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect.")
__properties = ["name", "walletAri", "iotaResponseWebhookURL", "enableVerification", "enableConsentAuditLog", "tokenMaxAge", "description", "clientMetadata", "mode", "redirectUris"]

Expand Down Expand Up @@ -96,7 +96,7 @@ def from_dict(cls, obj: dict) -> UpdateConfigurationByIdInput:
"token_max_age": obj.get("tokenMaxAge"),
"description": obj.get("description"),
"client_metadata": IotaConfigurationDtoClientMetadata.from_dict(obj.get("clientMetadata")) if obj.get("clientMetadata") is not None else None,
"mode": obj.get("mode") if obj.get("mode") is not None else 'websocket',
"mode": obj.get("mode"),
"redirect_uris": obj.get("redirectUris")
})
return _obj
Expand Down
Loading

0 comments on commit 2963614

Please sign in to comment.