Skip to content

Commit 6db3a98

Browse files
committed
feat: sync OpenAPI schema to v3.7.0
1 parent 71cef49 commit 6db3a98

13 files changed

Lines changed: 96 additions & 4 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'java-sdk': minor
3+
---
4+
5+
**events-search**: Add `active_call` filter parameter
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'java-sdk': minor
3+
---
4+
5+
Add `keyboard_layout_name` to `RawDeviceAttributes`

.schema-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.6.0
1+
v3.7.0

docs/FingerprintApi.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ public class FingerprintApiExample {
320320
Boolean torNode = true; // Boolean | Filter events by Tor Node detection result. > Note: When using this parameter, only events with the `tor_node` property set to `true` or `false` are returned. Events without a `tor_node` detection result are left out of the response.
321321
SearchEventsIncrementalIdentificationStatus incrementalIdentificationStatus = SearchEventsIncrementalIdentificationStatus.fromValue("partially_completed"); // SearchEventsIncrementalIdentificationStatus | Filter events by their incremental identification status (`incremental_identification_status` property). Non incremental identification events are left out of the response.
322322
Boolean simulator = true; // Boolean | Filter events by iOS Simulator Detection result. > Note: When using this parameter, only events with the `simulator` property set to `true` or `false` are returned. Events without a `simulator` Smart Signal result are left out of the response.
323+
Boolean activeCall = true; // Boolean | Filter events by Active Call Detection result on mobile devices. > Note: When using this parameter, only events with the `active_call` property set to `true` or `false` are returned. Events without an `active_call` Smart Signal result are left out of the response.
323324
List<SearchEventsSource> source = Arrays.asList(); // List<SearchEventsSource> | Selects the source of events to search. When omitted, only traditional identification events generated from devices are returned (the default behavior). When set to `edge`, only Automation Intelligence (Edge) events are returned. To retrieve all events regardless of source, you must make two requests. One with the `source` parameter set to `edge`, and another with the `source` parameter omitted. > Note: The Automation Intelligence API is in public preview testing phase. If you encounter any issues, please [contact](https://fingerprint.com/support/) our support team.
324325
try {
325326
EventSearch result = api.searchEvents(new FingerprintApi.SearchEventsOptionalParams()
@@ -375,6 +376,7 @@ public class FingerprintApiExample {
375376
.setTorNode(torNode)
376377
.setIncrementalIdentificationStatus(incrementalIdentificationStatus)
377378
.setSimulator(simulator)
379+
.setActiveCall(activeCall)
378380
.setSource(source));
379381
System.out.println(result);
380382
} catch (ApiException e) {
@@ -450,6 +452,7 @@ Object containing optional parameters for API method. Supports a fluent interfac
450452
| **torNode** | **Boolean**| Filter events by Tor Node detection result. > Note: When using this parameter, only events with the `tor_node` property set to `true` or `false` are returned. Events without a `tor_node` detection result are left out of the response. | [optional] |
451453
| **incrementalIdentificationStatus** | **SearchEventsIncrementalIdentificationStatus**| Filter events by their incremental identification status (`incremental_identification_status` property). Non incremental identification events are left out of the response. | [optional] [enum: partially_completed, completed] |
452454
| **simulator** | **Boolean**| Filter events by iOS Simulator Detection result. > Note: When using this parameter, only events with the `simulator` property set to `true` or `false` are returned. Events without a `simulator` Smart Signal result are left out of the response. | [optional] |
455+
| **activeCall** | **Boolean**| Filter events by Active Call Detection result on mobile devices. > Note: When using this parameter, only events with the `active_call` property set to `true` or `false` are returned. Events without an `active_call` Smart Signal result are left out of the response. | [optional] |
453456
| **source** | **List&lt;SearchEventsSource&gt;**| Selects the source of events to search. When omitted, only traditional identification events generated from devices are returned (the default behavior). When set to `edge`, only Automation Intelligence (Edge) events are returned. To retrieve all events regardless of source, you must make two requests. One with the `source` parameter set to `edge`, and another with the `source` parameter omitted. > Note: The Automation Intelligence API is in public preview testing phase. If you encounter any issues, please [contact](https://fingerprint.com/support/) our support team. | [optional] |
454457

455458
### Return type

docs/RawDeviceAttributes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ A curated subset of raw browser/device attributes that the API surface exposes.
4141
|**batteryCharging** | **Boolean** | When `true`, the device is currently charging. Available only for web devices on Chromium-based browsers. | [optional] |
4242
|**batteryLowPowerMode** | **Boolean** | Whether the device's low power mode is enabled. Available only for Android and iOS devices. | [optional] |
4343
|**keyboardLayoutHash** | **String** | Unique identifier for the user's keyboard layout. | [optional] |
44+
|**keyboardLayoutName** | **String** | Name of the user's configured keyboard layout as a BCP 47-style identifier. Only available in Chromium-based browsers, omitted otherwise. | [optional] |
4445

4546

4647

res/fingerprint-server-api.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,18 @@ paths:
954954
> Note: When using this parameter, only events with the `simulator`
955955
property set to `true` or `false` are returned. Events without a
956956
`simulator` Smart Signal result are left out of the response.
957+
- name: active_call
958+
in: query
959+
schema:
960+
type: boolean
961+
description: >
962+
Filter events by Active Call Detection result on mobile devices.
963+
964+
965+
> Note: When using this parameter, only events with the
966+
`active_call` property set to `true` or `false` are returned. Events
967+
without an `active_call` Smart Signal result are left out of the
968+
response.
957969
- name: source
958970
in: query
959971
required: false
@@ -2971,6 +2983,16 @@ components:
29712983
examples:
29722984
- 3f33b68235d36b8821147349f1161379
29732985
description: Unique identifier for the user's keyboard layout.
2986+
KeyboardLayoutName:
2987+
type: string
2988+
examples:
2989+
- en-US
2990+
- de-DE
2991+
- ja-JP
2992+
description: >-
2993+
Name of the user's configured keyboard layout as a BCP 47-style
2994+
identifier. Only available in Chromium-based browsers, omitted
2995+
otherwise.
29742996
RawDeviceAttributes:
29752997
type: object
29762998
description: >
@@ -3045,6 +3067,8 @@ components:
30453067
$ref: '#/components/schemas/BatteryLowPowerMode'
30463068
keyboard_layout_hash:
30473069
$ref: '#/components/schemas/KeyboardLayoutHash'
3070+
keyboard_layout_name:
3071+
$ref: '#/components/schemas/KeyboardLayoutName'
30483072
Labels:
30493073
type: array
30503074
items:

sdk/src/main/java/com/fingerprint/v4/api/FingerprintApi.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ public static class SearchEventsOptionalParams {
330330
private Boolean torNode;
331331
private SearchEventsIncrementalIdentificationStatus incrementalIdentificationStatus;
332332
private Boolean simulator;
333+
private Boolean activeCall;
333334
private List<SearchEventsSource> source;
334335

335336
/**
@@ -1143,6 +1144,21 @@ public SearchEventsOptionalParams setSimulator(Boolean simulator) {
11431144
return this;
11441145
}
11451146

1147+
/**
1148+
* getter for activeCall - Filter events by Active Call Detection result on mobile devices. > Note: When using this parameter, only events with the `active_call` property set to `true` or `false` are returned. Events without an `active_call` Smart Signal result are left out of the response.
1149+
*/
1150+
public Boolean getActiveCall() {
1151+
return activeCall;
1152+
}
1153+
1154+
/**
1155+
* setter for activeCall - Filter events by Active Call Detection result on mobile devices. > Note: When using this parameter, only events with the `active_call` property set to `true` or `false` are returned. Events without an `active_call` Smart Signal result are left out of the response.
1156+
*/
1157+
public SearchEventsOptionalParams setActiveCall(Boolean activeCall) {
1158+
this.activeCall = activeCall;
1159+
return this;
1160+
}
1161+
11461162
/**
11471163
* getter for source - Selects the source of events to search. When omitted, only traditional identification events generated from devices are returned (the default behavior). When set to `edge`, only Automation Intelligence (Edge) events are returned. To retrieve all events regardless of source, you must make two requests. One with the `source` parameter set to `edge`, and another with the `source` parameter omitted. > Note: The Automation Intelligence API is in public preview testing phase. If you encounter any issues, please [contact](https://fingerprint.com/support/) our support team.
11481164
*/
@@ -1347,6 +1363,9 @@ public ApiResponse<EventSearch> searchEventsWithHttpInfo(
13471363
searchEventsOptionalParams.getIncrementalIdentificationStatus()));
13481364
localVarQueryParams.addAll(
13491365
apiClient.parameterToPairs("", "simulator", searchEventsOptionalParams.getSimulator()));
1366+
localVarQueryParams.addAll(
1367+
apiClient.parameterToPairs(
1368+
"", "active_call", searchEventsOptionalParams.getActiveCall()));
13501369
localVarQueryParams.addAll(
13511370
apiClient.parameterToPairs("multi", "source", searchEventsOptionalParams.getSource()));
13521371
}

sdk/src/main/java/com/fingerprint/v4/model/RawDeviceAttributes.java

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
RawDeviceAttributes.JSON_PROPERTY_BATTERY_LEVEL,
5656
RawDeviceAttributes.JSON_PROPERTY_BATTERY_CHARGING,
5757
RawDeviceAttributes.JSON_PROPERTY_BATTERY_LOW_POWER_MODE,
58-
RawDeviceAttributes.JSON_PROPERTY_KEYBOARD_LAYOUT_HASH
58+
RawDeviceAttributes.JSON_PROPERTY_KEYBOARD_LAYOUT_HASH,
59+
RawDeviceAttributes.JSON_PROPERTY_KEYBOARD_LAYOUT_NAME
5960
})
6061
@jakarta.annotation.Generated(
6162
value = "org.openapitools.codegen.languages.JavaClientCodegen",
@@ -160,6 +161,9 @@ public class RawDeviceAttributes {
160161
public static final String JSON_PROPERTY_KEYBOARD_LAYOUT_HASH = "keyboard_layout_hash";
161162
@jakarta.annotation.Nullable private String keyboardLayoutHash;
162163

164+
public static final String JSON_PROPERTY_KEYBOARD_LAYOUT_NAME = "keyboard_layout_name";
165+
@jakarta.annotation.Nullable private String keyboardLayoutName;
166+
163167
public RawDeviceAttributes() {}
164168

165169
public RawDeviceAttributes fontPreferences(
@@ -930,6 +934,29 @@ public void setKeyboardLayoutHash(@jakarta.annotation.Nullable String keyboardLa
930934
this.keyboardLayoutHash = keyboardLayoutHash;
931935
}
932936

937+
public RawDeviceAttributes keyboardLayoutName(
938+
@jakarta.annotation.Nullable String keyboardLayoutName) {
939+
this.keyboardLayoutName = keyboardLayoutName;
940+
return this;
941+
}
942+
943+
/**
944+
* Name of the user's configured keyboard layout as a BCP 47-style identifier. Only available in Chromium-based browsers, omitted otherwise.
945+
* @return keyboardLayoutName
946+
*/
947+
@jakarta.annotation.Nullable
948+
@JsonProperty(value = JSON_PROPERTY_KEYBOARD_LAYOUT_NAME, required = false)
949+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
950+
public String getKeyboardLayoutName() {
951+
return keyboardLayoutName;
952+
}
953+
954+
@JsonProperty(value = JSON_PROPERTY_KEYBOARD_LAYOUT_NAME, required = false)
955+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
956+
public void setKeyboardLayoutName(@jakarta.annotation.Nullable String keyboardLayoutName) {
957+
this.keyboardLayoutName = keyboardLayoutName;
958+
}
959+
933960
/**
934961
* Return true if this RawDeviceAttributes object is equal to o.
935962
*/
@@ -974,7 +1001,8 @@ public boolean equals(Object o) {
9741001
&& Objects.equals(this.batteryLevel, rawDeviceAttributes.batteryLevel)
9751002
&& Objects.equals(this.batteryCharging, rawDeviceAttributes.batteryCharging)
9761003
&& Objects.equals(this.batteryLowPowerMode, rawDeviceAttributes.batteryLowPowerMode)
977-
&& Objects.equals(this.keyboardLayoutHash, rawDeviceAttributes.keyboardLayoutHash);
1004+
&& Objects.equals(this.keyboardLayoutHash, rawDeviceAttributes.keyboardLayoutHash)
1005+
&& Objects.equals(this.keyboardLayoutName, rawDeviceAttributes.keyboardLayoutName);
9781006
}
9791007

9801008
@Override
@@ -1012,7 +1040,8 @@ public int hashCode() {
10121040
batteryLevel,
10131041
batteryCharging,
10141042
batteryLowPowerMode,
1015-
keyboardLayoutHash);
1043+
keyboardLayoutHash,
1044+
keyboardLayoutName);
10161045
}
10171046

10181047
@Override
@@ -1056,6 +1085,7 @@ public String toString() {
10561085
.append(toIndentedString(batteryLowPowerMode))
10571086
.append("\n");
10581087
sb.append(" keyboardLayoutHash: ").append(toIndentedString(keyboardLayoutHash)).append("\n");
1088+
sb.append(" keyboardLayoutName: ").append(toIndentedString(keyboardLayoutName)).append("\n");
10591089
sb.append("}");
10601090
return sb.toString();
10611091
}

sdk/src/test/resources/mocks/events/get_event_200.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@
296296
"date_time_locale": "en-US",
297297
"audio": 124.04347745512496,
298298
"keyboard_layout_hash": "691e3845c85c202a1514b6fd7ef17065",
299+
"keyboard_layout_name": "en-US",
299300
"battery_charging": true,
300301
"battery_level": 80,
301302
"battery_low_power_mode": true,

sdk/src/test/resources/mocks/events/get_event_200_with_unknown_field.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@
297297
"date_time_locale": "en-US",
298298
"audio": 124.04347745512496,
299299
"keyboard_layout_hash": "691e3845c85c202a1514b6fd7ef17065",
300+
"keyboard_layout_name": "en-US",
300301
"battery_charging": true,
301302
"battery_level": 80,
302303
"battery_low_power_mode": true,

0 commit comments

Comments
 (0)