Skip to content

Commit 191b90d

Browse files
algolia-botleonardogavaudanshortcuts
committed
feat(clients): add new abtesting-v3 package to clients + stabilize alpha js package (generated)
algolia/api-clients-automation#5157 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Leonardo Gavaudan <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent 1327707 commit 191b90d

35 files changed

+1968
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/** A/B Testing API The Algolia A/B Testing API lets you manage your Algolia A/B tests to optimize your search
2+
* experience. ## Base URLs The base URLs for requests to the A/B testing API are: - `https://analytics.us.algolia.com`
3+
* \- `https://analytics.de.algolia.com` - `https://analytics.algolia.com` (routes requests to the closest of the above
4+
* servers, based on your geographical location) Use the URL that matches your [analytics
5+
* region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ##
6+
* Availability and authentication Access to the A/B testing API is available as part of the [Premium or Elevate
7+
* plans](https://www.algolia.com/pricing). To authenticate your API requests, add these headers: -
8+
* `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary
9+
* permissions to make the request. The required access control list (ACL) to make a request is listed in each
10+
* endpoint's reference. You can find your application ID and API key in the [Algolia
11+
* dashboard](https://dashboard.algolia.com/account). ## Rate limits You can make up to **100 requests per minute per
12+
* app** to the A/B testing API. The response includes headers with information about the limits. ## Parameters Query
13+
* parameters must be [URL-encoded](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding). Non-ASCII
14+
* characters must be UTF-8 encoded. Plus characters (`+`) are interpreted as spaces. ## Response status and errors The
15+
* A/B testing API returns JSON responses. Since JSON doesn't guarantee any specific ordering, don't rely on the order
16+
* of attributes in the API response. Successful responses return a `2xx` status. Client errors return a `4xx` status.
17+
* Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ##
18+
* Version The current version of the A/B Testing API is version 3, as indicated by the `/3/` in each endpoint's URL.
19+
*
20+
* The version of the OpenAPI document: 3.0.0
21+
*
22+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23+
* https://openapi-generator.tech Do not edit the class manually.
24+
*/
25+
package algoliasearch.abtestingv3
26+
27+
import algoliasearch.abtestingv3.Status._
28+
29+
/** ABTest
30+
*
31+
* @param abTestID
32+
* Unique A/B test identifier.
33+
* @param updatedAt
34+
* Date and time when the A/B test was last updated, in RFC 3339 format.
35+
* @param createdAt
36+
* Date and time when the A/B test was created, in RFC 3339 format.
37+
* @param endAt
38+
* End date and time of the A/B test, in RFC 3339 format.
39+
* @param name
40+
* A/B test name.
41+
* @param variants
42+
* A/B test variants. The first variant is your _control_ index, typically your production index. All of the
43+
* additional variants are indexes with changed settings that you want to test against the control.
44+
* @param migratedAbTestID
45+
* Unique migrated A/B test identifier.
46+
*/
47+
case class ABTest(
48+
abTestID: Int,
49+
updatedAt: String,
50+
createdAt: String,
51+
endAt: String,
52+
name: String,
53+
status: Status,
54+
variants: Seq[Variant],
55+
configuration: Option[ABTestConfiguration] = scala.None,
56+
migratedAbTestID: Option[Int] = scala.None
57+
)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/** A/B Testing API The Algolia A/B Testing API lets you manage your Algolia A/B tests to optimize your search
2+
* experience. ## Base URLs The base URLs for requests to the A/B testing API are: - `https://analytics.us.algolia.com`
3+
* \- `https://analytics.de.algolia.com` - `https://analytics.algolia.com` (routes requests to the closest of the above
4+
* servers, based on your geographical location) Use the URL that matches your [analytics
5+
* region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ##
6+
* Availability and authentication Access to the A/B testing API is available as part of the [Premium or Elevate
7+
* plans](https://www.algolia.com/pricing). To authenticate your API requests, add these headers: -
8+
* `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary
9+
* permissions to make the request. The required access control list (ACL) to make a request is listed in each
10+
* endpoint's reference. You can find your application ID and API key in the [Algolia
11+
* dashboard](https://dashboard.algolia.com/account). ## Rate limits You can make up to **100 requests per minute per
12+
* app** to the A/B testing API. The response includes headers with information about the limits. ## Parameters Query
13+
* parameters must be [URL-encoded](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding). Non-ASCII
14+
* characters must be UTF-8 encoded. Plus characters (`+`) are interpreted as spaces. ## Response status and errors The
15+
* A/B testing API returns JSON responses. Since JSON doesn't guarantee any specific ordering, don't rely on the order
16+
* of attributes in the API response. Successful responses return a `2xx` status. Client errors return a `4xx` status.
17+
* Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ##
18+
* Version The current version of the A/B Testing API is version 3, as indicated by the `/3/` in each endpoint's URL.
19+
*
20+
* The version of the OpenAPI document: 3.0.0
21+
*
22+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23+
* https://openapi-generator.tech Do not edit the class manually.
24+
*/
25+
package algoliasearch.abtestingv3
26+
27+
import algoliasearch.abtestingv3.ErrorCorrectionType._
28+
29+
/** A/B test configuration.
30+
*
31+
* @param filters
32+
* List of metric filters applied to the test population.
33+
*/
34+
case class ABTestConfiguration(
35+
minimumDetectableEffect: Option[MinimumDetectableEffect] = scala.None,
36+
filters: Option[Seq[MetricsFilter]] = scala.None,
37+
errorCorrection: Option[ErrorCorrectionType] = scala.None
38+
)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/** A/B Testing API The Algolia A/B Testing API lets you manage your Algolia A/B tests to optimize your search
2+
* experience. ## Base URLs The base URLs for requests to the A/B testing API are: - `https://analytics.us.algolia.com`
3+
* \- `https://analytics.de.algolia.com` - `https://analytics.algolia.com` (routes requests to the closest of the above
4+
* servers, based on your geographical location) Use the URL that matches your [analytics
5+
* region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ##
6+
* Availability and authentication Access to the A/B testing API is available as part of the [Premium or Elevate
7+
* plans](https://www.algolia.com/pricing). To authenticate your API requests, add these headers: -
8+
* `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary
9+
* permissions to make the request. The required access control list (ACL) to make a request is listed in each
10+
* endpoint's reference. You can find your application ID and API key in the [Algolia
11+
* dashboard](https://dashboard.algolia.com/account). ## Rate limits You can make up to **100 requests per minute per
12+
* app** to the A/B testing API. The response includes headers with information about the limits. ## Parameters Query
13+
* parameters must be [URL-encoded](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding). Non-ASCII
14+
* characters must be UTF-8 encoded. Plus characters (`+`) are interpreted as spaces. ## Response status and errors The
15+
* A/B testing API returns JSON responses. Since JSON doesn't guarantee any specific ordering, don't rely on the order
16+
* of attributes in the API response. Successful responses return a `2xx` status. Client errors return a `4xx` status.
17+
* Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ##
18+
* Version The current version of the A/B Testing API is version 3, as indicated by the `/3/` in each endpoint's URL.
19+
*
20+
* The version of the OpenAPI document: 3.0.0
21+
*
22+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23+
* https://openapi-generator.tech Do not edit the class manually.
24+
*/
25+
package algoliasearch.abtestingv3
26+
27+
/** ABTestResponse
28+
*
29+
* @param index
30+
* Index name of the A/B test variant (case-sensitive).
31+
* @param abTestID
32+
* Unique A/B test identifier.
33+
* @param taskID
34+
* Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run
35+
* immediately. You can check the task's progress with the [`task` operation](#tag/Indices/operation/getTask) and
36+
* this `taskID`.
37+
*/
38+
case class ABTestResponse(
39+
index: String,
40+
abTestID: Int,
41+
taskID: Long
42+
)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/** A/B Testing API The Algolia A/B Testing API lets you manage your Algolia A/B tests to optimize your search
2+
* experience. ## Base URLs The base URLs for requests to the A/B testing API are: - `https://analytics.us.algolia.com`
3+
* \- `https://analytics.de.algolia.com` - `https://analytics.algolia.com` (routes requests to the closest of the above
4+
* servers, based on your geographical location) Use the URL that matches your [analytics
5+
* region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ##
6+
* Availability and authentication Access to the A/B testing API is available as part of the [Premium or Elevate
7+
* plans](https://www.algolia.com/pricing). To authenticate your API requests, add these headers: -
8+
* `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary
9+
* permissions to make the request. The required access control list (ACL) to make a request is listed in each
10+
* endpoint's reference. You can find your application ID and API key in the [Algolia
11+
* dashboard](https://dashboard.algolia.com/account). ## Rate limits You can make up to **100 requests per minute per
12+
* app** to the A/B testing API. The response includes headers with information about the limits. ## Parameters Query
13+
* parameters must be [URL-encoded](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding). Non-ASCII
14+
* characters must be UTF-8 encoded. Plus characters (`+`) are interpreted as spaces. ## Response status and errors The
15+
* A/B testing API returns JSON responses. Since JSON doesn't guarantee any specific ordering, don't rely on the order
16+
* of attributes in the API response. Successful responses return a `2xx` status. Client errors return a `4xx` status.
17+
* Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ##
18+
* Version The current version of the A/B Testing API is version 3, as indicated by the `/3/` in each endpoint's URL.
19+
*
20+
* The version of the OpenAPI document: 3.0.0
21+
*
22+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23+
* https://openapi-generator.tech Do not edit the class manually.
24+
*/
25+
package algoliasearch.abtestingv3
26+
27+
/** AbTestsVariant
28+
*
29+
* @param index
30+
* Index name of the A/B test variant (case-sensitive).
31+
* @param trafficPercentage
32+
* Percentage of search requests each variant receives.
33+
* @param description
34+
* Description for this variant.
35+
*/
36+
case class AbTestsVariant(
37+
index: String,
38+
trafficPercentage: Int,
39+
description: Option[String] = scala.None
40+
) extends AddABTestsVariantTrait
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/** A/B Testing API The Algolia A/B Testing API lets you manage your Algolia A/B tests to optimize your search
2+
* experience. ## Base URLs The base URLs for requests to the A/B testing API are: - `https://analytics.us.algolia.com`
3+
* \- `https://analytics.de.algolia.com` - `https://analytics.algolia.com` (routes requests to the closest of the above
4+
* servers, based on your geographical location) Use the URL that matches your [analytics
5+
* region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ##
6+
* Availability and authentication Access to the A/B testing API is available as part of the [Premium or Elevate
7+
* plans](https://www.algolia.com/pricing). To authenticate your API requests, add these headers: -
8+
* `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary
9+
* permissions to make the request. The required access control list (ACL) to make a request is listed in each
10+
* endpoint's reference. You can find your application ID and API key in the [Algolia
11+
* dashboard](https://dashboard.algolia.com/account). ## Rate limits You can make up to **100 requests per minute per
12+
* app** to the A/B testing API. The response includes headers with information about the limits. ## Parameters Query
13+
* parameters must be [URL-encoded](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding). Non-ASCII
14+
* characters must be UTF-8 encoded. Plus characters (`+`) are interpreted as spaces. ## Response status and errors The
15+
* A/B testing API returns JSON responses. Since JSON doesn't guarantee any specific ordering, don't rely on the order
16+
* of attributes in the API response. Successful responses return a `2xx` status. Client errors return a `4xx` status.
17+
* Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ##
18+
* Version The current version of the A/B Testing API is version 3, as indicated by the `/3/` in each endpoint's URL.
19+
*
20+
* The version of the OpenAPI document: 3.0.0
21+
*
22+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23+
* https://openapi-generator.tech Do not edit the class manually.
24+
*/
25+
package algoliasearch.abtestingv3
26+
27+
/** AbTestsVariantSearchParams
28+
*
29+
* @param index
30+
* Index name of the A/B test variant (case-sensitive).
31+
* @param trafficPercentage
32+
* Percentage of search requests each variant receives.
33+
* @param description
34+
* Description for this variant.
35+
*/
36+
case class AbTestsVariantSearchParams(
37+
index: String,
38+
trafficPercentage: Int,
39+
description: Option[String] = scala.None,
40+
customSearchParameters: Any
41+
) extends AddABTestsVariantTrait
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/** A/B Testing API The Algolia A/B Testing API lets you manage your Algolia A/B tests to optimize your search
2+
* experience. ## Base URLs The base URLs for requests to the A/B testing API are: - `https://analytics.us.algolia.com`
3+
* \- `https://analytics.de.algolia.com` - `https://analytics.algolia.com` (routes requests to the closest of the above
4+
* servers, based on your geographical location) Use the URL that matches your [analytics
5+
* region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ##
6+
* Availability and authentication Access to the A/B testing API is available as part of the [Premium or Elevate
7+
* plans](https://www.algolia.com/pricing). To authenticate your API requests, add these headers: -
8+
* `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary
9+
* permissions to make the request. The required access control list (ACL) to make a request is listed in each
10+
* endpoint's reference. You can find your application ID and API key in the [Algolia
11+
* dashboard](https://dashboard.algolia.com/account). ## Rate limits You can make up to **100 requests per minute per
12+
* app** to the A/B testing API. The response includes headers with information about the limits. ## Parameters Query
13+
* parameters must be [URL-encoded](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding). Non-ASCII
14+
* characters must be UTF-8 encoded. Plus characters (`+`) are interpreted as spaces. ## Response status and errors The
15+
* A/B testing API returns JSON responses. Since JSON doesn't guarantee any specific ordering, don't rely on the order
16+
* of attributes in the API response. Successful responses return a `2xx` status. Client errors return a `4xx` status.
17+
* Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ##
18+
* Version The current version of the A/B Testing API is version 3, as indicated by the `/3/` in each endpoint's URL.
19+
*
20+
* The version of the OpenAPI document: 3.0.0
21+
*
22+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23+
* https://openapi-generator.tech Do not edit the class manually.
24+
*/
25+
package algoliasearch.abtestingv3
26+
27+
/** AddABTestsRequest
28+
*
29+
* @param name
30+
* A/B test name.
31+
* @param variants
32+
* A/B test variants.
33+
* @param metrics
34+
* A/B test metrics involved in the test. Only these metrics will be considered when calculating results.
35+
* @param endAt
36+
* End date and time of the A/B test, in RFC 3339 format.
37+
*/
38+
case class AddABTestsRequest(
39+
name: String,
40+
variants: Seq[AddABTestsVariant],
41+
metrics: Seq[CreateMetric],
42+
configuration: Option[ABTestConfiguration] = scala.None,
43+
endAt: String
44+
)

0 commit comments

Comments
 (0)