phrase 4.21.0 → 4.22.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bc8f459c31dc232c91ddc0c21c12a3ec381591e867f956de2bc18c7e4b7e94c
4
- data.tar.gz: d519d27908fee74eebe278b8800c9a3a83072cc09edd736662d7afd2d8899dea
3
+ metadata.gz: e04828ea995b5dcead54ea5eccd3884fd83acad825dd344db41f3f16e7b5beba
4
+ data.tar.gz: 98d028cde33a5dccc4343017cbcfdbcaf424422ed47c83d8e0702cf20eb397f8
5
5
  SHA512:
6
- metadata.gz: c6d6b70bc1985c3da16fa3cb160beda669436678349029e66a1015c9f7dceaa9fadc16d6ce1f231aff76139fec19e913d9b27fbafae41781787a949bb560b086
7
- data.tar.gz: 93ccc951db1012ce8f29c81d732f7e1597e872dc09b572ca0be43e6efc89066adeea57769dce80ac988b7516a7d9133926ae69935d90a702154b448eda6db1ac
6
+ metadata.gz: ea3a15074ad08cd6b9fba57fae082f2e7b3822889bec94f1257b689622a76ddb2592241511a0e4936ed5338fc129612f7a73c4553dc8b2271b9385bf9e40efb1
7
+ data.tar.gz: 9547fd5311fd477ba2b704ced671243fe34b66c7b136451a40bac6f9d8431bda1e5c7ecdbc899cc193c2395e27606f29cab00540eb6b85672bc85ae44f5dccc5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.22.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.21.0...ruby-v4.22.0) (2026-05-15)
4
+
5
+
6
+ ### Features
7
+
8
+ * **API:** Add q search param to locales list endpoint ([#1127](https://github.com/phrase/strings-openapi/issues/1127)) ([24f3a73](https://github.com/phrase/strings-openapi/commit/24f3a73ded885e4b855ad51547990af032dd2b26))
9
+
3
10
  ## [4.21.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.20.0...ruby-v4.21.0) (2026-05-06)
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.21.0
10
+ - Package version: 4.22.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.21.0.gem
59
+ gem install ./phrase-4.22.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.21.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.22.0.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -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@62e9a6cc,
41
+ screenshot: [B@70a8ebfc,
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@55f77306,
39
+ screenshot: [B@4be2f788,
40
40
  remove_screenshot: null,
41
41
  unformatted: null,
42
42
  xml_space_preserve: null,
data/docs/LocalesApi.md CHANGED
@@ -474,7 +474,8 @@ opts = {
474
474
  page: 1, # Integer | Page number
475
475
  per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
476
476
  sort_by: 'sort_by_example', # String | Sort locales. Valid options are \"name_asc\", \"name_desc\", \"default_asc\", \"default_desc\".
477
- branch: 'my-feature-branch' # String | specify the branch to use
477
+ branch: 'my-feature-branch', # String | specify the branch to use
478
+ q: 'name:en' # String | Specify a query to filter locales. Currently supports `name` argument, filtering only locales with names starting with the given string.
478
479
  }
479
480
 
480
481
  begin
@@ -497,6 +498,7 @@ Name | Type | Description | Notes
497
498
  **per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
498
499
  **sort_by** | **String**| Sort locales. Valid options are \"name_asc\", \"name_desc\", \"default_asc\", \"default_desc\". | [optional]
499
500
  **branch** | **String**| specify the branch to use | [optional]
501
+ **q** | **String**| Specify a query to filter locales. Currently supports `name` argument, filtering only locales with names starting with the given string. | [optional]
500
502
 
501
503
  ### Return type
502
504
 
@@ -39,7 +39,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
39
39
  main_format: yml,
40
40
  media: Python,
41
41
  shares_translation_memory: true,
42
- project_image: [B@622ae2ba,
42
+ project_image: [B@5fdd9b96,
43
43
  remove_project_image: null,
44
44
  account_id: abcd1234,
45
45
  point_of_contact: abcd1234,
@@ -41,7 +41,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
41
41
  main_format: yml,
42
42
  media: Python,
43
43
  shares_translation_memory: true,
44
- project_image: [B@45ee48e7,
44
+ project_image: [B@50ed6392,
45
45
  remove_project_image: false,
46
46
  workflow: review,
47
47
  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@57e3a1b8)
20
+ filename: [B@431ac922)
21
21
  ```
22
22
 
23
23
 
@@ -528,6 +528,7 @@ module Phrase
528
528
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
529
529
  # @option opts [String] :sort_by Sort locales. Valid options are \"name_asc\", \"name_desc\", \"default_asc\", \"default_desc\".
530
530
  # @option opts [String] :branch specify the branch to use
531
+ # @option opts [String] :q Specify a query to filter locales. Currently supports `name` argument, filtering only locales with names starting with the given string.
531
532
  # @return [Array<Locale>]
532
533
  def locales_list(project_id, opts = {})
533
534
  data, _status_code, _headers = locales_list_with_http_info(project_id, opts)
@@ -543,6 +544,7 @@ module Phrase
543
544
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
544
545
  # @option opts [String] :sort_by Sort locales. Valid options are \&quot;name_asc\&quot;, \&quot;name_desc\&quot;, \&quot;default_asc\&quot;, \&quot;default_desc\&quot;.
545
546
  # @option opts [String] :branch specify the branch to use
547
+ # @option opts [String] :q Specify a query to filter locales. Currently supports &#x60;name&#x60; argument, filtering only locales with names starting with the given string.
546
548
  # @return [Array<(Response<(Array<Locale>)>, Integer, Hash)>] Response<(Array<Locale>)> data, response status code and response headers
547
549
  def locales_list_with_http_info(project_id, opts = {})
548
550
  if @api_client.config.debugging
@@ -561,6 +563,7 @@ module Phrase
561
563
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
562
564
  query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
563
565
  query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
566
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
564
567
 
565
568
  # header parameters
566
569
  header_params = opts[:header_params] || {}
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.21.0'
2
+ VERSION = '4.22.0'
3
3
  end
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.21.0
4
+ version: 4.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-06 00:00:00.000000000 Z
11
+ date: 2026-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus