Skip to content

Commit b47784a

Browse files
committed
metadata update
1 parent ec42027 commit b47784a

15 files changed

+971
-31
lines changed

Openfort.SDK.Tests/PlayerTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public async Task Delete()
3838
var deleteResponse = await client.Players.Delete(response.Id);
3939
Assert.AreEqual(deleteResponse.Deleted, true, "Player was not deleted");
4040

41-
var getRequest = new PlayerGetRequest(response.Id);
41+
var getRequest = new PlayerRequest(response.Id);
4242
await client.Players.Get(getRequest);
4343
}
4444
}

Openfort.SDK.Tests/SettingsTest.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ public class SettingsTest
1111
[TestMethod]
1212
public async Task GetDepositorAddresses()
1313
{
14-
var response = await client.Settings.GetDepositorAddresses();
14+
15+
var response = await client.Settings.GetDeveloperAccounts();
1516

1617
Assert.AreEqual(response.Data.Count, 0, "Depositor addresses were not retrieved");
1718
}
@@ -20,7 +21,7 @@ public async Task GetDepositorAddresses()
2021
[ExpectedException(typeof(ApiException), "equest has invalid parameters. Invalid address: 'test'.")]
2122
public async Task AddDepositorAddress()
2223
{
23-
var request = new PaymasterDepositorCreateRequest("test", "signature");
24-
await client.Settings.AddDepositorAddress(request);
24+
var request = new DeveloperAccountCreateRequest("test", "signature");
25+
await client.Settings.CreateDeveloperAccount(request);
2526
}
2627
}

Openfort.SDK.Tests/TransactionIntentTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public async Task Update()
1313
var playerRequest = new PlayerCreateRequest("test");
1414
var playerResponse = await client.Players.Create(playerRequest);
1515
var chainId = 80001;
16-
await client.Players.CreateAccount(new PlayerCreateAccountRequest(playerResponse.Id, chainId, "0xDC91aDF855306A44F4041625328abEAB3887b3b8"));
16+
await client.Accounts.Create(new CreateAccountRequest(chainId, "0xDC91aDF855306A44F4041625328abEAB3887b3b8", playerResponse.Id));
1717

1818
var contractRequest = new CreateContractRequest("test", chainId, "0x38090d1636069c0ff1af6bc1737fb996b7f63ac0");
1919
var contractResponse = await client.Contracts.Create(contractRequest);
@@ -31,8 +31,8 @@ public async Task Update()
3131
};
3232

3333
var transactionIntentRequest = new CreateTransactionIntentRequest(
34-
playerResponse.Id,
3534
chainId,
35+
playerResponse.Id,
3636
policyResponse.Id,
3737
interactions: interactions
3838
);

Openfort.SDK/Generated/Api/AdminAuthenticationApi.cs

+26-10
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ public interface IAdminAuthenticationApiSync : IApiAccessor
102102
/// <param name="skip">Specifies the offset for the first records to return. (optional)</param>
103103
/// <param name="order">Specifies the order in which to sort the results. (optional)</param>
104104
/// <param name="email">Specifies the email address of the user. (optional)</param>
105+
/// <param name="externalUserId">Specifies the external user ID. (optional)</param>
105106
/// <returns>AuthPlayerListResponse</returns>
106-
AuthPlayerListResponse GetAuthPlayers(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string));
107+
AuthPlayerListResponse GetAuthPlayers(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), string externalUserId = default(string));
107108

108109
/// <summary>
109110
/// List authenticated players.
@@ -116,8 +117,9 @@ public interface IAdminAuthenticationApiSync : IApiAccessor
116117
/// <param name="skip">Specifies the offset for the first records to return. (optional)</param>
117118
/// <param name="order">Specifies the order in which to sort the results. (optional)</param>
118119
/// <param name="email">Specifies the email address of the user. (optional)</param>
120+
/// <param name="externalUserId">Specifies the external user ID. (optional)</param>
119121
/// <returns>ApiResponse of AuthPlayerListResponse</returns>
120-
ApiResponse<AuthPlayerListResponse> GetAuthPlayersWithHttpInfo(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string));
122+
ApiResponse<AuthPlayerListResponse> GetAuthPlayersWithHttpInfo(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), string externalUserId = default(string));
121123
/// <summary>
122124
/// Get oauth configuration.
123125
/// </summary>
@@ -314,9 +316,10 @@ public interface IAdminAuthenticationApiAsync : IApiAccessor
314316
/// <param name="skip">Specifies the offset for the first records to return. (optional)</param>
315317
/// <param name="order">Specifies the order in which to sort the results. (optional)</param>
316318
/// <param name="email">Specifies the email address of the user. (optional)</param>
319+
/// <param name="externalUserId">Specifies the external user ID. (optional)</param>
317320
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
318321
/// <returns>Task of AuthPlayerListResponse</returns>
319-
System.Threading.Tasks.Task<AuthPlayerListResponse> GetAuthPlayersAsync(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
322+
System.Threading.Tasks.Task<AuthPlayerListResponse> GetAuthPlayersAsync(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), string externalUserId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
320323

321324
/// <summary>
322325
/// List authenticated players.
@@ -329,9 +332,10 @@ public interface IAdminAuthenticationApiAsync : IApiAccessor
329332
/// <param name="skip">Specifies the offset for the first records to return. (optional)</param>
330333
/// <param name="order">Specifies the order in which to sort the results. (optional)</param>
331334
/// <param name="email">Specifies the email address of the user. (optional)</param>
335+
/// <param name="externalUserId">Specifies the external user ID. (optional)</param>
332336
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
333337
/// <returns>Task of ApiResponse (AuthPlayerListResponse)</returns>
334-
System.Threading.Tasks.Task<ApiResponse<AuthPlayerListResponse>> GetAuthPlayersWithHttpInfoAsync(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
338+
System.Threading.Tasks.Task<ApiResponse<AuthPlayerListResponse>> GetAuthPlayersWithHttpInfoAsync(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), string externalUserId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
335339
/// <summary>
336340
/// Get oauth configuration.
337341
/// </summary>
@@ -1041,10 +1045,11 @@ public Openfort.SDK.Client.ApiResponse<Object> DeleteOAuthConfigWithHttpInfo(OAu
10411045
/// <param name="skip">Specifies the offset for the first records to return. (optional)</param>
10421046
/// <param name="order">Specifies the order in which to sort the results. (optional)</param>
10431047
/// <param name="email">Specifies the email address of the user. (optional)</param>
1048+
/// <param name="externalUserId">Specifies the external user ID. (optional)</param>
10441049
/// <returns>AuthPlayerListResponse</returns>
1045-
public AuthPlayerListResponse GetAuthPlayers(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string))
1050+
public AuthPlayerListResponse GetAuthPlayers(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), string externalUserId = default(string))
10461051
{
1047-
Openfort.SDK.Client.ApiResponse<AuthPlayerListResponse> localVarResponse = GetAuthPlayersWithHttpInfo(limit, skip, order, email);
1052+
Openfort.SDK.Client.ApiResponse<AuthPlayerListResponse> localVarResponse = GetAuthPlayersWithHttpInfo(limit, skip, order, email, externalUserId);
10481053
return localVarResponse.Data;
10491054
}
10501055

@@ -1056,8 +1061,9 @@ public Openfort.SDK.Client.ApiResponse<Object> DeleteOAuthConfigWithHttpInfo(OAu
10561061
/// <param name="skip">Specifies the offset for the first records to return. (optional)</param>
10571062
/// <param name="order">Specifies the order in which to sort the results. (optional)</param>
10581063
/// <param name="email">Specifies the email address of the user. (optional)</param>
1064+
/// <param name="externalUserId">Specifies the external user ID. (optional)</param>
10591065
/// <returns>ApiResponse of AuthPlayerListResponse</returns>
1060-
public Openfort.SDK.Client.ApiResponse<AuthPlayerListResponse> GetAuthPlayersWithHttpInfo(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string))
1066+
public Openfort.SDK.Client.ApiResponse<AuthPlayerListResponse> GetAuthPlayersWithHttpInfo(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), string externalUserId = default(string))
10611067
{
10621068
Openfort.SDK.Client.RequestOptions localVarRequestOptions = new Openfort.SDK.Client.RequestOptions();
10631069

@@ -1091,6 +1097,10 @@ public Openfort.SDK.Client.ApiResponse<Object> DeleteOAuthConfigWithHttpInfo(OAu
10911097
{
10921098
localVarRequestOptions.QueryParameters.Add(Openfort.SDK.Client.ClientUtils.ParameterToMultiMap("", "email", email));
10931099
}
1100+
if (externalUserId != null)
1101+
{
1102+
localVarRequestOptions.QueryParameters.Add(Openfort.SDK.Client.ClientUtils.ParameterToMultiMap("", "externalUserId", externalUserId));
1103+
}
10941104

10951105
// authentication (sk) required
10961106
// bearer authentication required
@@ -1119,11 +1129,12 @@ public Openfort.SDK.Client.ApiResponse<Object> DeleteOAuthConfigWithHttpInfo(OAu
11191129
/// <param name="skip">Specifies the offset for the first records to return. (optional)</param>
11201130
/// <param name="order">Specifies the order in which to sort the results. (optional)</param>
11211131
/// <param name="email">Specifies the email address of the user. (optional)</param>
1132+
/// <param name="externalUserId">Specifies the external user ID. (optional)</param>
11221133
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
11231134
/// <returns>Task of AuthPlayerListResponse</returns>
1124-
public async System.Threading.Tasks.Task<AuthPlayerListResponse> GetAuthPlayersAsync(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
1135+
public async System.Threading.Tasks.Task<AuthPlayerListResponse> GetAuthPlayersAsync(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), string externalUserId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
11251136
{
1126-
Openfort.SDK.Client.ApiResponse<AuthPlayerListResponse> localVarResponse = await GetAuthPlayersWithHttpInfoAsync(limit, skip, order, email, cancellationToken).ConfigureAwait(false);
1137+
Openfort.SDK.Client.ApiResponse<AuthPlayerListResponse> localVarResponse = await GetAuthPlayersWithHttpInfoAsync(limit, skip, order, email, externalUserId, cancellationToken).ConfigureAwait(false);
11271138
return localVarResponse.Data;
11281139
}
11291140

@@ -1135,9 +1146,10 @@ public Openfort.SDK.Client.ApiResponse<Object> DeleteOAuthConfigWithHttpInfo(OAu
11351146
/// <param name="skip">Specifies the offset for the first records to return. (optional)</param>
11361147
/// <param name="order">Specifies the order in which to sort the results. (optional)</param>
11371148
/// <param name="email">Specifies the email address of the user. (optional)</param>
1149+
/// <param name="externalUserId">Specifies the external user ID. (optional)</param>
11381150
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
11391151
/// <returns>Task of ApiResponse (AuthPlayerListResponse)</returns>
1140-
public async System.Threading.Tasks.Task<Openfort.SDK.Client.ApiResponse<AuthPlayerListResponse>> GetAuthPlayersWithHttpInfoAsync(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
1152+
public async System.Threading.Tasks.Task<Openfort.SDK.Client.ApiResponse<AuthPlayerListResponse>> GetAuthPlayersWithHttpInfoAsync(int? limit = default(int?), int? skip = default(int?), SortOrder? order = default(SortOrder?), string email = default(string), string externalUserId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
11411153
{
11421154

11431155
Openfort.SDK.Client.RequestOptions localVarRequestOptions = new Openfort.SDK.Client.RequestOptions();
@@ -1173,6 +1185,10 @@ public Openfort.SDK.Client.ApiResponse<Object> DeleteOAuthConfigWithHttpInfo(OAu
11731185
{
11741186
localVarRequestOptions.QueryParameters.Add(Openfort.SDK.Client.ClientUtils.ParameterToMultiMap("", "email", email));
11751187
}
1188+
if (externalUserId != null)
1189+
{
1190+
localVarRequestOptions.QueryParameters.Add(Openfort.SDK.Client.ClientUtils.ParameterToMultiMap("", "externalUserId", externalUserId));
1191+
}
11761192

11771193
// authentication (sk) required
11781194
// bearer authentication required

0 commit comments

Comments
 (0)