Skip to content
Merged
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: 1 addition & 1 deletion generated/.regen-branch.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
regen/openapi-main
regen/openapi-e3d906fdaa37dd3d08772a17115a21f9c25e0ace
7 changes: 5 additions & 2 deletions generated/apis/LiveActivitiesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@

import * as runtime from '../runtime';
import type {
BadRequestError,
ForbiddenError,
LiveActivityEndRequest,
LiveActivityEndResponse,
LiveActivityStartRequest,
LiveActivityStartResponse,
LiveActivityUpdateRequest,
LiveActivityUpdateResponse,
NoRecipientsError,
RateLimitError,
} from '../models/index';

Expand Down Expand Up @@ -88,7 +91,7 @@ export class LiveActivitiesApi extends runtime.BaseAPI {
}

/**
* Starts a Live Activity on all registered devices and returns an activity_id.
* Starts a Live Activity on devices matched by API key scope and optional target channels.
* Start a Live Activity
*/
async startLiveActivityRaw(requestParameters: StartLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityStartResponse>> {
Expand Down Expand Up @@ -125,7 +128,7 @@ export class LiveActivitiesApi extends runtime.BaseAPI {
}

/**
* Starts a Live Activity on all registered devices and returns an activity_id.
* Starts a Live Activity on devices matched by API key scope and optional target channels.
* Start a Live Activity
*/
async startLiveActivity(requestParameters: StartLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityStartResponse> {
Expand Down
7 changes: 5 additions & 2 deletions generated/apis/PushNotificationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

import * as runtime from '../runtime';
import type {
BadRequestError,
ForbiddenError,
NoRecipientsError,
PushNotificationRequest,
PushNotificationResponse,
SendPushNotification429Response,
Expand All @@ -30,7 +33,7 @@ export interface SendPushNotificationRequest {
export class PushNotificationsApi extends runtime.BaseAPI {

/**
* Sends a push notification to every paired device in your account.
* Sends a push notification to devices matched by API key scope and optional target channels.
* Send a push notification
*/
async sendPushNotificationRaw(requestParameters: SendPushNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PushNotificationResponse>> {
Expand Down Expand Up @@ -67,7 +70,7 @@ export class PushNotificationsApi extends runtime.BaseAPI {
}

/**
* Sends a push notification to every paired device in your account.
* Sends a push notification to devices matched by API key scope and optional target channels.
* Send a push notification
*/
async sendPushNotification(requestParameters: SendPushNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PushNotificationResponse> {
Expand Down
161 changes: 161 additions & 0 deletions generated/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* @export
* @interface AlertPayload
*/
export interface AlertPayload {
[key: string]: any | any;
/**
*
* @type {string}
* @memberof AlertPayload
*/
title?: string;
/**
*
* @type {string}
* @memberof AlertPayload
*/
body?: string;
}
/**
*
* @export
* @interface BadRequestError
*/
export interface BadRequestError {
[key: string]: any | any;
/**
*
* @type {string}
* @memberof BadRequestError
*/
error: string;
/**
*
* @type {string}
* @memberof BadRequestError
*/
message: string;
}
/**
*
* @export
* @interface ChannelTarget
*/
export interface ChannelTarget {
[key: string]: any | any;
/**
* Channel slugs. When omitted, API key scope determines recipients.
* @type {Array<string>}
* @memberof ChannelTarget
*/
channels: Array<string>;
}
/**
* End payload. Required fields are title and current_step. number_of_steps is optional.
* @export
* @interface ContentStateEnd
*/
export interface ContentStateEnd {
[key: string]: any | any;
/**
*
* @type {string}
Expand Down Expand Up @@ -89,6 +144,7 @@ export type ContentStateEndStepColorEnum = typeof ContentStateEndStepColorEnum[k
* @interface ContentStateStart
*/
export interface ContentStateStart {
[key: string]: any | any;
/**
*
* @type {string}
Expand Down Expand Up @@ -180,6 +236,7 @@ export type ContentStateStartStepColorEnum = typeof ContentStateStartStepColorEn
* @interface ContentStateUpdate
*/
export interface ContentStateUpdate {
[key: string]: any | any;
/**
*
* @type {string}
Expand Down Expand Up @@ -251,12 +308,33 @@ export const ContentStateUpdateStepColorEnum = {
} as const;
export type ContentStateUpdateStepColorEnum = typeof ContentStateUpdateStepColorEnum[keyof typeof ContentStateUpdateStepColorEnum];

/**
*
* @export
* @interface ForbiddenError
*/
export interface ForbiddenError {
[key: string]: any | any;
/**
*
* @type {string}
* @memberof ForbiddenError
*/
error: string;
/**
*
* @type {string}
* @memberof ForbiddenError
*/
message: string;
}
/**
*
* @export
* @interface LiveActivityEndRequest
*/
export interface LiveActivityEndRequest {
[key: string]: any | any;
/**
*
* @type {string}
Expand All @@ -276,6 +354,7 @@ export interface LiveActivityEndRequest {
* @interface LiveActivityEndResponse
*/
export interface LiveActivityEndResponse {
[key: string]: any | any;
/**
*
* @type {boolean}
Expand Down Expand Up @@ -313,6 +392,7 @@ export interface LiveActivityEndResponse {
* @interface LiveActivityLimitError
*/
export interface LiveActivityLimitError {
[key: string]: any | any;
/**
*
* @type {string}
Expand Down Expand Up @@ -344,19 +424,33 @@ export interface LiveActivityLimitError {
* @interface LiveActivityStartRequest
*/
export interface LiveActivityStartRequest {
[key: string]: any | any;
/**
*
* @type {ContentStateStart}
* @memberof LiveActivityStartRequest
*/
content_state: ContentStateStart;
/**
*
* @type {AlertPayload}
* @memberof LiveActivityStartRequest
*/
alert?: AlertPayload;
/**
*
* @type {ChannelTarget}
* @memberof LiveActivityStartRequest
*/
target?: ChannelTarget;
}
/**
*
* @export
* @interface LiveActivityStartResponse
*/
export interface LiveActivityStartResponse {
[key: string]: any | any;
/**
*
* @type {boolean}
Expand All @@ -381,6 +475,12 @@ export interface LiveActivityStartResponse {
* @memberof LiveActivityStartResponse
*/
activity_id: string;
/**
*
* @type {Array<string>}
* @memberof LiveActivityStartResponse
*/
effective_channel_slugs?: Array<string>;
/**
*
* @type {string}
Expand All @@ -394,6 +494,7 @@ export interface LiveActivityStartResponse {
* @interface LiveActivityUpdateRequest
*/
export interface LiveActivityUpdateRequest {
[key: string]: any | any;
/**
*
* @type {string}
Expand All @@ -413,6 +514,7 @@ export interface LiveActivityUpdateRequest {
* @interface LiveActivityUpdateResponse
*/
export interface LiveActivityUpdateResponse {
[key: string]: any | any;
/**
*
* @type {boolean}
Expand Down Expand Up @@ -444,12 +546,39 @@ export interface LiveActivityUpdateResponse {
*/
timestamp: string;
}
/**
*
* @export
* @interface NoRecipientsError
*/
export interface NoRecipientsError {
[key: string]: any | any;
/**
*
* @type {string}
* @memberof NoRecipientsError
*/
error: string;
/**
*
* @type {string}
* @memberof NoRecipientsError
*/
message: string;
/**
*
* @type {Array<string>}
* @memberof NoRecipientsError
*/
effective_channel_slugs?: Array<string>;
}
/**
*
* @export
* @interface PushNotificationRequest
*/
export interface PushNotificationRequest {
[key: string]: any | any;
/**
*
* @type {string}
Expand All @@ -468,13 +597,38 @@ export interface PushNotificationRequest {
* @memberof PushNotificationRequest
*/
subtitle?: string;
/**
*
* @type {{ [key: string]: any; }}
* @memberof PushNotificationRequest
*/
payload?: { [key: string]: any; };
/**
*
* @type {number}
* @memberof PushNotificationRequest
*/
badge?: number;
/**
*
* @type {string}
* @memberof PushNotificationRequest
*/
sound?: string;
/**
*
* @type {ChannelTarget}
* @memberof PushNotificationRequest
*/
target?: ChannelTarget;
}
/**
*
* @export
* @interface PushNotificationResponse
*/
export interface PushNotificationResponse {
[key: string]: any | any;
/**
*
* @type {boolean}
Expand All @@ -493,6 +647,12 @@ export interface PushNotificationResponse {
* @memberof PushNotificationResponse
*/
users_notified?: number;
/**
*
* @type {Array<string>}
* @memberof PushNotificationResponse
*/
effective_channel_slugs?: Array<string>;
/**
*
* @type {string}
Expand All @@ -506,6 +666,7 @@ export interface PushNotificationResponse {
* @interface RateLimitError
*/
export interface RateLimitError {
[key: string]: any | any;
/**
*
* @type {string}
Expand Down