From 3ce04fcb09377408c7ae5f1451bc67cdc7c49944 Mon Sep 17 00:00:00 2001 From: OneSignal Date: Fri, 17 Jul 2026 21:21:32 +0000 Subject: [PATCH] feat: add v5.10.0 package updates --- api/openapi.yaml | 8 ++++++-- docs/Filter.md | 2 +- docs/FilterExpression.md | 2 +- model_filter.go | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 069a97d..bc89986 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -3362,8 +3362,10 @@ components: example: level type: string value: - description: Constant value to use as the second operand in the filter expression. - This value is *required* when the relation operator is a binary operator. + description: "Constant value to use as the second operand in the filter\ + \ expression. This value is *required* when the relation operator is a\ + \ binary operator. For `in_array` and `not_in_array` relations, provide\ + \ a comma-separated list of up to 20 values." example: "10" type: string hours_ago: @@ -3394,6 +3396,8 @@ components: - not_exists - time_elapsed_gt - time_elapsed_lt + - in_array + - not_in_array type: string type: object Operator: diff --git a/docs/Filter.md b/docs/Filter.md index b7f0448..3f33af3 100644 --- a/docs/Filter.md +++ b/docs/Filter.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Field** | Pointer to **string** | Required. Name of the field to use as the first operand in the filter expression. | [optional] **Key** | Pointer to **string** | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional] -**Value** | Pointer to **string** | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. | [optional] +**Value** | Pointer to **string** | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. For `in_array` and `not_in_array` relations, provide a comma-separated list of up to 20 values. | [optional] **HoursAgo** | Pointer to **string** | If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. | [optional] **Radius** | Pointer to **float32** | If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. | [optional] **Lat** | Pointer to **float32** | If `field` is `location`, this is *required* to specify the user's latitude. | [optional] diff --git a/docs/FilterExpression.md b/docs/FilterExpression.md index cdf6fcc..8d90a76 100644 --- a/docs/FilterExpression.md +++ b/docs/FilterExpression.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Field** | Pointer to **string** | Required. Name of the field to use as the first operand in the filter expression. | [optional] **Key** | Pointer to **string** | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional] -**Value** | Pointer to **string** | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. | [optional] +**Value** | Pointer to **string** | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. For `in_array` and `not_in_array` relations, provide a comma-separated list of up to 20 values. | [optional] **HoursAgo** | Pointer to **string** | If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. | [optional] **Radius** | Pointer to **float32** | If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. | [optional] **Lat** | Pointer to **float32** | If `field` is `location`, this is *required* to specify the user's latitude. | [optional] diff --git a/model_filter.go b/model_filter.go index 1a85d4b..716f25a 100644 --- a/model_filter.go +++ b/model_filter.go @@ -21,7 +21,7 @@ type Filter struct { Field *string `json:"field,omitempty"` // If `field` is `tag`, this field is *required* to specify `key` inside the tags. Key *string `json:"key,omitempty"` - // Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. + // Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. For `in_array` and `not_in_array` relations, provide a comma-separated list of up to 20 values. Value *string `json:"value,omitempty"` // If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. HoursAgo *string `json:"hours_ago,omitempty"`