Skip to content

Commit d060d44

Browse files
feat(api): add in and nin values to comparison filter type
1 parent 6379626 commit d060d44

File tree

7 files changed

+36
-4
lines changed

7 files changed

+36
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 139
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-2ab0731e8c94b7c783b55939d2d2a46c2594c1da2ec444c543e17a9eea6d9164.yml
3-
openapi_spec_hash: 5557d4cd48565e8b98dfcb96a5804965
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5a660d5b485aae5061d55301f7c8522654a533c7d7d9596c4da54f0e481d8880.yml
3+
openapi_spec_hash: 50297cf7c625ec3c4bb0bc0f5a9d318a
44
config_hash: 96fbf82cf74a44ccd513f5acf0956ffd

aliases.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ const ComparisonFilterTypeLt = shared.ComparisonFilterTypeLt
280280
// Equals "lte"
281281
const ComparisonFilterTypeLte = shared.ComparisonFilterTypeLte
282282

283+
// Equals "in"
284+
const ComparisonFilterTypeIn = shared.ComparisonFilterTypeIn
285+
286+
// Equals "nin"
287+
const ComparisonFilterTypeNin = shared.ComparisonFilterTypeNin
288+
283289
// The value to compare against the attribute key; supports string, number, or
284290
// boolean types.
285291
//

conversations/aliases.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ const ComparisonFilterTypeLt = shared.ComparisonFilterTypeLt
280280
// Equals "lte"
281281
const ComparisonFilterTypeLte = shared.ComparisonFilterTypeLte
282282

283+
// Equals "in"
284+
const ComparisonFilterTypeIn = shared.ComparisonFilterTypeIn
285+
286+
// Equals "nin"
287+
const ComparisonFilterTypeNin = shared.ComparisonFilterTypeNin
288+
283289
// The value to compare against the attribute key; supports string, number, or
284290
// boolean types.
285291
//

realtime/aliases.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ const ComparisonFilterTypeLt = shared.ComparisonFilterTypeLt
280280
// Equals "lte"
281281
const ComparisonFilterTypeLte = shared.ComparisonFilterTypeLte
282282

283+
// Equals "in"
284+
const ComparisonFilterTypeIn = shared.ComparisonFilterTypeIn
285+
286+
// Equals "nin"
287+
const ComparisonFilterTypeNin = shared.ComparisonFilterTypeNin
288+
283289
// The value to compare against the attribute key; supports string, number, or
284290
// boolean types.
285291
//

responses/aliases.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ const ComparisonFilterTypeLt = shared.ComparisonFilterTypeLt
280280
// Equals "lte"
281281
const ComparisonFilterTypeLte = shared.ComparisonFilterTypeLte
282282

283+
// Equals "in"
284+
const ComparisonFilterTypeIn = shared.ComparisonFilterTypeIn
285+
286+
// Equals "nin"
287+
const ComparisonFilterTypeNin = shared.ComparisonFilterTypeNin
288+
283289
// The value to compare against the attribute key; supports string, number, or
284290
// boolean types.
285291
//

shared/shared.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ type ComparisonFilter struct {
114114
// - `in`: in
115115
// - `nin`: not in
116116
//
117-
// Any of "eq", "ne", "gt", "gte", "lt", "lte".
117+
// Any of "eq", "ne", "gt", "gte", "lt", "lte", "in", "nin".
118118
Type ComparisonFilterType `json:"type" api:"required"`
119119
// The value to compare against the attribute key; supports string, number, or
120120
// boolean types.
@@ -164,6 +164,8 @@ const (
164164
ComparisonFilterTypeGte ComparisonFilterType = "gte"
165165
ComparisonFilterTypeLt ComparisonFilterType = "lt"
166166
ComparisonFilterTypeLte ComparisonFilterType = "lte"
167+
ComparisonFilterTypeIn ComparisonFilterType = "in"
168+
ComparisonFilterTypeNin ComparisonFilterType = "nin"
167169
)
168170

169171
// ComparisonFilterValueUnion contains all possible properties and values from
@@ -274,7 +276,7 @@ type ComparisonFilterParam struct {
274276
// - `in`: in
275277
// - `nin`: not in
276278
//
277-
// Any of "eq", "ne", "gt", "gte", "lt", "lte".
279+
// Any of "eq", "ne", "gt", "gte", "lt", "lte", "in", "nin".
278280
Type ComparisonFilterType `json:"type,omitzero" api:"required"`
279281
// The value to compare against the attribute key; supports string, number, or
280282
// boolean types.

webhooks/aliases.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ const ComparisonFilterTypeLt = shared.ComparisonFilterTypeLt
280280
// Equals "lte"
281281
const ComparisonFilterTypeLte = shared.ComparisonFilterTypeLte
282282

283+
// Equals "in"
284+
const ComparisonFilterTypeIn = shared.ComparisonFilterTypeIn
285+
286+
// Equals "nin"
287+
const ComparisonFilterTypeNin = shared.ComparisonFilterTypeNin
288+
283289
// The value to compare against the attribute key; supports string, number, or
284290
// boolean types.
285291
//

0 commit comments

Comments
 (0)