phrase 1.0.2 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -3
  3. data/docs/Account.md +2 -0
  4. data/docs/AccountDetails.md +3 -3
  5. data/docs/AccountsApi.md +2 -2
  6. data/docs/AuthorizationsApi.md +2 -2
  7. data/docs/BlacklistedKeysApi.md +4 -2
  8. data/docs/BranchesApi.md +2 -2
  9. data/docs/CommentsApi.md +2 -2
  10. data/docs/DistributionsApi.md +2 -2
  11. data/docs/Document.md +23 -0
  12. data/docs/DocumentsApi.md +137 -0
  13. data/docs/GitHubSyncApi.md +130 -0
  14. data/docs/GitLabSyncApi.md +2 -2
  15. data/docs/GithubSyncExportParameters.md +17 -0
  16. data/docs/GithubSyncImportParameters.md +17 -0
  17. data/docs/GlossariesApi.md +2 -2
  18. data/docs/GlossaryTermsApi.md +2 -2
  19. data/docs/InlineResponse422.md +19 -0
  20. data/docs/InlineResponse422Errors.md +21 -0
  21. data/docs/InvitationsApi.md +2 -2
  22. data/docs/Job.md +5 -1
  23. data/docs/JobCreateParameters.md +2 -0
  24. data/docs/JobDetails.md +4 -0
  25. data/docs/JobLocalesApi.md +2 -2
  26. data/docs/JobUpdateParameters.md +3 -1
  27. data/docs/JobsApi.md +74 -2
  28. data/docs/KeysApi.md +4 -4
  29. data/docs/LocalesApi.md +2 -2
  30. data/docs/MembersApi.md +2 -2
  31. data/docs/OrdersApi.md +2 -2
  32. data/docs/Project.md +2 -0
  33. data/docs/ProjectDetails.md +2 -2
  34. data/docs/ProjectsApi.md +2 -2
  35. data/docs/ReleasesApi.md +2 -2
  36. data/docs/ScreenshotMarkersApi.md +2 -2
  37. data/docs/ScreenshotsApi.md +4 -2
  38. data/docs/SpacesApi.md +4 -4
  39. data/docs/StyleGuidesApi.md +2 -2
  40. data/docs/TagsApi.md +2 -2
  41. data/docs/TeamsApi.md +2 -2
  42. data/docs/TranslationsApi.md +8 -8
  43. data/docs/UploadsApi.md +2 -2
  44. data/docs/VersionsHistoryApi.md +2 -2
  45. data/docs/WebhookCreateParameters.md +2 -0
  46. data/docs/WebhookUpdateParameters.md +2 -0
  47. data/docs/WebhooksApi.md +2 -2
  48. data/lib/phrase.rb +7 -0
  49. data/lib/phrase/api/accounts_api.rb +2 -2
  50. data/lib/phrase/api/authorizations_api.rb +2 -2
  51. data/lib/phrase/api/blacklisted_keys_api.rb +5 -2
  52. data/lib/phrase/api/branches_api.rb +2 -2
  53. data/lib/phrase/api/comments_api.rb +2 -2
  54. data/lib/phrase/api/distributions_api.rb +2 -2
  55. data/lib/phrase/api/documents_api.rb +152 -0
  56. data/lib/phrase/api/git_hub_sync_api.rb +146 -0
  57. data/lib/phrase/api/git_lab_sync_api.rb +2 -2
  58. data/lib/phrase/api/glossaries_api.rb +2 -2
  59. data/lib/phrase/api/glossary_terms_api.rb +2 -2
  60. data/lib/phrase/api/invitations_api.rb +2 -2
  61. data/lib/phrase/api/job_locales_api.rb +2 -2
  62. data/lib/phrase/api/jobs_api.rb +83 -2
  63. data/lib/phrase/api/keys_api.rb +4 -4
  64. data/lib/phrase/api/locales_api.rb +2 -2
  65. data/lib/phrase/api/members_api.rb +2 -2
  66. data/lib/phrase/api/orders_api.rb +2 -2
  67. data/lib/phrase/api/projects_api.rb +2 -2
  68. data/lib/phrase/api/releases_api.rb +2 -2
  69. data/lib/phrase/api/screenshot_markers_api.rb +2 -2
  70. data/lib/phrase/api/screenshots_api.rb +5 -2
  71. data/lib/phrase/api/spaces_api.rb +4 -4
  72. data/lib/phrase/api/style_guides_api.rb +2 -2
  73. data/lib/phrase/api/tags_api.rb +2 -2
  74. data/lib/phrase/api/teams_api.rb +2 -2
  75. data/lib/phrase/api/translations_api.rb +8 -8
  76. data/lib/phrase/api/uploads_api.rb +2 -2
  77. data/lib/phrase/api/versions_history_api.rb +2 -2
  78. data/lib/phrase/api/webhooks_api.rb +2 -2
  79. data/lib/phrase/api_client.rb +2 -2
  80. data/lib/phrase/models/account.rb +10 -1
  81. data/lib/phrase/models/account_details.rb +13 -13
  82. data/lib/phrase/models/document.rb +221 -0
  83. data/lib/phrase/models/github_sync_export_parameters.rb +195 -0
  84. data/lib/phrase/models/github_sync_import_parameters.rb +195 -0
  85. data/lib/phrase/models/inline_response422.rb +205 -0
  86. data/lib/phrase/models/inline_response422_errors.rb +212 -0
  87. data/lib/phrase/models/job.rb +22 -4
  88. data/lib/phrase/models/job_create_parameters.rb +11 -1
  89. data/lib/phrase/models/job_details.rb +19 -1
  90. data/lib/phrase/models/job_update_parameters.rb +14 -4
  91. data/lib/phrase/models/project.rb +10 -1
  92. data/lib/phrase/models/project_details.rb +10 -10
  93. data/lib/phrase/models/webhook_create_parameters.rb +11 -1
  94. data/lib/phrase/models/webhook_update_parameters.rb +11 -1
  95. data/lib/phrase/version.rb +1 -1
  96. data/spec/api/accounts_api_spec.rb +1 -1
  97. data/spec/api/authorizations_api_spec.rb +1 -1
  98. data/spec/api/blacklisted_keys_api_spec.rb +2 -1
  99. data/spec/api/branches_api_spec.rb +1 -1
  100. data/spec/api/comments_api_spec.rb +1 -1
  101. data/spec/api/distributions_api_spec.rb +1 -1
  102. data/spec/api/documents_api_spec.rb +52 -0
  103. data/spec/api/git_hub_sync_api_spec.rb +49 -0
  104. data/spec/api/git_lab_sync_api_spec.rb +1 -1
  105. data/spec/api/glossaries_api_spec.rb +1 -1
  106. data/spec/api/glossary_terms_api_spec.rb +1 -1
  107. data/spec/api/invitations_api_spec.rb +1 -1
  108. data/spec/api/job_locales_api_spec.rb +1 -1
  109. data/spec/api/jobs_api_spec.rb +19 -1
  110. data/spec/api/keys_api_spec.rb +2 -2
  111. data/spec/api/locales_api_spec.rb +1 -1
  112. data/spec/api/members_api_spec.rb +1 -1
  113. data/spec/api/orders_api_spec.rb +1 -1
  114. data/spec/api/projects_api_spec.rb +1 -1
  115. data/spec/api/releases_api_spec.rb +1 -1
  116. data/spec/api/screenshot_markers_api_spec.rb +1 -1
  117. data/spec/api/screenshots_api_spec.rb +2 -1
  118. data/spec/api/spaces_api_spec.rb +2 -2
  119. data/spec/api/style_guides_api_spec.rb +1 -1
  120. data/spec/api/tags_api_spec.rb +1 -1
  121. data/spec/api/teams_api_spec.rb +1 -1
  122. data/spec/api/translations_api_spec.rb +4 -4
  123. data/spec/api/uploads_api_spec.rb +1 -1
  124. data/spec/api/versions_history_api_spec.rb +1 -1
  125. data/spec/api/webhooks_api_spec.rb +1 -1
  126. data/spec/models/account_details_spec.rb +4 -4
  127. data/spec/models/account_spec.rb +6 -0
  128. data/spec/models/document_spec.rb +47 -0
  129. data/spec/models/github_sync_export_parameters_spec.rb +29 -0
  130. data/spec/models/github_sync_import_parameters_spec.rb +29 -0
  131. data/spec/models/inline_response422_errors_spec.rb +41 -0
  132. data/spec/models/inline_response422_spec.rb +35 -0
  133. data/spec/models/job_create_parameters_spec.rb +6 -0
  134. data/spec/models/job_details_spec.rb +12 -0
  135. data/spec/models/job_spec.rb +12 -0
  136. data/spec/models/job_update_parameters_spec.rb +6 -0
  137. data/spec/models/project_details_spec.rb +6 -6
  138. data/spec/models/project_spec.rb +6 -0
  139. data/spec/models/webhook_create_parameters_spec.rb +6 -0
  140. data/spec/models/webhook_update_parameters_spec.rb +6 -0
  141. metadata +183 -155
@@ -6,12 +6,12 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **id** | **String** | | [optional]
8
8
  **name** | **String** | | [optional]
9
+ **slug** | **String** | | [optional]
9
10
  **main_format** | **String** | | [optional]
10
11
  **project_image_url** | **String** | | [optional]
11
12
  **account** | [**Account**](Account.md) | | [optional]
12
13
  **created_at** | **DateTime** | | [optional]
13
14
  **updated_at** | **DateTime** | | [optional]
14
- **slug** | **String** | | [optional]
15
15
  **shares_translation_memory** | **Boolean** | | [optional]
16
16
 
17
17
  ## Code Sample
@@ -21,12 +21,12 @@ require 'Phrase'
21
21
 
22
22
  instance = Phrase::ProjectDetails.new(id: null,
23
23
  name: null,
24
+ slug: null,
24
25
  main_format: null,
25
26
  project_image_url: null,
26
27
  account: null,
27
28
  created_at: null,
28
29
  updated_at: null,
29
- slug: null,
30
30
  shares_translation_memory: null)
31
31
  ```
32
32
 
@@ -285,7 +285,7 @@ api_instance = Phrase::ProjectsApi.new
285
285
  opts = {
286
286
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
287
287
  page: 1, # Integer | Page number
288
- per_page: 10 # Integer | allows you to specify a page size up to 100 items, 10 by default
288
+ per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
289
289
  }
290
290
 
291
291
  begin
@@ -304,7 +304,7 @@ Name | Type | Description | Notes
304
304
  ------------- | ------------- | ------------- | -------------
305
305
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
306
306
  **page** | **Integer**| Page number | [optional]
307
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
307
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
308
308
 
309
309
  ### Return type
310
310
 
@@ -369,7 +369,7 @@ distribution_id = 'distribution_id_example' # String | Distribution ID
369
369
  opts = {
370
370
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
371
371
  page: 1, # Integer | Page number
372
- per_page: 10 # Integer | allows you to specify a page size up to 100 items, 10 by default
372
+ per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
373
373
  }
374
374
 
375
375
  begin
@@ -390,7 +390,7 @@ Name | Type | Description | Notes
390
390
  **distribution_id** | **String**| Distribution ID |
391
391
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
392
392
  **page** | **Integer**| Page number | [optional]
393
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
393
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
394
394
 
395
395
  ### Return type
396
396
 
@@ -299,7 +299,7 @@ id = 'id_example' # String | ID
299
299
  opts = {
300
300
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
301
301
  page: 1, # Integer | Page number
302
- per_page: 10 # Integer | allows you to specify a page size up to 100 items, 10 by default
302
+ per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
303
303
  }
304
304
 
305
305
  begin
@@ -320,7 +320,7 @@ Name | Type | Description | Notes
320
320
  **id** | **String**| ID |
321
321
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
322
322
  **page** | **Integer**| Page number | [optional]
323
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
323
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
324
324
 
325
325
  ### Return type
326
326
 
@@ -294,7 +294,8 @@ project_id = 'project_id_example' # String | Project ID
294
294
  opts = {
295
295
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
296
296
  page: 1, # Integer | Page number
297
- per_page: 10 # Integer | allows you to specify a page size up to 100 items, 10 by default
297
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
298
+ key_id: 'abcd1234cdef1234abcd1234cdef1234' # String | filter by key
298
299
  }
299
300
 
300
301
  begin
@@ -314,7 +315,8 @@ Name | Type | Description | Notes
314
315
  **project_id** | **String**| Project ID |
315
316
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
316
317
  **page** | **Integer**| Page number | [optional]
317
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
318
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
319
+ **key_id** | **String**| filter by key | [optional]
318
320
 
319
321
  ### Return type
320
322
 
@@ -297,7 +297,7 @@ account_id = 'account_id_example' # String | Account ID
297
297
  opts = {
298
298
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
299
299
  page: 1, # Integer | Page number
300
- per_page: 10 # Integer | allows you to specify a page size up to 100 items, 10 by default
300
+ per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
301
301
  }
302
302
 
303
303
  begin
@@ -317,7 +317,7 @@ Name | Type | Description | Notes
317
317
  **account_id** | **String**| Account ID |
318
318
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
319
319
  **page** | **Integer**| Page number | [optional]
320
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
320
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
321
321
 
322
322
  ### Return type
323
323
 
@@ -491,7 +491,7 @@ space_id = 'space_id_example' # String | Space ID
491
491
  opts = {
492
492
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
493
493
  page: 1, # Integer | Page number
494
- per_page: 10 # Integer | allows you to specify a page size up to 100 items, 10 by default
494
+ per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
495
495
  }
496
496
 
497
497
  begin
@@ -512,7 +512,7 @@ Name | Type | Description | Notes
512
512
  **space_id** | **String**| Space ID |
513
513
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
514
514
  **page** | **Integer**| Page number | [optional]
515
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
515
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
516
516
 
517
517
  ### Return type
518
518
 
@@ -294,7 +294,7 @@ project_id = 'project_id_example' # String | Project ID
294
294
  opts = {
295
295
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
296
296
  page: 1, # Integer | Page number
297
- per_page: 10 # Integer | allows you to specify a page size up to 100 items, 10 by default
297
+ per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
298
298
  }
299
299
 
300
300
  begin
@@ -314,7 +314,7 @@ Name | Type | Description | Notes
314
314
  **project_id** | **String**| Project ID |
315
315
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
316
316
  **page** | **Integer**| Page number | [optional]
317
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
317
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
318
318
 
319
319
  ### Return type
320
320
 
@@ -232,7 +232,7 @@ project_id = 'project_id_example' # String | Project ID
232
232
  opts = {
233
233
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
234
234
  page: 1, # Integer | Page number
235
- per_page: 10, # Integer | allows you to specify a page size up to 100 items, 10 by default
235
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
236
236
  branch: 'my-feature-branch' # String | specify the branch to use
237
237
  }
238
238
 
@@ -253,7 +253,7 @@ Name | Type | Description | Notes
253
253
  **project_id** | **String**| Project ID |
254
254
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
255
255
  **page** | **Integer**| Page number | [optional]
256
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
256
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
257
257
  **branch** | **String**| specify the branch to use | [optional]
258
258
 
259
259
  ### Return type
@@ -300,7 +300,7 @@ account_id = 'account_id_example' # String | Account ID
300
300
  opts = {
301
301
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
302
302
  page: 1, # Integer | Page number
303
- per_page: 10 # Integer | allows you to specify a page size up to 100 items, 10 by default
303
+ per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
304
304
  }
305
305
 
306
306
  begin
@@ -320,7 +320,7 @@ Name | Type | Description | Notes
320
320
  **account_id** | **String**| Account ID |
321
321
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
322
322
  **page** | **Integer**| Page number | [optional]
323
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
323
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
324
324
 
325
325
  ### Return type
326
326
 
@@ -572,7 +572,7 @@ key_id = 'key_id_example' # String | Translation Key ID
572
572
  opts = {
573
573
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
574
574
  page: 1, # Integer | Page number
575
- per_page: 10, # Integer | allows you to specify a page size up to 100 items, 10 by default
575
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
576
576
  branch: 'my-feature-branch', # String | specify the branch to use
577
577
  sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
578
578
  order: 'desc', # String | Order direction. Can be one of: asc, desc.
@@ -597,7 +597,7 @@ Name | Type | Description | Notes
597
597
  **key_id** | **String**| Translation Key ID |
598
598
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
599
599
  **page** | **Integer**| Page number | [optional]
600
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
600
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
601
601
  **branch** | **String**| specify the branch to use | [optional]
602
602
  **sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
603
603
  **order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
@@ -647,7 +647,7 @@ locale_id = 'locale_id_example' # String | Locale ID
647
647
  opts = {
648
648
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
649
649
  page: 1, # Integer | Page number
650
- per_page: 10, # Integer | allows you to specify a page size up to 100 items, 10 by default
650
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
651
651
  branch: 'my-feature-branch', # String | specify the branch to use
652
652
  sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
653
653
  order: 'desc', # String | Order direction. Can be one of: asc, desc.
@@ -672,7 +672,7 @@ Name | Type | Description | Notes
672
672
  **locale_id** | **String**| Locale ID |
673
673
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
674
674
  **page** | **Integer**| Page number | [optional]
675
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
675
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
676
676
  **branch** | **String**| specify the branch to use | [optional]
677
677
  **sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
678
678
  **order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
@@ -847,7 +847,7 @@ project_id = 'project_id_example' # String | Project ID
847
847
  opts = {
848
848
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
849
849
  page: 1, # Integer | Page number
850
- per_page: 10, # Integer | allows you to specify a page size up to 100 items, 10 by default
850
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
851
851
  branch: 'my-feature-branch', # String | specify the branch to use
852
852
  sort: 'updated_at', # String | Sort criteria. Can be one of: key_name, created_at, updated_at.
853
853
  order: 'desc', # String | Order direction. Can be one of: asc, desc.
@@ -871,7 +871,7 @@ Name | Type | Description | Notes
871
871
  **project_id** | **String**| Project ID |
872
872
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
873
873
  **page** | **Integer**| Page number | [optional]
874
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
874
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
875
875
  **branch** | **String**| specify the branch to use | [optional]
876
876
  **sort** | **String**| Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
877
877
  **order** | **String**| Order direction. Can be one of: asc, desc. | [optional]
@@ -984,7 +984,7 @@ translations_search_parameters = Phrase::TranslationsSearchParameters.new # Tran
984
984
  opts = {
985
985
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
986
986
  page: 1, # Integer | Page number
987
- per_page: 10 # Integer | allows you to specify a page size up to 100 items, 10 by default
987
+ per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
988
988
  }
989
989
 
990
990
  begin
@@ -1005,7 +1005,7 @@ Name | Type | Description | Notes
1005
1005
  **translations_search_parameters** | [**TranslationsSearchParameters**](TranslationsSearchParameters.md)| |
1006
1006
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
1007
1007
  **page** | **Integer**| Page number | [optional]
1008
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
1008
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
1009
1009
 
1010
1010
  ### Return type
1011
1011
 
@@ -195,7 +195,7 @@ project_id = 'project_id_example' # String | Project ID
195
195
  opts = {
196
196
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
197
197
  page: 1, # Integer | Page number
198
- per_page: 10, # Integer | allows you to specify a page size up to 100 items, 10 by default
198
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
199
199
  branch: 'my-feature-branch' # String | specify the branch to use
200
200
  }
201
201
 
@@ -216,7 +216,7 @@ Name | Type | Description | Notes
216
216
  **project_id** | **String**| Project ID |
217
217
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
218
218
  **page** | **Integer**| Page number | [optional]
219
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
219
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
220
220
  **branch** | **String**| specify the branch to use | [optional]
221
221
 
222
222
  ### Return type
@@ -106,7 +106,7 @@ translation_id = 'translation_id_example' # String | Translation ID
106
106
  opts = {
107
107
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
108
108
  page: 1, # Integer | Page number
109
- per_page: 10, # Integer | allows you to specify a page size up to 100 items, 10 by default
109
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
110
110
  branch: 'my-feature-branch' # String | specify the branch to use
111
111
  }
112
112
 
@@ -128,7 +128,7 @@ Name | Type | Description | Notes
128
128
  **translation_id** | **String**| Translation ID |
129
129
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
130
130
  **page** | **Integer**| Page number | [optional]
131
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
131
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
132
132
  **branch** | **String**| specify the branch to use | [optional]
133
133
 
134
134
  ### Return type
@@ -5,6 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **callback_url** | **String** | Callback URL to send requests to | [optional]
8
+ **secret** | **String** | Webhook secret used to calculate signature. If empty, the default project secret will be used. | [optional]
8
9
  **description** | **String** | Webhook description | [optional]
9
10
  **events** | **String** | List of event names to trigger the webhook (separated by comma) | [optional]
10
11
  **active** | **Boolean** | Whether webhook is active or inactive | [optional]
@@ -15,6 +16,7 @@ Name | Type | Description | Notes
15
16
  require 'Phrase'
16
17
 
17
18
  instance = Phrase::WebhookCreateParameters.new(callback_url: http://example.com/hooks/phraseapp-notifications,
19
+ secret: secr3t,
18
20
  description: My webhook for chat notifications,
19
21
  events: locales:create,translations:update,
20
22
  active: null)
@@ -5,6 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **callback_url** | **String** | Callback URL to send requests to | [optional]
8
+ **secret** | **String** | Webhook secret used to calculate signature. If empty, the default project secret will be used. | [optional]
8
9
  **description** | **String** | Webhook description | [optional]
9
10
  **events** | **String** | List of event names to trigger the webhook (separated by comma) | [optional]
10
11
  **active** | **Boolean** | Whether webhook is active or inactive | [optional]
@@ -15,6 +16,7 @@ Name | Type | Description | Notes
15
16
  require 'Phrase'
16
17
 
17
18
  instance = Phrase::WebhookUpdateParameters.new(callback_url: http://example.com/hooks/phraseapp-notifications,
19
+ secret: secr3t,
18
20
  description: My webhook for chat notifications,
19
21
  events: locales:create,translations:update,
20
22
  active: null)
@@ -357,7 +357,7 @@ project_id = 'project_id_example' # String | Project ID
357
357
  opts = {
358
358
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
359
359
  page: 1, # Integer | Page number
360
- per_page: 10 # Integer | allows you to specify a page size up to 100 items, 10 by default
360
+ per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
361
361
  }
362
362
 
363
363
  begin
@@ -377,7 +377,7 @@ Name | Type | Description | Notes
377
377
  **project_id** | **String**| Project ID |
378
378
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
379
379
  **page** | **Integer**| Page number | [optional]
380
- **per_page** | **Integer**| allows you to specify a page size up to 100 items, 10 by default | [optional]
380
+ **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
381
381
 
382
382
  ### Return type
383
383
 
@@ -37,7 +37,10 @@ require 'phrase/models/distribution'
37
37
  require 'phrase/models/distribution_create_parameters'
38
38
  require 'phrase/models/distribution_preview'
39
39
  require 'phrase/models/distribution_update_parameters'
40
+ require 'phrase/models/document'
40
41
  require 'phrase/models/format'
42
+ require 'phrase/models/github_sync_export_parameters'
43
+ require 'phrase/models/github_sync_import_parameters'
41
44
  require 'phrase/models/gitlab_sync'
42
45
  require 'phrase/models/gitlab_sync_export'
43
46
  require 'phrase/models/gitlab_sync_export_parameters'
@@ -52,6 +55,8 @@ require 'phrase/models/glossary_term_translation_create_parameters'
52
55
  require 'phrase/models/glossary_term_translation_update_parameters'
53
56
  require 'phrase/models/glossary_term_update_parameters'
54
57
  require 'phrase/models/glossary_update_parameters'
58
+ require 'phrase/models/inline_response422'
59
+ require 'phrase/models/inline_response422_errors'
55
60
  require 'phrase/models/invitation'
56
61
  require 'phrase/models/invitation_create_parameters'
57
62
  require 'phrase/models/invitation_update_parameters'
@@ -168,7 +173,9 @@ require 'phrase/api/blacklisted_keys_api'
168
173
  require 'phrase/api/branches_api'
169
174
  require 'phrase/api/comments_api'
170
175
  require 'phrase/api/distributions_api'
176
+ require 'phrase/api/documents_api'
171
177
  require 'phrase/api/formats_api'
178
+ require 'phrase/api/git_hub_sync_api'
172
179
  require 'phrase/api/git_lab_sync_api'
173
180
  require 'phrase/api/glossaries_api'
174
181
  require 'phrase/api/glossary_term_translations_api'
@@ -78,7 +78,7 @@ module Phrase
78
78
  # @param [Hash] opts the optional parameters
79
79
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
80
80
  # @option opts [Integer] :page Page number
81
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
81
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
82
82
  # @return [Array<Account>]
83
83
  def accounts_list(opts = {})
84
84
  data, _status_code, _headers = accounts_list_with_http_info(opts)
@@ -90,7 +90,7 @@ module Phrase
90
90
  # @param [Hash] opts the optional parameters
91
91
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
92
92
  # @option opts [Integer] :page Page number
93
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
93
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
94
94
  # @return [Array<(Response<(Array<Account>)>, Integer, Hash)>] Response<(Array<Account>)> data, response status code and response headers
95
95
  def accounts_list_with_http_info(opts = {})
96
96
  if @api_client.config.debugging
@@ -284,7 +284,7 @@ module Phrase
284
284
  # @param [Hash] opts the optional parameters
285
285
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
286
286
  # @option opts [Integer] :page Page number
287
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
287
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
288
288
  # @return [Array<Authorization>]
289
289
  def authorizations_list(opts = {})
290
290
  data, _status_code, _headers = authorizations_list_with_http_info(opts)
@@ -296,7 +296,7 @@ module Phrase
296
296
  # @param [Hash] opts the optional parameters
297
297
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
298
298
  # @option opts [Integer] :page Page number
299
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
299
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
300
300
  # @return [Array<(Response<(Array<Authorization>)>, Integer, Hash)>] Response<(Array<Authorization>)> data, response status code and response headers
301
301
  def authorizations_list_with_http_info(opts = {})
302
302
  if @api_client.config.debugging
@@ -309,7 +309,8 @@ module Phrase
309
309
  # @param [Hash] opts the optional parameters
310
310
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
311
311
  # @option opts [Integer] :page Page number
312
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
312
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
313
+ # @option opts [String] :branch specify the branch to use
313
314
  # @return [Array<BlacklistedKey>]
314
315
  def blacklisted_keys_list(project_id, opts = {})
315
316
  data, _status_code, _headers = blacklisted_keys_list_with_http_info(project_id, opts)
@@ -322,7 +323,8 @@ module Phrase
322
323
  # @param [Hash] opts the optional parameters
323
324
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
324
325
  # @option opts [Integer] :page Page number
325
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
326
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
327
+ # @option opts [String] :branch specify the branch to use
326
328
  # @return [Array<(Response<(Array<BlacklistedKey>)>, Integer, Hash)>] Response<(Array<BlacklistedKey>)> data, response status code and response headers
327
329
  def blacklisted_keys_list_with_http_info(project_id, opts = {})
328
330
  if @api_client.config.debugging
@@ -339,6 +341,7 @@ module Phrase
339
341
  query_params = opts[:query_params] || {}
340
342
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
341
343
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
344
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
342
345
 
343
346
  # header parameters
344
347
  header_params = opts[:header_params] || {}
@@ -457,7 +457,7 @@ module Phrase
457
457
  # @param [Hash] opts the optional parameters
458
458
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
459
459
  # @option opts [Integer] :page Page number
460
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
460
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
461
461
  # @return [Array<Branch>]
462
462
  def branches_list(project_id, opts = {})
463
463
  data, _status_code, _headers = branches_list_with_http_info(project_id, opts)
@@ -470,7 +470,7 @@ module Phrase
470
470
  # @param [Hash] opts the optional parameters
471
471
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
472
472
  # @option opts [Integer] :page Page number
473
- # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 10 by default
473
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
474
474
  # @return [Array<(Response<(Array<Branch>)>, Integer, Hash)>] Response<(Array<Branch>)> data, response status code and response headers
475
475
  def branches_list_with_http_info(project_id, opts = {})
476
476
  if @api_client.config.debugging