phrase 2.2.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -3
  3. data/docs/AccountsApi.md +8 -2
  4. data/docs/AuthorizationsApi.md +20 -5
  5. data/docs/BitbucketSyncApi.md +12 -3
  6. data/docs/BlacklistedKeysApi.md +20 -5
  7. data/docs/BranchesApi.md +28 -7
  8. data/docs/CommentsApi.md +32 -8
  9. data/docs/Distribution.md +2 -0
  10. data/docs/DistributionCreateParameters.md +2 -0
  11. data/docs/DistributionUpdateParameters.md +2 -0
  12. data/docs/DistributionsApi.md +20 -5
  13. data/docs/DocumentsApi.md +8 -2
  14. data/docs/FormatsApi.md +4 -1
  15. data/docs/GitHubSyncApi.md +8 -2
  16. data/docs/GitLabSyncApi.md +28 -7
  17. data/docs/GlossariesApi.md +20 -5
  18. data/docs/GlossaryTermTranslationsApi.md +12 -3
  19. data/docs/GlossaryTermsApi.md +20 -5
  20. data/docs/ICUApi.md +73 -0
  21. data/docs/Icu.md +17 -0
  22. data/docs/IcuSkeletonParameters.md +21 -0
  23. data/docs/InvitationCreateParameters.md +2 -0
  24. data/docs/InvitationUpdateParameters.md +2 -0
  25. data/docs/InvitationsApi.md +28 -7
  26. data/docs/JobLocaleCompleteReviewParameters.md +17 -0
  27. data/docs/JobLocaleUpdateParameters.md +3 -1
  28. data/docs/JobLocalesApi.md +99 -7
  29. data/docs/JobLocalesCreateParameters.md +4 -2
  30. data/docs/JobTemplateLocalesApi.md +20 -5
  31. data/docs/JobTemplatesApi.md +20 -5
  32. data/docs/JobsApi.md +44 -11
  33. data/docs/KeysApi.md +44 -11
  34. data/docs/LocalesApi.md +35 -10
  35. data/docs/Member.md +6 -0
  36. data/docs/MembersApi.md +20 -5
  37. data/docs/NotificationGroupsApi.md +12 -3
  38. data/docs/NotificationsApi.md +12 -3
  39. data/docs/OrdersApi.md +20 -5
  40. data/docs/Project.md +2 -0
  41. data/docs/ProjectDetails.md +2 -0
  42. data/docs/ProjectsApi.md +20 -5
  43. data/docs/ReleaseCreateParameters.md +2 -0
  44. data/docs/ReleasesApi.md +24 -6
  45. data/docs/ScreenshotMarkersApi.md +20 -5
  46. data/docs/ScreenshotsApi.md +20 -5
  47. data/docs/SearchApi.md +4 -1
  48. data/docs/SpacesApi.md +32 -8
  49. data/docs/StyleGuidesApi.md +20 -5
  50. data/docs/TagsApi.md +16 -4
  51. data/docs/Team1.md +23 -0
  52. data/docs/TeamsApi.md +44 -11
  53. data/docs/TranslationsApi.md +68 -17
  54. data/docs/TranslationsVerifyParameters.md +3 -5
  55. data/docs/UploadsApi.md +12 -3
  56. data/docs/UserPreview.md +3 -1
  57. data/docs/UsersApi.md +4 -1
  58. data/docs/VariablesApi.md +20 -5
  59. data/docs/VersionsHistoryApi.md +8 -2
  60. data/docs/WebhooksApi.md +24 -6
  61. data/lib/phrase/api/accounts_api.rb +2 -2
  62. data/lib/phrase/api/authorizations_api.rb +5 -5
  63. data/lib/phrase/api/bitbucket_sync_api.rb +3 -3
  64. data/lib/phrase/api/blacklisted_keys_api.rb +5 -5
  65. data/lib/phrase/api/branches_api.rb +7 -7
  66. data/lib/phrase/api/comments_api.rb +8 -8
  67. data/lib/phrase/api/distributions_api.rb +5 -5
  68. data/lib/phrase/api/documents_api.rb +2 -2
  69. data/lib/phrase/api/formats_api.rb +1 -1
  70. data/lib/phrase/api/git_hub_sync_api.rb +2 -2
  71. data/lib/phrase/api/git_lab_sync_api.rb +7 -7
  72. data/lib/phrase/api/glossaries_api.rb +5 -5
  73. data/lib/phrase/api/glossary_term_translations_api.rb +3 -3
  74. data/lib/phrase/api/glossary_terms_api.rb +5 -5
  75. data/lib/phrase/api/icu_api.rb +78 -0
  76. data/lib/phrase/api/invitations_api.rb +7 -7
  77. data/lib/phrase/api/job_locales_api.rb +93 -7
  78. data/lib/phrase/api/job_template_locales_api.rb +5 -5
  79. data/lib/phrase/api/job_templates_api.rb +5 -5
  80. data/lib/phrase/api/jobs_api.rb +11 -11
  81. data/lib/phrase/api/keys_api.rb +11 -11
  82. data/lib/phrase/api/locales_api.rb +20 -11
  83. data/lib/phrase/api/members_api.rb +5 -5
  84. data/lib/phrase/api/notification_groups_api.rb +3 -3
  85. data/lib/phrase/api/notifications_api.rb +3 -3
  86. data/lib/phrase/api/orders_api.rb +5 -5
  87. data/lib/phrase/api/projects_api.rb +5 -5
  88. data/lib/phrase/api/releases_api.rb +6 -6
  89. data/lib/phrase/api/screenshot_markers_api.rb +5 -5
  90. data/lib/phrase/api/screenshots_api.rb +5 -5
  91. data/lib/phrase/api/search_api.rb +1 -1
  92. data/lib/phrase/api/spaces_api.rb +8 -8
  93. data/lib/phrase/api/style_guides_api.rb +5 -5
  94. data/lib/phrase/api/tags_api.rb +4 -4
  95. data/lib/phrase/api/teams_api.rb +11 -11
  96. data/lib/phrase/api/translations_api.rb +17 -17
  97. data/lib/phrase/api/uploads_api.rb +3 -3
  98. data/lib/phrase/api/users_api.rb +1 -1
  99. data/lib/phrase/api/variables_api.rb +5 -5
  100. data/lib/phrase/api/versions_history_api.rb +2 -2
  101. data/lib/phrase/api/webhooks_api.rb +6 -6
  102. data/lib/phrase/configuration.rb +8 -0
  103. data/lib/phrase/models/distribution.rb +12 -1
  104. data/lib/phrase/models/distribution_create_parameters.rb +13 -1
  105. data/lib/phrase/models/distribution_update_parameters.rb +13 -1
  106. data/lib/phrase/models/icu.rb +195 -0
  107. data/lib/phrase/models/icu_skeleton_parameters.rb +217 -0
  108. data/lib/phrase/models/invitation_create_parameters.rb +13 -1
  109. data/lib/phrase/models/invitation_update_parameters.rb +13 -1
  110. data/lib/phrase/models/job_locale_complete_review_parameters.rb +195 -0
  111. data/lib/phrase/models/job_locale_update_parameters.rb +16 -4
  112. data/lib/phrase/models/job_locales_create_parameters.rb +17 -5
  113. data/lib/phrase/models/member.rb +30 -1
  114. data/lib/phrase/models/project.rb +10 -1
  115. data/lib/phrase/models/project_details.rb +10 -1
  116. data/lib/phrase/models/release_create_parameters.rb +13 -1
  117. data/lib/phrase/models/team1.rb +221 -0
  118. data/lib/phrase/models/translations_verify_parameters.rb +14 -24
  119. data/lib/phrase/models/user_preview.rb +13 -4
  120. data/lib/phrase/response.rb +1 -1
  121. data/lib/phrase/version.rb +1 -1
  122. data/lib/phrase.rb +5 -0
  123. data/phrase.gemspec +2 -2
  124. data/spec/api/icu_api_spec.rb +36 -0
  125. data/spec/api/job_locales_api_spec.rb +16 -0
  126. data/spec/api/locales_api_spec.rb +2 -0
  127. data/spec/models/distribution_create_parameters_spec.rb +6 -0
  128. data/spec/models/distribution_spec.rb +6 -0
  129. data/spec/models/distribution_update_parameters_spec.rb +6 -0
  130. data/spec/models/icu_skeleton_parameters_spec.rb +41 -0
  131. data/spec/models/icu_spec.rb +29 -0
  132. data/spec/models/invitation_create_parameters_spec.rb +6 -0
  133. data/spec/models/invitation_update_parameters_spec.rb +6 -0
  134. data/spec/models/job_locale_complete_review_parameters_spec.rb +29 -0
  135. data/spec/models/job_locale_update_parameters_spec.rb +6 -0
  136. data/spec/models/job_locales_create_parameters_spec.rb +6 -0
  137. data/spec/models/member_spec.rb +18 -0
  138. data/spec/models/project_details_spec.rb +6 -0
  139. data/spec/models/project_spec.rb +6 -0
  140. data/spec/models/release_create_parameters_spec.rb +6 -0
  141. data/spec/models/team1_spec.rb +47 -0
  142. data/spec/models/translations_verify_parameters_spec.rb +2 -8
  143. data/spec/models/user_preview_spec.rb +6 -0
  144. metadata +214 -194
data/docs/JobsApi.md CHANGED
@@ -40,6 +40,9 @@ Phrase.configure do |config|
40
40
  # Configure API key authorization: Token
41
41
  config.api_key['Authorization'] = 'YOUR API KEY'
42
42
  config.api_key_prefix['Authorization'] = 'token'
43
+
44
+ # Configure Bearer authorization (JWT): bearerAuth
45
+ config.access_token = 'YOUR_BEARER_TOKEN'
43
46
  end
44
47
 
45
48
  api_instance = Phrase::JobsApi.new
@@ -75,7 +78,7 @@ Response<([**JobDetails**](JobDetails.md))>
75
78
 
76
79
  ### Authorization
77
80
 
78
- [Basic](../README.md#Basic), [Token](../README.md#Token)
81
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
79
82
 
80
83
  ### HTTP request headers
81
84
 
@@ -105,6 +108,9 @@ Phrase.configure do |config|
105
108
  # Configure API key authorization: Token
106
109
  config.api_key['Authorization'] = 'YOUR API KEY'
107
110
  config.api_key_prefix['Authorization'] = 'token'
111
+
112
+ # Configure Bearer authorization (JWT): bearerAuth
113
+ config.access_token = 'YOUR_BEARER_TOKEN'
108
114
  end
109
115
 
110
116
  api_instance = Phrase::JobsApi.new
@@ -138,7 +144,7 @@ Response<([**JobDetails**](JobDetails.md))>
138
144
 
139
145
  ### Authorization
140
146
 
141
- [Basic](../README.md#Basic), [Token](../README.md#Token)
147
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
142
148
 
143
149
  ### HTTP request headers
144
150
 
@@ -168,6 +174,9 @@ Phrase.configure do |config|
168
174
  # Configure API key authorization: Token
169
175
  config.api_key['Authorization'] = 'YOUR API KEY'
170
176
  config.api_key_prefix['Authorization'] = 'token'
177
+
178
+ # Configure Bearer authorization (JWT): bearerAuth
179
+ config.access_token = 'YOUR_BEARER_TOKEN'
171
180
  end
172
181
 
173
182
  api_instance = Phrase::JobsApi.new
@@ -202,7 +211,7 @@ Response<(nil (empty response body))>
202
211
 
203
212
  ### Authorization
204
213
 
205
- [Basic](../README.md#Basic), [Token](../README.md#Token)
214
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
206
215
 
207
216
  ### HTTP request headers
208
217
 
@@ -232,6 +241,9 @@ Phrase.configure do |config|
232
241
  # Configure API key authorization: Token
233
242
  config.api_key['Authorization'] = 'YOUR API KEY'
234
243
  config.api_key_prefix['Authorization'] = 'token'
244
+
245
+ # Configure Bearer authorization (JWT): bearerAuth
246
+ config.access_token = 'YOUR_BEARER_TOKEN'
235
247
  end
236
248
 
237
249
  api_instance = Phrase::JobsApi.new
@@ -267,7 +279,7 @@ Response<([**JobDetails**](JobDetails.md))>
267
279
 
268
280
  ### Authorization
269
281
 
270
- [Basic](../README.md#Basic), [Token](../README.md#Token)
282
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
271
283
 
272
284
  ### HTTP request headers
273
285
 
@@ -297,6 +309,9 @@ Phrase.configure do |config|
297
309
  # Configure API key authorization: Token
298
310
  config.api_key['Authorization'] = 'YOUR API KEY'
299
311
  config.api_key_prefix['Authorization'] = 'token'
312
+
313
+ # Configure Bearer authorization (JWT): bearerAuth
314
+ config.access_token = 'YOUR_BEARER_TOKEN'
300
315
  end
301
316
 
302
317
  api_instance = Phrase::JobsApi.new
@@ -333,7 +348,7 @@ Response<(nil (empty response body))>
333
348
 
334
349
  ### Authorization
335
350
 
336
- [Basic](../README.md#Basic), [Token](../README.md#Token)
351
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
337
352
 
338
353
  ### HTTP request headers
339
354
 
@@ -363,6 +378,9 @@ Phrase.configure do |config|
363
378
  # Configure API key authorization: Token
364
379
  config.api_key['Authorization'] = 'YOUR API KEY'
365
380
  config.api_key_prefix['Authorization'] = 'token'
381
+
382
+ # Configure Bearer authorization (JWT): bearerAuth
383
+ config.access_token = 'YOUR_BEARER_TOKEN'
366
384
  end
367
385
 
368
386
  api_instance = Phrase::JobsApi.new
@@ -398,7 +416,7 @@ Response<([**JobDetails**](JobDetails.md))>
398
416
 
399
417
  ### Authorization
400
418
 
401
- [Basic](../README.md#Basic), [Token](../README.md#Token)
419
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
402
420
 
403
421
  ### HTTP request headers
404
422
 
@@ -428,6 +446,9 @@ Phrase.configure do |config|
428
446
  # Configure API key authorization: Token
429
447
  config.api_key['Authorization'] = 'YOUR API KEY'
430
448
  config.api_key_prefix['Authorization'] = 'token'
449
+
450
+ # Configure Bearer authorization (JWT): bearerAuth
451
+ config.access_token = 'YOUR_BEARER_TOKEN'
431
452
  end
432
453
 
433
454
  api_instance = Phrase::JobsApi.new
@@ -463,7 +484,7 @@ Response<([**JobDetails**](JobDetails.md))>
463
484
 
464
485
  ### Authorization
465
486
 
466
- [Basic](../README.md#Basic), [Token](../README.md#Token)
487
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
467
488
 
468
489
  ### HTTP request headers
469
490
 
@@ -493,6 +514,9 @@ Phrase.configure do |config|
493
514
  # Configure API key authorization: Token
494
515
  config.api_key['Authorization'] = 'YOUR API KEY'
495
516
  config.api_key_prefix['Authorization'] = 'token'
517
+
518
+ # Configure Bearer authorization (JWT): bearerAuth
519
+ config.access_token = 'YOUR_BEARER_TOKEN'
496
520
  end
497
521
 
498
522
  api_instance = Phrase::JobsApi.new
@@ -528,7 +552,7 @@ Response<([**JobDetails**](JobDetails.md))>
528
552
 
529
553
  ### Authorization
530
554
 
531
- [Basic](../README.md#Basic), [Token](../README.md#Token)
555
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
532
556
 
533
557
  ### HTTP request headers
534
558
 
@@ -558,6 +582,9 @@ Phrase.configure do |config|
558
582
  # Configure API key authorization: Token
559
583
  config.api_key['Authorization'] = 'YOUR API KEY'
560
584
  config.api_key_prefix['Authorization'] = 'token'
585
+
586
+ # Configure Bearer authorization (JWT): bearerAuth
587
+ config.access_token = 'YOUR_BEARER_TOKEN'
561
588
  end
562
589
 
563
590
  api_instance = Phrase::JobsApi.new
@@ -593,7 +620,7 @@ Response<([**JobDetails**](JobDetails.md))>
593
620
 
594
621
  ### Authorization
595
622
 
596
- [Basic](../README.md#Basic), [Token](../README.md#Token)
623
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
597
624
 
598
625
  ### HTTP request headers
599
626
 
@@ -623,6 +650,9 @@ Phrase.configure do |config|
623
650
  # Configure API key authorization: Token
624
651
  config.api_key['Authorization'] = 'YOUR API KEY'
625
652
  config.api_key_prefix['Authorization'] = 'token'
653
+
654
+ # Configure Bearer authorization (JWT): bearerAuth
655
+ config.access_token = 'YOUR_BEARER_TOKEN'
626
656
  end
627
657
 
628
658
  api_instance = Phrase::JobsApi.new
@@ -664,7 +694,7 @@ Response<([**Array&lt;Job&gt;**](Job.md))>
664
694
 
665
695
  ### Authorization
666
696
 
667
- [Basic](../README.md#Basic), [Token](../README.md#Token)
697
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
668
698
 
669
699
  ### HTTP request headers
670
700
 
@@ -694,6 +724,9 @@ Phrase.configure do |config|
694
724
  # Configure API key authorization: Token
695
725
  config.api_key['Authorization'] = 'YOUR API KEY'
696
726
  config.api_key_prefix['Authorization'] = 'token'
727
+
728
+ # Configure Bearer authorization (JWT): bearerAuth
729
+ config.access_token = 'YOUR_BEARER_TOKEN'
697
730
  end
698
731
 
699
732
  api_instance = Phrase::JobsApi.new
@@ -737,7 +770,7 @@ Response<([**Array&lt;Job&gt;**](Job.md))>
737
770
 
738
771
  ### Authorization
739
772
 
740
- [Basic](../README.md#Basic), [Token](../README.md#Token)
773
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
741
774
 
742
775
  ### HTTP request headers
743
776
 
data/docs/KeysApi.md CHANGED
@@ -40,6 +40,9 @@ Phrase.configure do |config|
40
40
  # Configure API key authorization: Token
41
41
  config.api_key['Authorization'] = 'YOUR API KEY'
42
42
  config.api_key_prefix['Authorization'] = 'token'
43
+
44
+ # Configure Bearer authorization (JWT): bearerAuth
45
+ config.access_token = 'YOUR_BEARER_TOKEN'
43
46
  end
44
47
 
45
48
  api_instance = Phrase::KeysApi.new
@@ -73,7 +76,7 @@ Response<([**TranslationKeyDetails**](TranslationKeyDetails.md))>
73
76
 
74
77
  ### Authorization
75
78
 
76
- [Basic](../README.md#Basic), [Token](../README.md#Token)
79
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
77
80
 
78
81
  ### HTTP request headers
79
82
 
@@ -103,6 +106,9 @@ Phrase.configure do |config|
103
106
  # Configure API key authorization: Token
104
107
  config.api_key['Authorization'] = 'YOUR API KEY'
105
108
  config.api_key_prefix['Authorization'] = 'token'
109
+
110
+ # Configure Bearer authorization (JWT): bearerAuth
111
+ config.access_token = 'YOUR_BEARER_TOKEN'
106
112
  end
107
113
 
108
114
  api_instance = Phrase::KeysApi.new
@@ -137,7 +143,7 @@ Response<(nil (empty response body))>
137
143
 
138
144
  ### Authorization
139
145
 
140
- [Basic](../README.md#Basic), [Token](../README.md#Token)
146
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
141
147
 
142
148
  ### HTTP request headers
143
149
 
@@ -167,6 +173,9 @@ Phrase.configure do |config|
167
173
  # Configure API key authorization: Token
168
174
  config.api_key['Authorization'] = 'YOUR API KEY'
169
175
  config.api_key_prefix['Authorization'] = 'token'
176
+
177
+ # Configure Bearer authorization (JWT): bearerAuth
178
+ config.access_token = 'YOUR_BEARER_TOKEN'
170
179
  end
171
180
 
172
181
  api_instance = Phrase::KeysApi.new
@@ -202,7 +211,7 @@ Response<([**TranslationKeyDetails**](TranslationKeyDetails.md))>
202
211
 
203
212
  ### Authorization
204
213
 
205
- [Basic](../README.md#Basic), [Token](../README.md#Token)
214
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
206
215
 
207
216
  ### HTTP request headers
208
217
 
@@ -232,6 +241,9 @@ Phrase.configure do |config|
232
241
  # Configure API key authorization: Token
233
242
  config.api_key['Authorization'] = 'YOUR API KEY'
234
243
  config.api_key_prefix['Authorization'] = 'token'
244
+
245
+ # Configure Bearer authorization (JWT): bearerAuth
246
+ config.access_token = 'YOUR_BEARER_TOKEN'
235
247
  end
236
248
 
237
249
  api_instance = Phrase::KeysApi.new
@@ -267,7 +279,7 @@ Response<([**TranslationKeyDetails**](TranslationKeyDetails.md))>
267
279
 
268
280
  ### Authorization
269
281
 
270
- [Basic](../README.md#Basic), [Token](../README.md#Token)
282
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
271
283
 
272
284
  ### HTTP request headers
273
285
 
@@ -297,6 +309,9 @@ Phrase.configure do |config|
297
309
  # Configure API key authorization: Token
298
310
  config.api_key['Authorization'] = 'YOUR API KEY'
299
311
  config.api_key_prefix['Authorization'] = 'token'
312
+
313
+ # Configure Bearer authorization (JWT): bearerAuth
314
+ config.access_token = 'YOUR_BEARER_TOKEN'
300
315
  end
301
316
 
302
317
  api_instance = Phrase::KeysApi.new
@@ -334,7 +349,7 @@ Response<([**AffectedResources**](AffectedResources.md))>
334
349
 
335
350
  ### Authorization
336
351
 
337
- [Basic](../README.md#Basic), [Token](../README.md#Token)
352
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
338
353
 
339
354
  ### HTTP request headers
340
355
 
@@ -364,6 +379,9 @@ Phrase.configure do |config|
364
379
  # Configure API key authorization: Token
365
380
  config.api_key['Authorization'] = 'YOUR API KEY'
366
381
  config.api_key_prefix['Authorization'] = 'token'
382
+
383
+ # Configure Bearer authorization (JWT): bearerAuth
384
+ config.access_token = 'YOUR_BEARER_TOKEN'
367
385
  end
368
386
 
369
387
  api_instance = Phrase::KeysApi.new
@@ -397,7 +415,7 @@ Response<([**AffectedResources**](AffectedResources.md))>
397
415
 
398
416
  ### Authorization
399
417
 
400
- [Basic](../README.md#Basic), [Token](../README.md#Token)
418
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
401
419
 
402
420
  ### HTTP request headers
403
421
 
@@ -427,6 +445,9 @@ Phrase.configure do |config|
427
445
  # Configure API key authorization: Token
428
446
  config.api_key['Authorization'] = 'YOUR API KEY'
429
447
  config.api_key_prefix['Authorization'] = 'token'
448
+
449
+ # Configure Bearer authorization (JWT): bearerAuth
450
+ config.access_token = 'YOUR_BEARER_TOKEN'
430
451
  end
431
452
 
432
453
  api_instance = Phrase::KeysApi.new
@@ -460,7 +481,7 @@ Response<([**AffectedResources**](AffectedResources.md))>
460
481
 
461
482
  ### Authorization
462
483
 
463
- [Basic](../README.md#Basic), [Token](../README.md#Token)
484
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
464
485
 
465
486
  ### HTTP request headers
466
487
 
@@ -490,6 +511,9 @@ Phrase.configure do |config|
490
511
  # Configure API key authorization: Token
491
512
  config.api_key['Authorization'] = 'YOUR API KEY'
492
513
  config.api_key_prefix['Authorization'] = 'token'
514
+
515
+ # Configure Bearer authorization (JWT): bearerAuth
516
+ config.access_token = 'YOUR_BEARER_TOKEN'
493
517
  end
494
518
 
495
519
  api_instance = Phrase::KeysApi.new
@@ -535,7 +559,7 @@ Response<([**Array&lt;TranslationKey&gt;**](TranslationKey.md))>
535
559
 
536
560
  ### Authorization
537
561
 
538
- [Basic](../README.md#Basic), [Token](../README.md#Token)
562
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
539
563
 
540
564
  ### HTTP request headers
541
565
 
@@ -565,6 +589,9 @@ Phrase.configure do |config|
565
589
  # Configure API key authorization: Token
566
590
  config.api_key['Authorization'] = 'YOUR API KEY'
567
591
  config.api_key_prefix['Authorization'] = 'token'
592
+
593
+ # Configure Bearer authorization (JWT): bearerAuth
594
+ config.access_token = 'YOUR_BEARER_TOKEN'
568
595
  end
569
596
 
570
597
  api_instance = Phrase::KeysApi.new
@@ -602,7 +629,7 @@ Response<([**Array&lt;TranslationKey&gt;**](TranslationKey.md))>
602
629
 
603
630
  ### Authorization
604
631
 
605
- [Basic](../README.md#Basic), [Token](../README.md#Token)
632
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
606
633
 
607
634
  ### HTTP request headers
608
635
 
@@ -632,6 +659,9 @@ Phrase.configure do |config|
632
659
  # Configure API key authorization: Token
633
660
  config.api_key['Authorization'] = 'YOUR API KEY'
634
661
  config.api_key_prefix['Authorization'] = 'token'
662
+
663
+ # Configure Bearer authorization (JWT): bearerAuth
664
+ config.access_token = 'YOUR_BEARER_TOKEN'
635
665
  end
636
666
 
637
667
  api_instance = Phrase::KeysApi.new
@@ -665,7 +695,7 @@ Response<([**AffectedResources**](AffectedResources.md))>
665
695
 
666
696
  ### Authorization
667
697
 
668
- [Basic](../README.md#Basic), [Token](../README.md#Token)
698
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
669
699
 
670
700
  ### HTTP request headers
671
701
 
@@ -695,6 +725,9 @@ Phrase.configure do |config|
695
725
  # Configure API key authorization: Token
696
726
  config.api_key['Authorization'] = 'YOUR API KEY'
697
727
  config.api_key_prefix['Authorization'] = 'token'
728
+
729
+ # Configure Bearer authorization (JWT): bearerAuth
730
+ config.access_token = 'YOUR_BEARER_TOKEN'
698
731
  end
699
732
 
700
733
  api_instance = Phrase::KeysApi.new
@@ -728,7 +761,7 @@ Response<([**AffectedResources**](AffectedResources.md))>
728
761
 
729
762
  ### Authorization
730
763
 
731
- [Basic](../README.md#Basic), [Token](../README.md#Token)
764
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
732
765
 
733
766
  ### HTTP request headers
734
767
 
data/docs/LocalesApi.md CHANGED
@@ -16,7 +16,7 @@ Method | HTTP request | Description
16
16
 
17
17
  ## account_locales
18
18
 
19
- > Array&lt;LocalePreview1&gt; account_locales(opts)
19
+ > Array&lt;LocalePreview1&gt; account_locales(id, opts)
20
20
 
21
21
  List locales used in account
22
22
 
@@ -36,9 +36,13 @@ Phrase.configure do |config|
36
36
  # Configure API key authorization: Token
37
37
  config.api_key['Authorization'] = 'YOUR API KEY'
38
38
  config.api_key_prefix['Authorization'] = 'token'
39
+
40
+ # Configure Bearer authorization (JWT): bearerAuth
41
+ config.access_token = 'YOUR_BEARER_TOKEN'
39
42
  end
40
43
 
41
44
  api_instance = Phrase::LocalesApi.new
45
+ id = 'id_example' # String | ID
42
46
  opts = {
43
47
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
44
48
  page: 1, # Integer | Page number
@@ -47,7 +51,7 @@ opts = {
47
51
 
48
52
  begin
49
53
  #List locales used in account
50
- result = api_instance.account_locales(opts)
54
+ result = api_instance.account_locales(id, opts)
51
55
  pp result
52
56
  rescue Phrase::ApiError => e
53
57
  puts "Exception when calling LocalesApi->account_locales: #{e}"
@@ -59,6 +63,7 @@ end
59
63
 
60
64
  Name | Type | Description | Notes
61
65
  ------------- | ------------- | ------------- | -------------
66
+ **id** | **String**| ID |
62
67
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
63
68
  **page** | **Integer**| Page number | [optional]
64
69
  **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
@@ -69,7 +74,7 @@ Response<([**Array&lt;LocalePreview1&gt;**](LocalePreview1.md))>
69
74
 
70
75
  ### Authorization
71
76
 
72
- [Basic](../README.md#Basic), [Token](../README.md#Token)
77
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
73
78
 
74
79
  ### HTTP request headers
75
80
 
@@ -99,6 +104,9 @@ Phrase.configure do |config|
99
104
  # Configure API key authorization: Token
100
105
  config.api_key['Authorization'] = 'YOUR API KEY'
101
106
  config.api_key_prefix['Authorization'] = 'token'
107
+
108
+ # Configure Bearer authorization (JWT): bearerAuth
109
+ config.access_token = 'YOUR_BEARER_TOKEN'
102
110
  end
103
111
 
104
112
  api_instance = Phrase::LocalesApi.new
@@ -132,7 +140,7 @@ Response<([**LocaleDetails**](LocaleDetails.md))>
132
140
 
133
141
  ### Authorization
134
142
 
135
- [Basic](../README.md#Basic), [Token](../README.md#Token)
143
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
136
144
 
137
145
  ### HTTP request headers
138
146
 
@@ -162,6 +170,9 @@ Phrase.configure do |config|
162
170
  # Configure API key authorization: Token
163
171
  config.api_key['Authorization'] = 'YOUR API KEY'
164
172
  config.api_key_prefix['Authorization'] = 'token'
173
+
174
+ # Configure Bearer authorization (JWT): bearerAuth
175
+ config.access_token = 'YOUR_BEARER_TOKEN'
165
176
  end
166
177
 
167
178
  api_instance = Phrase::LocalesApi.new
@@ -196,7 +207,7 @@ Response<(nil (empty response body))>
196
207
 
197
208
  ### Authorization
198
209
 
199
- [Basic](../README.md#Basic), [Token](../README.md#Token)
210
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
200
211
 
201
212
  ### HTTP request headers
202
213
 
@@ -226,6 +237,9 @@ Phrase.configure do |config|
226
237
  # Configure API key authorization: Token
227
238
  config.api_key['Authorization'] = 'YOUR API KEY'
228
239
  config.api_key_prefix['Authorization'] = 'token'
240
+
241
+ # Configure Bearer authorization (JWT): bearerAuth
242
+ config.access_token = 'YOUR_BEARER_TOKEN'
229
243
  end
230
244
 
231
245
  api_instance = Phrase::LocalesApi.new
@@ -247,7 +261,8 @@ opts = {
247
261
  skip_unverified_translations: true, # Boolean | Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>.
248
262
  include_unverified_translations: true, # Boolean | if set to false unverified translations are excluded
249
263
  use_last_reviewed_version: true, # Boolean | If set to true the last reviewed version of a translation is used. This is only available if the review workflow (currently in beta) is enabled for the project.
250
- fallback_locale_id: 'fallback_locale_id_example' # String | If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>.
264
+ fallback_locale_id: 'fallback_locale_id_example', # String | If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>.
265
+ source_locale_id: 'source_locale_id_example' # String | Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a <code>tag</code> parameter indicating a specific job.
251
266
  }
252
267
 
253
268
  begin
@@ -282,6 +297,7 @@ Name | Type | Description | Notes
282
297
  **include_unverified_translations** | **Boolean**| if set to false unverified translations are excluded | [optional]
283
298
  **use_last_reviewed_version** | **Boolean**| If set to true the last reviewed version of a translation is used. This is only available if the review workflow (currently in beta) is enabled for the project. | [optional]
284
299
  **fallback_locale_id** | **String**| If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to &lt;code&gt;true&lt;/code&gt;. | [optional]
300
+ **source_locale_id** | **String**| Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a &lt;code&gt;tag&lt;/code&gt; parameter indicating a specific job. | [optional]
285
301
 
286
302
  ### Return type
287
303
 
@@ -289,7 +305,7 @@ Response<(**File**)>
289
305
 
290
306
  ### Authorization
291
307
 
292
- [Basic](../README.md#Basic), [Token](../README.md#Token)
308
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
293
309
 
294
310
  ### HTTP request headers
295
311
 
@@ -319,6 +335,9 @@ Phrase.configure do |config|
319
335
  # Configure API key authorization: Token
320
336
  config.api_key['Authorization'] = 'YOUR API KEY'
321
337
  config.api_key_prefix['Authorization'] = 'token'
338
+
339
+ # Configure Bearer authorization (JWT): bearerAuth
340
+ config.access_token = 'YOUR_BEARER_TOKEN'
322
341
  end
323
342
 
324
343
  api_instance = Phrase::LocalesApi.new
@@ -354,7 +373,7 @@ Response<([**LocaleDetails**](LocaleDetails.md))>
354
373
 
355
374
  ### Authorization
356
375
 
357
- [Basic](../README.md#Basic), [Token](../README.md#Token)
376
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
358
377
 
359
378
  ### HTTP request headers
360
379
 
@@ -384,6 +403,9 @@ Phrase.configure do |config|
384
403
  # Configure API key authorization: Token
385
404
  config.api_key['Authorization'] = 'YOUR API KEY'
386
405
  config.api_key_prefix['Authorization'] = 'token'
406
+
407
+ # Configure Bearer authorization (JWT): bearerAuth
408
+ config.access_token = 'YOUR_BEARER_TOKEN'
387
409
  end
388
410
 
389
411
  api_instance = Phrase::LocalesApi.new
@@ -419,7 +441,7 @@ Response<([**LocaleDetails**](LocaleDetails.md))>
419
441
 
420
442
  ### Authorization
421
443
 
422
- [Basic](../README.md#Basic), [Token](../README.md#Token)
444
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
423
445
 
424
446
  ### HTTP request headers
425
447
 
@@ -449,6 +471,9 @@ Phrase.configure do |config|
449
471
  # Configure API key authorization: Token
450
472
  config.api_key['Authorization'] = 'YOUR API KEY'
451
473
  config.api_key_prefix['Authorization'] = 'token'
474
+
475
+ # Configure Bearer authorization (JWT): bearerAuth
476
+ config.access_token = 'YOUR_BEARER_TOKEN'
452
477
  end
453
478
 
454
479
  api_instance = Phrase::LocalesApi.new
@@ -488,7 +513,7 @@ Response<([**Array&lt;Locale&gt;**](Locale.md))>
488
513
 
489
514
  ### Authorization
490
515
 
491
- [Basic](../README.md#Basic), [Token](../README.md#Token)
516
+ [Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
492
517
 
493
518
  ### HTTP request headers
494
519
 
data/docs/Member.md CHANGED
@@ -7,10 +7,13 @@ Name | Type | Description | Notes
7
7
  **id** | **String** | | [optional]
8
8
  **email** | **String** | | [optional]
9
9
  **username** | **String** | | [optional]
10
+ **created_at** | **DateTime** | | [optional]
11
+ **last_activity_at** | **DateTime** | | [optional]
10
12
  **role** | **String** | | [optional]
11
13
  **projects** | [**Array&lt;ProjectLocales&gt;**](ProjectLocales.md) | | [optional]
12
14
  **permissions** | [**Object**](.md) | | [optional]
13
15
  **default_locale_codes** | **Array&lt;String&gt;** | | [optional]
16
+ **teams** | [**Array&lt;Team1&gt;**](Team1.md) | | [optional]
14
17
  **spaces** | [**Array&lt;MemberSpaces&gt;**](MemberSpaces.md) | | [optional]
15
18
 
16
19
  ## Code Sample
@@ -21,10 +24,13 @@ require 'Phrase'
21
24
  instance = Phrase::Member.new(id: null,
22
25
  email: null,
23
26
  username: null,
27
+ created_at: null,
28
+ last_activity_at: null,
24
29
  role: null,
25
30
  projects: null,
26
31
  permissions: null,
27
32
  default_locale_codes: null,
33
+ teams: null,
28
34
  spaces: null)
29
35
  ```
30
36