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
21 changes: 0 additions & 21 deletions generated/.openapi-generator/FILES

This file was deleted.

1 change: 0 additions & 1 deletion generated/.openapi-generator/VERSION

This file was deleted.

1 change: 1 addition & 0 deletions generated/.regen-branch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
regen/openapi-main
34 changes: 9 additions & 25 deletions generated/apis/LiveActivitiesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,6 @@ import type {
LiveActivityUpdateResponse,
RateLimitError,
} from '../models/index';
import {
LiveActivityEndRequestFromJSON,
LiveActivityEndRequestToJSON,
LiveActivityEndResponseFromJSON,
LiveActivityEndResponseToJSON,
LiveActivityStartRequestFromJSON,
LiveActivityStartRequestToJSON,
LiveActivityStartResponseFromJSON,
LiveActivityStartResponseToJSON,
LiveActivityUpdateRequestFromJSON,
LiveActivityUpdateRequestToJSON,
LiveActivityUpdateResponseFromJSON,
LiveActivityUpdateResponseToJSON,
RateLimitErrorFromJSON,
RateLimitErrorToJSON,
} from '../models/index';

export interface EndLiveActivityRequest {
liveActivityEndRequest: LiveActivityEndRequest;
Expand Down Expand Up @@ -77,7 +61,7 @@ export class LiveActivitiesApi extends runtime.BaseAPI {

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("bearerAuth", []);
const tokenString = await token("apiKeyAuth", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
Expand All @@ -88,10 +72,10 @@ export class LiveActivitiesApi extends runtime.BaseAPI {
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: LiveActivityEndRequestToJSON(requestParameters['liveActivityEndRequest']),
body: requestParameters['liveActivityEndRequest'],
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => LiveActivityEndResponseFromJSON(jsonValue));
return new runtime.JSONApiResponse(response);
}

/**
Expand Down Expand Up @@ -123,7 +107,7 @@ export class LiveActivitiesApi extends runtime.BaseAPI {

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("bearerAuth", []);
const tokenString = await token("apiKeyAuth", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
Expand All @@ -134,10 +118,10 @@ export class LiveActivitiesApi extends runtime.BaseAPI {
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: LiveActivityStartRequestToJSON(requestParameters['liveActivityStartRequest']),
body: requestParameters['liveActivityStartRequest'],
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => LiveActivityStartResponseFromJSON(jsonValue));
return new runtime.JSONApiResponse(response);
}

/**
Expand Down Expand Up @@ -169,7 +153,7 @@ export class LiveActivitiesApi extends runtime.BaseAPI {

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("bearerAuth", []);
const tokenString = await token("apiKeyAuth", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
Expand All @@ -180,10 +164,10 @@ export class LiveActivitiesApi extends runtime.BaseAPI {
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: LiveActivityUpdateRequestToJSON(requestParameters['liveActivityUpdateRequest']),
body: requestParameters['liveActivityUpdateRequest'],
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => LiveActivityUpdateResponseFromJSON(jsonValue));
return new runtime.JSONApiResponse(response);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ import type {
PushNotificationResponse,
SendPushNotification429Response,
} from '../models/index';
import {
PushNotificationRequestFromJSON,
PushNotificationRequestToJSON,
PushNotificationResponseFromJSON,
PushNotificationResponseToJSON,
SendPushNotification429ResponseFromJSON,
SendPushNotification429ResponseToJSON,
} from '../models/index';

export interface SendPushNotificationRequest {
pushNotificationRequest: PushNotificationRequest;
Expand All @@ -35,7 +27,7 @@ export interface SendPushNotificationRequest {
/**
*
*/
export class NotificationsApi extends runtime.BaseAPI {
export class PushNotificationsApi extends runtime.BaseAPI {

/**
* Sends a push notification to every paired device in your account.
Expand All @@ -57,7 +49,7 @@ export class NotificationsApi extends runtime.BaseAPI {

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("bearerAuth", []);
const tokenString = await token("apiKeyAuth", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
Expand All @@ -68,10 +60,10 @@ export class NotificationsApi extends runtime.BaseAPI {
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: PushNotificationRequestToJSON(requestParameters['pushNotificationRequest']),
body: requestParameters['pushNotificationRequest'],
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => PushNotificationResponseFromJSON(jsonValue));
return new runtime.JSONApiResponse(response);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion generated/apis/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* tslint:disable */
/* eslint-disable */
export * from './LiveActivitiesApi';
export * from './NotificationsApi';
export * from './PushNotificationsApi';
144 changes: 0 additions & 144 deletions generated/models/ContentStateEnd.ts

This file was deleted.

Loading