moderation_api 1.2.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 +7 -0
- data/Gemfile +9 -0
- data/README.md +144 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +74 -0
- data/docs/AccountGet200Response.md +26 -0
- data/docs/AccountGet200ResponseCurrentProject.md +20 -0
- data/docs/ActionsCreateRequest.md +36 -0
- data/docs/ActionsCreateRequestWebhooksInner.md +24 -0
- data/docs/ActionsDelete200Response.md +20 -0
- data/docs/ActionsExecute200Response.md +22 -0
- data/docs/ActionsExecuteDeprecatedRequest.md +22 -0
- data/docs/ActionsExecuteRequest.md +24 -0
- data/docs/ActionsGet200Response.md +40 -0
- data/docs/ActionsGet200ResponseWebhooksInner.md +26 -0
- data/docs/ActionsList200ResponseInner.md +38 -0
- data/docs/ActionsList200ResponseInnerPossibleValuesInner.md +18 -0
- data/docs/ActionsList400Response.md +22 -0
- data/docs/ActionsList400ResponseIssuesInner.md +18 -0
- data/docs/ActionsUpdateRequest.md +36 -0
- data/docs/ModerateApi.md +357 -0
- data/docs/ModerationAudioRequest.md +28 -0
- data/docs/ModerationImage200Response.md +28 -0
- data/docs/ModerationImage200ResponseLabelsInner.md +20 -0
- data/docs/ModerationImageRequest.md +28 -0
- data/docs/ModerationObject200Response.md +36 -0
- data/docs/ModerationObject200ResponseAllOfEntitiesInner.md +22 -0
- data/docs/ModerationObject200ResponseAllOfFieldsInner.md +22 -0
- data/docs/ModerationObject200ResponseAllOfLabelsInner.md +22 -0
- data/docs/ModerationObjectRequest.md +28 -0
- data/docs/ModerationObjectRequestValue.md +20 -0
- data/docs/ModerationObjectRequestValueDataValue.md +22 -0
- data/docs/ModerationText200Response.md +64 -0
- data/docs/ModerationText200ResponseAllOfAddress.md +28 -0
- data/docs/ModerationText200ResponseAllOfEmail.md +28 -0
- data/docs/ModerationText200ResponseAllOfName.md +28 -0
- data/docs/ModerationText200ResponseAllOfNsfw.md +26 -0
- data/docs/ModerationText200ResponseAllOfNsfwLabelScores.md +22 -0
- data/docs/ModerationText200ResponseAllOfPhone.md +28 -0
- data/docs/ModerationText200ResponseAllOfProfanity.md +28 -0
- data/docs/ModerationText200ResponseAllOfPropriety.md +26 -0
- data/docs/ModerationText200ResponseAllOfProprietyLabelScores.md +22 -0
- data/docs/ModerationText200ResponseAllOfQuality.md +26 -0
- data/docs/ModerationText200ResponseAllOfQualityLabelScores.md +24 -0
- data/docs/ModerationText200ResponseAllOfRequest.md +20 -0
- data/docs/ModerationText200ResponseAllOfSensitive.md +28 -0
- data/docs/ModerationText200ResponseAllOfSentiment.md +26 -0
- data/docs/ModerationText200ResponseAllOfSentimentLabelScores.md +22 -0
- data/docs/ModerationText200ResponseAllOfToxicity.md +26 -0
- data/docs/ModerationText200ResponseAllOfToxicityLabelScores.md +30 -0
- data/docs/ModerationText200ResponseAllOfUrl.md +28 -0
- data/docs/ModerationText200ResponseAllOfUsername.md +28 -0
- data/docs/ModerationText200ResponseAllOfWordlist.md +28 -0
- data/docs/ModerationText200ResponseAllOfWordlistsInner.md +36 -0
- data/docs/ModerationTextRequest.md +28 -0
- data/docs/ModerationVideo200Response.md +24 -0
- data/docs/ModerationVideoRequest.md +28 -0
- data/docs/QueueActionsApi.md +503 -0
- data/git_push.sh +57 -0
- data/lib/moderation_api/api/account_api.rb +79 -0
- data/lib/moderation_api/api/moderate_api.rb +362 -0
- data/lib/moderation_api/api/queue_actions_api.rb +492 -0
- data/lib/moderation_api/api_client.rb +437 -0
- data/lib/moderation_api/api_error.rb +58 -0
- data/lib/moderation_api/configuration.rb +392 -0
- data/lib/moderation_api/models/account_get200_response.rb +278 -0
- data/lib/moderation_api/models/account_get200_response_current_project.rb +237 -0
- data/lib/moderation_api/models/actions_create_request.rb +374 -0
- data/lib/moderation_api/models/actions_create_request_webhooks_inner.rb +260 -0
- data/lib/moderation_api/models/actions_delete200_response.rb +239 -0
- data/lib/moderation_api/models/actions_execute200_response.rb +258 -0
- data/lib/moderation_api/models/actions_execute_deprecated_request.rb +244 -0
- data/lib/moderation_api/models/actions_execute_request.rb +261 -0
- data/lib/moderation_api/models/actions_get200_response.rb +408 -0
- data/lib/moderation_api/models/actions_get200_response_webhooks_inner.rb +278 -0
- data/lib/moderation_api/models/actions_list200_response_inner.rb +396 -0
- data/lib/moderation_api/models/actions_list200_response_inner_possible_values_inner.rb +222 -0
- data/lib/moderation_api/models/actions_list400_response.rb +248 -0
- data/lib/moderation_api/models/actions_list400_response_issues_inner.rb +221 -0
- data/lib/moderation_api/models/actions_update_request.rb +367 -0
- data/lib/moderation_api/models/moderation_audio_request.rb +302 -0
- data/lib/moderation_api/models/moderation_image200_response.rb +296 -0
- data/lib/moderation_api/models/moderation_image200_response_labels_inner.rb +301 -0
- data/lib/moderation_api/models/moderation_image_request.rb +302 -0
- data/lib/moderation_api/models/moderation_object200_response.rb +368 -0
- data/lib/moderation_api/models/moderation_object200_response_all_of_entities_inner.rb +251 -0
- data/lib/moderation_api/models/moderation_object200_response_all_of_fields_inner.rb +258 -0
- data/lib/moderation_api/models/moderation_object200_response_all_of_labels_inner.rb +284 -0
- data/lib/moderation_api/models/moderation_object_request.rb +301 -0
- data/lib/moderation_api/models/moderation_object_request_value.rb +275 -0
- data/lib/moderation_api/models/moderation_object_request_value_data_value.rb +285 -0
- data/lib/moderation_api/models/moderation_text200_response.rb +488 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_address.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_email.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_name.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_nsfw.rb +255 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_nsfw_label_scores.rb +235 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_phone.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_profanity.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_propriety.rb +255 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_propriety_label_scores.rb +235 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_quality.rb +255 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_quality_label_scores.rb +245 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_request.rb +240 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_sensitive.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_sentiment.rb +255 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_sentiment_label_scores.rb +235 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_toxicity.rb +262 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_toxicity_label_scores.rb +275 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_url.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_username.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_wordlist.rb +303 -0
- data/lib/moderation_api/models/moderation_text200_response_all_of_wordlists_inner.rb +377 -0
- data/lib/moderation_api/models/moderation_text_request.rb +330 -0
- data/lib/moderation_api/models/moderation_video200_response.rb +265 -0
- data/lib/moderation_api/models/moderation_video_request.rb +302 -0
- data/lib/moderation_api/version.rb +15 -0
- data/lib/moderation_api.rb +93 -0
- data/moderation_api.gemspec +45 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/moderate_api_spec.rb +95 -0
- data/spec/api/queue_actions_api_spec.rb +121 -0
- data/spec/models/account_get200_response_current_project_spec.rb +42 -0
- data/spec/models/account_get200_response_spec.rb +60 -0
- data/spec/models/actions_create_request_spec.rb +98 -0
- data/spec/models/actions_create_request_webhooks_inner_spec.rb +54 -0
- data/spec/models/actions_delete200_response_spec.rb +42 -0
- data/spec/models/actions_execute200_response_spec.rb +48 -0
- data/spec/models/actions_execute_deprecated_request_spec.rb +48 -0
- data/spec/models/actions_execute_request_spec.rb +54 -0
- data/spec/models/actions_get200_response_spec.rb +110 -0
- data/spec/models/actions_get200_response_webhooks_inner_spec.rb +60 -0
- data/spec/models/actions_list200_response_inner_possible_values_inner_spec.rb +36 -0
- data/spec/models/actions_list200_response_inner_spec.rb +104 -0
- data/spec/models/actions_list400_response_issues_inner_spec.rb +36 -0
- data/spec/models/actions_list400_response_spec.rb +48 -0
- data/spec/models/actions_update_request_spec.rb +98 -0
- data/spec/models/moderation_audio_request_spec.rb +66 -0
- data/spec/models/moderation_image200_response_labels_inner_spec.rb +46 -0
- data/spec/models/moderation_image200_response_spec.rb +66 -0
- data/spec/models/moderation_image_request_spec.rb +66 -0
- data/spec/models/moderation_object200_response_all_of_entities_inner_spec.rb +48 -0
- data/spec/models/moderation_object200_response_all_of_fields_inner_spec.rb +48 -0
- data/spec/models/moderation_object200_response_all_of_labels_inner_spec.rb +48 -0
- data/spec/models/moderation_object200_response_spec.rb +90 -0
- data/spec/models/moderation_object_request_spec.rb +66 -0
- data/spec/models/moderation_object_request_value_data_value_spec.rb +52 -0
- data/spec/models/moderation_object_request_value_spec.rb +46 -0
- data/spec/models/moderation_text200_response_all_of_address_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_email_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_name_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_nsfw_label_scores_spec.rb +48 -0
- data/spec/models/moderation_text200_response_all_of_nsfw_spec.rb +60 -0
- data/spec/models/moderation_text200_response_all_of_phone_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_profanity_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_propriety_label_scores_spec.rb +48 -0
- data/spec/models/moderation_text200_response_all_of_propriety_spec.rb +60 -0
- data/spec/models/moderation_text200_response_all_of_quality_label_scores_spec.rb +54 -0
- data/spec/models/moderation_text200_response_all_of_quality_spec.rb +60 -0
- data/spec/models/moderation_text200_response_all_of_request_spec.rb +42 -0
- data/spec/models/moderation_text200_response_all_of_sensitive_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_sentiment_label_scores_spec.rb +48 -0
- data/spec/models/moderation_text200_response_all_of_sentiment_spec.rb +60 -0
- data/spec/models/moderation_text200_response_all_of_toxicity_label_scores_spec.rb +72 -0
- data/spec/models/moderation_text200_response_all_of_toxicity_spec.rb +60 -0
- data/spec/models/moderation_text200_response_all_of_url_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_username_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_wordlist_spec.rb +70 -0
- data/spec/models/moderation_text200_response_all_of_wordlists_inner_spec.rb +94 -0
- data/spec/models/moderation_text200_response_spec.rb +174 -0
- data/spec/models/moderation_text_request_spec.rb +66 -0
- data/spec/models/moderation_video200_response_spec.rb +54 -0
- data/spec/models/moderation_video_request_spec.rb +66 -0
- data/spec/spec_helper.rb +111 -0
- metadata +340 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 01b054414c274bbd8477a7eb3119f1590d1ef83474500cdfd7cd2d52ee1ff069
|
4
|
+
data.tar.gz: fc294ed0ba8cf33972dda43dd359a2ff25eb8bfb5bba8d3b438563411c8d3ffb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2a72621a0abbc91d8bd61c51a1afeaf0b9e64b0fda84f137ab7a1afd4aa7fc553b8dd548b921da4f9117f3b2e0150c5bdd2e72a5cbfe68c22f1b4cd29dfadc83
|
7
|
+
data.tar.gz: c5f8f6268af67cfb9bf208d32e34aad785a515e8d063f31d5550f47602ec4a8b711f6d8701f80905733dcc32cf580de5a878f96edb1c5336d54f1dbe5f96e61b
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,144 @@
|
|
1
|
+
# moderation_api
|
2
|
+
|
3
|
+
ModerationAPI - the Ruby gem for the Moderation API
|
4
|
+
|
5
|
+
API for automated content moderation
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
|
+
|
9
|
+
- API version: 1.0.0
|
10
|
+
- Package version: 1.2.0
|
11
|
+
- Generator version: 7.10.0
|
12
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
Add this line to your application's Gemfile:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem 'moderation_api'
|
20
|
+
```
|
21
|
+
|
22
|
+
And then execute:
|
23
|
+
|
24
|
+
```shell
|
25
|
+
bundle install
|
26
|
+
```
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
```shell
|
31
|
+
gem install moderation_api
|
32
|
+
```
|
33
|
+
|
34
|
+
## Getting Started
|
35
|
+
|
36
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
# Load the gem
|
40
|
+
require 'moderation_api'
|
41
|
+
|
42
|
+
# Setup authorization
|
43
|
+
ModerationAPI.configure do |config|
|
44
|
+
# Configure Bearer authorization: Authorization
|
45
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
46
|
+
# Configure a proc to get access tokens in lieu of the static access_token configuration
|
47
|
+
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
|
48
|
+
# Configure faraday connection
|
49
|
+
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
|
50
|
+
end
|
51
|
+
|
52
|
+
api_instance = ModerationAPI::AccountApi.new
|
53
|
+
|
54
|
+
begin
|
55
|
+
#Get account details
|
56
|
+
result = api_instance.account_get
|
57
|
+
p result
|
58
|
+
rescue ModerationAPI::ApiError => e
|
59
|
+
puts "Exception when calling AccountApi->account_get: #{e}"
|
60
|
+
end
|
61
|
+
|
62
|
+
```
|
63
|
+
|
64
|
+
## Documentation for API Endpoints
|
65
|
+
|
66
|
+
All URIs are relative to *https://moderationapi.com/api/v1*
|
67
|
+
|
68
|
+
| Class | Method | HTTP request | Description |
|
69
|
+
| -------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------ | ------------------- |
|
70
|
+
| _ModerationAPI::AccountApi_ | [**account_get**](docs/AccountApi.md#account_get) | **GET** /account | Get account details |
|
71
|
+
| _ModerationAPI::ModerateApi_ | [**moderation_audio**](docs/ModerateApi.md#moderation_audio) | **POST** /moderate/audio | Analyze audio |
|
72
|
+
| _ModerationAPI::ModerateApi_ | [**moderation_image**](docs/ModerateApi.md#moderation_image) | **POST** /moderate/image | Analyze image |
|
73
|
+
| _ModerationAPI::ModerateApi_ | [**moderation_object**](docs/ModerateApi.md#moderation_object) | **POST** /moderate/object | Analyze object. |
|
74
|
+
| _ModerationAPI::ModerateApi_ | [**moderation_text**](docs/ModerateApi.md#moderation_text) | **POST** /moderate/text | Analyze text. |
|
75
|
+
| _ModerationAPI::ModerateApi_ | [**moderation_video**](docs/ModerateApi.md#moderation_video) | **POST** /moderate/video | Analyze video |
|
76
|
+
| _ModerationAPI::QueueActionsApi_ | [**actions_create**](docs/QueueActionsApi.md#actions_create) | **POST** /actions | Create an action |
|
77
|
+
| _ModerationAPI::QueueActionsApi_ | [**actions_delete**](docs/QueueActionsApi.md#actions_delete) | **DELETE** /actions/{id} | Delete an action |
|
78
|
+
| _ModerationAPI::QueueActionsApi_ | [**actions_execute**](docs/QueueActionsApi.md#actions_execute) | **POST** /actions/execute | Execute an action |
|
79
|
+
| _ModerationAPI::QueueActionsApi_ | [**actions_execute_deprecated**](docs/QueueActionsApi.md#actions_execute_deprecated) | **POST** /actions/{actionId}/execute | Execute an action |
|
80
|
+
| _ModerationAPI::QueueActionsApi_ | [**actions_get**](docs/QueueActionsApi.md#actions_get) | **GET** /actions/{id} | Get an action |
|
81
|
+
| _ModerationAPI::QueueActionsApi_ | [**actions_list**](docs/QueueActionsApi.md#actions_list) | **GET** /actions | List actions |
|
82
|
+
| _ModerationAPI::QueueActionsApi_ | [**actions_update**](docs/QueueActionsApi.md#actions_update) | **PUT** /actions/{id} | Update an action |
|
83
|
+
|
84
|
+
## Documentation for Models
|
85
|
+
|
86
|
+
- [ModerationAPI::AccountGet200Response](docs/AccountGet200Response.md)
|
87
|
+
- [ModerationAPI::AccountGet200ResponseCurrentProject](docs/AccountGet200ResponseCurrentProject.md)
|
88
|
+
- [ModerationAPI::ActionsCreateRequest](docs/ActionsCreateRequest.md)
|
89
|
+
- [ModerationAPI::ActionsCreateRequestWebhooksInner](docs/ActionsCreateRequestWebhooksInner.md)
|
90
|
+
- [ModerationAPI::ActionsDelete200Response](docs/ActionsDelete200Response.md)
|
91
|
+
- [ModerationAPI::ActionsExecute200Response](docs/ActionsExecute200Response.md)
|
92
|
+
- [ModerationAPI::ActionsExecuteDeprecatedRequest](docs/ActionsExecuteDeprecatedRequest.md)
|
93
|
+
- [ModerationAPI::ActionsExecuteRequest](docs/ActionsExecuteRequest.md)
|
94
|
+
- [ModerationAPI::ActionsGet200Response](docs/ActionsGet200Response.md)
|
95
|
+
- [ModerationAPI::ActionsGet200ResponseWebhooksInner](docs/ActionsGet200ResponseWebhooksInner.md)
|
96
|
+
- [ModerationAPI::ActionsList200ResponseInner](docs/ActionsList200ResponseInner.md)
|
97
|
+
- [ModerationAPI::ActionsList200ResponseInnerPossibleValuesInner](docs/ActionsList200ResponseInnerPossibleValuesInner.md)
|
98
|
+
- [ModerationAPI::ActionsList400Response](docs/ActionsList400Response.md)
|
99
|
+
- [ModerationAPI::ActionsList400ResponseIssuesInner](docs/ActionsList400ResponseIssuesInner.md)
|
100
|
+
- [ModerationAPI::ActionsUpdateRequest](docs/ActionsUpdateRequest.md)
|
101
|
+
- [ModerationAPI::ModerationAudioRequest](docs/ModerationAudioRequest.md)
|
102
|
+
- [ModerationAPI::ModerationImage200Response](docs/ModerationImage200Response.md)
|
103
|
+
- [ModerationAPI::ModerationImage200ResponseLabelsInner](docs/ModerationImage200ResponseLabelsInner.md)
|
104
|
+
- [ModerationAPI::ModerationImageRequest](docs/ModerationImageRequest.md)
|
105
|
+
- [ModerationAPI::ModerationObject200Response](docs/ModerationObject200Response.md)
|
106
|
+
- [ModerationAPI::ModerationObject200ResponseAllOfEntitiesInner](docs/ModerationObject200ResponseAllOfEntitiesInner.md)
|
107
|
+
- [ModerationAPI::ModerationObject200ResponseAllOfFieldsInner](docs/ModerationObject200ResponseAllOfFieldsInner.md)
|
108
|
+
- [ModerationAPI::ModerationObject200ResponseAllOfLabelsInner](docs/ModerationObject200ResponseAllOfLabelsInner.md)
|
109
|
+
- [ModerationAPI::ModerationObjectRequest](docs/ModerationObjectRequest.md)
|
110
|
+
- [ModerationAPI::ModerationObjectRequestValue](docs/ModerationObjectRequestValue.md)
|
111
|
+
- [ModerationAPI::ModerationObjectRequestValueDataValue](docs/ModerationObjectRequestValueDataValue.md)
|
112
|
+
- [ModerationAPI::ModerationText200Response](docs/ModerationText200Response.md)
|
113
|
+
- [ModerationAPI::ModerationText200ResponseAllOfAddress](docs/ModerationText200ResponseAllOfAddress.md)
|
114
|
+
- [ModerationAPI::ModerationText200ResponseAllOfEmail](docs/ModerationText200ResponseAllOfEmail.md)
|
115
|
+
- [ModerationAPI::ModerationText200ResponseAllOfName](docs/ModerationText200ResponseAllOfName.md)
|
116
|
+
- [ModerationAPI::ModerationText200ResponseAllOfNsfw](docs/ModerationText200ResponseAllOfNsfw.md)
|
117
|
+
- [ModerationAPI::ModerationText200ResponseAllOfNsfwLabelScores](docs/ModerationText200ResponseAllOfNsfwLabelScores.md)
|
118
|
+
- [ModerationAPI::ModerationText200ResponseAllOfPhone](docs/ModerationText200ResponseAllOfPhone.md)
|
119
|
+
- [ModerationAPI::ModerationText200ResponseAllOfProfanity](docs/ModerationText200ResponseAllOfProfanity.md)
|
120
|
+
- [ModerationAPI::ModerationText200ResponseAllOfPropriety](docs/ModerationText200ResponseAllOfPropriety.md)
|
121
|
+
- [ModerationAPI::ModerationText200ResponseAllOfProprietyLabelScores](docs/ModerationText200ResponseAllOfProprietyLabelScores.md)
|
122
|
+
- [ModerationAPI::ModerationText200ResponseAllOfQuality](docs/ModerationText200ResponseAllOfQuality.md)
|
123
|
+
- [ModerationAPI::ModerationText200ResponseAllOfQualityLabelScores](docs/ModerationText200ResponseAllOfQualityLabelScores.md)
|
124
|
+
- [ModerationAPI::ModerationText200ResponseAllOfRequest](docs/ModerationText200ResponseAllOfRequest.md)
|
125
|
+
- [ModerationAPI::ModerationText200ResponseAllOfSensitive](docs/ModerationText200ResponseAllOfSensitive.md)
|
126
|
+
- [ModerationAPI::ModerationText200ResponseAllOfSentiment](docs/ModerationText200ResponseAllOfSentiment.md)
|
127
|
+
- [ModerationAPI::ModerationText200ResponseAllOfSentimentLabelScores](docs/ModerationText200ResponseAllOfSentimentLabelScores.md)
|
128
|
+
- [ModerationAPI::ModerationText200ResponseAllOfToxicity](docs/ModerationText200ResponseAllOfToxicity.md)
|
129
|
+
- [ModerationAPI::ModerationText200ResponseAllOfToxicityLabelScores](docs/ModerationText200ResponseAllOfToxicityLabelScores.md)
|
130
|
+
- [ModerationAPI::ModerationText200ResponseAllOfUrl](docs/ModerationText200ResponseAllOfUrl.md)
|
131
|
+
- [ModerationAPI::ModerationText200ResponseAllOfUsername](docs/ModerationText200ResponseAllOfUsername.md)
|
132
|
+
- [ModerationAPI::ModerationText200ResponseAllOfWordlist](docs/ModerationText200ResponseAllOfWordlist.md)
|
133
|
+
- [ModerationAPI::ModerationText200ResponseAllOfWordlistsInner](docs/ModerationText200ResponseAllOfWordlistsInner.md)
|
134
|
+
- [ModerationAPI::ModerationTextRequest](docs/ModerationTextRequest.md)
|
135
|
+
- [ModerationAPI::ModerationVideo200Response](docs/ModerationVideo200Response.md)
|
136
|
+
- [ModerationAPI::ModerationVideoRequest](docs/ModerationVideoRequest.md)
|
137
|
+
|
138
|
+
## Documentation for Authorization
|
139
|
+
|
140
|
+
Authentication schemes defined for the API:
|
141
|
+
|
142
|
+
### Authorization
|
143
|
+
|
144
|
+
- **Type**: Bearer authentication
|
data/Rakefile
ADDED
data/docs/AccountApi.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# ModerationAPI::AccountApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://moderationapi.com/api/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**account_get**](AccountApi.md#account_get) | **GET** /account | Get account details |
|
8
|
+
|
9
|
+
|
10
|
+
## account_get
|
11
|
+
|
12
|
+
> <AccountGet200Response> account_get
|
13
|
+
|
14
|
+
Get account details
|
15
|
+
|
16
|
+
Get account details
|
17
|
+
|
18
|
+
### Examples
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'time'
|
22
|
+
require 'moderation_api'
|
23
|
+
# setup authorization
|
24
|
+
ModerationAPI.configure do |config|
|
25
|
+
# Configure Bearer authorization: Authorization
|
26
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = ModerationAPI::AccountApi.new
|
30
|
+
|
31
|
+
begin
|
32
|
+
# Get account details
|
33
|
+
result = api_instance.account_get
|
34
|
+
p result
|
35
|
+
rescue ModerationAPI::ApiError => e
|
36
|
+
puts "Error when calling AccountApi->account_get: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
#### Using the account_get_with_http_info variant
|
41
|
+
|
42
|
+
This returns an Array which contains the response data, status code and headers.
|
43
|
+
|
44
|
+
> <Array(<AccountGet200Response>, Integer, Hash)> account_get_with_http_info
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
begin
|
48
|
+
# Get account details
|
49
|
+
data, status_code, headers = api_instance.account_get_with_http_info
|
50
|
+
p status_code # => 2xx
|
51
|
+
p headers # => { ... }
|
52
|
+
p data # => <AccountGet200Response>
|
53
|
+
rescue ModerationAPI::ApiError => e
|
54
|
+
puts "Error when calling AccountApi->account_get_with_http_info: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
### Parameters
|
59
|
+
|
60
|
+
This endpoint does not need any parameter.
|
61
|
+
|
62
|
+
### Return type
|
63
|
+
|
64
|
+
[**AccountGet200Response**](AccountGet200Response.md)
|
65
|
+
|
66
|
+
### Authorization
|
67
|
+
|
68
|
+
[Authorization](../README.md#Authorization)
|
69
|
+
|
70
|
+
### HTTP request headers
|
71
|
+
|
72
|
+
- **Content-Type**: Not defined
|
73
|
+
- **Accept**: application/json
|
74
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# ModerationAPI::AccountGet200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **paid_plan_name** | **String** | | |
|
9
|
+
| **text_api_quota** | **Float** | | |
|
10
|
+
| **remaining_quota** | **Float** | | |
|
11
|
+
| **current_project** | [**AccountGet200ResponseCurrentProject**](AccountGet200ResponseCurrentProject.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'moderation_api'
|
17
|
+
|
18
|
+
instance = ModerationAPI::AccountGet200Response.new(
|
19
|
+
id: null,
|
20
|
+
paid_plan_name: null,
|
21
|
+
text_api_quota: null,
|
22
|
+
remaining_quota: null,
|
23
|
+
current_project: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# ModerationAPI::AccountGet200ResponseCurrentProject
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **name** | **String** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'moderation_api'
|
14
|
+
|
15
|
+
instance = ModerationAPI::AccountGet200ResponseCurrentProject.new(
|
16
|
+
id: null,
|
17
|
+
name: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# ModerationAPI::ActionsCreateRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | The name of the action. | |
|
8
|
+
| **key** | **String** | User defined key of the action. | [optional] |
|
9
|
+
| **description** | **String** | The description of the action. | [optional] |
|
10
|
+
| **queue_behaviour** | **String** | Whether the action resolves and removes the item, unresolves and re-add it to the queue, or does not change the resolve status. | [optional][default to 'NO_CHANGE'] |
|
11
|
+
| **filter_in_queue_ids** | **Array<String>** | The IDs of the queues the action is available in. | [optional] |
|
12
|
+
| **position** | **String** | Show the action in all queues, selected queues or no queues (to use via API only). | [optional][default to 'ALL_QUEUES'] |
|
13
|
+
| **possible_values** | [**Array<ActionsList200ResponseInnerPossibleValuesInner>**](ActionsList200ResponseInnerPossibleValuesInner.md) | The possible values of the action. The user will be prompted to select one of these values when executing the action. | [optional] |
|
14
|
+
| **value_required** | **Boolean** | Whether the action requires a value to be executed. | [optional][default to false] |
|
15
|
+
| **free_text** | **Boolean** | Whether the action allows any text to be entered as a value or if it must be one of the possible values. | [optional][default to false] |
|
16
|
+
| **webhooks** | [**Array<ActionsCreateRequestWebhooksInner>**](ActionsCreateRequestWebhooksInner.md) | The action's webhooks. | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'moderation_api'
|
22
|
+
|
23
|
+
instance = ModerationAPI::ActionsCreateRequest.new(
|
24
|
+
name: null,
|
25
|
+
key: null,
|
26
|
+
description: null,
|
27
|
+
queue_behaviour: null,
|
28
|
+
filter_in_queue_ids: null,
|
29
|
+
position: null,
|
30
|
+
possible_values: null,
|
31
|
+
value_required: null,
|
32
|
+
free_text: null,
|
33
|
+
webhooks: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# ModerationAPI::ActionsCreateRequestWebhooksInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | The webhook's name, used to identify it in the dashboard | |
|
8
|
+
| **url** | **String** | The webhook's URL. We'll call this URL when the event occurs. | |
|
9
|
+
| **description** | **String** | The webhook's description | [optional] |
|
10
|
+
| **id** | **String** | ID of an existing webhook or undefined if this is a new webhook. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'moderation_api'
|
16
|
+
|
17
|
+
instance = ModerationAPI::ActionsCreateRequestWebhooksInner.new(
|
18
|
+
name: null,
|
19
|
+
url: null,
|
20
|
+
description: null,
|
21
|
+
id: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# ModerationAPI::ActionsDelete200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **deleted** | **Boolean** | Whether the action was deleted. | |
|
8
|
+
| **id** | **String** | The ID of the action. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'moderation_api'
|
14
|
+
|
15
|
+
instance = ModerationAPI::ActionsDelete200Response.new(
|
16
|
+
deleted: null,
|
17
|
+
id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# ModerationAPI::ActionsExecute200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **success** | **Boolean** | Action executed successfully. | |
|
8
|
+
| **action_id** | **String** | The ID of the action. | |
|
9
|
+
| **ids** | **Array<String>** | The IDs of the content items. | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'moderation_api'
|
15
|
+
|
16
|
+
instance = ModerationAPI::ActionsExecute200Response.new(
|
17
|
+
success: null,
|
18
|
+
action_id: null,
|
19
|
+
ids: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# ModerationAPI::ActionsExecuteDeprecatedRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **content_ids** | **Array<String>** | The IDs of the content items to perform the action on. | |
|
8
|
+
| **queue_id** | **String** | The ID of the queue the action was performed from if any. | [optional] |
|
9
|
+
| **value** | **String** | The value of the action. Useful to set a reason for the action etc. | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'moderation_api'
|
15
|
+
|
16
|
+
instance = ModerationAPI::ActionsExecuteDeprecatedRequest.new(
|
17
|
+
content_ids: null,
|
18
|
+
queue_id: null,
|
19
|
+
value: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# ModerationAPI::ActionsExecuteRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **content_ids** | **Array<String>** | The IDs of the content items to perform the action on. | |
|
8
|
+
| **action_id** | **String** | The ID or key of the action to execute. | |
|
9
|
+
| **queue_id** | **String** | The ID of the queue the action was performed from if any. | [optional] |
|
10
|
+
| **value** | **String** | The value of the action. Useful to set a reason for the action etc. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'moderation_api'
|
16
|
+
|
17
|
+
instance = ModerationAPI::ActionsExecuteRequest.new(
|
18
|
+
content_ids: null,
|
19
|
+
action_id: null,
|
20
|
+
queue_id: null,
|
21
|
+
value: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# ModerationAPI::ActionsGet200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | The ID of the action. | |
|
8
|
+
| **created_at** | **Time** | The date the action was created. | |
|
9
|
+
| **name** | **String** | The name of the action. | |
|
10
|
+
| **key** | **String** | User defined key of the action. | [optional] |
|
11
|
+
| **description** | **String** | The description of the action. | [optional] |
|
12
|
+
| **queue_behaviour** | **String** | Whether the action resolves and removes the item, unresolves and re-add it to the queue, or does not change the resolve status. | [optional][default to 'NO_CHANGE'] |
|
13
|
+
| **filter_in_queue_ids** | **Array<String>** | The IDs of the queues the action is available in. | [optional] |
|
14
|
+
| **position** | **String** | Show the action in all queues, selected queues or no queues (to use via API only). | [optional][default to 'ALL_QUEUES'] |
|
15
|
+
| **possible_values** | [**Array<ActionsList200ResponseInnerPossibleValuesInner>**](ActionsList200ResponseInnerPossibleValuesInner.md) | The possible values of the action. The user will be prompted to select one of these values when executing the action. | [optional] |
|
16
|
+
| **value_required** | **Boolean** | Whether the action requires a value to be executed. | [optional][default to false] |
|
17
|
+
| **free_text** | **Boolean** | Whether the action allows any text to be entered as a value or if it must be one of the possible values. | [optional][default to false] |
|
18
|
+
| **webhooks** | [**Array<ActionsGet200ResponseWebhooksInner>**](ActionsGet200ResponseWebhooksInner.md) | The action's webhooks. | [optional] |
|
19
|
+
|
20
|
+
## Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'moderation_api'
|
24
|
+
|
25
|
+
instance = ModerationAPI::ActionsGet200Response.new(
|
26
|
+
id: null,
|
27
|
+
created_at: null,
|
28
|
+
name: null,
|
29
|
+
key: null,
|
30
|
+
description: null,
|
31
|
+
queue_behaviour: null,
|
32
|
+
filter_in_queue_ids: null,
|
33
|
+
position: null,
|
34
|
+
possible_values: null,
|
35
|
+
value_required: null,
|
36
|
+
free_text: null,
|
37
|
+
webhooks: null
|
38
|
+
)
|
39
|
+
```
|
40
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# ModerationAPI::ActionsGet200ResponseWebhooksInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | The webhook's name, used to identify it in the dashboard | |
|
8
|
+
| **url** | **String** | The webhook's URL. We'll call this URL when the event occurs. | |
|
9
|
+
| **id** | **String** | The ID of the webhook. | |
|
10
|
+
| **description** | **String** | The webhook's description | [optional] |
|
11
|
+
| **moderation_action_id** | **String** | The ID of the moderation action to trigger the webhook on. Only used for moderation action webhooks. | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'moderation_api'
|
17
|
+
|
18
|
+
instance = ModerationAPI::ActionsGet200ResponseWebhooksInner.new(
|
19
|
+
name: null,
|
20
|
+
url: null,
|
21
|
+
id: null,
|
22
|
+
description: null,
|
23
|
+
moderation_action_id: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# ModerationAPI::ActionsList200ResponseInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | The ID of the action. | |
|
8
|
+
| **created_at** | **Time** | The date the action was created. | |
|
9
|
+
| **name** | **String** | The name of the action. | |
|
10
|
+
| **key** | **String** | User defined key of the action. | [optional] |
|
11
|
+
| **description** | **String** | The description of the action. | [optional] |
|
12
|
+
| **queue_behaviour** | **String** | Whether the action resolves and removes the item, unresolves and re-add it to the queue, or does not change the resolve status. | [optional][default to 'NO_CHANGE'] |
|
13
|
+
| **filter_in_queue_ids** | **Array<String>** | The IDs of the queues the action is available in. | [optional] |
|
14
|
+
| **position** | **String** | Show the action in all queues, selected queues or no queues (to use via API only). | [optional][default to 'ALL_QUEUES'] |
|
15
|
+
| **possible_values** | [**Array<ActionsList200ResponseInnerPossibleValuesInner>**](ActionsList200ResponseInnerPossibleValuesInner.md) | The possible values of the action. The user will be prompted to select one of these values when executing the action. | [optional] |
|
16
|
+
| **value_required** | **Boolean** | Whether the action requires a value to be executed. | [optional][default to false] |
|
17
|
+
| **free_text** | **Boolean** | Whether the action allows any text to be entered as a value or if it must be one of the possible values. | [optional][default to false] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'moderation_api'
|
23
|
+
|
24
|
+
instance = ModerationAPI::ActionsList200ResponseInner.new(
|
25
|
+
id: null,
|
26
|
+
created_at: null,
|
27
|
+
name: null,
|
28
|
+
key: null,
|
29
|
+
description: null,
|
30
|
+
queue_behaviour: null,
|
31
|
+
filter_in_queue_ids: null,
|
32
|
+
position: null,
|
33
|
+
possible_values: null,
|
34
|
+
value_required: null,
|
35
|
+
free_text: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# ModerationAPI::ActionsList200ResponseInnerPossibleValuesInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **value** | **String** | The value of the action. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'moderation_api'
|
13
|
+
|
14
|
+
instance = ModerationAPI::ActionsList200ResponseInnerPossibleValuesInner.new(
|
15
|
+
value: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# ModerationAPI::ActionsList400Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **message** | **String** | | |
|
8
|
+
| **code** | **String** | | |
|
9
|
+
| **issues** | [**Array<ActionsList400ResponseIssuesInner>**](ActionsList400ResponseIssuesInner.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'moderation_api'
|
15
|
+
|
16
|
+
instance = ModerationAPI::ActionsList400Response.new(
|
17
|
+
message: null,
|
18
|
+
code: null,
|
19
|
+
issues: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# ModerationAPI::ActionsList400ResponseIssuesInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **message** | **String** | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'moderation_api'
|
13
|
+
|
14
|
+
instance = ModerationAPI::ActionsList400ResponseIssuesInner.new(
|
15
|
+
message: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# ModerationAPI::ActionsUpdateRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **key** | **String** | User defined key of the action. | [optional] |
|
8
|
+
| **name** | **String** | The name of the action. | [optional] |
|
9
|
+
| **description** | **String** | The description of the action. | [optional] |
|
10
|
+
| **queue_behaviour** | **String** | Whether the action resolves and removes the item, unresolves and re-add it to the queue, or does not change the resolve status. | [optional][default to 'NO_CHANGE'] |
|
11
|
+
| **filter_in_queue_ids** | **Array<String>** | The IDs of the queues the action is available in. | [optional] |
|
12
|
+
| **position** | **String** | Show the action in all queues, selected queues or no queues (to use via API only). | [optional][default to 'ALL_QUEUES'] |
|
13
|
+
| **possible_values** | [**Array<ActionsList200ResponseInnerPossibleValuesInner>**](ActionsList200ResponseInnerPossibleValuesInner.md) | The possible values of the action. The user will be prompted to select one of these values when executing the action. | [optional] |
|
14
|
+
| **value_required** | **Boolean** | Whether the action requires a value to be executed. | [optional][default to false] |
|
15
|
+
| **free_text** | **Boolean** | Whether the action allows any text to be entered as a value or if it must be one of the possible values. | [optional][default to false] |
|
16
|
+
| **webhooks** | [**Array<ActionsCreateRequestWebhooksInner>**](ActionsCreateRequestWebhooksInner.md) | The action's webhooks. | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'moderation_api'
|
22
|
+
|
23
|
+
instance = ModerationAPI::ActionsUpdateRequest.new(
|
24
|
+
key: null,
|
25
|
+
name: null,
|
26
|
+
description: null,
|
27
|
+
queue_behaviour: null,
|
28
|
+
filter_in_queue_ids: null,
|
29
|
+
position: null,
|
30
|
+
possible_values: null,
|
31
|
+
value_required: null,
|
32
|
+
free_text: null,
|
33
|
+
webhooks: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|