activitysmith 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -0
  3. package/dist/generated/apis/LiveActivitiesApi.d.ts +57 -0
  4. package/dist/generated/apis/LiveActivitiesApi.js +129 -0
  5. package/dist/generated/apis/NotificationsApi.d.ts +31 -0
  6. package/dist/generated/apis/NotificationsApi.js +59 -0
  7. package/dist/generated/apis/index.d.ts +2 -0
  8. package/dist/generated/apis/index.js +20 -0
  9. package/dist/generated/index.d.ts +3 -0
  10. package/dist/generated/index.js +21 -0
  11. package/dist/generated/models/ContentStateEnd.d.ts +97 -0
  12. package/dist/generated/models/ContentStateEnd.js +89 -0
  13. package/dist/generated/models/ContentStateStart.d.ts +104 -0
  14. package/dist/generated/models/ContentStateStart.js +99 -0
  15. package/dist/generated/models/ContentStateUpdate.d.ts +91 -0
  16. package/dist/generated/models/ContentStateUpdate.js +87 -0
  17. package/dist/generated/models/LiveActivityEndRequest.d.ts +38 -0
  18. package/dist/generated/models/LiveActivityEndRequest.js +51 -0
  19. package/dist/generated/models/LiveActivityEndResponse.d.ts +55 -0
  20. package/dist/generated/models/LiveActivityEndResponse.js +58 -0
  21. package/dist/generated/models/LiveActivityLimitError.d.ts +49 -0
  22. package/dist/generated/models/LiveActivityLimitError.js +58 -0
  23. package/dist/generated/models/LiveActivityStartRequest.d.ts +32 -0
  24. package/dist/generated/models/LiveActivityStartRequest.js +47 -0
  25. package/dist/generated/models/LiveActivityStartResponse.d.ts +55 -0
  26. package/dist/generated/models/LiveActivityStartResponse.js +58 -0
  27. package/dist/generated/models/LiveActivityUpdateRequest.d.ts +38 -0
  28. package/dist/generated/models/LiveActivityUpdateRequest.js +51 -0
  29. package/dist/generated/models/LiveActivityUpdateResponse.d.ts +55 -0
  30. package/dist/generated/models/LiveActivityUpdateResponse.js +58 -0
  31. package/dist/generated/models/PushNotificationRequest.d.ts +43 -0
  32. package/dist/generated/models/PushNotificationRequest.js +50 -0
  33. package/dist/generated/models/PushNotificationResponse.d.ts +49 -0
  34. package/dist/generated/models/PushNotificationResponse.js +54 -0
  35. package/dist/generated/models/RateLimitError.d.ts +37 -0
  36. package/dist/generated/models/RateLimitError.js +50 -0
  37. package/dist/generated/models/SendPushNotification429Response.d.ts +22 -0
  38. package/dist/generated/models/SendPushNotification429Response.js +46 -0
  39. package/dist/generated/models/index.d.ts +14 -0
  40. package/dist/generated/models/index.js +32 -0
  41. package/dist/generated/runtime.d.ts +181 -0
  42. package/dist/generated/runtime.js +329 -0
  43. package/package.json +40 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ActivitySmith
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # activitysmith
2
+
3
+ Official ActivitySmith Node.js SDK (OpenAPI generated).
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm i activitysmith
9
+ ```
10
+
11
+ ## Usage (ESM)
12
+
13
+ ```ts
14
+ import { Configuration, LiveActivitiesApi, NotificationsApi } from "activitysmith";
15
+
16
+ const config = new Configuration({
17
+ accessToken: process.env.ACTIVITYSMITH_API_KEY,
18
+ });
19
+
20
+ const live = new LiveActivitiesApi(config);
21
+ await live.startLiveActivity({
22
+ liveActivityStartRequest: {
23
+ // See LiveActivityStartRequest type for fields
24
+ },
25
+ });
26
+
27
+ const notifications = new NotificationsApi(config);
28
+ await notifications.sendPushNotification({
29
+ pushNotificationRequest: {
30
+ // See PushNotificationRequest type for fields
31
+ },
32
+ });
33
+ ```
34
+
35
+ ## Configuration
36
+
37
+ - Default base URL: `https://activitysmith.com/api`
38
+ - Override with `new Configuration({ basePath: "..." })`
39
+
40
+ ## Types
41
+
42
+ All request/response types are exported from the package.
@@ -0,0 +1,57 @@
1
+ /**
2
+ * ActivitySmith API
3
+ * Send push notifications and Live Activities to your own devices via a single API key.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { LiveActivityEndRequest, LiveActivityEndResponse, LiveActivityStartRequest, LiveActivityStartResponse, LiveActivityUpdateRequest, LiveActivityUpdateResponse } from '../models/index';
14
+ export interface EndLiveActivityRequest {
15
+ liveActivityEndRequest: LiveActivityEndRequest;
16
+ }
17
+ export interface StartLiveActivityRequest {
18
+ liveActivityStartRequest: LiveActivityStartRequest;
19
+ }
20
+ export interface UpdateLiveActivityRequest {
21
+ liveActivityUpdateRequest: LiveActivityUpdateRequest;
22
+ }
23
+ /**
24
+ *
25
+ */
26
+ export declare class LiveActivitiesApi extends runtime.BaseAPI {
27
+ /**
28
+ * Ends a Live Activity and archives its lifecycle.
29
+ * End a Live Activity
30
+ */
31
+ endLiveActivityRaw(requestParameters: EndLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityEndResponse>>;
32
+ /**
33
+ * Ends a Live Activity and archives its lifecycle.
34
+ * End a Live Activity
35
+ */
36
+ endLiveActivity(requestParameters: EndLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityEndResponse>;
37
+ /**
38
+ * Starts a Live Activity on all registered devices and returns an activity_id.
39
+ * Start a Live Activity
40
+ */
41
+ startLiveActivityRaw(requestParameters: StartLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityStartResponse>>;
42
+ /**
43
+ * Starts a Live Activity on all registered devices and returns an activity_id.
44
+ * Start a Live Activity
45
+ */
46
+ startLiveActivity(requestParameters: StartLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityStartResponse>;
47
+ /**
48
+ * Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued.
49
+ * Update a Live Activity
50
+ */
51
+ updateLiveActivityRaw(requestParameters: UpdateLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityUpdateResponse>>;
52
+ /**
53
+ * Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued.
54
+ * Update a Live Activity
55
+ */
56
+ updateLiveActivity(requestParameters: UpdateLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityUpdateResponse>;
57
+ }
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ActivitySmith API
6
+ * Send push notifications and Live Activities to your own devices via a single API key.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.LiveActivitiesApi = void 0;
17
+ const runtime = require("../runtime");
18
+ const index_1 = require("../models/index");
19
+ /**
20
+ *
21
+ */
22
+ class LiveActivitiesApi extends runtime.BaseAPI {
23
+ /**
24
+ * Ends a Live Activity and archives its lifecycle.
25
+ * End a Live Activity
26
+ */
27
+ async endLiveActivityRaw(requestParameters, initOverrides) {
28
+ if (requestParameters['liveActivityEndRequest'] == null) {
29
+ throw new runtime.RequiredError('liveActivityEndRequest', 'Required parameter "liveActivityEndRequest" was null or undefined when calling endLiveActivity().');
30
+ }
31
+ const queryParameters = {};
32
+ const headerParameters = {};
33
+ headerParameters['Content-Type'] = 'application/json';
34
+ if (this.configuration && this.configuration.accessToken) {
35
+ const token = this.configuration.accessToken;
36
+ const tokenString = await token("bearerAuth", []);
37
+ if (tokenString) {
38
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
39
+ }
40
+ }
41
+ const response = await this.request({
42
+ path: `/live-activity/end`,
43
+ method: 'POST',
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ body: (0, index_1.LiveActivityEndRequestToJSON)(requestParameters['liveActivityEndRequest']),
47
+ }, initOverrides);
48
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LiveActivityEndResponseFromJSON)(jsonValue));
49
+ }
50
+ /**
51
+ * Ends a Live Activity and archives its lifecycle.
52
+ * End a Live Activity
53
+ */
54
+ async endLiveActivity(requestParameters, initOverrides) {
55
+ const response = await this.endLiveActivityRaw(requestParameters, initOverrides);
56
+ return await response.value();
57
+ }
58
+ /**
59
+ * Starts a Live Activity on all registered devices and returns an activity_id.
60
+ * Start a Live Activity
61
+ */
62
+ async startLiveActivityRaw(requestParameters, initOverrides) {
63
+ if (requestParameters['liveActivityStartRequest'] == null) {
64
+ throw new runtime.RequiredError('liveActivityStartRequest', 'Required parameter "liveActivityStartRequest" was null or undefined when calling startLiveActivity().');
65
+ }
66
+ const queryParameters = {};
67
+ const headerParameters = {};
68
+ headerParameters['Content-Type'] = 'application/json';
69
+ if (this.configuration && this.configuration.accessToken) {
70
+ const token = this.configuration.accessToken;
71
+ const tokenString = await token("bearerAuth", []);
72
+ if (tokenString) {
73
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
74
+ }
75
+ }
76
+ const response = await this.request({
77
+ path: `/live-activity/start`,
78
+ method: 'POST',
79
+ headers: headerParameters,
80
+ query: queryParameters,
81
+ body: (0, index_1.LiveActivityStartRequestToJSON)(requestParameters['liveActivityStartRequest']),
82
+ }, initOverrides);
83
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LiveActivityStartResponseFromJSON)(jsonValue));
84
+ }
85
+ /**
86
+ * Starts a Live Activity on all registered devices and returns an activity_id.
87
+ * Start a Live Activity
88
+ */
89
+ async startLiveActivity(requestParameters, initOverrides) {
90
+ const response = await this.startLiveActivityRaw(requestParameters, initOverrides);
91
+ return await response.value();
92
+ }
93
+ /**
94
+ * Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued.
95
+ * Update a Live Activity
96
+ */
97
+ async updateLiveActivityRaw(requestParameters, initOverrides) {
98
+ if (requestParameters['liveActivityUpdateRequest'] == null) {
99
+ throw new runtime.RequiredError('liveActivityUpdateRequest', 'Required parameter "liveActivityUpdateRequest" was null or undefined when calling updateLiveActivity().');
100
+ }
101
+ const queryParameters = {};
102
+ const headerParameters = {};
103
+ headerParameters['Content-Type'] = 'application/json';
104
+ if (this.configuration && this.configuration.accessToken) {
105
+ const token = this.configuration.accessToken;
106
+ const tokenString = await token("bearerAuth", []);
107
+ if (tokenString) {
108
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
109
+ }
110
+ }
111
+ const response = await this.request({
112
+ path: `/live-activity/update`,
113
+ method: 'POST',
114
+ headers: headerParameters,
115
+ query: queryParameters,
116
+ body: (0, index_1.LiveActivityUpdateRequestToJSON)(requestParameters['liveActivityUpdateRequest']),
117
+ }, initOverrides);
118
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LiveActivityUpdateResponseFromJSON)(jsonValue));
119
+ }
120
+ /**
121
+ * Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued.
122
+ * Update a Live Activity
123
+ */
124
+ async updateLiveActivity(requestParameters, initOverrides) {
125
+ const response = await this.updateLiveActivityRaw(requestParameters, initOverrides);
126
+ return await response.value();
127
+ }
128
+ }
129
+ exports.LiveActivitiesApi = LiveActivitiesApi;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * ActivitySmith API
3
+ * Send push notifications and Live Activities to your own devices via a single API key.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { PushNotificationRequest, PushNotificationResponse } from '../models/index';
14
+ export interface SendPushNotificationRequest {
15
+ pushNotificationRequest: PushNotificationRequest;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class NotificationsApi extends runtime.BaseAPI {
21
+ /**
22
+ * Sends a push notification to every paired device in your account.
23
+ * Send a push notification
24
+ */
25
+ sendPushNotificationRaw(requestParameters: SendPushNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PushNotificationResponse>>;
26
+ /**
27
+ * Sends a push notification to every paired device in your account.
28
+ * Send a push notification
29
+ */
30
+ sendPushNotification(requestParameters: SendPushNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PushNotificationResponse>;
31
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ActivitySmith API
6
+ * Send push notifications and Live Activities to your own devices via a single API key.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.NotificationsApi = void 0;
17
+ const runtime = require("../runtime");
18
+ const index_1 = require("../models/index");
19
+ /**
20
+ *
21
+ */
22
+ class NotificationsApi extends runtime.BaseAPI {
23
+ /**
24
+ * Sends a push notification to every paired device in your account.
25
+ * Send a push notification
26
+ */
27
+ async sendPushNotificationRaw(requestParameters, initOverrides) {
28
+ if (requestParameters['pushNotificationRequest'] == null) {
29
+ throw new runtime.RequiredError('pushNotificationRequest', 'Required parameter "pushNotificationRequest" was null or undefined when calling sendPushNotification().');
30
+ }
31
+ const queryParameters = {};
32
+ const headerParameters = {};
33
+ headerParameters['Content-Type'] = 'application/json';
34
+ if (this.configuration && this.configuration.accessToken) {
35
+ const token = this.configuration.accessToken;
36
+ const tokenString = await token("bearerAuth", []);
37
+ if (tokenString) {
38
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
39
+ }
40
+ }
41
+ const response = await this.request({
42
+ path: `/push-notification`,
43
+ method: 'POST',
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ body: (0, index_1.PushNotificationRequestToJSON)(requestParameters['pushNotificationRequest']),
47
+ }, initOverrides);
48
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PushNotificationResponseFromJSON)(jsonValue));
49
+ }
50
+ /**
51
+ * Sends a push notification to every paired device in your account.
52
+ * Send a push notification
53
+ */
54
+ async sendPushNotification(requestParameters, initOverrides) {
55
+ const response = await this.sendPushNotificationRaw(requestParameters, initOverrides);
56
+ return await response.value();
57
+ }
58
+ }
59
+ exports.NotificationsApi = NotificationsApi;
@@ -0,0 +1,2 @@
1
+ export * from './LiveActivitiesApi';
2
+ export * from './NotificationsApi';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./LiveActivitiesApi"), exports);
20
+ __exportStar(require("./NotificationsApi"), exports);
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./runtime"), exports);
20
+ __exportStar(require("./apis/index"), exports);
21
+ __exportStar(require("./models/index"), exports);
@@ -0,0 +1,97 @@
1
+ /**
2
+ * ActivitySmith API
3
+ * Send push notifications and Live Activities to your own devices via a single API key.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * End payload. Required fields are title and current_step. number_of_steps is optional.
14
+ * @export
15
+ * @interface ContentStateEnd
16
+ */
17
+ export interface ContentStateEnd {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ContentStateEnd
22
+ */
23
+ title: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ContentStateEnd
28
+ */
29
+ subtitle?: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ContentStateEnd
34
+ */
35
+ numberOfSteps?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ContentStateEnd
40
+ */
41
+ currentStep: number;
42
+ /**
43
+ * Optional. Accent color for the Live Activity. Defaults to blue.
44
+ * @type {string}
45
+ * @memberof ContentStateEnd
46
+ */
47
+ color?: ContentStateEndColorEnum;
48
+ /**
49
+ * Optional. Overrides color for the current step.
50
+ * @type {string}
51
+ * @memberof ContentStateEnd
52
+ */
53
+ stepColor?: ContentStateEndStepColorEnum;
54
+ /**
55
+ * Optional. Minutes before the ended Live Activity is dismissed. Default 3. Set 0 for immediate dismissal. iOS will dismiss ended Live Activities after ~4 hours max.
56
+ * @type {number}
57
+ * @memberof ContentStateEnd
58
+ */
59
+ autoDismissMinutes?: number;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const ContentStateEndColorEnum: {
65
+ readonly Lime: "lime";
66
+ readonly Green: "green";
67
+ readonly Cyan: "cyan";
68
+ readonly Blue: "blue";
69
+ readonly Purple: "purple";
70
+ readonly Magenta: "magenta";
71
+ readonly Red: "red";
72
+ readonly Orange: "orange";
73
+ readonly Yellow: "yellow";
74
+ };
75
+ export type ContentStateEndColorEnum = typeof ContentStateEndColorEnum[keyof typeof ContentStateEndColorEnum];
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const ContentStateEndStepColorEnum: {
80
+ readonly Lime: "lime";
81
+ readonly Green: "green";
82
+ readonly Cyan: "cyan";
83
+ readonly Blue: "blue";
84
+ readonly Purple: "purple";
85
+ readonly Magenta: "magenta";
86
+ readonly Red: "red";
87
+ readonly Orange: "orange";
88
+ readonly Yellow: "yellow";
89
+ };
90
+ export type ContentStateEndStepColorEnum = typeof ContentStateEndStepColorEnum[keyof typeof ContentStateEndStepColorEnum];
91
+ /**
92
+ * Check if a given object implements the ContentStateEnd interface.
93
+ */
94
+ export declare function instanceOfContentStateEnd(value: object): value is ContentStateEnd;
95
+ export declare function ContentStateEndFromJSON(json: any): ContentStateEnd;
96
+ export declare function ContentStateEndFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentStateEnd;
97
+ export declare function ContentStateEndToJSON(value?: ContentStateEnd | null): any;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ActivitySmith API
6
+ * Send push notifications and Live Activities to your own devices via a single API key.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ContentStateEndStepColorEnum = exports.ContentStateEndColorEnum = void 0;
17
+ exports.instanceOfContentStateEnd = instanceOfContentStateEnd;
18
+ exports.ContentStateEndFromJSON = ContentStateEndFromJSON;
19
+ exports.ContentStateEndFromJSONTyped = ContentStateEndFromJSONTyped;
20
+ exports.ContentStateEndToJSON = ContentStateEndToJSON;
21
+ /**
22
+ * @export
23
+ */
24
+ exports.ContentStateEndColorEnum = {
25
+ Lime: 'lime',
26
+ Green: 'green',
27
+ Cyan: 'cyan',
28
+ Blue: 'blue',
29
+ Purple: 'purple',
30
+ Magenta: 'magenta',
31
+ Red: 'red',
32
+ Orange: 'orange',
33
+ Yellow: 'yellow'
34
+ };
35
+ /**
36
+ * @export
37
+ */
38
+ exports.ContentStateEndStepColorEnum = {
39
+ Lime: 'lime',
40
+ Green: 'green',
41
+ Cyan: 'cyan',
42
+ Blue: 'blue',
43
+ Purple: 'purple',
44
+ Magenta: 'magenta',
45
+ Red: 'red',
46
+ Orange: 'orange',
47
+ Yellow: 'yellow'
48
+ };
49
+ /**
50
+ * Check if a given object implements the ContentStateEnd interface.
51
+ */
52
+ function instanceOfContentStateEnd(value) {
53
+ if (!('title' in value) || value['title'] === undefined)
54
+ return false;
55
+ if (!('currentStep' in value) || value['currentStep'] === undefined)
56
+ return false;
57
+ return true;
58
+ }
59
+ function ContentStateEndFromJSON(json) {
60
+ return ContentStateEndFromJSONTyped(json, false);
61
+ }
62
+ function ContentStateEndFromJSONTyped(json, ignoreDiscriminator) {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+ 'title': json['title'],
68
+ 'subtitle': json['subtitle'] == null ? undefined : json['subtitle'],
69
+ 'numberOfSteps': json['number_of_steps'] == null ? undefined : json['number_of_steps'],
70
+ 'currentStep': json['current_step'],
71
+ 'color': json['color'] == null ? undefined : json['color'],
72
+ 'stepColor': json['step_color'] == null ? undefined : json['step_color'],
73
+ 'autoDismissMinutes': json['auto_dismiss_minutes'] == null ? undefined : json['auto_dismiss_minutes'],
74
+ };
75
+ }
76
+ function ContentStateEndToJSON(value) {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+ 'title': value['title'],
82
+ 'subtitle': value['subtitle'],
83
+ 'number_of_steps': value['numberOfSteps'],
84
+ 'current_step': value['currentStep'],
85
+ 'color': value['color'],
86
+ 'step_color': value['stepColor'],
87
+ 'auto_dismiss_minutes': value['autoDismissMinutes'],
88
+ };
89
+ }