phrase 2.2.0 → 2.5.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 +4 -4
- data/README.md +20 -3
- data/docs/AccountsApi.md +8 -2
- data/docs/AuthorizationsApi.md +20 -5
- data/docs/BitbucketSyncApi.md +12 -3
- data/docs/BlacklistedKeysApi.md +20 -5
- data/docs/BranchesApi.md +28 -7
- data/docs/CommentsApi.md +32 -8
- data/docs/Distribution.md +2 -0
- data/docs/DistributionCreateParameters.md +2 -0
- data/docs/DistributionUpdateParameters.md +2 -0
- data/docs/DistributionsApi.md +20 -5
- data/docs/DocumentsApi.md +8 -2
- data/docs/FormatsApi.md +4 -1
- data/docs/GitHubSyncApi.md +8 -2
- data/docs/GitLabSyncApi.md +28 -7
- data/docs/GlossariesApi.md +20 -5
- data/docs/GlossaryTermTranslationsApi.md +12 -3
- data/docs/GlossaryTermsApi.md +20 -5
- data/docs/ICUApi.md +73 -0
- data/docs/Icu.md +17 -0
- data/docs/IcuSkeletonParameters.md +21 -0
- data/docs/InvitationCreateParameters.md +2 -0
- data/docs/InvitationUpdateParameters.md +2 -0
- data/docs/InvitationsApi.md +28 -7
- data/docs/JobLocaleCompleteReviewParameters.md +17 -0
- data/docs/JobLocaleUpdateParameters.md +3 -1
- data/docs/JobLocalesApi.md +99 -7
- data/docs/JobLocalesCreateParameters.md +4 -2
- data/docs/JobTemplateLocalesApi.md +20 -5
- data/docs/JobTemplatesApi.md +20 -5
- data/docs/JobsApi.md +44 -11
- data/docs/KeysApi.md +44 -11
- data/docs/LocalesApi.md +35 -10
- data/docs/Member.md +6 -0
- data/docs/MembersApi.md +20 -5
- data/docs/NotificationGroupsApi.md +12 -3
- data/docs/NotificationsApi.md +12 -3
- data/docs/OrdersApi.md +20 -5
- data/docs/Project.md +2 -0
- data/docs/ProjectDetails.md +2 -0
- data/docs/ProjectsApi.md +20 -5
- data/docs/ReleaseCreateParameters.md +2 -0
- data/docs/ReleasesApi.md +24 -6
- data/docs/ScreenshotMarkersApi.md +20 -5
- data/docs/ScreenshotsApi.md +20 -5
- data/docs/SearchApi.md +4 -1
- data/docs/SpacesApi.md +32 -8
- data/docs/StyleGuidesApi.md +20 -5
- data/docs/TagsApi.md +16 -4
- data/docs/Team1.md +23 -0
- data/docs/TeamsApi.md +44 -11
- data/docs/TranslationsApi.md +68 -17
- data/docs/TranslationsVerifyParameters.md +3 -5
- data/docs/UploadsApi.md +12 -3
- data/docs/UserPreview.md +3 -1
- data/docs/UsersApi.md +4 -1
- data/docs/VariablesApi.md +20 -5
- data/docs/VersionsHistoryApi.md +8 -2
- data/docs/WebhooksApi.md +24 -6
- data/lib/phrase/api/accounts_api.rb +2 -2
- data/lib/phrase/api/authorizations_api.rb +5 -5
- data/lib/phrase/api/bitbucket_sync_api.rb +3 -3
- data/lib/phrase/api/blacklisted_keys_api.rb +5 -5
- data/lib/phrase/api/branches_api.rb +7 -7
- data/lib/phrase/api/comments_api.rb +8 -8
- data/lib/phrase/api/distributions_api.rb +5 -5
- data/lib/phrase/api/documents_api.rb +2 -2
- data/lib/phrase/api/formats_api.rb +1 -1
- data/lib/phrase/api/git_hub_sync_api.rb +2 -2
- data/lib/phrase/api/git_lab_sync_api.rb +7 -7
- data/lib/phrase/api/glossaries_api.rb +5 -5
- data/lib/phrase/api/glossary_term_translations_api.rb +3 -3
- data/lib/phrase/api/glossary_terms_api.rb +5 -5
- data/lib/phrase/api/icu_api.rb +78 -0
- data/lib/phrase/api/invitations_api.rb +7 -7
- data/lib/phrase/api/job_locales_api.rb +93 -7
- data/lib/phrase/api/job_template_locales_api.rb +5 -5
- data/lib/phrase/api/job_templates_api.rb +5 -5
- data/lib/phrase/api/jobs_api.rb +11 -11
- data/lib/phrase/api/keys_api.rb +11 -11
- data/lib/phrase/api/locales_api.rb +20 -11
- data/lib/phrase/api/members_api.rb +5 -5
- data/lib/phrase/api/notification_groups_api.rb +3 -3
- data/lib/phrase/api/notifications_api.rb +3 -3
- data/lib/phrase/api/orders_api.rb +5 -5
- data/lib/phrase/api/projects_api.rb +5 -5
- data/lib/phrase/api/releases_api.rb +6 -6
- data/lib/phrase/api/screenshot_markers_api.rb +5 -5
- data/lib/phrase/api/screenshots_api.rb +5 -5
- data/lib/phrase/api/search_api.rb +1 -1
- data/lib/phrase/api/spaces_api.rb +8 -8
- data/lib/phrase/api/style_guides_api.rb +5 -5
- data/lib/phrase/api/tags_api.rb +4 -4
- data/lib/phrase/api/teams_api.rb +11 -11
- data/lib/phrase/api/translations_api.rb +17 -17
- data/lib/phrase/api/uploads_api.rb +3 -3
- data/lib/phrase/api/users_api.rb +1 -1
- data/lib/phrase/api/variables_api.rb +5 -5
- data/lib/phrase/api/versions_history_api.rb +2 -2
- data/lib/phrase/api/webhooks_api.rb +6 -6
- data/lib/phrase/configuration.rb +8 -0
- data/lib/phrase/models/distribution.rb +12 -1
- data/lib/phrase/models/distribution_create_parameters.rb +13 -1
- data/lib/phrase/models/distribution_update_parameters.rb +13 -1
- data/lib/phrase/models/icu.rb +195 -0
- data/lib/phrase/models/icu_skeleton_parameters.rb +217 -0
- data/lib/phrase/models/invitation_create_parameters.rb +13 -1
- data/lib/phrase/models/invitation_update_parameters.rb +13 -1
- data/lib/phrase/models/job_locale_complete_review_parameters.rb +195 -0
- data/lib/phrase/models/job_locale_update_parameters.rb +16 -4
- data/lib/phrase/models/job_locales_create_parameters.rb +17 -5
- data/lib/phrase/models/member.rb +30 -1
- data/lib/phrase/models/project.rb +10 -1
- data/lib/phrase/models/project_details.rb +10 -1
- data/lib/phrase/models/release_create_parameters.rb +13 -1
- data/lib/phrase/models/team1.rb +221 -0
- data/lib/phrase/models/translations_verify_parameters.rb +14 -24
- data/lib/phrase/models/user_preview.rb +13 -4
- data/lib/phrase/response.rb +1 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +5 -0
- data/phrase.gemspec +2 -2
- data/spec/api/icu_api_spec.rb +36 -0
- data/spec/api/job_locales_api_spec.rb +16 -0
- data/spec/api/locales_api_spec.rb +2 -0
- data/spec/models/distribution_create_parameters_spec.rb +6 -0
- data/spec/models/distribution_spec.rb +6 -0
- data/spec/models/distribution_update_parameters_spec.rb +6 -0
- data/spec/models/icu_skeleton_parameters_spec.rb +41 -0
- data/spec/models/icu_spec.rb +29 -0
- data/spec/models/invitation_create_parameters_spec.rb +6 -0
- data/spec/models/invitation_update_parameters_spec.rb +6 -0
- data/spec/models/job_locale_complete_review_parameters_spec.rb +29 -0
- data/spec/models/job_locale_update_parameters_spec.rb +6 -0
- data/spec/models/job_locales_create_parameters_spec.rb +6 -0
- data/spec/models/member_spec.rb +18 -0
- data/spec/models/project_details_spec.rb +6 -0
- data/spec/models/project_spec.rb +6 -0
- data/spec/models/release_create_parameters_spec.rb +6 -0
- data/spec/models/team1_spec.rb +47 -0
- data/spec/models/translations_verify_parameters_spec.rb +2 -8
- data/spec/models/user_preview_spec.rb +6 -0
- metadata +214 -194
data/docs/TranslationsApi.md
CHANGED
@@ -46,6 +46,9 @@ Phrase.configure do |config|
|
|
46
46
|
# Configure API key authorization: Token
|
47
47
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
48
48
|
config.api_key_prefix['Authorization'] = 'token'
|
49
|
+
|
50
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
51
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
49
52
|
end
|
50
53
|
|
51
54
|
api_instance = Phrase::TranslationsApi.new
|
@@ -79,7 +82,7 @@ Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
79
82
|
|
80
83
|
### Authorization
|
81
84
|
|
82
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
85
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
83
86
|
|
84
87
|
### HTTP request headers
|
85
88
|
|
@@ -109,6 +112,9 @@ Phrase.configure do |config|
|
|
109
112
|
# Configure API key authorization: Token
|
110
113
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
111
114
|
config.api_key_prefix['Authorization'] = 'token'
|
115
|
+
|
116
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
117
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
112
118
|
end
|
113
119
|
|
114
120
|
api_instance = Phrase::TranslationsApi.new
|
@@ -144,7 +150,7 @@ Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
144
150
|
|
145
151
|
### Authorization
|
146
152
|
|
147
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
153
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
148
154
|
|
149
155
|
### HTTP request headers
|
150
156
|
|
@@ -174,6 +180,9 @@ Phrase.configure do |config|
|
|
174
180
|
# Configure API key authorization: Token
|
175
181
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
176
182
|
config.api_key_prefix['Authorization'] = 'token'
|
183
|
+
|
184
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
185
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
177
186
|
end
|
178
187
|
|
179
188
|
api_instance = Phrase::TranslationsApi.new
|
@@ -209,7 +218,7 @@ Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
209
218
|
|
210
219
|
### Authorization
|
211
220
|
|
212
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
221
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
213
222
|
|
214
223
|
### HTTP request headers
|
215
224
|
|
@@ -239,6 +248,9 @@ Phrase.configure do |config|
|
|
239
248
|
# Configure API key authorization: Token
|
240
249
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
241
250
|
config.api_key_prefix['Authorization'] = 'token'
|
251
|
+
|
252
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
253
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
242
254
|
end
|
243
255
|
|
244
256
|
api_instance = Phrase::TranslationsApi.new
|
@@ -274,7 +286,7 @@ Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
274
286
|
|
275
287
|
### Authorization
|
276
288
|
|
277
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
289
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
278
290
|
|
279
291
|
### HTTP request headers
|
280
292
|
|
@@ -304,6 +316,9 @@ Phrase.configure do |config|
|
|
304
316
|
# Configure API key authorization: Token
|
305
317
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
306
318
|
config.api_key_prefix['Authorization'] = 'token'
|
319
|
+
|
320
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
321
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
307
322
|
end
|
308
323
|
|
309
324
|
api_instance = Phrase::TranslationsApi.new
|
@@ -339,7 +354,7 @@ Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
339
354
|
|
340
355
|
### Authorization
|
341
356
|
|
342
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
357
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
343
358
|
|
344
359
|
### HTTP request headers
|
345
360
|
|
@@ -369,6 +384,9 @@ Phrase.configure do |config|
|
|
369
384
|
# Configure API key authorization: Token
|
370
385
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
371
386
|
config.api_key_prefix['Authorization'] = 'token'
|
387
|
+
|
388
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
389
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
372
390
|
end
|
373
391
|
|
374
392
|
api_instance = Phrase::TranslationsApi.new
|
@@ -404,7 +422,7 @@ Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
404
422
|
|
405
423
|
### Authorization
|
406
424
|
|
407
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
425
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
408
426
|
|
409
427
|
### HTTP request headers
|
410
428
|
|
@@ -434,6 +452,9 @@ Phrase.configure do |config|
|
|
434
452
|
# Configure API key authorization: Token
|
435
453
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
436
454
|
config.api_key_prefix['Authorization'] = 'token'
|
455
|
+
|
456
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
457
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
437
458
|
end
|
438
459
|
|
439
460
|
api_instance = Phrase::TranslationsApi.new
|
@@ -469,7 +490,7 @@ Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
469
490
|
|
470
491
|
### Authorization
|
471
492
|
|
472
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
493
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
473
494
|
|
474
495
|
### HTTP request headers
|
475
496
|
|
@@ -499,6 +520,9 @@ Phrase.configure do |config|
|
|
499
520
|
# Configure API key authorization: Token
|
500
521
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
501
522
|
config.api_key_prefix['Authorization'] = 'token'
|
523
|
+
|
524
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
525
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
502
526
|
end
|
503
527
|
|
504
528
|
api_instance = Phrase::TranslationsApi.new
|
@@ -534,7 +558,7 @@ Response<([**TranslationDetails**](TranslationDetails.md))>
|
|
534
558
|
|
535
559
|
### Authorization
|
536
560
|
|
537
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
561
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
538
562
|
|
539
563
|
### HTTP request headers
|
540
564
|
|
@@ -564,6 +588,9 @@ Phrase.configure do |config|
|
|
564
588
|
# Configure API key authorization: Token
|
565
589
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
566
590
|
config.api_key_prefix['Authorization'] = 'token'
|
591
|
+
|
592
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
593
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
567
594
|
end
|
568
595
|
|
569
596
|
api_instance = Phrase::TranslationsApi.new
|
@@ -609,7 +636,7 @@ Response<([**Array<Translation>**](Translation.md))>
|
|
609
636
|
|
610
637
|
### Authorization
|
611
638
|
|
612
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
639
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
613
640
|
|
614
641
|
### HTTP request headers
|
615
642
|
|
@@ -639,6 +666,9 @@ Phrase.configure do |config|
|
|
639
666
|
# Configure API key authorization: Token
|
640
667
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
641
668
|
config.api_key_prefix['Authorization'] = 'token'
|
669
|
+
|
670
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
671
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
642
672
|
end
|
643
673
|
|
644
674
|
api_instance = Phrase::TranslationsApi.new
|
@@ -684,7 +714,7 @@ Response<([**Array<Translation>**](Translation.md))>
|
|
684
714
|
|
685
715
|
### Authorization
|
686
716
|
|
687
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
717
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
688
718
|
|
689
719
|
### HTTP request headers
|
690
720
|
|
@@ -714,6 +744,9 @@ Phrase.configure do |config|
|
|
714
744
|
# Configure API key authorization: Token
|
715
745
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
716
746
|
config.api_key_prefix['Authorization'] = 'token'
|
747
|
+
|
748
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
749
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
717
750
|
end
|
718
751
|
|
719
752
|
api_instance = Phrase::TranslationsApi.new
|
@@ -747,7 +780,7 @@ Response<([**AffectedCount**](AffectedCount.md))>
|
|
747
780
|
|
748
781
|
### Authorization
|
749
782
|
|
750
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
783
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
751
784
|
|
752
785
|
### HTTP request headers
|
753
786
|
|
@@ -777,6 +810,9 @@ Phrase.configure do |config|
|
|
777
810
|
# Configure API key authorization: Token
|
778
811
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
779
812
|
config.api_key_prefix['Authorization'] = 'token'
|
813
|
+
|
814
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
815
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
780
816
|
end
|
781
817
|
|
782
818
|
api_instance = Phrase::TranslationsApi.new
|
@@ -810,7 +846,7 @@ Response<([**AffectedCount**](AffectedCount.md))>
|
|
810
846
|
|
811
847
|
### Authorization
|
812
848
|
|
813
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
849
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
814
850
|
|
815
851
|
### HTTP request headers
|
816
852
|
|
@@ -840,6 +876,9 @@ Phrase.configure do |config|
|
|
840
876
|
# Configure API key authorization: Token
|
841
877
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
842
878
|
config.api_key_prefix['Authorization'] = 'token'
|
879
|
+
|
880
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
881
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
843
882
|
end
|
844
883
|
|
845
884
|
api_instance = Phrase::TranslationsApi.new
|
@@ -883,7 +922,7 @@ Response<([**Array<Translation>**](Translation.md))>
|
|
883
922
|
|
884
923
|
### Authorization
|
885
924
|
|
886
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
925
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
887
926
|
|
888
927
|
### HTTP request headers
|
889
928
|
|
@@ -913,6 +952,9 @@ Phrase.configure do |config|
|
|
913
952
|
# Configure API key authorization: Token
|
914
953
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
915
954
|
config.api_key_prefix['Authorization'] = 'token'
|
955
|
+
|
956
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
957
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
916
958
|
end
|
917
959
|
|
918
960
|
api_instance = Phrase::TranslationsApi.new
|
@@ -946,7 +988,7 @@ Response<([**AffectedCount**](AffectedCount.md))>
|
|
946
988
|
|
947
989
|
### Authorization
|
948
990
|
|
949
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
991
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
950
992
|
|
951
993
|
### HTTP request headers
|
952
994
|
|
@@ -976,6 +1018,9 @@ Phrase.configure do |config|
|
|
976
1018
|
# Configure API key authorization: Token
|
977
1019
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
978
1020
|
config.api_key_prefix['Authorization'] = 'token'
|
1021
|
+
|
1022
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
1023
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
979
1024
|
end
|
980
1025
|
|
981
1026
|
api_instance = Phrase::TranslationsApi.new
|
@@ -1013,7 +1058,7 @@ Response<([**Array<Translation>**](Translation.md))>
|
|
1013
1058
|
|
1014
1059
|
### Authorization
|
1015
1060
|
|
1016
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
1061
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
1017
1062
|
|
1018
1063
|
### HTTP request headers
|
1019
1064
|
|
@@ -1043,6 +1088,9 @@ Phrase.configure do |config|
|
|
1043
1088
|
# Configure API key authorization: Token
|
1044
1089
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
1045
1090
|
config.api_key_prefix['Authorization'] = 'token'
|
1091
|
+
|
1092
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
1093
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1046
1094
|
end
|
1047
1095
|
|
1048
1096
|
api_instance = Phrase::TranslationsApi.new
|
@@ -1076,7 +1124,7 @@ Response<([**AffectedCount**](AffectedCount.md))>
|
|
1076
1124
|
|
1077
1125
|
### Authorization
|
1078
1126
|
|
1079
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
1127
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
1080
1128
|
|
1081
1129
|
### HTTP request headers
|
1082
1130
|
|
@@ -1106,6 +1154,9 @@ Phrase.configure do |config|
|
|
1106
1154
|
# Configure API key authorization: Token
|
1107
1155
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
1108
1156
|
config.api_key_prefix['Authorization'] = 'token'
|
1157
|
+
|
1158
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
1159
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1109
1160
|
end
|
1110
1161
|
|
1111
1162
|
api_instance = Phrase::TranslationsApi.new
|
@@ -1139,7 +1190,7 @@ Response<([**AffectedCount**](AffectedCount.md))>
|
|
1139
1190
|
|
1140
1191
|
### Authorization
|
1141
1192
|
|
1142
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
1193
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
1143
1194
|
|
1144
1195
|
### HTTP request headers
|
1145
1196
|
|
@@ -5,9 +5,8 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**branch** | **String** | specify the branch to use | [optional]
|
8
|
+
**locale_id** | **String** | specify the locale of the translations to be verified | [optional]
|
8
9
|
**q** | **String** | Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>. | [optional]
|
9
|
-
**sort** | **String** | Sort criteria. Can be one of: key_name, created_at, updated_at. | [optional]
|
10
|
-
**order** | **String** | Order direction. Can be one of: asc, desc. | [optional]
|
11
10
|
|
12
11
|
## Code Sample
|
13
12
|
|
@@ -15,9 +14,8 @@ Name | Type | Description | Notes
|
|
15
14
|
require 'Phrase'
|
16
15
|
|
17
16
|
instance = Phrase::TranslationsVerifyParameters.new(branch: my-feature-branch,
|
18
|
-
|
19
|
-
|
20
|
-
order: desc)
|
17
|
+
locale_id: fc2f11dd6a658fa9652f6f0a9ebee688,
|
18
|
+
q: PhraseApp*%20unverified:true%20tags:feature,center)
|
21
19
|
```
|
22
20
|
|
23
21
|
|
data/docs/UploadsApi.md
CHANGED
@@ -32,6 +32,9 @@ Phrase.configure do |config|
|
|
32
32
|
# Configure API key authorization: Token
|
33
33
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
34
34
|
config.api_key_prefix['Authorization'] = 'token'
|
35
|
+
|
36
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
37
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
35
38
|
end
|
36
39
|
|
37
40
|
api_instance = Phrase::UploadsApi.new
|
@@ -93,7 +96,7 @@ Response<([**Upload**](Upload.md))>
|
|
93
96
|
|
94
97
|
### Authorization
|
95
98
|
|
96
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
99
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
97
100
|
|
98
101
|
### HTTP request headers
|
99
102
|
|
@@ -123,6 +126,9 @@ Phrase.configure do |config|
|
|
123
126
|
# Configure API key authorization: Token
|
124
127
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
125
128
|
config.api_key_prefix['Authorization'] = 'token'
|
129
|
+
|
130
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
131
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
126
132
|
end
|
127
133
|
|
128
134
|
api_instance = Phrase::UploadsApi.new
|
@@ -158,7 +164,7 @@ Response<([**Upload**](Upload.md))>
|
|
158
164
|
|
159
165
|
### Authorization
|
160
166
|
|
161
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
167
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
162
168
|
|
163
169
|
### HTTP request headers
|
164
170
|
|
@@ -188,6 +194,9 @@ Phrase.configure do |config|
|
|
188
194
|
# Configure API key authorization: Token
|
189
195
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
190
196
|
config.api_key_prefix['Authorization'] = 'token'
|
197
|
+
|
198
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
199
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
191
200
|
end
|
192
201
|
|
193
202
|
api_instance = Phrase::UploadsApi.new
|
@@ -225,7 +234,7 @@ Response<([**Array<Upload>**](Upload.md))>
|
|
225
234
|
|
226
235
|
### Authorization
|
227
236
|
|
228
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
237
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
229
238
|
|
230
239
|
### HTTP request headers
|
231
240
|
|
data/docs/UserPreview.md
CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**id** | **String** | | [optional]
|
8
8
|
**username** | **String** | | [optional]
|
9
9
|
**name** | **String** | | [optional]
|
10
|
+
**gravatar_uid** | **String** | | [optional]
|
10
11
|
|
11
12
|
## Code Sample
|
12
13
|
|
@@ -15,7 +16,8 @@ require 'Phrase'
|
|
15
16
|
|
16
17
|
instance = Phrase::UserPreview.new(id: null,
|
17
18
|
username: null,
|
18
|
-
name: null
|
19
|
+
name: null,
|
20
|
+
gravatar_uid: null)
|
19
21
|
```
|
20
22
|
|
21
23
|
|
data/docs/UsersApi.md
CHANGED
@@ -30,6 +30,9 @@ Phrase.configure do |config|
|
|
30
30
|
# Configure API key authorization: Token
|
31
31
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
32
32
|
config.api_key_prefix['Authorization'] = 'token'
|
33
|
+
|
34
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
35
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
33
36
|
end
|
34
37
|
|
35
38
|
api_instance = Phrase::UsersApi.new
|
@@ -59,7 +62,7 @@ Response<([**CurrentUser**](CurrentUser.md))>
|
|
59
62
|
|
60
63
|
### Authorization
|
61
64
|
|
62
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
65
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
63
66
|
|
64
67
|
### HTTP request headers
|
65
68
|
|
data/docs/VariablesApi.md
CHANGED
@@ -34,6 +34,9 @@ Phrase.configure do |config|
|
|
34
34
|
# Configure API key authorization: Token
|
35
35
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
36
36
|
config.api_key_prefix['Authorization'] = 'token'
|
37
|
+
|
38
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
39
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
37
40
|
end
|
38
41
|
|
39
42
|
api_instance = Phrase::VariablesApi.new
|
@@ -67,7 +70,7 @@ Response<([**Variable**](Variable.md))>
|
|
67
70
|
|
68
71
|
### Authorization
|
69
72
|
|
70
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
73
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
71
74
|
|
72
75
|
### HTTP request headers
|
73
76
|
|
@@ -97,6 +100,9 @@ Phrase.configure do |config|
|
|
97
100
|
# Configure API key authorization: Token
|
98
101
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
99
102
|
config.api_key_prefix['Authorization'] = 'token'
|
103
|
+
|
104
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
105
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
100
106
|
end
|
101
107
|
|
102
108
|
api_instance = Phrase::VariablesApi.new
|
@@ -129,7 +135,7 @@ Response<(nil (empty response body))>
|
|
129
135
|
|
130
136
|
### Authorization
|
131
137
|
|
132
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
138
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
133
139
|
|
134
140
|
### HTTP request headers
|
135
141
|
|
@@ -159,6 +165,9 @@ Phrase.configure do |config|
|
|
159
165
|
# Configure API key authorization: Token
|
160
166
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
161
167
|
config.api_key_prefix['Authorization'] = 'token'
|
168
|
+
|
169
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
170
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
162
171
|
end
|
163
172
|
|
164
173
|
api_instance = Phrase::VariablesApi.new
|
@@ -192,7 +201,7 @@ Response<([**Variable**](Variable.md))>
|
|
192
201
|
|
193
202
|
### Authorization
|
194
203
|
|
195
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
204
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
196
205
|
|
197
206
|
### HTTP request headers
|
198
207
|
|
@@ -222,6 +231,9 @@ Phrase.configure do |config|
|
|
222
231
|
# Configure API key authorization: Token
|
223
232
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
224
233
|
config.api_key_prefix['Authorization'] = 'token'
|
234
|
+
|
235
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
236
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
225
237
|
end
|
226
238
|
|
227
239
|
api_instance = Phrase::VariablesApi.new
|
@@ -257,7 +269,7 @@ Response<([**Variable**](Variable.md))>
|
|
257
269
|
|
258
270
|
### Authorization
|
259
271
|
|
260
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
272
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
261
273
|
|
262
274
|
### HTTP request headers
|
263
275
|
|
@@ -287,6 +299,9 @@ Phrase.configure do |config|
|
|
287
299
|
# Configure API key authorization: Token
|
288
300
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
289
301
|
config.api_key_prefix['Authorization'] = 'token'
|
302
|
+
|
303
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
304
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
290
305
|
end
|
291
306
|
|
292
307
|
api_instance = Phrase::VariablesApi.new
|
@@ -322,7 +337,7 @@ Response<([**Array<Variable>**](Variable.md))>
|
|
322
337
|
|
323
338
|
### Authorization
|
324
339
|
|
325
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
340
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
326
341
|
|
327
342
|
### HTTP request headers
|
328
343
|
|
data/docs/VersionsHistoryApi.md
CHANGED
@@ -31,6 +31,9 @@ Phrase.configure do |config|
|
|
31
31
|
# Configure API key authorization: Token
|
32
32
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
33
33
|
config.api_key_prefix['Authorization'] = 'token'
|
34
|
+
|
35
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
36
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
34
37
|
end
|
35
38
|
|
36
39
|
api_instance = Phrase::VersionsHistoryApi.new
|
@@ -68,7 +71,7 @@ Response<([**TranslationVersionWithUser**](TranslationVersionWithUser.md))>
|
|
68
71
|
|
69
72
|
### Authorization
|
70
73
|
|
71
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
74
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
72
75
|
|
73
76
|
### HTTP request headers
|
74
77
|
|
@@ -98,6 +101,9 @@ Phrase.configure do |config|
|
|
98
101
|
# Configure API key authorization: Token
|
99
102
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
100
103
|
config.api_key_prefix['Authorization'] = 'token'
|
104
|
+
|
105
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
106
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
101
107
|
end
|
102
108
|
|
103
109
|
api_instance = Phrase::VersionsHistoryApi.new
|
@@ -137,7 +143,7 @@ Response<([**Array<TranslationVersion>**](TranslationVersion.md))>
|
|
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
|
|
data/docs/WebhooksApi.md
CHANGED
@@ -35,6 +35,9 @@ Phrase.configure do |config|
|
|
35
35
|
# Configure API key authorization: Token
|
36
36
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
37
37
|
config.api_key_prefix['Authorization'] = 'token'
|
38
|
+
|
39
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
40
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
38
41
|
end
|
39
42
|
|
40
43
|
api_instance = Phrase::WebhooksApi.new
|
@@ -68,7 +71,7 @@ Response<([**Webhook**](Webhook.md))>
|
|
68
71
|
|
69
72
|
### Authorization
|
70
73
|
|
71
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
74
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
72
75
|
|
73
76
|
### HTTP request headers
|
74
77
|
|
@@ -98,6 +101,9 @@ Phrase.configure do |config|
|
|
98
101
|
# Configure API key authorization: Token
|
99
102
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
100
103
|
config.api_key_prefix['Authorization'] = 'token'
|
104
|
+
|
105
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
106
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
101
107
|
end
|
102
108
|
|
103
109
|
api_instance = Phrase::WebhooksApi.new
|
@@ -130,7 +136,7 @@ Response<(nil (empty response body))>
|
|
130
136
|
|
131
137
|
### Authorization
|
132
138
|
|
133
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
139
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
134
140
|
|
135
141
|
### HTTP request headers
|
136
142
|
|
@@ -160,6 +166,9 @@ Phrase.configure do |config|
|
|
160
166
|
# Configure API key authorization: Token
|
161
167
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
162
168
|
config.api_key_prefix['Authorization'] = 'token'
|
169
|
+
|
170
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
171
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
163
172
|
end
|
164
173
|
|
165
174
|
api_instance = Phrase::WebhooksApi.new
|
@@ -193,7 +202,7 @@ Response<([**Webhook**](Webhook.md))>
|
|
193
202
|
|
194
203
|
### Authorization
|
195
204
|
|
196
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
205
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
197
206
|
|
198
207
|
### HTTP request headers
|
199
208
|
|
@@ -223,6 +232,9 @@ Phrase.configure do |config|
|
|
223
232
|
# Configure API key authorization: Token
|
224
233
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
225
234
|
config.api_key_prefix['Authorization'] = 'token'
|
235
|
+
|
236
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
237
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
226
238
|
end
|
227
239
|
|
228
240
|
api_instance = Phrase::WebhooksApi.new
|
@@ -255,7 +267,7 @@ Response<(nil (empty response body))>
|
|
255
267
|
|
256
268
|
### Authorization
|
257
269
|
|
258
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
270
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
259
271
|
|
260
272
|
### HTTP request headers
|
261
273
|
|
@@ -285,6 +297,9 @@ Phrase.configure do |config|
|
|
285
297
|
# Configure API key authorization: Token
|
286
298
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
287
299
|
config.api_key_prefix['Authorization'] = 'token'
|
300
|
+
|
301
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
302
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
288
303
|
end
|
289
304
|
|
290
305
|
api_instance = Phrase::WebhooksApi.new
|
@@ -320,7 +335,7 @@ Response<([**Webhook**](Webhook.md))>
|
|
320
335
|
|
321
336
|
### Authorization
|
322
337
|
|
323
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
338
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
324
339
|
|
325
340
|
### HTTP request headers
|
326
341
|
|
@@ -350,6 +365,9 @@ Phrase.configure do |config|
|
|
350
365
|
# Configure API key authorization: Token
|
351
366
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
352
367
|
config.api_key_prefix['Authorization'] = 'token'
|
368
|
+
|
369
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
370
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
353
371
|
end
|
354
372
|
|
355
373
|
api_instance = Phrase::WebhooksApi.new
|
@@ -385,7 +403,7 @@ Response<([**Array<Webhook>**](Webhook.md))>
|
|
385
403
|
|
386
404
|
### Authorization
|
387
405
|
|
388
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
406
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token), [bearerAuth](../README.md#bearerAuth)
|
389
407
|
|
390
408
|
### HTTP request headers
|
391
409
|
|
@@ -54,7 +54,7 @@ module Phrase
|
|
54
54
|
return_type = opts[:return_type] || 'AccountDetails'
|
55
55
|
|
56
56
|
# auth_names
|
57
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
57
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
58
58
|
|
59
59
|
new_options = opts.merge(
|
60
60
|
:header_params => header_params,
|
@@ -120,7 +120,7 @@ module Phrase
|
|
120
120
|
return_type = opts[:return_type] || 'Array<Account>'
|
121
121
|
|
122
122
|
# auth_names
|
123
|
-
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
123
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token', 'bearerAuth']
|
124
124
|
|
125
125
|
new_options = opts.merge(
|
126
126
|
:header_params => header_params,
|