Skip to content

Commit 771d148

Browse files
committed
Copied proto files from server repo
1 parent 9e294c1 commit 771d148

File tree

4 files changed

+53
-13
lines changed

4 files changed

+53
-13
lines changed

proto/services/provider/v1/access-management.proto

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ message AddRoleAssignmentRequest {
1414
// Role to assign
1515
string role = 1;
1616
oneof account {
17-
// Email address of account to assign role to.
18-
// Mutually exclusive with `walletId`.
17+
// Email address of account to assign role.
18+
// Mutually exclusive with `walletId` and `didUri`.
1919
string email = 2;
2020
// Wallet ID of account to assign role to.
21-
// Mutually exclusive with `email`.
21+
// Mutually exclusive with `email` and `didUri`.
2222
string wallet_id = 3;
23+
// DID URI of the account to assign role.
24+
// Mutually exclusive with `email` and `walletId`.
25+
string did_uri = 4;
2326
}
2427
}
2528
message AddRoleAssignmentResponse {}
@@ -28,25 +31,31 @@ message RemoveRoleAssignmentRequest {
2831
// Role to unassign
2932
string role = 1;
3033
oneof account {
31-
// Email address of account to unassign role from.
32-
// Mutually exclusive with `walletId`.
34+
// Email address of account to unassign role.
35+
// Mutually exclusive with `walletId` and `didUri`.
3336
string email = 2;
34-
// Wallet ID of account to unassign role from.
35-
// Mutually exclusive with `email`.
37+
// Wallet ID of account to unassign role.
38+
// Mutually exclusive with `email` and `didUri`.
3639
string wallet_id = 3;
40+
// DID URI of the account to unassign role.
41+
// Mutually exclusive with `email` and `walletId`.
42+
string did_uri = 4;
3743
}
3844
}
3945
message RemoveRoleAssignmentResponse {}
4046

4147
// Request to fetch the list of roles assigned to the current account
4248
message ListRoleAssignmentsRequest {
4349
oneof account {
44-
// Email address of account to unassign role from.
45-
// Mutually exclusive with `walletId`.
50+
// Email address of account to list roles.
51+
// Mutually exclusive with `walletId` and `didUri`.
4652
string email = 2;
47-
// Wallet ID of account to unassign role from.
48-
// Mutually exclusive with `email`.
53+
// Wallet ID of account to list roles.
54+
// Mutually exclusive with `email` and `didUri`.
4955
string wallet_id = 3;
56+
// DID URI of the account to list roles.
57+
// Mutually exclusive with `email` and `walletId`.
58+
string did_uri = 4;
5059
}
5160
}
5261
message ListRoleAssignmentsResponse {

proto/services/provider/v1/provider.proto

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,16 @@ message IndyOptions {
371371
message UpgradeDidRequest {
372372
oneof account {
373373
// Email address of account to upgrade.
374-
// Mutually exclusive with `walletId`.
374+
// Mutually exclusive with `walletId` and `didUri`.
375375
string email = 1;
376376

377377
// Wallet ID of account to upgrade.
378-
// Mutually exclusive with `email`.
378+
// Mutually exclusive with `email` and `didUri`.
379379
string wallet_id = 2;
380+
381+
// DID URI of the account to upgrade.
382+
// Mutually exclusive with `email` and `walletId`.
383+
string did_uri = 6;
380384
}
381385

382386
// DID Method to which wallet should be upgraded

proto/services/universal-wallet/v1/universal-wallet.proto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,28 @@ message DeleteItemRequest {
9090
message DeleteItemResponse {
9191
}
9292

93+
94+
// Request to delete a wallet
95+
message DeleteWalletRequest {
96+
oneof account {
97+
// Email address of account to delete.
98+
// Mutually exclusive with `walletId` and `didUri`.
99+
string email = 1;
100+
101+
// Wallet ID of account to delete.
102+
// Mutually exclusive with `email` and `didUri`.
103+
string wallet_id = 2;
104+
105+
// DID URI of the account to delete.
106+
// Mutually exclusive with `email` and `walletId`.
107+
string did_uri = 4;
108+
}
109+
}
110+
111+
// Response to `DeleteWalletRequest`. Empty payload.
112+
message DeleteWalletResponse {
113+
}
114+
93115
service UniversalWallet {
94116
// Retrieve an item from the wallet with a given item identifier
95117
rpc GetItem(GetItemRequest) returns (GetItemResponse);
@@ -101,5 +123,7 @@ service UniversalWallet {
101123
rpc UpdateItem(UpdateItemRequest) returns (UpdateItemResponse);
102124
// Delete an item from the wallet permanently
103125
rpc DeleteItem(DeleteItemRequest) returns (DeleteItemResponse);
126+
// Delete a wallet and its credentials
127+
rpc DeleteWallet(DeleteWalletRequest) returns (DeleteWalletResponse);
104128
}
105129

proto/services/verifiable-credentials/v1/verifiable-credentials.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ message SendRequest {
132132
// string didcomm_invitation_json = 3 [deprecated=true];
133133
// Wallet ID of the recipient within the ecosystem
134134
string wallet_id = 5;
135+
136+
// DID URI of the recipient
137+
string did_uri = 6;
135138
}
136139
// Send email notification that credential has been sent to a wallet
137140
bool send_notification = 4;

0 commit comments

Comments
 (0)