phrase 4.33.0 → 4.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +11 -3
  4. data/docs/KeysApi.md +6 -2
  5. data/docs/RepoSync.md +7 -1
  6. data/docs/RepoSyncCreateParameters.md +7 -1
  7. data/docs/RepoSyncCreateParametersExportSchedule.md +27 -0
  8. data/docs/RepoSyncExportSchedule.md +23 -0
  9. data/docs/RepoSyncUpdateParameters.md +23 -0
  10. data/docs/RepoSyncUpdateParametersExportSchedule.md +27 -0
  11. data/docs/RepoSyncsApi.md +66 -0
  12. data/docs/TranslationKey.md +3 -1
  13. data/docs/TranslationKeyDetails.md +2 -0
  14. data/docs/TranslationKeyLinkedKey.md +21 -0
  15. data/docs/TranslationKeyLinkedKeyParent.md +19 -0
  16. data/docs/UserShort.md +23 -0
  17. data/lib/phrase/api/keys_api.rb +6 -0
  18. data/lib/phrase/api/repo_syncs_api.rb +80 -0
  19. data/lib/phrase/models/repo_sync.rb +58 -5
  20. data/lib/phrase/models/repo_sync_create_parameters.rb +35 -4
  21. data/lib/phrase/models/repo_sync_create_parameters_export_schedule.rb +281 -0
  22. data/lib/phrase/models/repo_sync_export_schedule.rb +263 -0
  23. data/lib/phrase/models/repo_sync_update_parameters.rb +250 -0
  24. data/lib/phrase/models/repo_sync_update_parameters_export_schedule.rb +276 -0
  25. data/lib/phrase/models/translation_key.rb +14 -4
  26. data/lib/phrase/models/translation_key_details.rb +11 -1
  27. data/lib/phrase/models/translation_key_linked_key.rb +253 -0
  28. data/lib/phrase/models/translation_key_linked_key_parent.rb +208 -0
  29. data/lib/phrase/models/user_short.rb +223 -0
  30. data/lib/phrase/version.rb +1 -1
  31. data/lib/phrase.rb +7 -0
  32. data/spec/api/keys_api_spec.rb +2 -0
  33. data/spec/api/repo_syncs_api_spec.rb +15 -0
  34. data/spec/models/repo_sync_create_parameters_export_schedule_spec.rb +63 -0
  35. data/spec/models/repo_sync_create_parameters_spec.rb +22 -0
  36. data/spec/models/repo_sync_export_schedule_spec.rb +51 -0
  37. data/spec/models/repo_sync_spec.rb +22 -0
  38. data/spec/models/repo_sync_update_parameters_export_schedule_spec.rb +63 -0
  39. data/spec/models/repo_sync_update_parameters_spec.rb +51 -0
  40. data/spec/models/translation_key_details_spec.rb +6 -0
  41. data/spec/models/translation_key_linked_key_parent_spec.rb +35 -0
  42. data/spec/models/translation_key_linked_key_spec.rb +45 -0
  43. data/spec/models/translation_key_spec.rb +6 -0
  44. data/spec/models/user_short_spec.rb +47 -0
  45. metadata +295 -267
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb68f3e7de65794408fd8af7a561ef3b36a2e2220a6d3e1fb1b70ad12b10ddda
4
- data.tar.gz: 9c0223415b68d524ccc0583496b23351d6caaedb44f1cccd04e5088eff221ec4
3
+ metadata.gz: f985d7968ce87e4689fc720f77f336c585faa52bbde7443e676b4ee4034d0622
4
+ data.tar.gz: 1c3963bfd4de3c7fca1a7b55c619aa27e4dfb35b0c91a24966b18359035808b0
5
5
  SHA512:
6
- metadata.gz: '08ba82de28c3449d6abd1db15b585667c0fffb054a230a351a8dcd5c8073617ab4c2d7315ca8bf2ed4a7acf8fb6e02ee736631bbb07806e1e1643371e875857c'
7
- data.tar.gz: 24c734ba8c05035c02b10128f73ced9d4c442df9ac09d5184097cf66076095a202f1c3d9eb8d797286c0960e9ad213cc7931344ff1424ac801e7c22463652623
6
+ metadata.gz: 8a11ceb0b3bda2c7199eb1f724471fa33c33b2ceda2507b422d308666672b11871c8d8b108da1b46e23e9c825e0abe8b61230d05fed54367ad9b9bfe345f7cab
7
+ data.tar.gz: c8c228153ce06274be310eb0d4cd63eb8b3b798341ef1bbc0c80d196179b8458358177199db9351d2fb2b9e607e8d994a892ffd74c74a5882c99e2b4f34de63e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.35.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.34.0...ruby-v4.35.0) (2026-11-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * **API:** add owner, export_triggers, and export_schedule to repo sync responses and request bodies #STRINGS-4401 ([#1370](https://github.com/phrase/strings-openapi/issues/1370)) ([8889946](https://github.com/phrase/strings-openapi/commit/8889946d3608a53b436e8c0e7dd8b5765687e916))
9
+
10
+ ## [4.34.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.33.0...ruby-v4.34.0) (2026-11-05)
11
+
12
+
13
+ ### Features
14
+
15
+ * **API:** add linked_key field to key list responses #STRINGS-4425 ([#1361](https://github.com/phrase/strings-openapi/issues/1361)) ([e2cd0cd](https://github.com/phrase/strings-openapi/commit/e2cd0cdf327bed106f7c37f97324e77e997f0994))
16
+
3
17
  ## [4.33.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.32.0...ruby-v4.33.0) (2026-11-04)
4
18
 
5
19
 
data/README.md CHANGED
@@ -7,7 +7,7 @@ Phrase Strings is a translation management platform for software projects. You c
7
7
  ## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 4.33.0
10
+ - Package version: 4.35.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
13
13
 
@@ -56,10 +56,10 @@ gem build phrase.gemspec
56
56
  Then install the gem locally:
57
57
 
58
58
  ```shell
59
- gem install ./phrase-4.33.0.gem
59
+ gem install ./phrase-4.35.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.33.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.35.0.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -349,6 +349,7 @@ Class | Method | HTTP request | Description
349
349
  *Phrase::RepoSyncsApi* | [**repo_sync_import**](docs/RepoSyncsApi.md#repo_sync_import) | **POST** /accounts/{account_id}/repo_syncs/{id}/import | Import from code repository
350
350
  *Phrase::RepoSyncsApi* | [**repo_sync_list**](docs/RepoSyncsApi.md#repo_sync_list) | **GET** /accounts/{account_id}/repo_syncs | Get Repo Syncs
351
351
  *Phrase::RepoSyncsApi* | [**repo_sync_show**](docs/RepoSyncsApi.md#repo_sync_show) | **GET** /accounts/{account_id}/repo_syncs/{id} | Get a single Repo Sync
352
+ *Phrase::RepoSyncsApi* | [**repo_sync_update**](docs/RepoSyncsApi.md#repo_sync_update) | **PATCH** /accounts/{account_id}/repo_syncs/{id} | Update a repo sync
352
353
  *Phrase::ReportsApi* | [**report_locales_list**](docs/ReportsApi.md#report_locales_list) | **GET** /projects/{project_id}/report/locales | List Locale Reports (word count, character count, translation statistics)
353
354
  *Phrase::ReportsApi* | [**report_show**](docs/ReportsApi.md#report_show) | **GET** /projects/{project_id}/report | Get Project Report
354
355
  *Phrase::ScreenshotMarkersApi* | [**screenshot_marker_create**](docs/ScreenshotMarkersApi.md#screenshot_marker_create) | **POST** /projects/{project_id}/screenshots/{screenshot_id}/markers | Create a screenshot marker
@@ -607,10 +608,14 @@ Class | Method | HTTP request | Description
607
608
  - [Phrase::ReleaseUpdateParameters1](docs/ReleaseUpdateParameters1.md)
608
609
  - [Phrase::RepoSync](docs/RepoSync.md)
609
610
  - [Phrase::RepoSyncCreateParameters](docs/RepoSyncCreateParameters.md)
611
+ - [Phrase::RepoSyncCreateParametersExportSchedule](docs/RepoSyncCreateParametersExportSchedule.md)
610
612
  - [Phrase::RepoSyncEvent](docs/RepoSyncEvent.md)
611
613
  - [Phrase::RepoSyncEventUploadsInner](docs/RepoSyncEventUploadsInner.md)
612
614
  - [Phrase::RepoSyncExportParameters](docs/RepoSyncExportParameters.md)
615
+ - [Phrase::RepoSyncExportSchedule](docs/RepoSyncExportSchedule.md)
613
616
  - [Phrase::RepoSyncImportParameters](docs/RepoSyncImportParameters.md)
617
+ - [Phrase::RepoSyncUpdateParameters](docs/RepoSyncUpdateParameters.md)
618
+ - [Phrase::RepoSyncUpdateParametersExportSchedule](docs/RepoSyncUpdateParametersExportSchedule.md)
614
619
  - [Phrase::Screenshot](docs/Screenshot.md)
615
620
  - [Phrase::ScreenshotMarker](docs/ScreenshotMarker.md)
616
621
  - [Phrase::ScreenshotMarkerCreateParameters](docs/ScreenshotMarkerCreateParameters.md)
@@ -649,6 +654,8 @@ Class | Method | HTTP request | Description
649
654
  - [Phrase::TranslationIncludeParameters](docs/TranslationIncludeParameters.md)
650
655
  - [Phrase::TranslationKey](docs/TranslationKey.md)
651
656
  - [Phrase::TranslationKeyDetails](docs/TranslationKeyDetails.md)
657
+ - [Phrase::TranslationKeyLinkedKey](docs/TranslationKeyLinkedKey.md)
658
+ - [Phrase::TranslationKeyLinkedKeyParent](docs/TranslationKeyLinkedKeyParent.md)
652
659
  - [Phrase::TranslationOrder](docs/TranslationOrder.md)
653
660
  - [Phrase::TranslationParent](docs/TranslationParent.md)
654
661
  - [Phrase::TranslationReviewParameters](docs/TranslationReviewParameters.md)
@@ -671,6 +678,7 @@ Class | Method | HTTP request | Description
671
678
  - [Phrase::UploadSummary](docs/UploadSummary.md)
672
679
  - [Phrase::User](docs/User.md)
673
680
  - [Phrase::UserPreview](docs/UserPreview.md)
681
+ - [Phrase::UserShort](docs/UserShort.md)
674
682
  - [Phrase::Variable](docs/Variable.md)
675
683
  - [Phrase::VariableCreateParameters](docs/VariableCreateParameters.md)
676
684
  - [Phrase::VariableUpdateParameters](docs/VariableUpdateParameters.md)
data/docs/KeysApi.md CHANGED
@@ -502,7 +502,8 @@ opts = {
502
502
  sort: 'updated_at', # String | Sort by field. Can be one of: name, created_at, updated_at.
503
503
  order: 'desc', # String | Order direction. Can be one of: asc, desc.
504
504
  q: 'mykey* translated:true', # String | Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
505
- locale_id: 'abcd1234abcd1234abcd1234abcd1234' # String | Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
505
+ locale_id: 'abcd1234abcd1234abcd1234abcd1234', # String | Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
506
+ include_linked_keys: true # Boolean | When set to `true`, each key object in the response includes a `linked_key` field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent's id and name (for child keys). Keys with no active link return `linked_key: null`. Omit this parameter or set it to `false` to leave the `linked_key` field out of the response entirely.
506
507
  }
507
508
 
508
509
  begin
@@ -528,6 +529,7 @@ Name | Type | Description | Notes
528
529
  **order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
529
530
  **q** | **String**| Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - &#x60;ids:key_id,...&#x60; for queries on a comma-separated list of ids - &#x60;name:key_name&#x60; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - &#x60;tags:tag_name&#x60; to filter for keys with certain tags - &#x60;translated:{true|false}&#x60; for translation status (also requires &#x60;locale_id&#x60; to be specified) - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries - &#x60;unmentioned_in_upload:upload_id,...&#x60; to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples). | [optional]
530
531
  **locale_id** | **String**| Locale used to determine the translation state of a key when filtering for untranslated or translated keys. | [optional]
532
+ **include_linked_keys** | **Boolean**| When set to &#x60;true&#x60;, each key object in the response includes a &#x60;linked_key&#x60; field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent&#39;s id and name (for child keys). Keys with no active link return &#x60;linked_key: null&#x60;. Omit this parameter or set it to &#x60;false&#x60; to leave the &#x60;linked_key&#x60; field out of the response entirely. | [optional]
531
533
 
532
534
  ### Return type
533
535
 
@@ -573,7 +575,8 @@ keys_search_parameters = Phrase::KeysSearchParameters.new # KeysSearchParameters
573
575
  opts = {
574
576
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
575
577
  page: 1, # Integer | Page number
576
- per_page: 25 # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
578
+ per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
579
+ include_linked_keys: true # Boolean | When set to `true`, each key object in the response includes a `linked_key` field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent's id and name (for child keys). Keys with no active link return `linked_key: null`. Omit this parameter or set it to `false` to leave the `linked_key` field out of the response entirely.
577
580
  }
578
581
 
579
582
  begin
@@ -595,6 +598,7 @@ Name | Type | Description | Notes
595
598
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
596
599
  **page** | **Integer**| Page number | [optional]
597
600
  **per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
601
+ **include_linked_keys** | **Boolean**| When set to &#x60;true&#x60;, each key object in the response includes a &#x60;linked_key&#x60; field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent&#39;s id and name (for child keys). Keys with no active link return &#x60;linked_key: null&#x60;. Omit this parameter or set it to &#x60;false&#x60; to leave the &#x60;linked_key&#x60; field out of the response entirely. | [optional]
598
602
 
599
603
  ### Return type
600
604
 
data/docs/RepoSync.md CHANGED
@@ -15,6 +15,9 @@ Name | Type | Description | Notes
15
15
  **created_at** | **Time** | | [optional]
16
16
  **last_import_at** | **Time** | | [optional]
17
17
  **last_export_at** | **Time** | | [optional]
18
+ **owner** | [**UserShort**](UserShort.md) | | [optional]
19
+ **export_triggers** | **Array&lt;String&gt;** | Events that trigger an automatic export. Only present when the automatic export feature is enabled for the account. Possible values: &#x60;schedule&#x60; (runs on the configured schedule), &#x60;branch_merged&#x60; (runs when a branch is merged in the connected repository), &#x60;job_completed&#x60; (runs when a translation job completes in the project). | [optional]
20
+ **export_schedule** | [**RepoSyncExportSchedule**](RepoSyncExportSchedule.md) | | [optional]
18
21
 
19
22
  ## Code Sample
20
23
 
@@ -31,7 +34,10 @@ instance = Phrase::RepoSync.new(id: nil,
31
34
  pr_branch: nil,
32
35
  created_at: nil,
33
36
  last_import_at: nil,
34
- last_export_at: nil)
37
+ last_export_at: nil,
38
+ owner: nil,
39
+ export_triggers: nil,
40
+ export_schedule: nil)
35
41
  ```
36
42
 
37
43
 
@@ -14,6 +14,9 @@ Name | Type | Description | Notes
14
14
  **auto_import** | **Boolean** | Enable automatic import of translations triggered by pushes to the repository. | [optional]
15
15
  **access_token** | **String** | Personal access token for the Git provider. Required when &#x60;connection_type&#x60; is &#x60;token&#x60; or &#x60;self_hosted&#x60;. Not used for &#x60;github_app&#x60;. | [optional]
16
16
  **custom_api_endpoint** | **String** | Custom API endpoint URL for self-hosted Git instances. Required when &#x60;connection_type&#x60; is &#x60;self_hosted&#x60;. | [optional]
17
+ **owner_id** | **String** | Code of the user who will own this repo sync. Automated actions run as this user. Defaults to the account owner when not set. | [optional]
18
+ **export_triggers** | **Array&lt;String&gt;** | Events that should trigger an automatic export. Requires the automatic export feature to be enabled for the account; returns &#x60;422&#x60; otherwise. Accepted values: &#x60;schedule&#x60;, &#x60;branch_merged&#x60;, &#x60;job_completed&#x60;. | [optional]
19
+ **export_schedule** | [**RepoSyncCreateParametersExportSchedule**](RepoSyncCreateParametersExportSchedule.md) | | [optional]
17
20
 
18
21
  ## Code Sample
19
22
 
@@ -29,7 +32,10 @@ instance = Phrase::RepoSyncCreateParameters.new(project_id: 'abcd1234abcd1234abc
29
32
  pr_branch: 'phrase-translations',
30
33
  auto_import: false,
31
34
  access_token: 'ghp_xxxxxxxxxxxxxxxxxxxx',
32
- custom_api_endpoint: 'https://git.example.com/api/v4')
35
+ custom_api_endpoint: 'https://git.example.com/api/v4',
36
+ owner_id: nil,
37
+ export_triggers: nil,
38
+ export_schedule: nil)
33
39
  ```
34
40
 
35
41
 
@@ -0,0 +1,27 @@
1
+ # Phrase::RepoSyncCreateParametersExportSchedule
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **frequency** | **String** | | [optional]
8
+ **time** | **String** | Time of day for the export (HH:MM format). Used with &#x60;day&#x60;, &#x60;week&#x60;, and &#x60;month&#x60; frequencies. | [optional]
9
+ **time_zone** | **String** | IANA time zone name. | [optional]
10
+ **days_of_week** | **String** | Comma-separated day numbers (0&#x3D;Sunday … 6&#x3D;Saturday). Used with &#x60;week&#x60; frequency. | [optional]
11
+ **day_of_month** | **Integer** | Day of the month (1–31). Used with &#x60;month&#x60; frequency. | [optional]
12
+ **cron_schedule** | **String** | Raw cron expression. Used when &#x60;frequency&#x60; is &#x60;cron&#x60;. | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'phrase'
18
+
19
+ instance = Phrase::RepoSyncCreateParametersExportSchedule.new(frequency: nil,
20
+ time: '09:00',
21
+ time_zone: 'Europe/Berlin',
22
+ days_of_week: '1,3',
23
+ day_of_month: nil,
24
+ cron_schedule: '0 9 * * 1')
25
+ ```
26
+
27
+
@@ -0,0 +1,23 @@
1
+ # Phrase::RepoSyncExportSchedule
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **frequency** | **String** | How often the export runs. &#x60;cron&#x60; means a fully custom cron expression is used (&#x60;cron_schedule&#x60; holds the raw expression). | [optional]
8
+ **cron_schedule** | **String** | The underlying cron expression. Derived automatically from &#x60;frequency&#x60;, &#x60;time&#x60;, and day fields when using a named frequency; provided verbatim when &#x60;frequency&#x60; is &#x60;cron&#x60;. | [optional]
9
+ **time_zone** | **String** | IANA time zone name used to interpret the schedule. | [optional]
10
+ **next_run_at** | **Time** | When the next scheduled export will run, in UTC. | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'phrase'
16
+
17
+ instance = Phrase::RepoSyncExportSchedule.new(frequency: nil,
18
+ cron_schedule: '0 9 * * 1',
19
+ time_zone: 'Europe/Berlin',
20
+ next_run_at: nil)
21
+ ```
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # Phrase::RepoSyncUpdateParameters
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | Display name for the repo sync. | [optional]
8
+ **owner_id** | **String** | Code of the user to assign as owner. Requires &#x60;manage_github_sync?&#x60; permission on the project; returns &#x60;403&#x60; if not satisfied. | [optional]
9
+ **export_triggers** | **Array&lt;String&gt;** | Replaces the current set of automatic export triggers. Requires &#x60;manage_github_sync?&#x60; permission on the project and the automatic export feature to be enabled for the account. Accepted values: &#x60;schedule&#x60;, &#x60;branch_merged&#x60;, &#x60;job_completed&#x60;. | [optional]
10
+ **export_schedule** | [**RepoSyncUpdateParametersExportSchedule**](RepoSyncUpdateParametersExportSchedule.md) | | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'phrase'
16
+
17
+ instance = Phrase::RepoSyncUpdateParameters.new(name: nil,
18
+ owner_id: nil,
19
+ export_triggers: nil,
20
+ export_schedule: nil)
21
+ ```
22
+
23
+
@@ -0,0 +1,27 @@
1
+ # Phrase::RepoSyncUpdateParametersExportSchedule
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **frequency** | **String** | | [optional]
8
+ **time** | **String** | | [optional]
9
+ **time_zone** | **String** | | [optional]
10
+ **days_of_week** | **String** | | [optional]
11
+ **day_of_month** | **Integer** | | [optional]
12
+ **cron_schedule** | **String** | | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'phrase'
18
+
19
+ instance = Phrase::RepoSyncUpdateParametersExportSchedule.new(frequency: nil,
20
+ time: '09:00',
21
+ time_zone: 'Europe/Berlin',
22
+ days_of_week: '1,3',
23
+ day_of_month: nil,
24
+ cron_schedule: '0 9 * * 1')
25
+ ```
26
+
27
+
data/docs/RepoSyncsApi.md CHANGED
@@ -11,6 +11,7 @@ Method | HTTP request | Description
11
11
  [**repo_sync_import**](RepoSyncsApi.md#repo_sync_import) | **POST** /accounts/{account_id}/repo_syncs/{id}/import | Import from code repository
12
12
  [**repo_sync_list**](RepoSyncsApi.md#repo_sync_list) | **GET** /accounts/{account_id}/repo_syncs | Get Repo Syncs
13
13
  [**repo_sync_show**](RepoSyncsApi.md#repo_sync_show) | **GET** /accounts/{account_id}/repo_syncs/{id} | Get a single Repo Sync
14
+ [**repo_sync_update**](RepoSyncsApi.md#repo_sync_update) | **PATCH** /accounts/{account_id}/repo_syncs/{id} | Update a repo sync
14
15
 
15
16
 
16
17
 
@@ -460,3 +461,68 @@ Response<([**RepoSync**](RepoSync.md))>
460
461
  - **Content-Type**: Not defined
461
462
  - **Accept**: application/json
462
463
 
464
+
465
+ ## repo_sync_update
466
+
467
+ > RepoSync repo_sync_update(account_id, id, repo_sync_update_parameters, opts)
468
+
469
+ Update a repo sync
470
+
471
+ Update settings for an existing Repo Sync. Sending `owner_id`, `export_triggers`, or `export_schedule` requires the caller to have `manage_github_sync?` permission on the project (returns `403` otherwise). Sending `export_triggers` or `export_schedule` when the automatic export feature is not enabled for the account returns `422`.
472
+
473
+ ### Example
474
+
475
+ ```ruby
476
+ # load the gem
477
+ require 'phrase'
478
+ # setup authorization
479
+ Phrase.configure do |config|
480
+ # Configure HTTP basic authorization: Basic
481
+ config.username = 'YOUR USERNAME'
482
+ config.password = 'YOUR PASSWORD'
483
+
484
+ # Configure API key authorization: Token
485
+ config.api_key['Authorization'] = 'YOUR API KEY'
486
+ config.api_key_prefix['Authorization'] = 'token'
487
+ end
488
+
489
+ api_instance = Phrase::RepoSyncsApi.new
490
+ account_id = 'account_id_example' # String | Account ID
491
+ id = 'id_example' # String | ID
492
+ repo_sync_update_parameters = Phrase::RepoSyncUpdateParameters.new # RepoSyncUpdateParameters |
493
+ opts = {
494
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
495
+ }
496
+
497
+ begin
498
+ #Update a repo sync
499
+ result = api_instance.repo_sync_update(account_id, id, repo_sync_update_parameters, opts)
500
+ pp result
501
+ rescue Phrase::ApiError => e
502
+ puts "Exception when calling RepoSyncsApi->repo_sync_update: #{e}"
503
+ end
504
+ ```
505
+
506
+ ### Parameters
507
+
508
+
509
+ Name | Type | Description | Notes
510
+ ------------- | ------------- | ------------- | -------------
511
+ **account_id** | **String**| Account ID |
512
+ **id** | **String**| ID |
513
+ **repo_sync_update_parameters** | [**RepoSyncUpdateParameters**](RepoSyncUpdateParameters.md)| |
514
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
515
+
516
+ ### Return type
517
+
518
+ Response<([**RepoSync**](RepoSync.md))>
519
+
520
+ ### Authorization
521
+
522
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
523
+
524
+ ### HTTP request headers
525
+
526
+ - **Content-Type**: application/json
527
+ - **Accept**: application/json
528
+
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
14
14
  **data_type** | **String** | | [optional]
15
15
  **created_at** | **Time** | | [optional]
16
16
  **updated_at** | **Time** | | [optional]
17
+ **linked_key** | [**TranslationKeyLinkedKey**](TranslationKeyLinkedKey.md) | | [optional]
17
18
 
18
19
  ## Code Sample
19
20
 
@@ -29,7 +30,8 @@ instance = Phrase::TranslationKey.new(id: nil,
29
30
  tags: nil,
30
31
  data_type: nil,
31
32
  created_at: nil,
32
- updated_at: nil)
33
+ updated_at: nil,
34
+ linked_key: nil)
33
35
  ```
34
36
 
35
37
 
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
14
14
  **data_type** | **String** | | [optional]
15
15
  **created_at** | **Time** | | [optional]
16
16
  **updated_at** | **Time** | | [optional]
17
+ **linked_key** | [**TranslationKeyLinkedKey**](TranslationKeyLinkedKey.md) | | [optional]
17
18
  **name_plural** | **String** | | [optional]
18
19
  **comments_count** | **Integer** | | [optional]
19
20
  **max_characters_allowed** | **Integer** | | [optional]
@@ -40,6 +41,7 @@ instance = Phrase::TranslationKeyDetails.new(id: nil,
40
41
  data_type: nil,
41
42
  created_at: nil,
42
43
  updated_at: nil,
44
+ linked_key: nil,
43
45
  name_plural: nil,
44
46
  comments_count: nil,
45
47
  max_characters_allowed: nil,
@@ -0,0 +1,21 @@
1
+ # Phrase::TranslationKeyLinkedKey
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **role** | **String** | Whether this key is the parent or the child in the link relationship. | [optional]
8
+ **parent** | [**TranslationKeyLinkedKeyParent**](TranslationKeyLinkedKeyParent.md) | | [optional]
9
+ **children_count** | **Integer** | The number of linked child keys. Set for parent keys. | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'phrase'
15
+
16
+ instance = Phrase::TranslationKeyLinkedKey.new(role: nil,
17
+ parent: nil,
18
+ children_count: 3)
19
+ ```
20
+
21
+
@@ -0,0 +1,19 @@
1
+ # Phrase::TranslationKeyLinkedKeyParent
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | The parent key&#39;s public identifier (code). | [optional]
8
+ **name** | **String** | The parent key&#39;s name. | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'phrase'
14
+
15
+ instance = Phrase::TranslationKeyLinkedKeyParent.new(id: 'abc12345def67890abc12345def67890',
16
+ name: 'home.welcome.title')
17
+ ```
18
+
19
+
data/docs/UserShort.md ADDED
@@ -0,0 +1,23 @@
1
+ # Phrase::UserShort
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | | [optional]
8
+ **username** | **String** | | [optional]
9
+ **name** | **String** | | [optional]
10
+ **gravatar_uid** | **String** | | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'phrase'
16
+
17
+ instance = Phrase::UserShort.new(id: nil,
18
+ username: nil,
19
+ name: nil,
20
+ gravatar_uid: nil)
21
+ ```
22
+
23
+
@@ -546,6 +546,7 @@ module Phrase
546
546
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
547
547
  # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - &#x60;ids:key_id,...&#x60; for queries on a comma-separated list of ids - &#x60;name:key_name&#x60; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - &#x60;tags:tag_name&#x60; to filter for keys with certain tags - &#x60;translated:{true|false}&#x60; for translation status (also requires &#x60;locale_id&#x60; to be specified) - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries - &#x60;unmentioned_in_upload:upload_id,...&#x60; to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
548
548
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
549
+ # @option opts [Boolean] :include_linked_keys When set to &#x60;true&#x60;, each key object in the response includes a &#x60;linked_key&#x60; field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent&#39;s id and name (for child keys). Keys with no active link return &#x60;linked_key: null&#x60;. Omit this parameter or set it to &#x60;false&#x60; to leave the &#x60;linked_key&#x60; field out of the response entirely.
549
550
  # @return [Array<TranslationKey>]
550
551
  def keys_list(project_id, opts = {})
551
552
  data, _status_code, _headers = keys_list_with_http_info(project_id, opts)
@@ -564,6 +565,7 @@ module Phrase
564
565
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
565
566
  # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - &#x60;ids:key_id,...&#x60; for queries on a comma-separated list of ids - &#x60;name:key_name&#x60; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - &#x60;tags:tag_name&#x60; to filter for keys with certain tags - &#x60;translated:{true|false}&#x60; for translation status (also requires &#x60;locale_id&#x60; to be specified) - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries - &#x60;unmentioned_in_upload:upload_id,...&#x60; to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
566
567
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
568
+ # @option opts [Boolean] :include_linked_keys When set to &#x60;true&#x60;, each key object in the response includes a &#x60;linked_key&#x60; field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent&#39;s id and name (for child keys). Keys with no active link return &#x60;linked_key: null&#x60;. Omit this parameter or set it to &#x60;false&#x60; to leave the &#x60;linked_key&#x60; field out of the response entirely.
567
569
  # @return [Array<(Response<(Array<TranslationKey>)>, Integer, Hash)>] Response<(Array<TranslationKey>)> data, response status code and response headers
568
570
  def keys_list_with_http_info(project_id, opts = {})
569
571
  if @api_client.config.debugging
@@ -585,6 +587,7 @@ module Phrase
585
587
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
586
588
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
587
589
  query_params[:'locale_id'] = opts[:'locale_id'] if !opts[:'locale_id'].nil?
590
+ query_params[:'include_linked_keys'] = opts[:'include_linked_keys'] if !opts[:'include_linked_keys'].nil?
588
591
 
589
592
  # header parameters
590
593
  header_params = opts[:header_params] || {}
@@ -629,6 +632,7 @@ module Phrase
629
632
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
630
633
  # @option opts [Integer] :page Page number
631
634
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
635
+ # @option opts [Boolean] :include_linked_keys When set to &#x60;true&#x60;, each key object in the response includes a &#x60;linked_key&#x60; field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent&#39;s id and name (for child keys). Keys with no active link return &#x60;linked_key: null&#x60;. Omit this parameter or set it to &#x60;false&#x60; to leave the &#x60;linked_key&#x60; field out of the response entirely.
632
636
  # @return [Array<TranslationKey>]
633
637
  def keys_search(project_id, keys_search_parameters, opts = {})
634
638
  data, _status_code, _headers = keys_search_with_http_info(project_id, keys_search_parameters, opts)
@@ -643,6 +647,7 @@ module Phrase
643
647
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
644
648
  # @option opts [Integer] :page Page number
645
649
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
650
+ # @option opts [Boolean] :include_linked_keys When set to &#x60;true&#x60;, each key object in the response includes a &#x60;linked_key&#x60; field describing whether the key is a parent or child in a key-link relationship, and the number of children (for parent keys) or the parent&#39;s id and name (for child keys). Keys with no active link return &#x60;linked_key: null&#x60;. Omit this parameter or set it to &#x60;false&#x60; to leave the &#x60;linked_key&#x60; field out of the response entirely.
646
651
  # @return [Array<(Response<(Array<TranslationKey>)>, Integer, Hash)>] Response<(Array<TranslationKey>)> data, response status code and response headers
647
652
  def keys_search_with_http_info(project_id, keys_search_parameters, opts = {})
648
653
  if @api_client.config.debugging
@@ -663,6 +668,7 @@ module Phrase
663
668
  query_params = opts[:query_params] || {}
664
669
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
665
670
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
671
+ query_params[:'include_linked_keys'] = opts[:'include_linked_keys'] if !opts[:'include_linked_keys'].nil?
666
672
 
667
673
  # header parameters
668
674
  header_params = opts[:header_params] || {}
@@ -520,5 +520,85 @@ module Phrase
520
520
  response = ::Phrase::Response.new(data, headers)
521
521
  return response, status_code, headers
522
522
  end
523
+
524
+ # Update a repo sync
525
+ # Update settings for an existing Repo Sync. Sending `owner_id`, `export_triggers`, or `export_schedule` requires the caller to have `manage_github_sync?` permission on the project (returns `403` otherwise). Sending `export_triggers` or `export_schedule` when the automatic export feature is not enabled for the account returns `422`.
526
+ # @param account_id [String] Account ID
527
+ # @param id [String] ID
528
+ # @param repo_sync_update_parameters [RepoSyncUpdateParameters]
529
+ # @param [Hash] opts the optional parameters
530
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
531
+ # @return [RepoSync]
532
+ def repo_sync_update(account_id, id, repo_sync_update_parameters, opts = {})
533
+ data, _status_code, _headers = repo_sync_update_with_http_info(account_id, id, repo_sync_update_parameters, opts)
534
+ data
535
+ end
536
+
537
+ # Update a repo sync
538
+ # Update settings for an existing Repo Sync. Sending &#x60;owner_id&#x60;, &#x60;export_triggers&#x60;, or &#x60;export_schedule&#x60; requires the caller to have &#x60;manage_github_sync?&#x60; permission on the project (returns &#x60;403&#x60; otherwise). Sending &#x60;export_triggers&#x60; or &#x60;export_schedule&#x60; when the automatic export feature is not enabled for the account returns &#x60;422&#x60;.
539
+ # @param account_id [String] Account ID
540
+ # @param id [String] ID
541
+ # @param repo_sync_update_parameters [RepoSyncUpdateParameters]
542
+ # @param [Hash] opts the optional parameters
543
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
544
+ # @return [Array<(Response<(RepoSync)>, Integer, Hash)>] Response<(RepoSync)> data, response status code and response headers
545
+ def repo_sync_update_with_http_info(account_id, id, repo_sync_update_parameters, opts = {})
546
+ if @api_client.config.debugging
547
+ @api_client.config.logger.debug 'Calling API: RepoSyncsApi.repo_sync_update ...'
548
+ end
549
+ # verify the required parameter 'account_id' is set
550
+ if @api_client.config.client_side_validation && account_id.nil?
551
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling RepoSyncsApi.repo_sync_update"
552
+ end
553
+ # verify the required parameter 'id' is set
554
+ if @api_client.config.client_side_validation && id.nil?
555
+ fail ArgumentError, "Missing the required parameter 'id' when calling RepoSyncsApi.repo_sync_update"
556
+ end
557
+ # verify the required parameter 'repo_sync_update_parameters' is set
558
+ if @api_client.config.client_side_validation && repo_sync_update_parameters.nil?
559
+ fail ArgumentError, "Missing the required parameter 'repo_sync_update_parameters' when calling RepoSyncsApi.repo_sync_update"
560
+ end
561
+ # resource path
562
+ local_var_path = '/accounts/{account_id}/repo_syncs/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
563
+
564
+ # query parameters
565
+ query_params = opts[:query_params] || {}
566
+
567
+ # header parameters
568
+ header_params = opts[:header_params] || {}
569
+ # HTTP header 'Accept' (if needed)
570
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
571
+ # HTTP header 'Content-Type'
572
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
573
+ header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
574
+
575
+ # form parameters
576
+ form_params = opts[:form_params] || {}
577
+
578
+ # http body (model)
579
+ post_body = opts[:body] || @api_client.object_to_http_body(repo_sync_update_parameters)
580
+
581
+ # return_type
582
+ return_type = opts[:return_type] || 'RepoSync'
583
+
584
+ # auth_names
585
+ auth_names = opts[:auth_names] || ['Basic', 'Token']
586
+
587
+ new_options = opts.merge(
588
+ :header_params => header_params,
589
+ :query_params => query_params,
590
+ :form_params => form_params,
591
+ :body => post_body,
592
+ :auth_names => auth_names,
593
+ :return_type => return_type
594
+ )
595
+
596
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
597
+ if @api_client.config.debugging
598
+ @api_client.config.logger.debug "API called: RepoSyncsApi#repo_sync_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
599
+ end
600
+ response = ::Phrase::Response.new(data, headers)
601
+ return response, status_code, headers
602
+ end
523
603
  end
524
604
  end