rankvectors 1.0.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 +191 -0
- data/Rakefile +10 -0
- data/docs/AddCredits200Response.md +22 -0
- data/docs/AddCreditsRequest.md +20 -0
- data/docs/AutoRechargeSettings.md +22 -0
- data/docs/ChangeResult.md +24 -0
- data/docs/ContentVerification.md +22 -0
- data/docs/ContentVerificationApi.md +81 -0
- data/docs/Crawl.md +30 -0
- data/docs/CrawlingApi.md +155 -0
- data/docs/CreateProjectRequest.md +60 -0
- data/docs/CreditBalance.md +30 -0
- data/docs/CreditBalanceInfo.md +26 -0
- data/docs/CreditsApi.md +161 -0
- data/docs/CustomCredentials.md +20 -0
- data/docs/DeleteProject200Response.md +20 -0
- data/docs/Error.md +24 -0
- data/docs/GenerateSuggestions200Response.md +22 -0
- data/docs/GenerateSuggestionsRequest.md +18 -0
- data/docs/GetImplementation200Response.md +20 -0
- data/docs/Implementation.md +36 -0
- data/docs/ImplementationInstructions.md +28 -0
- data/docs/ImplementationRequest.md +26 -0
- data/docs/ImplementationResponse.md +22 -0
- data/docs/ImplementationResult.md +24 -0
- data/docs/ImplementationSummary.md +24 -0
- data/docs/ImplementationsApi.md +313 -0
- data/docs/LinkOpportunity.md +28 -0
- data/docs/ListImplementations200Response.md +24 -0
- data/docs/PageInfo.md +24 -0
- data/docs/PageLimitStatus.md +22 -0
- data/docs/PeriodCharges.md +22 -0
- data/docs/Project.md +70 -0
- data/docs/ProjectCount.md +20 -0
- data/docs/ProjectsApi.md +292 -0
- data/docs/ReportImplementationStatus200Response.md +20 -0
- data/docs/ReportImplementationStatusRequest.md +22 -0
- data/docs/Rollback.md +24 -0
- data/docs/RollbackImplementation200Response.md +22 -0
- data/docs/RollbackImplementationRequest.md +20 -0
- data/docs/SpendingLimitStatus.md +24 -0
- data/docs/StartCrawlRequest.md +18 -0
- data/docs/StepByStepInstructions.md +20 -0
- data/docs/Suggestion.md +38 -0
- data/docs/SuggestionsApi.md +235 -0
- data/docs/UpdateSuggestionRequest.md +18 -0
- data/docs/UsageHistoryItem.md +26 -0
- data/docs/VerifyContent200Response.md +20 -0
- data/docs/VerifyContentRequest.md +20 -0
- data/docs/WebhooksApi.md +151 -0
- data/git_push.sh +57 -0
- data/lib/openapi_client/api/content_verification_api.rb +96 -0
- data/lib/openapi_client/api/crawling_api.rb +155 -0
- data/lib/openapi_client/api/credits_api.rb +168 -0
- data/lib/openapi_client/api/implementations_api.rb +332 -0
- data/lib/openapi_client/api/projects_api.rb +273 -0
- data/lib/openapi_client/api/suggestions_api.rb +242 -0
- data/lib/openapi_client/api/webhooks_api.rb +154 -0
- data/lib/openapi_client/api_client.rb +393 -0
- data/lib/openapi_client/api_error.rb +58 -0
- data/lib/openapi_client/configuration.rb +316 -0
- data/lib/openapi_client/models/add_credits200_response.rb +238 -0
- data/lib/openapi_client/models/add_credits_request.rb +259 -0
- data/lib/openapi_client/models/auto_recharge_settings.rb +292 -0
- data/lib/openapi_client/models/change_result.rb +328 -0
- data/lib/openapi_client/models/content_verification.rb +274 -0
- data/lib/openapi_client/models/crawl.rb +373 -0
- data/lib/openapi_client/models/create_project_request.rb +541 -0
- data/lib/openapi_client/models/credit_balance.rb +379 -0
- data/lib/openapi_client/models/credit_balance_info.rb +329 -0
- data/lib/openapi_client/models/custom_credentials.rb +265 -0
- data/lib/openapi_client/models/delete_project200_response.rb +229 -0
- data/lib/openapi_client/models/error.rb +268 -0
- data/lib/openapi_client/models/generate_suggestions200_response.rb +261 -0
- data/lib/openapi_client/models/generate_suggestions_request.rb +249 -0
- data/lib/openapi_client/models/get_implementation200_response.rb +229 -0
- data/lib/openapi_client/models/implementation.rb +454 -0
- data/lib/openapi_client/models/implementation_instructions.rb +372 -0
- data/lib/openapi_client/models/implementation_request.rb +362 -0
- data/lib/openapi_client/models/implementation_response.rb +293 -0
- data/lib/openapi_client/models/implementation_result.rb +268 -0
- data/lib/openapi_client/models/implementation_summary.rb +319 -0
- data/lib/openapi_client/models/link_opportunity.rb +355 -0
- data/lib/openapi_client/models/list_implementations200_response.rb +251 -0
- data/lib/openapi_client/models/page_info.rb +285 -0
- data/lib/openapi_client/models/page_limit_status.rb +292 -0
- data/lib/openapi_client/models/period_charges.rb +292 -0
- data/lib/openapi_client/models/project.rb +634 -0
- data/lib/openapi_client/models/project_count.rb +230 -0
- data/lib/openapi_client/models/report_implementation_status200_response.rb +229 -0
- data/lib/openapi_client/models/report_implementation_status_request.rb +316 -0
- data/lib/openapi_client/models/rollback.rb +302 -0
- data/lib/openapi_client/models/rollback_implementation200_response.rb +239 -0
- data/lib/openapi_client/models/rollback_implementation_request.rb +247 -0
- data/lib/openapi_client/models/spending_limit_status.rb +319 -0
- data/lib/openapi_client/models/start_crawl_request.rb +249 -0
- data/lib/openapi_client/models/step_by_step_instructions.rb +267 -0
- data/lib/openapi_client/models/suggestion.rb +497 -0
- data/lib/openapi_client/models/update_suggestion_request.rb +262 -0
- data/lib/openapi_client/models/usage_history_item.rb +331 -0
- data/lib/openapi_client/models/verify_content200_response.rb +229 -0
- data/lib/openapi_client/models/verify_content_request.rb +265 -0
- data/lib/openapi_client/version.rb +15 -0
- data/lib/openapi_client.rb +87 -0
- data/openapi_client.gemspec +39 -0
- data/spec/api/content_verification_api_spec.rb +48 -0
- data/spec/api/crawling_api_spec.rb +60 -0
- data/spec/api/credits_api_spec.rb +63 -0
- data/spec/api/implementations_api_spec.rb +91 -0
- data/spec/api/projects_api_spec.rb +82 -0
- data/spec/api/suggestions_api_spec.rb +75 -0
- data/spec/api/webhooks_api_spec.rb +59 -0
- data/spec/models/add_credits200_response_spec.rb +48 -0
- data/spec/models/add_credits_request_spec.rb +42 -0
- data/spec/models/auto_recharge_settings_spec.rb +48 -0
- data/spec/models/change_result_spec.rb +62 -0
- data/spec/models/content_verification_spec.rb +48 -0
- data/spec/models/crawl_spec.rb +76 -0
- data/spec/models/create_project_request_spec.rb +170 -0
- data/spec/models/credit_balance_info_spec.rb +60 -0
- data/spec/models/credit_balance_spec.rb +72 -0
- data/spec/models/custom_credentials_spec.rb +42 -0
- data/spec/models/delete_project200_response_spec.rb +42 -0
- data/spec/models/error_spec.rb +54 -0
- data/spec/models/generate_suggestions200_response_spec.rb +48 -0
- data/spec/models/generate_suggestions_request_spec.rb +36 -0
- data/spec/models/get_implementation200_response_spec.rb +42 -0
- data/spec/models/implementation_instructions_spec.rb +66 -0
- data/spec/models/implementation_request_spec.rb +68 -0
- data/spec/models/implementation_response_spec.rb +48 -0
- data/spec/models/implementation_result_spec.rb +54 -0
- data/spec/models/implementation_spec.rb +102 -0
- data/spec/models/implementation_summary_spec.rb +54 -0
- data/spec/models/link_opportunity_spec.rb +66 -0
- data/spec/models/list_implementations200_response_spec.rb +54 -0
- data/spec/models/page_info_spec.rb +54 -0
- data/spec/models/page_limit_status_spec.rb +48 -0
- data/spec/models/period_charges_spec.rb +48 -0
- data/spec/models/project_count_spec.rb +42 -0
- data/spec/models/project_spec.rb +200 -0
- data/spec/models/report_implementation_status200_response_spec.rb +42 -0
- data/spec/models/report_implementation_status_request_spec.rb +52 -0
- data/spec/models/rollback_implementation200_response_spec.rb +48 -0
- data/spec/models/rollback_implementation_request_spec.rb +42 -0
- data/spec/models/rollback_spec.rb +54 -0
- data/spec/models/spending_limit_status_spec.rb +54 -0
- data/spec/models/start_crawl_request_spec.rb +36 -0
- data/spec/models/step_by_step_instructions_spec.rb +42 -0
- data/spec/models/suggestion_spec.rb +100 -0
- data/spec/models/update_suggestion_request_spec.rb +40 -0
- data/spec/models/usage_history_item_spec.rb +60 -0
- data/spec/models/verify_content200_response_spec.rb +42 -0
- data/spec/models/verify_content_request_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +288 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# OpenapiClient::CreditBalance
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | |
|
|
8
|
+
| **balance** | [**CreditBalanceInfo**](CreditBalanceInfo.md) | | |
|
|
9
|
+
| **page_limit** | [**PageLimitStatus**](PageLimitStatus.md) | | |
|
|
10
|
+
| **spending_limit** | [**SpendingLimitStatus**](SpendingLimitStatus.md) | | |
|
|
11
|
+
| **auto_recharge** | [**AutoRechargeSettings**](AutoRechargeSettings.md) | | |
|
|
12
|
+
| **current_period** | [**PeriodCharges**](PeriodCharges.md) | | |
|
|
13
|
+
| **usage_history** | [**Array<UsageHistoryItem>**](UsageHistoryItem.md) | Usage history (if requested) | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'openapi_client'
|
|
19
|
+
|
|
20
|
+
instance = OpenapiClient::CreditBalance.new(
|
|
21
|
+
success: true,
|
|
22
|
+
balance: null,
|
|
23
|
+
page_limit: null,
|
|
24
|
+
spending_limit: null,
|
|
25
|
+
auto_recharge: null,
|
|
26
|
+
current_period: null,
|
|
27
|
+
usage_history: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# OpenapiClient::CreditBalanceInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **project_id** | **String** | Project identifier | |
|
|
8
|
+
| **credits_total** | **Float** | Total credits purchased | |
|
|
9
|
+
| **credits_used** | **Float** | Credits consumed | |
|
|
10
|
+
| **credits_remaining** | **Float** | Credits remaining | |
|
|
11
|
+
| **last_reset_at** | **Time** | Last credit reset timestamp | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'openapi_client'
|
|
17
|
+
|
|
18
|
+
instance = OpenapiClient::CreditBalanceInfo.new(
|
|
19
|
+
project_id: proj-123,
|
|
20
|
+
credits_total: 100,
|
|
21
|
+
credits_used: 25.5,
|
|
22
|
+
credits_remaining: 74.5,
|
|
23
|
+
last_reset_at: 2025-01-01T00:00Z
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
data/docs/CreditsApi.md
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# OpenapiClient::CreditsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.rankvectors.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**add_credits**](CreditsApi.md#add_credits) | **POST** /api/projects/{projectId}/credits | Add credits |
|
|
8
|
+
| [**get_credits**](CreditsApi.md#get_credits) | **GET** /api/projects/{projectId}/credits | Get credit balance |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## add_credits
|
|
12
|
+
|
|
13
|
+
> <AddCredits200Response> add_credits(project_id, add_credits_request)
|
|
14
|
+
|
|
15
|
+
Add credits
|
|
16
|
+
|
|
17
|
+
Add credits to a project (admin or payment webhook use)
|
|
18
|
+
|
|
19
|
+
### Examples
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'time'
|
|
23
|
+
require 'openapi_client'
|
|
24
|
+
# setup authorization
|
|
25
|
+
OpenapiClient.configure do |config|
|
|
26
|
+
# Configure API key authorization: ApiKeyAuth
|
|
27
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
29
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
api_instance = OpenapiClient::CreditsApi.new
|
|
33
|
+
project_id = 'proj-123' # String | Unique identifier for the project
|
|
34
|
+
add_credits_request = OpenapiClient::AddCreditsRequest.new({amount: 100}) # AddCreditsRequest |
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
# Add credits
|
|
38
|
+
result = api_instance.add_credits(project_id, add_credits_request)
|
|
39
|
+
p result
|
|
40
|
+
rescue OpenapiClient::ApiError => e
|
|
41
|
+
puts "Error when calling CreditsApi->add_credits: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Using the add_credits_with_http_info variant
|
|
46
|
+
|
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
|
48
|
+
|
|
49
|
+
> <Array(<AddCredits200Response>, Integer, Hash)> add_credits_with_http_info(project_id, add_credits_request)
|
|
50
|
+
|
|
51
|
+
```ruby
|
|
52
|
+
begin
|
|
53
|
+
# Add credits
|
|
54
|
+
data, status_code, headers = api_instance.add_credits_with_http_info(project_id, add_credits_request)
|
|
55
|
+
p status_code # => 2xx
|
|
56
|
+
p headers # => { ... }
|
|
57
|
+
p data # => <AddCredits200Response>
|
|
58
|
+
rescue OpenapiClient::ApiError => e
|
|
59
|
+
puts "Error when calling CreditsApi->add_credits_with_http_info: #{e}"
|
|
60
|
+
end
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Parameters
|
|
64
|
+
|
|
65
|
+
| Name | Type | Description | Notes |
|
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
|
67
|
+
| **project_id** | **String** | Unique identifier for the project | |
|
|
68
|
+
| **add_credits_request** | [**AddCreditsRequest**](AddCreditsRequest.md) | | |
|
|
69
|
+
|
|
70
|
+
### Return type
|
|
71
|
+
|
|
72
|
+
[**AddCredits200Response**](AddCredits200Response.md)
|
|
73
|
+
|
|
74
|
+
### Authorization
|
|
75
|
+
|
|
76
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
77
|
+
|
|
78
|
+
### HTTP request headers
|
|
79
|
+
|
|
80
|
+
- **Content-Type**: application/json
|
|
81
|
+
- **Accept**: application/json
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## get_credits
|
|
85
|
+
|
|
86
|
+
> <CreditBalance> get_credits(project_id, opts)
|
|
87
|
+
|
|
88
|
+
Get credit balance
|
|
89
|
+
|
|
90
|
+
Get credit balance and usage history for a project
|
|
91
|
+
|
|
92
|
+
### Examples
|
|
93
|
+
|
|
94
|
+
```ruby
|
|
95
|
+
require 'time'
|
|
96
|
+
require 'openapi_client'
|
|
97
|
+
# setup authorization
|
|
98
|
+
OpenapiClient.configure do |config|
|
|
99
|
+
# Configure API key authorization: ApiKeyAuth
|
|
100
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
101
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
102
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
api_instance = OpenapiClient::CreditsApi.new
|
|
106
|
+
project_id = 'proj-123' # String | Unique identifier for the project
|
|
107
|
+
opts = {
|
|
108
|
+
include_history: true, # Boolean | Include usage history
|
|
109
|
+
start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | History start date (ISO 8601)
|
|
110
|
+
end_date: Time.parse('2013-10-20T19:20:30+01:00') # Time | History end date (ISO 8601)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
begin
|
|
114
|
+
# Get credit balance
|
|
115
|
+
result = api_instance.get_credits(project_id, opts)
|
|
116
|
+
p result
|
|
117
|
+
rescue OpenapiClient::ApiError => e
|
|
118
|
+
puts "Error when calling CreditsApi->get_credits: #{e}"
|
|
119
|
+
end
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
#### Using the get_credits_with_http_info variant
|
|
123
|
+
|
|
124
|
+
This returns an Array which contains the response data, status code and headers.
|
|
125
|
+
|
|
126
|
+
> <Array(<CreditBalance>, Integer, Hash)> get_credits_with_http_info(project_id, opts)
|
|
127
|
+
|
|
128
|
+
```ruby
|
|
129
|
+
begin
|
|
130
|
+
# Get credit balance
|
|
131
|
+
data, status_code, headers = api_instance.get_credits_with_http_info(project_id, opts)
|
|
132
|
+
p status_code # => 2xx
|
|
133
|
+
p headers # => { ... }
|
|
134
|
+
p data # => <CreditBalance>
|
|
135
|
+
rescue OpenapiClient::ApiError => e
|
|
136
|
+
puts "Error when calling CreditsApi->get_credits_with_http_info: #{e}"
|
|
137
|
+
end
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
| Name | Type | Description | Notes |
|
|
143
|
+
| ---- | ---- | ----------- | ----- |
|
|
144
|
+
| **project_id** | **String** | Unique identifier for the project | |
|
|
145
|
+
| **include_history** | **Boolean** | Include usage history | [optional][default to false] |
|
|
146
|
+
| **start_date** | **Time** | History start date (ISO 8601) | [optional] |
|
|
147
|
+
| **end_date** | **Time** | History end date (ISO 8601) | [optional] |
|
|
148
|
+
|
|
149
|
+
### Return type
|
|
150
|
+
|
|
151
|
+
[**CreditBalance**](CreditBalance.md)
|
|
152
|
+
|
|
153
|
+
### Authorization
|
|
154
|
+
|
|
155
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
156
|
+
|
|
157
|
+
### HTTP request headers
|
|
158
|
+
|
|
159
|
+
- **Content-Type**: Not defined
|
|
160
|
+
- **Accept**: application/json
|
|
161
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# OpenapiClient::CustomCredentials
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **webhook_url** | **String** | Webhook URL for implementation | |
|
|
8
|
+
| **api_key** | **String** | Webhook secret key | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'openapi_client'
|
|
14
|
+
|
|
15
|
+
instance = OpenapiClient::CustomCredentials.new(
|
|
16
|
+
webhook_url: https://yourapi.com/rankvectors-webhook,
|
|
17
|
+
api_key: your-webhook-secret-key
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# OpenapiClient::DeleteProject200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **message** | **String** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'openapi_client'
|
|
14
|
+
|
|
15
|
+
instance = OpenapiClient::DeleteProject200Response.new(
|
|
16
|
+
success: true,
|
|
17
|
+
message: Project deleted successfully
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
data/docs/Error.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# OpenapiClient::Error
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **error** | **String** | Error message | |
|
|
8
|
+
| **details** | **String** | Additional error details | [optional] |
|
|
9
|
+
| **code** | **String** | Error code | [optional] |
|
|
10
|
+
| **name** | **String** | Error name | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'openapi_client'
|
|
16
|
+
|
|
17
|
+
instance = OpenapiClient::Error.new(
|
|
18
|
+
error: Invalid parameters,
|
|
19
|
+
details: Name and domain are required,
|
|
20
|
+
code: VALIDATION_ERROR,
|
|
21
|
+
name: ValidationError
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# OpenapiClient::GenerateSuggestions200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **count** | **Integer** | Number of suggestions generated | [optional] |
|
|
9
|
+
| **opportunities** | [**Array<LinkOpportunity>**](LinkOpportunity.md) | Top 10 opportunities preview | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'openapi_client'
|
|
15
|
+
|
|
16
|
+
instance = OpenapiClient::GenerateSuggestions200Response.new(
|
|
17
|
+
success: true,
|
|
18
|
+
count: 15,
|
|
19
|
+
opportunities: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# OpenapiClient::GenerateSuggestionsRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **min_relevance_score** | **Float** | Minimum relevance score for suggestions | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'openapi_client'
|
|
13
|
+
|
|
14
|
+
instance = OpenapiClient::GenerateSuggestionsRequest.new(
|
|
15
|
+
min_relevance_score: 0.7
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# OpenapiClient::GetImplementation200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **implementation** | [**Implementation**](Implementation.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'openapi_client'
|
|
14
|
+
|
|
15
|
+
instance = OpenapiClient::GetImplementation200Response.new(
|
|
16
|
+
success: true,
|
|
17
|
+
implementation: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# OpenapiClient::Implementation
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | Unique implementation identifier | |
|
|
8
|
+
| **status** | **String** | Implementation status | |
|
|
9
|
+
| **platform** | **String** | Platform used | |
|
|
10
|
+
| **implementation_method** | **String** | Implementation method | [optional] |
|
|
11
|
+
| **credits_used** | **Float** | Credits consumed | |
|
|
12
|
+
| **created_at** | **Time** | Implementation start timestamp | |
|
|
13
|
+
| **completed_at** | **Time** | Implementation completion timestamp | [optional] |
|
|
14
|
+
| **metadata** | **Hash<String, Object>** | Platform-specific metadata | [optional] |
|
|
15
|
+
| **suggestion** | [**Suggestion**](Suggestion.md) | | |
|
|
16
|
+
| **rollbacks** | [**Array<Rollback>**](Rollback.md) | Rollback history | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'openapi_client'
|
|
22
|
+
|
|
23
|
+
instance = OpenapiClient::Implementation.new(
|
|
24
|
+
id: impl-123,
|
|
25
|
+
status: success,
|
|
26
|
+
platform: custom,
|
|
27
|
+
implementation_method: api,
|
|
28
|
+
credits_used: 1,
|
|
29
|
+
created_at: 2025-01-15T10:00Z,
|
|
30
|
+
completed_at: 2025-01-15T10:00:05Z,
|
|
31
|
+
metadata: {"postId":456,"postUrl":"https://example.com/source"},
|
|
32
|
+
suggestion: null,
|
|
33
|
+
rollbacks: null
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# OpenapiClient::ImplementationInstructions
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **suggestion_id** | **String** | Suggestion identifier | |
|
|
8
|
+
| **page_url** | **String** | URL of the page to modify | |
|
|
9
|
+
| **anchor_text** | **String** | Text to turn into a link | |
|
|
10
|
+
| **target_url** | **String** | URL to link to | |
|
|
11
|
+
| **context** | **String** | Context where the link should be placed | |
|
|
12
|
+
| **instructions** | [**StepByStepInstructions**](StepByStepInstructions.md) | | |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'openapi_client'
|
|
18
|
+
|
|
19
|
+
instance = OpenapiClient::ImplementationInstructions.new(
|
|
20
|
+
suggestion_id: sugg-123,
|
|
21
|
+
page_url: https://example.com/page,
|
|
22
|
+
anchor_text: internal linking,
|
|
23
|
+
target_url: https://example.com/target,
|
|
24
|
+
context: Learn more about internal linking strategies.,
|
|
25
|
+
instructions: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# OpenapiClient::ImplementationRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **suggestion_ids** | **Array<String>** | Array of suggestion IDs to implement | |
|
|
8
|
+
| **platform** | **String** | Platform type | |
|
|
9
|
+
| **credentials** | [**CustomCredentials**](CustomCredentials.md) | | |
|
|
10
|
+
| **skip_content_verification** | **Boolean** | Skip content change detection | [optional][default to false] |
|
|
11
|
+
| **implementation_method** | **String** | Implementation method | [optional][default to 'api'] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'openapi_client'
|
|
17
|
+
|
|
18
|
+
instance = OpenapiClient::ImplementationRequest.new(
|
|
19
|
+
suggestion_ids: ["sugg-1","sugg-2"],
|
|
20
|
+
platform: custom,
|
|
21
|
+
credentials: null,
|
|
22
|
+
skip_content_verification: false,
|
|
23
|
+
implementation_method: api
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# OpenapiClient::ImplementationResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | Whether any implementations succeeded | |
|
|
8
|
+
| **results** | [**Array<ImplementationResult>**](ImplementationResult.md) | Individual implementation results | |
|
|
9
|
+
| **summary** | [**ImplementationSummary**](ImplementationSummary.md) | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'openapi_client'
|
|
15
|
+
|
|
16
|
+
instance = OpenapiClient::ImplementationResponse.new(
|
|
17
|
+
success: true,
|
|
18
|
+
results: null,
|
|
19
|
+
summary: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# OpenapiClient::ImplementationResult
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | Whether implementation succeeded | |
|
|
8
|
+
| **implementation_id** | **String** | Implementation identifier | [optional] |
|
|
9
|
+
| **credits_used** | **Float** | Credits consumed | [optional] |
|
|
10
|
+
| **error** | **String** | Error message if failed | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'openapi_client'
|
|
16
|
+
|
|
17
|
+
instance = OpenapiClient::ImplementationResult.new(
|
|
18
|
+
success: true,
|
|
19
|
+
implementation_id: impl-123,
|
|
20
|
+
credits_used: 1,
|
|
21
|
+
error: Insufficient credits
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# OpenapiClient::ImplementationSummary
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **total** | **Integer** | Total number of implementations | |
|
|
8
|
+
| **succeeded** | **Integer** | Number of successful implementations | |
|
|
9
|
+
| **failed** | **Integer** | Number of failed implementations | |
|
|
10
|
+
| **credits_used** | **Float** | Total credits used | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'openapi_client'
|
|
16
|
+
|
|
17
|
+
instance = OpenapiClient::ImplementationSummary.new(
|
|
18
|
+
total: 2,
|
|
19
|
+
succeeded: 2,
|
|
20
|
+
failed: 0,
|
|
21
|
+
credits_used: 2
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|