phrase 4.14.0 → 4.14.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6eafb6674f53665915555e2352445b2c1b81a981cc7d472ac7684855ca5061cc
4
- data.tar.gz: 6b630a9fcb6f2376c7bec8c179754b60b1d2c9109e18010714a35a00fef6067c
3
+ metadata.gz: 45d6f1838ce11f059ebdd0b8edb97904465814670820db88ac973ed769e5ffe9
4
+ data.tar.gz: 7e2e8e6b3984121cdb98b7cb2819fe9b82aa96fa2a5e550b31085f93851334dc
5
5
  SHA512:
6
- metadata.gz: 771899ee1169536d3e35957c20cd8b4ce58dd81552ee1a979a02f2b5d10215ed4a5f53b25f6f06e67f9b4b2b95554b0e8545f9e8fb4d937c31e5f2865aa027fd
7
- data.tar.gz: d75c3aa7238687236f7e1d917676dbac4e82a6381a17802d16e6ff0fea2b87ac27e909a8818ad3c3c0afcccf3dd2576c5a3a6866ee093018cbd2359157629d64
6
+ metadata.gz: 6701eee93a798aac96f015485b8b08c84801aa01b4a5179291106da017cb44b677806a8dbe203c9abb3b53474ba1c85d021692159bcb9d5a7d16893651ac8b68
7
+ data.tar.gz: 6a64754c48c1deb723a68c2d8698c901def5fdbfe8cc56174d7fe8c2aa683eed897ae0edaa52fa2572ca0ee5d500e58e7bd8ca6daca1c3d191ae9e2a278afab1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.14.1](https://github.com/phrase/openapi/compare/ruby-v4.14.0...ruby-v4.14.1) (2025-11-10)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **API:** Add omit_translation_keys to Jobs#show endpoint ([#957](https://github.com/phrase/openapi/issues/957)) ([23ece66](https://github.com/phrase/openapi/commit/23ece66b05fc748a4598ce876cb2954ed1a385cc))
9
+
3
10
  ## [4.14.0](https://github.com/phrase/openapi/compare/ruby-v4.13.0...ruby-v4.14.0) (2025-10-27)
4
11
 
5
12
 
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.14.0
10
+ - Package version: 4.14.1
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.14.0.gem
59
+ gem install ./phrase-4.14.1.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.14.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.14.1.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
data/docs/JobsApi.md CHANGED
@@ -500,7 +500,8 @@ id = 'id_example' # String | ID
500
500
  opts = {
501
501
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
502
502
  branch: 'my-feature-branch', # String | Branch to use
503
- include_annotations: true # Boolean | Include job-locale annotations in the response
503
+ include_annotations: true, # Boolean | Include job-locale annotations in the response
504
+ omit_translation_keys: true # Boolean | Omit translation keys in the response to reduce payload size for bigger jobs
504
505
  }
505
506
 
506
507
  begin
@@ -522,6 +523,7 @@ Name | Type | Description | Notes
522
523
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
523
524
  **branch** | **String**| Branch to use | [optional]
524
525
  **include_annotations** | **Boolean**| Include job-locale annotations in the response | [optional] [default to false]
526
+ **omit_translation_keys** | **Boolean**| Omit translation keys in the response to reduce payload size for bigger jobs | [optional] [default to false]
525
527
 
526
528
  ### Return type
527
529
 
@@ -38,7 +38,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
38
38
  data_type: number,
39
39
  tags: awesome-feature,needs-proofreading,
40
40
  max_characters_allowed: 140,
41
- screenshot: [B@1df2b230,
41
+ screenshot: [B@38171f9,
42
42
  remove_screenshot: null,
43
43
  unformatted: null,
44
44
  default_translation_content: Default translation content,
@@ -36,7 +36,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
36
36
  data_type: number,
37
37
  tags: awesome-feature,needs-proofreading,
38
38
  max_characters_allowed: 140,
39
- screenshot: [B@37d85eec,
39
+ screenshot: [B@3614cd03,
40
40
  remove_screenshot: null,
41
41
  unformatted: null,
42
42
  xml_space_preserve: null,
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
8
  **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: - `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 Find more examples [here](/en/api/strings/usage-examples). | [optional]
9
- **target_locale_id** | **String** | Locale used to exlcude or include keys. | [optional]
9
+ **target_locale_id** | **String** | Exclude translations in locale | [optional]
10
10
  **tags** | **String** | Tag or comma-separated list of tags to add to the matching collection of keys | [optional]
11
11
 
12
12
  ## Code Sample
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
8
  **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: * `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 Find more examples [here](/en/api/strings/usage-examples). | [optional]
9
- **target_locale_id** | **String** | Locale used to exlcude or include keys. | [optional]
9
+ **target_locale_id** | **String** | Include translations in locale | [optional]
10
10
  **tags** | **String** | Tag or comma-separated list of tags to add to the matching collection of keys | [optional]
11
11
 
12
12
  ## Code Sample
@@ -37,7 +37,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
37
37
  main_format: yml,
38
38
  media: Python,
39
39
  shares_translation_memory: true,
40
- project_image: [B@e80fc9d,
40
+ project_image: [B@37d85eec,
41
41
  remove_project_image: null,
42
42
  account_id: abcd1234,
43
43
  point_of_contact: abcd1234,
@@ -39,7 +39,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
39
39
  main_format: yml,
40
40
  media: Python,
41
41
  shares_translation_memory: true,
42
- project_image: [B@4abc179d,
42
+ project_image: [B@14443c86,
43
43
  remove_project_image: false,
44
44
  workflow: review,
45
45
  machine_translation_enabled: true,
@@ -17,7 +17,7 @@ require 'Phrase'
17
17
  instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
18
18
  name: A screenshot name,
19
19
  description: A screenshot description,
20
- filename: [B@141fc03a)
20
+ filename: [B@76db7ef0)
21
21
  ```
22
22
 
23
23
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **locales_created** | **Integer** | | [optional]
8
8
  **translation_keys_created** | **Integer** | | [optional]
9
9
  **translation_keys_updated** | **Integer** | | [optional]
10
- **translation_keys_unmentioned** | **Integer** | | [optional]
10
+ **translation_keys_unmentioned** | **Integer** | The number of translation keys in the project that were not mentioned in the upload. Note: this field is not calculated (and shows 0) if the upload contains more than 10,000 keys. | [optional]
11
11
  **translations_created** | **Integer** | | [optional]
12
12
  **translations_updated** | **Integer** | | [optional]
13
13
  **tags_created** | **Integer** | | [optional]
data/docs/UploadsApi.md CHANGED
@@ -16,7 +16,7 @@ Method | HTTP request | Description
16
16
 
17
17
  Upload a new file
18
18
 
19
- Upload a new language file. Creates necessary resources in your project.
19
+ Upload a new language file. Creates necessary resources in your project. Note: be aware of [upload limits](https://support.phrase.com/hc/en-us/articles/8548271212188-Phrase-Strings-Limits#file-size-upload-limits-0-0).
20
20
 
21
21
  ### Example
22
22
 
@@ -553,6 +553,7 @@ module Phrase
553
553
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
554
554
  # @option opts [String] :branch Branch to use
555
555
  # @option opts [Boolean] :include_annotations Include job-locale annotations in the response (default to false)
556
+ # @option opts [Boolean] :omit_translation_keys Omit translation keys in the response to reduce payload size for bigger jobs (default to false)
556
557
  # @return [JobDetails]
557
558
  def job_show(project_id, id, opts = {})
558
559
  data, _status_code, _headers = job_show_with_http_info(project_id, id, opts)
@@ -567,6 +568,7 @@ module Phrase
567
568
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
568
569
  # @option opts [String] :branch Branch to use
569
570
  # @option opts [Boolean] :include_annotations Include job-locale annotations in the response
571
+ # @option opts [Boolean] :omit_translation_keys Omit translation keys in the response to reduce payload size for bigger jobs
570
572
  # @return [Array<(Response<(JobDetails)>, Integer, Hash)>] Response<(JobDetails)> data, response status code and response headers
571
573
  def job_show_with_http_info(project_id, id, opts = {})
572
574
  if @api_client.config.debugging
@@ -587,6 +589,7 @@ module Phrase
587
589
  query_params = opts[:query_params] || {}
588
590
  query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
589
591
  query_params[:'include_annotations'] = opts[:'include_annotations'] if !opts[:'include_annotations'].nil?
592
+ query_params[:'omit_translation_keys'] = opts[:'omit_translation_keys'] if !opts[:'omit_translation_keys'].nil?
590
593
 
591
594
  # header parameters
592
595
  header_params = opts[:header_params] || {}
@@ -8,7 +8,7 @@ module Phrase
8
8
  @api_client = api_client
9
9
  end
10
10
  # Upload a new file
11
- # Upload a new language file. Creates necessary resources in your project.
11
+ # Upload a new language file. Creates necessary resources in your project. Note: be aware of [upload limits](https://support.phrase.com/hc/en-us/articles/8548271212188-Phrase-Strings-Limits#file-size-upload-limits-0-0).
12
12
  # @param project_id [String] Project ID
13
13
  # @param file [File] File to be imported
14
14
  # @param file_format [String] File format. Auto-detected when possible and not specified.
@@ -41,7 +41,7 @@ module Phrase
41
41
  end
42
42
 
43
43
  # Upload a new file
44
- # Upload a new language file. Creates necessary resources in your project.
44
+ # Upload a new language file. Creates necessary resources in your project. Note: be aware of [upload limits](https://support.phrase.com/hc/en-us/articles/8548271212188-Phrase-Strings-Limits#file-size-upload-limits-0-0).
45
45
  # @param project_id [String] Project ID
46
46
  # @param file [File] File to be imported
47
47
  # @param file_format [String] File format. Auto-detected when possible and not specified.
@@ -8,7 +8,7 @@ module Phrase
8
8
  # 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 Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
- # Locale used to exlcude or include keys.
11
+ # Exclude translations in locale
12
12
  attr_accessor :target_locale_id
13
13
 
14
14
  # Tag or comma-separated list of tags to add to the matching collection of keys
@@ -8,7 +8,7 @@ module Phrase
8
8
  # 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 Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
- # Locale used to exlcude or include keys.
11
+ # Include translations in locale
12
12
  attr_accessor :target_locale_id
13
13
 
14
14
  # Tag or comma-separated list of tags to add to the matching collection of keys
@@ -8,6 +8,7 @@ module Phrase
8
8
 
9
9
  attr_accessor :translation_keys_updated
10
10
 
11
+ # The number of translation keys in the project that were not mentioned in the upload. Note: this field is not calculated (and shows 0) if the upload contains more than 10,000 keys.
11
12
  attr_accessor :translation_keys_unmentioned
12
13
 
13
14
  attr_accessor :translations_created
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.14.0'
2
+ VERSION = '4.14.1'
3
3
  end
@@ -133,6 +133,7 @@ describe 'JobsApi' do
133
133
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
134
134
  # @option opts [String] :branch Branch to use
135
135
  # @option opts [Boolean] :include_annotations Include job-locale annotations in the response
136
+ # @option opts [Boolean] :omit_translation_keys Omit translation keys in the response to reduce payload size for bigger jobs
136
137
  # @return [JobDetails]
137
138
  describe 'job_show test' do
138
139
  it 'should work' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phrase
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.14.0
4
+ version: 4.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-27 00:00:00.000000000 Z
11
+ date: 2025-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus