@zyphr-dev/node-sdk 0.1.62 → 0.1.64

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyphr-dev/node-sdk",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
4
4
  "description": "Official Zyphr SDK for Node.js, React, and React Native",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -66,7 +66,7 @@ export interface WaaSEventsApiInterface {
66
66
  batchPublishWaaSEvents(appId: string, waaSBatchPublishRequest: WaaSBatchPublishRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchPublishWaaSEvents201Response>;
67
67
 
68
68
  /**
69
- * Publish an event to all subscribed endpoints for the specified tenant. Zyphr creates delivery records and queues them for delivery.
69
+ * Publish an event to all subscribed endpoints for the specified tenant. Zyphr creates delivery records and queues them for delivery. The event `data` may be at most 256 KB of JSON.
70
70
  * @summary Publish an event
71
71
  * @param {string} appId
72
72
  * @param {WaaSPublishEventRequest} waaSPublishEventRequest
@@ -77,7 +77,7 @@ export interface WaaSEventsApiInterface {
77
77
  publishWaaSEventRaw(requestParameters: WaaSEventsApiPublishWaaSEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishWaaSEvent201Response>>;
78
78
 
79
79
  /**
80
- * Publish an event to all subscribed endpoints for the specified tenant. Zyphr creates delivery records and queues them for delivery.
80
+ * Publish an event to all subscribed endpoints for the specified tenant. Zyphr creates delivery records and queues them for delivery. The event `data` may be at most 256 KB of JSON.
81
81
  * Publish an event
82
82
  */
83
83
  publishWaaSEvent(appId: string, waaSPublishEventRequest: WaaSPublishEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishWaaSEvent201Response>;
@@ -146,7 +146,7 @@ export class WaaSEventsApi extends runtime.BaseAPI implements WaaSEventsApiInter
146
146
  }
147
147
 
148
148
  /**
149
- * Publish an event to all subscribed endpoints for the specified tenant. Zyphr creates delivery records and queues them for delivery.
149
+ * Publish an event to all subscribed endpoints for the specified tenant. Zyphr creates delivery records and queues them for delivery. The event `data` may be at most 256 KB of JSON.
150
150
  * Publish an event
151
151
  */
152
152
  async publishWaaSEventRaw(requestParameters: WaaSEventsApiPublishWaaSEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublishWaaSEvent201Response>> {
@@ -193,7 +193,7 @@ export class WaaSEventsApi extends runtime.BaseAPI implements WaaSEventsApiInter
193
193
  }
194
194
 
195
195
  /**
196
- * Publish an event to all subscribed endpoints for the specified tenant. Zyphr creates delivery records and queues them for delivery.
196
+ * Publish an event to all subscribed endpoints for the specified tenant. Zyphr creates delivery records and queues them for delivery. The event `data` may be at most 256 KB of JSON.
197
197
  * Publish an event
198
198
  */
199
199
  async publishWaaSEvent(appId: string, waaSPublishEventRequest: WaaSPublishEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublishWaaSEvent201Response> {
@@ -26,11 +26,11 @@ export interface PushMessage {
26
26
  */
27
27
  id?: string;
28
28
  /**
29
- *
29
+ * The target device. Null once the device has been removed because its push token expired.
30
30
  * @type {string}
31
31
  * @memberof PushMessage
32
32
  */
33
- deviceId?: string;
33
+ deviceId?: string | null;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -41,11 +41,11 @@ export interface PushMessageDetail {
41
41
  */
42
42
  id?: string;
43
43
  /**
44
- *
44
+ * The target device. Null once the device has been removed because its push token expired.
45
45
  * @type {string}
46
46
  * @memberof PushMessageDetail
47
47
  */
48
- deviceId?: string;
48
+ deviceId?: string | null;
49
49
  /**
50
50
  *
51
51
  * @type {string}