Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4010,9 +4010,11 @@ const updateLiveActivityRequest: Onesignal.UpdateLiveActivityRequest = {
vi: "vi_example",
},
sound: "sound_example",
ios_sound: "ios_sound_example",
stale_date: 1,
dismissal_date: 1,
priority: 1,
ios_relevance_score: 3.14,
};

try {
Expand Down
2 changes: 1 addition & 1 deletion dist/models/ObjectSerializer.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/models/UpdateLiveActivityRequest.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ export declare class UpdateLiveActivityRequest {
'contents'?: LanguageStringMap;
'headings'?: LanguageStringMap;
'sound'?: string;
'ios_sound'?: string;
'stale_date'?: number;
'dismissal_date'?: number;
'priority'?: number;
'ios_relevance_score'?: number;
static readonly discriminator: string | undefined;
static readonly attributeTypeMap: Array<{
name: string;
Expand Down
12 changes: 12 additions & 0 deletions dist/models/UpdateLiveActivityRequest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/models/UpdateLiveActivityRequest.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ import { TransferSubscriptionRequestBody } from './TransferSubscriptionRequestBo
import { UpdateApiKeyRequest , UpdateApiKeyRequestIpAllowlistModeEnum } from './UpdateApiKeyRequest';
import { UpdateJourneyNodeRequest , UpdateJourneyNodeRequestRelativeToEnum } from './UpdateJourneyNodeRequest';
import { UpdateJourneyRequest , UpdateJourneyRequestStateEnum } from './UpdateJourneyRequest';
import { UpdateLiveActivityRequest , UpdateLiveActivityRequestEventEnum } from './UpdateLiveActivityRequest';
import { UpdateLiveActivityRequest , UpdateLiveActivityRequestEventEnum } from './UpdateLiveActivityRequest';
import { UpdateLiveActivitySuccessResponse } from './UpdateLiveActivitySuccessResponse';
import { UpdateSegmentRequest } from './UpdateSegmentRequest';
import { UpdateSegmentSuccessResponse } from './UpdateSegmentSuccessResponse';
Expand Down
2 changes: 1 addition & 1 deletion models/StartLiveActivityRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class StartLiveActivityRequest {
*/
'priority'?: number;
/**
* iOS 15+. A score to indicate how a notification should be displayed when grouped. Use a float between 0-1.
* A value between 0 and 1. When more than one Live Activity is active for your app, the one with the highest relevance score shows in the Dynamic Island. If the scores are equal, the system shows the Live Activity that started first. The score also sets the order of Live Activities on the Lock Screen. Only available on iOS 16.2 and later.
*/
'ios_relevance_score'?: number;
/**
Expand Down
24 changes: 22 additions & 2 deletions models/UpdateLiveActivityRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ export class UpdateLiveActivityRequest {
'contents'?: LanguageStringMap;
'headings'?: LanguageStringMap;
/**
* Sound file that is included in your app to play instead of the default device notification sound. Omit to disable vibration and sound for the notification.
* Deprecated. The API ignores this field. Use `ios_sound`.
*/
'sound'?: string;
/**
* Sound file that is included in your app to play instead of the default device notification sound. Omit to disable vibration and sound for the notification. Requires `headings` on the same request: ActivityKit ignores an update whose alert has no title, which silently drops the sound. Supersedes the deprecated `sound` field.
*/
'ios_sound'?: string;
/**
* Accepts Unix timestamp in seconds. When time reaches the configured stale date, the system considers the Live Activity out of date, and the ActivityState of the Live Activity changes to ActivityState.stale.
*/
'stale_date'?: number;
Expand All @@ -34,9 +38,13 @@ export class UpdateLiveActivityRequest {
*/
'dismissal_date'?: number;
/**
* Delivery priority through the the push provider (APNs). Pass 10 for higher priority notifications, or 5 for lower priority notifications. Lower priority notifications are sent based on the power considerations of the end user\'s device. If not set, defaults to 10. Some providers (APNs) allow for a limited budget of high priority notifications per hour, and if that budget is exceeded, the provider may throttle notification delivery.
* Delivery priority through the push provider (APNs). Pass 10 for higher priority notifications, or 5 for lower priority notifications. Lower priority notifications are sent based on the power considerations of the end user\'s device. If not set, defaults to 10. Some providers (APNs) allow for a limited budget of high priority notifications per hour, and if that budget is exceeded, the provider may throttle notification delivery.
*/
'priority'?: number;
/**
* A value between 0 and 1. When more than one Live Activity is active for your app, the one with the highest relevance score shows in the Dynamic Island. If the scores are equal, the system shows the Live Activity that started first. The score also sets the order of Live Activities on the Lock Screen. Only available on iOS 16.2 and later.
*/
'ios_relevance_score'?: number;

static readonly discriminator: string | undefined = undefined;

Expand Down Expand Up @@ -77,6 +85,12 @@ export class UpdateLiveActivityRequest {
"type": "string",
"format": ""
},
{
"name": "ios_sound",
"baseName": "ios_sound",
"type": "string",
"format": ""
},
{
"name": "stale_date",
"baseName": "stale_date",
Expand All @@ -94,6 +108,12 @@ export class UpdateLiveActivityRequest {
"baseName": "priority",
"type": "number",
"format": ""
},
{
"name": "ios_relevance_score",
"baseName": "ios_relevance_score",
"type": "number",
"format": ""
} ];

static getAttributeTypeMap() {
Expand Down