From cc3fa658a843786b36ea140e4d2fe31ec4448f31 Mon Sep 17 00:00:00 2001 From: JoaoLeal92 <59267157+JoaoLeal92@users.noreply.github.com> Date: Tue, 14 Jul 2026 18:42:20 +0000 Subject: [PATCH 1/3] chore: sync OpenAPI schema --- .../smartsignals/RawDeviceAttributes.yaml | 2 ++ .../BatteryCharging.yaml | 2 ++ .../raw_device_attributes/BatteryLevel.yaml | 2 +- schemas/paths/events.yaml | 20 +++++++++---------- 4 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 schemas/components/schemas/smartsignals/raw_device_attributes/BatteryCharging.yaml diff --git a/schemas/components/schemas/smartsignals/RawDeviceAttributes.yaml b/schemas/components/schemas/smartsignals/RawDeviceAttributes.yaml index d89b68e4..d1431f51 100644 --- a/schemas/components/schemas/smartsignals/RawDeviceAttributes.yaml +++ b/schemas/components/schemas/smartsignals/RawDeviceAttributes.yaml @@ -64,5 +64,7 @@ properties: $ref: raw_device_attributes/TimezoneOffset.yaml battery_level: $ref: raw_device_attributes/BatteryLevel.yaml + battery_charging: + $ref: raw_device_attributes/BatteryCharging.yaml battery_low_power_mode: $ref: raw_device_attributes/BatteryLowPowerMode.yaml diff --git a/schemas/components/schemas/smartsignals/raw_device_attributes/BatteryCharging.yaml b/schemas/components/schemas/smartsignals/raw_device_attributes/BatteryCharging.yaml new file mode 100644 index 00000000..b559b725 --- /dev/null +++ b/schemas/components/schemas/smartsignals/raw_device_attributes/BatteryCharging.yaml @@ -0,0 +1,2 @@ +type: boolean +description: When `true`, the device is currently charging. Available only for web devices on Chromium-based browsers. diff --git a/schemas/components/schemas/smartsignals/raw_device_attributes/BatteryLevel.yaml b/schemas/components/schemas/smartsignals/raw_device_attributes/BatteryLevel.yaml index 16426827..db112324 100644 --- a/schemas/components/schemas/smartsignals/raw_device_attributes/BatteryLevel.yaml +++ b/schemas/components/schemas/smartsignals/raw_device_attributes/BatteryLevel.yaml @@ -4,4 +4,4 @@ minimum: 0 maximum: 100 examples: - 75 -description: Battery charge level as a percentage (0-100). Available only for Android and iOS devices. +description: Battery charge level as a percentage (0-100). Available for Android, iOS, and web devices. On web, only available in Chromium-based browsers. diff --git a/schemas/paths/events.yaml b/schemas/paths/events.yaml index 58d19445..79a149cc 100644 --- a/schemas/paths/events.yaml +++ b/schemas/paths/events.yaml @@ -227,34 +227,34 @@ get: in: query schema: oneOf: - - type: integer - format: int64 - examples: - - 1767225600000 - type: string format: date-time examples: - '2026-01-01T00:00:00Z' + - type: integer + format: int64 + examples: + - 1767225600000 examples: - '2026-01-01T00:00:00Z' description: | - Include events that happened after this point (with timestamp greater than or equal the provided `start` Unix milliseconds value or RFC3339 timestamp). Defaults to 7 days ago. Setting `start` does not change `end`'s default of `now` — adjust it separately if needed. + Include events that happened after the provided `start` date formatted as an RFC3339 timestamp. For backward compatibility, a Unix milliseconds timestamp is also accepted. Defaults to 7 days ago. Setting `start` does not change the default `end` date of `now` — adjust it separately if needed. - name: end in: query schema: oneOf: - - type: integer - format: int64 - examples: - - 1769903999000 - type: string format: date-time examples: - '2026-01-31T23:59:59Z' + - type: integer + format: int64 + examples: + - 1769903999000 examples: - '2026-01-31T23:59:59Z' description: | - Include events that happened before this point (with timestamp less than or equal the provided `end` Unix milliseconds value or RFC3339 timestamp). Defaults to now. Setting `end` does not change `start`'s default of `7 days ago` — adjust it separately if needed. + Include events that happened before the provided `end` date formatted as an RFC3339 timestamp. For backward compatibility, a Unix milliseconds timestamp is also accepted. Defaults to now. Setting `end` does not change the default `start` date of `7 days ago` — adjust it separately if needed. - name: reverse in: query schema: From 02b378eb5989bc78c3cc46fa81fd73d0ea407403 Mon Sep 17 00:00:00 2001 From: "fingerprint-dx-team-actions-runner[bot]" Date: Tue, 14 Jul 2026 18:44:25 +0000 Subject: [PATCH 2/3] chore: add changeset(s) [skip ci-ai-prep] --- .changeset/events-search-start-end-format.md | 5 +++++ .changeset/raw-device-attributes-battery-charging.md | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/events-search-start-end-format.md create mode 100644 .changeset/raw-device-attributes-battery-charging.md diff --git a/.changeset/events-search-start-end-format.md b/.changeset/events-search-start-end-format.md new file mode 100644 index 00000000..d484f7f5 --- /dev/null +++ b/.changeset/events-search-start-end-format.md @@ -0,0 +1,5 @@ +--- +'fingerprint-pro-server-api-openapi': patch +--- + +**events-search**: Prefer RFC3339 format for `start` and `end` query parameters; Unix milliseconds accepted for backward compatibility diff --git a/.changeset/raw-device-attributes-battery-charging.md b/.changeset/raw-device-attributes-battery-charging.md new file mode 100644 index 00000000..9335df0f --- /dev/null +++ b/.changeset/raw-device-attributes-battery-charging.md @@ -0,0 +1,5 @@ +--- +'fingerprint-pro-server-api-openapi': minor +--- + +**events**: Add `battery_charging` field to `RawDeviceAttributes` From cbf28c291e980fca31a1dd49db5ca66bd3144c25 Mon Sep 17 00:00:00 2001 From: Juraj Uhlar Date: Thu, 16 Jul 2026 10:13:15 +0100 Subject: [PATCH 3/3] chore: remove descritpion changeset --- .changeset/events-search-start-end-format.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .changeset/events-search-start-end-format.md diff --git a/.changeset/events-search-start-end-format.md b/.changeset/events-search-start-end-format.md deleted file mode 100644 index d484f7f5..00000000 --- a/.changeset/events-search-start-end-format.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'fingerprint-pro-server-api-openapi': patch ---- - -**events-search**: Prefer RFC3339 format for `start` and `end` query parameters; Unix milliseconds accepted for backward compatibility