8000 feat: update all clients by affinidi-tdk[bot] · Pull Request #233 · affinidi/affinidi-tdk-dart · GitHub
[go: up one dir, main page]

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
6 changes: 4 additions & 2 deletions clients/credential_issuance_client/doc/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **listIssuanceDataRecords**
> ListIssuanceRecordResponse listIssuanceDataRecords(projectId, configurationId, limit, exclusiveStartKey)
> ListIssuanceRecordResponse listIssuanceDataRecords(projectId, configurationId, issuanceId, limit, exclusiveStartKey)

List records

Expand All @@ -82,11 +82,12 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart';
final api = AffinidiTdkCredentialIssuanceClient().getDefaultApi();
final String projectId = projectId_example; // String | Affinidi project id
final String configurationId = configurationId_example; // String | The id of the issuance configuration
final String issuanceId = issuanceId_example; // String | Optional filter to retrieve records for a specific issuance ID
final int limit = 56; // int | Maximum number of records to fetch in a list
final String exclusiveStartKey = exclusiveStartKey_example; // String | exclusiveStartKey for retrieving the next batch of data.

try {
final response = api.listIssuanceDataRecords(projectId, configurationId, limit, exclusiveStartKey);
final response = api.listIssuanceDataRecords(projectId, configurationId, issuanceId, limit, exclusiveStartKey);
print(response);
} catch on DioException (e) {
print('Exception when calling DefaultApi->listIssuanceDataRecords: $e\n');
Expand All @@ -99,6 +100,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | **String**| Affinidi project id |
**configurationId** | **String**| The id of the issuance configuration |
**issuanceId** | **String**| Optional filter to retrieve records for a specific issuance ID | [optional]
**limit** | **int**| Maximum number of records to fetch in a list | [optional] [default to 10]
**exclusiveStartKey** | **String**| exclusiveStartKey for retrieving the next batch of data. | [optional]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class DefaultApi {
/// Parameters:
/// * [projectId] - Affinidi project id
/// * [configurationId] - The id of the issuance configuration
/// * [issuanceId] - Optional filter to retrieve records for a specific issuance ID
/// * [limit] - Maximum number of records to fetch in a list
/// * [exclusiveStartKey] - exclusiveStartKey for retrieving the next batch of data.
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
Expand All @@ -165,6 +166,7 @@ class DefaultApi {
Future<Response<ListIssuanceRecordResponse>> listIssuanceDataRecords({
required String projectId,
required String configurationId,
String? issuanceId,
int? limit = 10,
String? exclusiveStartKey,
CancelToken? cancelToken,
Expand Down Expand Up @@ -214,6 +216,12 @@ class DefaultApi {
);

final _queryParameters = <String, dynamic>{
if (issuanceId != null)
r'issuanceId': encodeQueryParameter(
_serializers,
issuanceId,
const FullType(String),
),
if (limit != null)
r'limit': encodeQueryParameter(
_serializers,
Expand Down
2 changes: 1 addition & 1 deletion clients/vault_data_manager_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Affinidi TDK dart client for Affinidi VAULT DATA MANAGER
To use the package from [pub.dev](https://pub.dev), please include the following in pubspec.yaml
```yaml
dependencies:
affinidi_tdk_vault_data_manager_client: ^2.2.0
affinidi_tdk_vault_data_manager_client: ^2.3.0
```

### Github
Expand Down
2 changes: 1 addition & 1 deletion clients/wallets_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Affinidi TDK dart client for Affinidi WALLETS
To use the package from [pub.dev](https://pub.dev), please include the following in pubspec.yaml
```yaml
dependencies:
affinidi_tdk_wallets_client: ^2.0.0
affinidi_tdk_wallets_client: ^2.1.0
```

### Github
Expand Down
3 changes: 2 additions & 1 deletion clients/wallets_client/doc/CreateWalletKeyInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import 'package:affinidi_tdk_wallets_client/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**keyType** | **String** | cryptographic algorithm for the new key |
**algorithm** | **String** | cryptographic algorithm for the new key | [optional]
**keyType** | **String** | Deprecated alias of `algorithm`. Accepted for backward compatibility; prefer `algorithm`. If both are sent, `algorithm` takes precedence. | [optional]
**relationships** | [**BuiltList&lt;VerificationRelationship&gt;**](VerificationRelationship.md) | verification relationships for the key. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions clients/wallets_client/doc/WalletDto.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Name | Type | Description | Notes
**keys** | [**BuiltList&lt;WalletDtoKeysInner&gt;**](WalletDtoKeysInner.md) | | [optional]
**createdAt** | **String** | | [optional]
**modifiedAt** | **String** | | [optional]
**version** | **int** | The version of the wallet | [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)

Expand Down
3 changes: 2 additions & 1 deletion clients/wallets_client/doc/WalletKeyDto.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import 'package:affinidi_tdk_wallets_client/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**keyId** | **String** | wallet-scoped key identifier (e.g., \"key-1\") | [optional]
**keyType** | **String** | cryptographic algorithm used by this key | [optional]
**algorithm** | **String** | cryptographic algorithm used by this key | [optional]
**keyType** | **String** | Deprecated alias of `algorithm`. Always equal to `algorithm` and included for backward compatibility. | [optional]
**keyAri** | **String** | ARI identifier for the key (e.g., \"ari:key:...\") | [optional]
**relationships** | [**BuiltList&lt;VerificationRelationship&gt;**](VerificationRelationship.md) | verification relationships this key supports | [optional]

Expand Down
1 change: 1 addition & 0 deletions clients/wallets_client/doc/WalletV2Dto.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Name | Type | Description | Notes
**services** | [**BuiltList&lt;ServiceEndpointDto&gt;**](ServiceEndpointDto.md) | list of service endpoints associated with this wallet | [optional]
**createdAt** | **String** | | [optional]
**modifiedAt** | **String** | | [optional]
**version** | **int** | The version of the wallet | [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)

Expand Down
79 changes: 69 additions & 10 deletions clients/wallets_client/lib/src/model/create_wallet_key_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,21 @@ part 'create_wallet_key_input.g.dart';
/// Input for adding a new key to a wallet. Only supported for did:web ATM.
///
/// Properties:
/// * [keyType] - cryptographic algorithm for the new key
/// * [algorithm] - cryptographic algorithm for the new key
/// * [keyType] - Deprecated alias of `algorithm`. Accepted for backward compatibility; prefer `algorithm`. If both are sent, `algorithm` takes precedence.
/// * [relationships] - verification relationships for the key.
@BuiltValue()
abstract class CreateWalletKeyInput
implements Built<CreateWalletKeyInput, CreateWalletKeyInputBuilder> {
/// cryptographic algorithm for the new key
@BuiltValueField(wireName: r'algorithm')
CreateWalletKeyInputAlgorithmEnum? get algorithm;
// enum algorithmEnum { secp256k1, ed25519, p256, mldsa44, };

/// Deprecated alias of `algorithm`. Accepted for backward compatibility; prefer `algorithm`. If both are sent, `algorithm` takes precedence.
@Deprecated('keyType has been deprecated')
@BuiltValueField(wireName: r'keyType')
CreateWalletKeyInputKeyTypeEnum get keyType;
CreateWalletKeyInputKeyTypeEnum? get keyType;
// enum keyTypeEnum { secp256k1, ed25519, p256, };

/// verification relationships for the key.
Expand Down Expand Up @@ -56,11 +63,20 @@ class _$CreateWalletKeyInputSerializer
CreateWalletKeyInput object, {
FullType specifiedType = FullType.unspecified,
}) sync* {
yield r'keyType';
yield serializers.serialize(
object.keyType,
specifiedType: const FullType(CreateWalletKeyInputKeyTypeEnum),
);
if (object.algorithm != null) {
yield r'algorithm';
yield serializers.serialize(
object.algorithm,
specifiedType: const FullType(CreateWalletKeyInputAlgorithmEnum),
);
}
if (object.keyType != null) {
yield r'keyType';
yield serializers.serialize(
object.keyType,
specifiedType: const FullType(CreateWalletKeyInputKeyTypeEnum),
);
}
yield r'relationships';
yield serializers.serialize(
object.relationships,
Expand Down Expand Up @@ -95,6 +111,17 @@ class _$CreateWalletKeyInputSerializer
final key = serializedList[i] as String;
final value = serializedList[i + 1];
switch (key) {
case r'algorithm':
final valueDes =
serializers.deserialize(
value,
specifiedType: const FullType(
CreateWalletKeyInputAlgorithmEnum,
),
)
as CreateWalletKeyInputAlgorithmEnum;
result.algorithm = valueDes;
break;
case r'keyType':
final valueDes =
serializers.deserialize(
Expand Down Expand Up @@ -146,18 +173,50 @@ class _$CreateWalletKeyInputSerializer
}
}

class CreateWalletKeyInputKeyTypeEnum extends EnumClass {
class CreateWalletKeyInputAlgorithmEnum extends EnumClass {
/// cryptographic algorithm for the new key
@BuiltValueEnumConst(wireName: r'secp256k1')
static const CreateWalletKeyInputAlgorithmEnum secp256k1 =
_$createWalletKeyInputAlgorithmEnum_secp256k1;

/// cryptographic algorithm for the new key
@BuiltValueEnumConst(wireName: r'ed25519')
static const CreateWalletKeyInputAlgorithmEnum ed25519 =
_$createWalletKeyInputAlgorithmEnum_ed25519;

/// cryptographic algorithm for the new key
@BuiltValueEnumConst(wireName: r'p256')
static const CreateWalletKeyInputAlgorithmEnum p256 =
_$createWalletKeyInputAlgorithmEnum_p256;

/// cryptographic algorithm for the new key
@BuiltValueEnumConst(wireName: r'mldsa44')
static const CreateWalletKeyInputAlgorithmEnum mldsa44 =
_$createWalletKeyInputAlgorithmEnum_mldsa44;

static Serializer<CreateWalletKeyInputAlgorithmEnum> get serializer =>
_$createWalletKeyInputAlgorithmEnumSerializer;

const CreateWalletKeyInputAlgorithmEnum._(String name) : super(name);

static BuiltSet<CreateWalletKeyInputAlgorithmEnum> get values =>
_$createWalletKeyInputAlgorithmEnumValues;
static CreateWalletKeyInputAlgorithmEnum valueOf(String name) =>
_$createWalletKeyInputAlgorithmEnumValueOf(name);
}

class CreateWalletKeyInputKeyTypeEnum extends EnumClass {
/// Deprecated alias of `algorithm`. Accepted for backward compatibility; prefer `algorithm`. If both are sent, `algorithm` takes precedence.
@BuiltValueEnumConst(wireName: r'secp256k1')
static const CreateWalletKeyInputKeyTypeEnum secp256k1 =
_$createWalletKeyInputKeyTypeEnum_secp256k1;

/// cryptographic algorithm for the new key
/// Deprecated alias of `algorithm`. Accepted for backward compatibility; prefer `algorithm`. If both are sent, `algorithm` takes precedence.
@BuiltValueEnumConst(wireName: r'ed25519')
static const CreateWalletKeyInputKeyTypeEnum ed25519 =
_$createWalletKeyInputKeyTypeEnum_ed25519;

/// cryptographic algorithm for the new key
/// Deprecated alias of `algorithm`. Accepted for backward compatibility; prefer `algorithm`. If both are sent, `algorithm` takes precedence.
@BuiltValueEnumConst(wireName: r'p256')
static const CreateWalletKeyInputKeyTypeEnum p256 =
_$createWalletKeyInputKeyTypeEnum_p256;
Expand Down
Loading
Loading
0