Skip to content

Commit 55304ed

Browse files
author
Phrase
committed
1 parent a4717a6 commit 55304ed

238 files changed

Lines changed: 332 additions & 272 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api/openapi.yaml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21190,14 +21190,13 @@ paths:
2119021190
-u USERNAME_OR_ACCESS_TOKEN \
2119121191
-X POST \
2119221192
-H 'Content-Type: application/json' \
21193-
-d '{"pr_branch":"my-feature-branch"}'
21193+
-d '{"pr_branch":"my-feature-branch", "branch":"my-strings-branch"}'
2119421194
- lang: CLI v2
2119521195
source: |-
2119621196
phrase repo_syncs export \
2119721197
--id <repo_sync_id> \
21198-
--pr_branch my-feature-branch \
21198+
--data '{"pr_branch":"my-feature-branch", "branch":"my-strings-branch"}' \
2119921199
--access_token <token>
21200-
x-cli-version: "2.24"
2120121200
x-content-type: application/json
2120221201
x-accepts: application/json
2120321202
/accounts/{account_id}/repo_syncs/{id}/import:
@@ -21233,15 +21232,6 @@ paths:
2123321232
schema:
2123421233
type: string
2123521234
style: simple
21236-
- description: Branch to use
21237-
example: my-feature-branch
21238-
explode: true
21239-
in: query
21240-
name: branch
21241-
required: false
21242-
schema:
21243-
type: string
21244-
style: form
2124521235
requestBody:
2124621236
content:
2124721237
application/json:
@@ -21298,15 +21288,14 @@ paths:
2129821288
curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/import"\
2129921289
-u USERNAME_OR_ACCESS_TOKEN \
2130021290
-X POST \
21301-
-d '{"repository_branch":"my-feature-branch"}' \
21291+
-d '{"repository_branch":"my-feature-branch", "branch":"my-strings-branch"}' \
2130221292
-H 'Content-Type: application/json'
2130321293
- lang: CLI v2
2130421294
source: |-
2130521295
phrase repo_syncs import \
2130621296
--id <repo_sync_id> \
21307-
--data '{"repository_branch":"my-feature-branch"}' \
21297+
--data '{"repository_branch":"my-feature-branch", "branch":"my-strings-branch"}' \
2130821298
--access_token <token>
21309-
x-cli-version: "2.24"
2131021299
x-content-type: application/json
2131121300
x-accepts: application/json
2131221301
/accounts/{account_id}/repo_syncs/{id}/events:
@@ -35242,6 +35231,10 @@ components:
3524235231
description: Source branch to open a pull request from
3524335232
example: my-feature-branch
3524435233
type: string
35234+
branch:
35235+
description: Strings branch to export from
35236+
example: my-strings-branch
35237+
type: string
3524535238
title: repo_sync/export/parameters
3524635239
type: object
3524735240
repo_sync_import_parameters:
@@ -35250,6 +35243,10 @@ components:
3525035243
description: Branch to import from
3525135244
example: my-feature-branch
3525235245
type: string
35246+
branch:
35247+
description: Strings branch to import to
35248+
example: my-strings-branch
35249+
type: string
3525335250
title: repo_sync/import/parameters
3525435251
type: object
3525535252
space_create_parameters:

docs/RepoSyncExportParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**prBranch** | **String** | Source branch to open a pull request from | [optional]
10+
**branch** | **String** | Strings branch to export from | [optional]
1011

1112

1213

docs/RepoSyncImportParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**repositoryBranch** | **String** | Branch to import from | [optional]
10+
**branch** | **String** | Strings branch to import to | [optional]
1011

1112

1213

docs/RepoSyncsApi.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Name | Type | Description | Notes
256256

257257
<a name="repoSyncImport"></a>
258258
# **repoSyncImport**
259-
> RepoSyncEvent repoSyncImport(accountId, id, xPhraseAppOTP, branch, repoSyncImportParameters)
259+
> RepoSyncEvent repoSyncImport(accountId, id, xPhraseAppOTP, repoSyncImportParameters)
260260
261261
Import from code repository
262262

@@ -291,10 +291,9 @@ public class Example {
291291
String accountId = "accountId_example"; // String | Account ID
292292
String id = "id_example"; // String | ID
293293
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
294-
String branch = "my-feature-branch"; // String | Branch to use
295294
RepoSyncImportParameters repoSyncImportParameters = new RepoSyncImportParameters(); // RepoSyncImportParameters |
296295
try {
297-
RepoSyncEvent result = apiInstance.repoSyncImport(accountId, id, xPhraseAppOTP, branch, repoSyncImportParameters);
296+
RepoSyncEvent result = apiInstance.repoSyncImport(accountId, id, xPhraseAppOTP, repoSyncImportParameters);
298297
System.out.println(result);
299298
} catch (ApiException e) {
300299
System.err.println("Exception when calling RepoSyncsApi#repoSyncImport");
@@ -314,7 +313,6 @@ Name | Type | Description | Notes
314313
**accountId** | **String**| Account ID |
315314
**id** | **String**| ID |
316315
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
317-
**branch** | **String**| Branch to use | [optional]
318316
**repoSyncImportParameters** | [**RepoSyncImportParameters**](RepoSyncImportParameters.md)| | [optional]
319317

320318
### Return type

src/main/java/com/phrase/client/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.util.Map;
1616
import java.util.List;
1717

18-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-03-30T14:42:58.755140094Z[Etc/UTC]")
18+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-03-31T14:39:03.152759130Z[Etc/UTC]")
1919
public class ApiException extends Exception {
2020
private int code = 0;
2121
private Map<String, List<String>> responseHeaders = null;

src/main/java/com/phrase/client/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-03-30T14:42:58.755140094Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-03-31T14:39:03.152759130Z[Etc/UTC]")
1616
public class Configuration {
1717
private static ApiClient defaultApiClient = new ApiClient();
1818

src/main/java/com/phrase/client/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-03-30T14:42:58.755140094Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-03-31T14:39:03.152759130Z[Etc/UTC]")
1616
public class Pair {
1717
private String name = "";
1818
private String value = "";

src/main/java/com/phrase/client/StringUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-03-30T14:42:58.755140094Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-03-31T14:39:03.152759130Z[Etc/UTC]")
1616
public class StringUtil {
1717
/**
1818
* Check if the given array contains the given value (with case-insensitive comparison).

src/main/java/com/phrase/client/api/RepoSyncsApi.java

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@ public okhttp3.Call repoSyncExportAsync(String accountId, String id, String xPhr
488488
* @param accountId Account ID (required)
489489
* @param id ID (required)
490490
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
491-
* @param branch Branch to use (optional)
492491
* @param repoSyncImportParameters (optional)
493492
* @param _callback Callback for upload/download progress
494493
* @return Call to execute
@@ -502,7 +501,7 @@ public okhttp3.Call repoSyncExportAsync(String accountId, String id, String xPhr
502501
<tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
503502
</table>
504503
*/
505-
public okhttp3.Call repoSyncImportCall(String accountId, String id, String xPhraseAppOTP, String branch, RepoSyncImportParameters repoSyncImportParameters, final ApiCallback _callback) throws ApiException {
504+
public okhttp3.Call repoSyncImportCall(String accountId, String id, String xPhraseAppOTP, RepoSyncImportParameters repoSyncImportParameters, final ApiCallback _callback) throws ApiException {
506505
Object localVarPostBody = repoSyncImportParameters;
507506

508507
// create path and map variables
@@ -512,10 +511,6 @@ public okhttp3.Call repoSyncImportCall(String accountId, String id, String xPhra
512511

513512
List<Pair> localVarQueryParams = new ArrayList<Pair>();
514513
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
515-
if (branch != null) {
516-
localVarQueryParams.addAll(localVarApiClient.parameterToPair("branch", branch));
517-
}
518-
519514
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
520515
if (xPhraseAppOTP != null) {
521516
localVarHeaderParams.put("X-PhraseApp-OTP", localVarApiClient.parameterToString(xPhraseAppOTP));
@@ -542,7 +537,7 @@ public okhttp3.Call repoSyncImportCall(String accountId, String id, String xPhra
542537
}
543538

544539
@SuppressWarnings("rawtypes")
545-
private okhttp3.Call repoSyncImportValidateBeforeCall(String accountId, String id, String xPhraseAppOTP, String branch, RepoSyncImportParameters repoSyncImportParameters, final ApiCallback _callback) throws ApiException {
540+
private okhttp3.Call repoSyncImportValidateBeforeCall(String accountId, String id, String xPhraseAppOTP, RepoSyncImportParameters repoSyncImportParameters, final ApiCallback _callback) throws ApiException {
546541

547542
// verify the required parameter 'accountId' is set
548543
if (accountId == null) {
@@ -555,7 +550,7 @@ private okhttp3.Call repoSyncImportValidateBeforeCall(String accountId, String i
555550
}
556551

557552

558-
okhttp3.Call localVarCall = repoSyncImportCall(accountId, id, xPhraseAppOTP, branch, repoSyncImportParameters, _callback);
553+
okhttp3.Call localVarCall = repoSyncImportCall(accountId, id, xPhraseAppOTP, repoSyncImportParameters, _callback);
559554
return localVarCall;
560555

561556
}
@@ -566,7 +561,6 @@ private okhttp3.Call repoSyncImportValidateBeforeCall(String accountId, String i
566561
* @param accountId Account ID (required)
567562
* @param id ID (required)
568563
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
569-
* @param branch Branch to use (optional)
570564
* @param repoSyncImportParameters (optional)
571565
* @return RepoSyncEvent
572566
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -579,8 +573,8 @@ private okhttp3.Call repoSyncImportValidateBeforeCall(String accountId, String i
579573
<tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
580574
</table>
581575
*/
582-
public RepoSyncEvent repoSyncImport(String accountId, String id, String xPhraseAppOTP, String branch, RepoSyncImportParameters repoSyncImportParameters) throws ApiException {
583-
ApiResponse<RepoSyncEvent> localVarResp = repoSyncImportWithHttpInfo(accountId, id, xPhraseAppOTP, branch, repoSyncImportParameters);
576+
public RepoSyncEvent repoSyncImport(String accountId, String id, String xPhraseAppOTP, RepoSyncImportParameters repoSyncImportParameters) throws ApiException {
577+
ApiResponse<RepoSyncEvent> localVarResp = repoSyncImportWithHttpInfo(accountId, id, xPhraseAppOTP, repoSyncImportParameters);
584578
return localVarResp.getData();
585579
}
586580

@@ -590,7 +584,6 @@ public RepoSyncEvent repoSyncImport(String accountId, String id, String xPhraseA
590584
* @param accountId Account ID (required)
591585
* @param id ID (required)
592586
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
593-
* @param branch Branch to use (optional)
594587
* @param repoSyncImportParameters (optional)
595588
* @return ApiResponse&lt;RepoSyncEvent&gt;
596589
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -603,8 +596,8 @@ public RepoSyncEvent repoSyncImport(String accountId, String id, String xPhraseA
603596
<tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
604597
</table>
605598
*/
606-
public ApiResponse<RepoSyncEvent> repoSyncImportWithHttpInfo(String accountId, String id, String xPhraseAppOTP, String branch, RepoSyncImportParameters repoSyncImportParameters) throws ApiException {
607-
okhttp3.Call localVarCall = repoSyncImportValidateBeforeCall(accountId, id, xPhraseAppOTP, branch, repoSyncImportParameters, null);
599+
public ApiResponse<RepoSyncEvent> repoSyncImportWithHttpInfo(String accountId, String id, String xPhraseAppOTP, RepoSyncImportParameters repoSyncImportParameters) throws ApiException {
600+
okhttp3.Call localVarCall = repoSyncImportValidateBeforeCall(accountId, id, xPhraseAppOTP, repoSyncImportParameters, null);
608601
Type localVarReturnType = new TypeToken<RepoSyncEvent>(){}.getType();
609602
return localVarApiClient.execute(localVarCall, localVarReturnType);
610603
}
@@ -615,7 +608,6 @@ public ApiResponse<RepoSyncEvent> repoSyncImportWithHttpInfo(String accountId, S
615608
* @param accountId Account ID (required)
616609
* @param id ID (required)
617610
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
618-
* @param branch Branch to use (optional)
619611
* @param repoSyncImportParameters (optional)
620612
* @param _callback The callback to be executed when the API call finishes
621613
* @return The request call
@@ -629,9 +621,9 @@ public ApiResponse<RepoSyncEvent> repoSyncImportWithHttpInfo(String accountId, S
629621
<tr><td> 429 </td><td> Rate Limiting </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
630622
</table>
631623
*/
632-
public okhttp3.Call repoSyncImportAsync(String accountId, String id, String xPhraseAppOTP, String branch, RepoSyncImportParameters repoSyncImportParameters, final ApiCallback<RepoSyncEvent> _callback) throws ApiException {
624+
public okhttp3.Call repoSyncImportAsync(String accountId, String id, String xPhraseAppOTP, RepoSyncImportParameters repoSyncImportParameters, final ApiCallback<RepoSyncEvent> _callback) throws ApiException {
633625

634-
okhttp3.Call localVarCall = repoSyncImportValidateBeforeCall(accountId, id, xPhraseAppOTP, branch, repoSyncImportParameters, _callback);
626+
okhttp3.Call localVarCall = repoSyncImportValidateBeforeCall(accountId, id, xPhraseAppOTP, repoSyncImportParameters, _callback);
635627
Type localVarReturnType = new TypeToken<RepoSyncEvent>(){}.getType();
636628
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
637629
return localVarCall;

src/main/java/com/phrase/client/auth/ApiKeyAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.List;
1919

20-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-03-30T14:42:58.755140094Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-03-31T14:39:03.152759130Z[Etc/UTC]")
2121
public class ApiKeyAuth implements Authentication {
2222
private final String location;
2323
private final String paramName;

0 commit comments

Comments
 (0)