pingram 1.0.38-alpha.1632 → 1.0.39-alpha.1633

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.
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetLogsResponse, LogQueryPostBody, LogsGetResponse, LogsQueryResponse, LogsQueryResultResponse, LogsRetentionResponse, LogsTailResponse, MessageResponse } from '../models/index';
13
+ import type { GetLogsResponse, LogQueryPostBody, LogsDeliveryStatusResponse, LogsGetResponse, LogsQueryResponse, LogsQueryResultResponse, LogsRetentionResponse, LogsTailResponse, MessageResponse } from '../models/index';
14
+ export interface GetDeliveryStatusRequest {
15
+ trackingIds: string;
16
+ }
14
17
  export interface GetLogsRequest {
15
18
  limit?: number;
16
19
  cursor?: string;
@@ -34,6 +37,19 @@ export interface StartLogsQueryRequest {
34
37
  * @interface LogsApiInterface
35
38
  */
36
39
  export interface LogsApiInterface {
40
+ /**
41
+ *
42
+ * @summary Look up email and SMS delivery status for up to 25 tracking IDs. Each entry is the tracking id, channel (EMAIL or SMS), status, and the time that status was recorded. The result does not include recipients, phone numbers, user ids, request bodies, IP addresses, account ids, or user-agent data. Unknown tracking ids are omitted. Other channels are not included.
43
+ * @param {string} trackingIds Comma-separated tracking IDs (URL encoded, max 25)
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ * @memberof LogsApiInterface
47
+ */
48
+ getDeliveryStatusRaw(requestParameters: GetDeliveryStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LogsDeliveryStatusResponse>>;
49
+ /**
50
+ * Look up email and SMS delivery status for up to 25 tracking IDs. Each entry is the tracking id, channel (EMAIL or SMS), status, and the time that status was recorded. The result does not include recipients, phone numbers, user ids, request bodies, IP addresses, account ids, or user-agent data. Unknown tracking ids are omitted. Other channels are not included.
51
+ */
52
+ getDeliveryStatus(trackingIds: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LogsDeliveryStatusResponse>;
37
53
  /**
38
54
  *
39
55
  * @summary Get log retention period in days for the account
@@ -62,7 +78,7 @@ export interface LogsApiInterface {
62
78
  getLogs(limit?: number, cursor?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLogsResponse>;
63
79
  /**
64
80
  *
65
- * @summary Get logs by tracking IDs (comma-separated, max 25 IDs). Use after sending email or SMS to look up delivery status.
81
+ * @summary Get logs by tracking IDs (comma-separated, max 25 IDs). Returns full log objects with personally identifiable information (recipients, user ids, phone numbers, and request details). For a simple delivery check, use Get Delivery Status.
66
82
  * @param {string} trackingIds Comma-separated tracking IDs (URL encoded)
67
83
  * @param {*} [options] Override http request option.
68
84
  * @throws {RequiredError}
@@ -70,7 +86,7 @@ export interface LogsApiInterface {
70
86
  */
71
87
  getLogsByTrackingIdsRaw(requestParameters: GetLogsByTrackingIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LogsGetResponse>>;
72
88
  /**
73
- * Get logs by tracking IDs (comma-separated, max 25 IDs). Use after sending email or SMS to look up delivery status.
89
+ * Get logs by tracking IDs (comma-separated, max 25 IDs). Returns full log objects with personally identifiable information (recipients, user ids, phone numbers, and request details). For a simple delivery check, use Get Delivery Status.
74
90
  */
75
91
  getLogsByTrackingIds(trackingIds: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LogsGetResponse>;
76
92
  /**
@@ -129,6 +145,14 @@ export interface LogsApiInterface {
129
145
  *
130
146
  */
131
147
  export declare class LogsApi extends runtime.BaseAPI implements LogsApiInterface {
148
+ /**
149
+ * Look up email and SMS delivery status for up to 25 tracking IDs. Each entry is the tracking id, channel (EMAIL or SMS), status, and the time that status was recorded. The result does not include recipients, phone numbers, user ids, request bodies, IP addresses, account ids, or user-agent data. Unknown tracking ids are omitted. Other channels are not included.
150
+ */
151
+ getDeliveryStatusRaw(requestParameters: GetDeliveryStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LogsDeliveryStatusResponse>>;
152
+ /**
153
+ * Look up email and SMS delivery status for up to 25 tracking IDs. Each entry is the tracking id, channel (EMAIL or SMS), status, and the time that status was recorded. The result does not include recipients, phone numbers, user ids, request bodies, IP addresses, account ids, or user-agent data. Unknown tracking ids are omitted. Other channels are not included.
154
+ */
155
+ getDeliveryStatus(trackingIds: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LogsDeliveryStatusResponse>;
132
156
  /**
133
157
  * Get log retention period in days for the account
134
158
  */
@@ -146,11 +170,11 @@ export declare class LogsApi extends runtime.BaseAPI implements LogsApiInterface
146
170
  */
147
171
  getLogs(limit?: number, cursor?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLogsResponse>;
148
172
  /**
149
- * Get logs by tracking IDs (comma-separated, max 25 IDs). Use after sending email or SMS to look up delivery status.
173
+ * Get logs by tracking IDs (comma-separated, max 25 IDs). Returns full log objects with personally identifiable information (recipients, user ids, phone numbers, and request details). For a simple delivery check, use Get Delivery Status.
150
174
  */
151
175
  getLogsByTrackingIdsRaw(requestParameters: GetLogsByTrackingIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LogsGetResponse>>;
152
176
  /**
153
- * Get logs by tracking IDs (comma-separated, max 25 IDs). Use after sending email or SMS to look up delivery status.
177
+ * Get logs by tracking IDs (comma-separated, max 25 IDs). Returns full log objects with personally identifiable information (recipients, user ids, phone numbers, and request details). For a simple delivery check, use Get Delivery Status.
154
178
  */
155
179
  getLogsByTrackingIds(trackingIds: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LogsGetResponse>;
156
180
  /**
@@ -53,6 +53,60 @@ const index_1 = require("../models/index");
53
53
  *
54
54
  */
55
55
  class LogsApi extends runtime.BaseAPI {
56
+ /**
57
+ * Look up email and SMS delivery status for up to 25 tracking IDs. Each entry is the tracking id, channel (EMAIL or SMS), status, and the time that status was recorded. The result does not include recipients, phone numbers, user ids, request bodies, IP addresses, account ids, or user-agent data. Unknown tracking ids are omitted. Other channels are not included.
58
+ */
59
+ async getDeliveryStatusRaw(requestParameters, initOverrides) {
60
+ if (requestParameters['trackingIds'] == null) {
61
+ throw new runtime.RequiredError('trackingIds', 'Required parameter "trackingIds" was null or undefined when calling getDeliveryStatus().');
62
+ }
63
+ const queryParameters = {};
64
+ const headerParameters = {};
65
+ if (this.configuration &&
66
+ (this.configuration.username !== undefined ||
67
+ this.configuration.password !== undefined)) {
68
+ headerParameters['Authorization'] =
69
+ 'Basic ' +
70
+ btoa(this.configuration.username + ':' + this.configuration.password);
71
+ }
72
+ if (this.configuration &&
73
+ (this.configuration.username !== undefined ||
74
+ this.configuration.password !== undefined)) {
75
+ headerParameters['Authorization'] =
76
+ 'Basic ' +
77
+ btoa(this.configuration.username + ':' + this.configuration.password);
78
+ }
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ const token = this.configuration.accessToken;
81
+ const tokenString = await token('apiKey', []);
82
+ if (tokenString) {
83
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
84
+ }
85
+ }
86
+ if (this.configuration &&
87
+ (this.configuration.username !== undefined ||
88
+ this.configuration.password !== undefined)) {
89
+ headerParameters['Authorization'] =
90
+ 'Basic ' +
91
+ btoa(this.configuration.username + ':' + this.configuration.password);
92
+ }
93
+ let urlPath = `/logs/status/{trackingIds}`;
94
+ urlPath = urlPath.replace(`{${'trackingIds'}}`, encodeURIComponent(String(requestParameters['trackingIds'])));
95
+ const response = await this.request({
96
+ path: urlPath,
97
+ method: 'GET',
98
+ headers: headerParameters,
99
+ query: queryParameters
100
+ }, initOverrides);
101
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LogsDeliveryStatusResponseFromJSON)(jsonValue));
102
+ }
103
+ /**
104
+ * Look up email and SMS delivery status for up to 25 tracking IDs. Each entry is the tracking id, channel (EMAIL or SMS), status, and the time that status was recorded. The result does not include recipients, phone numbers, user ids, request bodies, IP addresses, account ids, or user-agent data. Unknown tracking ids are omitted. Other channels are not included.
105
+ */
106
+ async getDeliveryStatus(trackingIds, initOverrides) {
107
+ const response = await this.getDeliveryStatusRaw({ trackingIds: trackingIds }, initOverrides);
108
+ return await response.value();
109
+ }
56
110
  /**
57
111
  * Get log retention period in days for the account
58
112
  */
@@ -160,7 +214,7 @@ class LogsApi extends runtime.BaseAPI {
160
214
  return await response.value();
161
215
  }
162
216
  /**
163
- * Get logs by tracking IDs (comma-separated, max 25 IDs). Use after sending email or SMS to look up delivery status.
217
+ * Get logs by tracking IDs (comma-separated, max 25 IDs). Returns full log objects with personally identifiable information (recipients, user ids, phone numbers, and request details). For a simple delivery check, use Get Delivery Status.
164
218
  */
165
219
  async getLogsByTrackingIdsRaw(requestParameters, initOverrides) {
166
220
  if (requestParameters['trackingIds'] == null) {
@@ -207,7 +261,7 @@ class LogsApi extends runtime.BaseAPI {
207
261
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LogsGetResponseFromJSON)(jsonValue));
208
262
  }
209
263
  /**
210
- * Get logs by tracking IDs (comma-separated, max 25 IDs). Use after sending email or SMS to look up delivery status.
264
+ * Get logs by tracking IDs (comma-separated, max 25 IDs). Returns full log objects with personally identifiable information (recipients, user ids, phone numbers, and request details). For a simple delivery check, use Get Delivery Status.
211
265
  */
212
266
  async getLogsByTrackingIds(trackingIds, initOverrides) {
213
267
  const response = await this.getLogsByTrackingIdsRaw({ trackingIds: trackingIds }, initOverrides);
@@ -30,7 +30,7 @@ export type { CreateAPIKeyRequest, RevokeAPIKeyRequest, KeysApiInterface } from
30
30
  export { KeysApi } from './KeysApi';
31
31
  export type { CreateRequest as LibraryApi_CreateRequest, ListRequest as LibraryApi_ListRequest, LibraryApiInterface } from './LibraryApi';
32
32
  export { LibraryApi } from './LibraryApi';
33
- export type { GetLogsRequest, GetLogsByTrackingIdsRequest, GetLogsQueryResultRequest, RetryInboundRequest, StartLogsQueryRequest, LogsApiInterface } from './LogsApi';
33
+ export type { GetDeliveryStatusRequest, GetLogsRequest, GetLogsByTrackingIdsRequest, GetLogsQueryResultRequest, RetryInboundRequest, StartLogsQueryRequest, LogsApiInterface } from './LogsApi';
34
34
  export { LogsApi } from './LogsApi';
35
35
  export type { GetAutoJoinRequest, InviteMemberRequest, ListMembersRequest, RemoveMemberRequest, SetAutoJoinRequest, UpdateRequest as MembersApi_UpdateRequest, MembersApiInterface } from './MembersApi';
36
36
  export { MembersApi } from './MembersApi';
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Pingram
3
+ * Internal API for notification delivery and management
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 type { LogsDeliveryStatusResponseStatusesInner } from './LogsDeliveryStatusResponseStatusesInner';
13
+ /**
14
+ * Response type for GET /logs/status/{trackingIds}. Unknown tracking ids are omitted. A log that is still ingesting is omitted until it can be read.
15
+ * @export
16
+ * @interface LogsDeliveryStatusResponse
17
+ */
18
+ export interface LogsDeliveryStatusResponse {
19
+ /**
20
+ * Delivery outcomes for the requested tracking ids.
21
+ * @type {Array<LogsDeliveryStatusResponseStatusesInner>}
22
+ * @memberof LogsDeliveryStatusResponse
23
+ */
24
+ statuses: Array<LogsDeliveryStatusResponseStatusesInner>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the LogsDeliveryStatusResponse interface.
28
+ */
29
+ export declare function instanceOfLogsDeliveryStatusResponse(value: object): value is LogsDeliveryStatusResponse;
30
+ export declare function LogsDeliveryStatusResponseFromJSON(json: any): LogsDeliveryStatusResponse;
31
+ export declare function LogsDeliveryStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogsDeliveryStatusResponse;
32
+ export declare function LogsDeliveryStatusResponseToJSON(json: any): LogsDeliveryStatusResponse;
33
+ export declare function LogsDeliveryStatusResponseToJSONTyped(value?: LogsDeliveryStatusResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pingram
6
+ * Internal API for notification delivery and management
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.instanceOfLogsDeliveryStatusResponse = instanceOfLogsDeliveryStatusResponse;
17
+ exports.LogsDeliveryStatusResponseFromJSON = LogsDeliveryStatusResponseFromJSON;
18
+ exports.LogsDeliveryStatusResponseFromJSONTyped = LogsDeliveryStatusResponseFromJSONTyped;
19
+ exports.LogsDeliveryStatusResponseToJSON = LogsDeliveryStatusResponseToJSON;
20
+ exports.LogsDeliveryStatusResponseToJSONTyped = LogsDeliveryStatusResponseToJSONTyped;
21
+ const LogsDeliveryStatusResponseStatusesInner_1 = require("./LogsDeliveryStatusResponseStatusesInner");
22
+ /**
23
+ * Check if a given object implements the LogsDeliveryStatusResponse interface.
24
+ */
25
+ function instanceOfLogsDeliveryStatusResponse(value) {
26
+ if (!('statuses' in value) || value['statuses'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function LogsDeliveryStatusResponseFromJSON(json) {
31
+ return LogsDeliveryStatusResponseFromJSONTyped(json, false);
32
+ }
33
+ function LogsDeliveryStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ statuses: json['statuses'].map(LogsDeliveryStatusResponseStatusesInner_1.LogsDeliveryStatusResponseStatusesInnerFromJSON)
39
+ };
40
+ }
41
+ function LogsDeliveryStatusResponseToJSON(json) {
42
+ return LogsDeliveryStatusResponseToJSONTyped(json, false);
43
+ }
44
+ function LogsDeliveryStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ statuses: (value['statuses'] ?? []).map(LogsDeliveryStatusResponseStatusesInner_1.LogsDeliveryStatusResponseStatusesInnerToJSON)
50
+ };
51
+ }
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Pingram
3
+ * Internal API for notification delivery and management
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
+ * One delivery outcome. Fields are limited to the tracking id, channel, status, and the time that status was recorded. `channel` is omitted when the outcome is for the whole request, before a channel was chosen.
14
+ * @export
15
+ * @interface LogsDeliveryStatusResponseStatusesInner
16
+ */
17
+ export interface LogsDeliveryStatusResponseStatusesInner {
18
+ /**
19
+ * Opaque id returned when the notification was accepted.
20
+ * @type {string}
21
+ * @memberof LogsDeliveryStatusResponseStatusesInner
22
+ */
23
+ trackingId: string;
24
+ /**
25
+ * Channel named on a delivery-status row. Email and SMS only. Coarse labels: no address or provider id.
26
+ * @type {string}
27
+ * @memberof LogsDeliveryStatusResponseStatusesInner
28
+ */
29
+ channel?: LogsDeliveryStatusResponseStatusesInnerChannelEnum;
30
+ /**
31
+ * Delivery outcome for one request or one channel. These are the same states shown in the dashboard status column.
32
+ * @type {string}
33
+ * @memberof LogsDeliveryStatusResponseStatusesInner
34
+ */
35
+ status: LogsDeliveryStatusResponseStatusesInnerStatusEnum;
36
+ /**
37
+ * ISO 8601 time this outcome was recorded.
38
+ * @type {string}
39
+ * @memberof LogsDeliveryStatusResponseStatusesInner
40
+ */
41
+ updatedAt: string;
42
+ }
43
+ /**
44
+ * @export
45
+ * @enum {string}
46
+ */
47
+ export declare enum LogsDeliveryStatusResponseStatusesInnerChannelEnum {
48
+ EMAIL = "EMAIL",
49
+ SMS = "SMS"
50
+ }
51
+ /**
52
+ * @export
53
+ * @enum {string}
54
+ */
55
+ export declare enum LogsDeliveryStatusResponseStatusesInnerStatusEnum {
56
+ PROCESSING = "PROCESSING",
57
+ FAILED = "FAILED",
58
+ IGNORED = "IGNORED",
59
+ SCHEDULED = "SCHEDULED",
60
+ UNSCHEDULED = "UNSCHEDULED",
61
+ BATCHED = "BATCHED",
62
+ SENT = "SENT",
63
+ DELIVERED = "DELIVERED",
64
+ BOUNCED = "BOUNCED",
65
+ COMPLAINT = "COMPLAINT",
66
+ THROTTLED = "THROTTLED",
67
+ DEDUPLICATED = "DEDUPLICATED",
68
+ OPENED = "OPENED",
69
+ CLICKED = "CLICKED",
70
+ INBOUND = "INBOUND",
71
+ AUTO_REPLY = "AUTO_REPLY"
72
+ }
73
+ /**
74
+ * Check if a given object implements the LogsDeliveryStatusResponseStatusesInner interface.
75
+ */
76
+ export declare function instanceOfLogsDeliveryStatusResponseStatusesInner(value: object): value is LogsDeliveryStatusResponseStatusesInner;
77
+ export declare function LogsDeliveryStatusResponseStatusesInnerFromJSON(json: any): LogsDeliveryStatusResponseStatusesInner;
78
+ export declare function LogsDeliveryStatusResponseStatusesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogsDeliveryStatusResponseStatusesInner;
79
+ export declare function LogsDeliveryStatusResponseStatusesInnerToJSON(json: any): LogsDeliveryStatusResponseStatusesInner;
80
+ export declare function LogsDeliveryStatusResponseStatusesInnerToJSONTyped(value?: LogsDeliveryStatusResponseStatusesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pingram
6
+ * Internal API for notification delivery and management
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.LogsDeliveryStatusResponseStatusesInnerStatusEnum = exports.LogsDeliveryStatusResponseStatusesInnerChannelEnum = void 0;
17
+ exports.instanceOfLogsDeliveryStatusResponseStatusesInner = instanceOfLogsDeliveryStatusResponseStatusesInner;
18
+ exports.LogsDeliveryStatusResponseStatusesInnerFromJSON = LogsDeliveryStatusResponseStatusesInnerFromJSON;
19
+ exports.LogsDeliveryStatusResponseStatusesInnerFromJSONTyped = LogsDeliveryStatusResponseStatusesInnerFromJSONTyped;
20
+ exports.LogsDeliveryStatusResponseStatusesInnerToJSON = LogsDeliveryStatusResponseStatusesInnerToJSON;
21
+ exports.LogsDeliveryStatusResponseStatusesInnerToJSONTyped = LogsDeliveryStatusResponseStatusesInnerToJSONTyped;
22
+ /**
23
+ * @export
24
+ * @enum {string}
25
+ */
26
+ var LogsDeliveryStatusResponseStatusesInnerChannelEnum;
27
+ (function (LogsDeliveryStatusResponseStatusesInnerChannelEnum) {
28
+ LogsDeliveryStatusResponseStatusesInnerChannelEnum["EMAIL"] = "EMAIL";
29
+ LogsDeliveryStatusResponseStatusesInnerChannelEnum["SMS"] = "SMS";
30
+ })(LogsDeliveryStatusResponseStatusesInnerChannelEnum || (exports.LogsDeliveryStatusResponseStatusesInnerChannelEnum = LogsDeliveryStatusResponseStatusesInnerChannelEnum = {}));
31
+ /**
32
+ * @export
33
+ * @enum {string}
34
+ */
35
+ var LogsDeliveryStatusResponseStatusesInnerStatusEnum;
36
+ (function (LogsDeliveryStatusResponseStatusesInnerStatusEnum) {
37
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["PROCESSING"] = "PROCESSING";
38
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["FAILED"] = "FAILED";
39
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["IGNORED"] = "IGNORED";
40
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["SCHEDULED"] = "SCHEDULED";
41
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["UNSCHEDULED"] = "UNSCHEDULED";
42
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["BATCHED"] = "BATCHED";
43
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["SENT"] = "SENT";
44
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["DELIVERED"] = "DELIVERED";
45
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["BOUNCED"] = "BOUNCED";
46
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["COMPLAINT"] = "COMPLAINT";
47
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["THROTTLED"] = "THROTTLED";
48
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["DEDUPLICATED"] = "DEDUPLICATED";
49
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["OPENED"] = "OPENED";
50
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["CLICKED"] = "CLICKED";
51
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["INBOUND"] = "INBOUND";
52
+ LogsDeliveryStatusResponseStatusesInnerStatusEnum["AUTO_REPLY"] = "AUTO_REPLY";
53
+ })(LogsDeliveryStatusResponseStatusesInnerStatusEnum || (exports.LogsDeliveryStatusResponseStatusesInnerStatusEnum = LogsDeliveryStatusResponseStatusesInnerStatusEnum = {}));
54
+ /**
55
+ * Check if a given object implements the LogsDeliveryStatusResponseStatusesInner interface.
56
+ */
57
+ function instanceOfLogsDeliveryStatusResponseStatusesInner(value) {
58
+ if (!('trackingId' in value) || value['trackingId'] === undefined)
59
+ return false;
60
+ if (!('status' in value) || value['status'] === undefined)
61
+ return false;
62
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
63
+ return false;
64
+ return true;
65
+ }
66
+ function LogsDeliveryStatusResponseStatusesInnerFromJSON(json) {
67
+ return LogsDeliveryStatusResponseStatusesInnerFromJSONTyped(json, false);
68
+ }
69
+ function LogsDeliveryStatusResponseStatusesInnerFromJSONTyped(json, ignoreDiscriminator) {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+ trackingId: json['trackingId'],
75
+ channel: json['channel'] == null ? undefined : json['channel'],
76
+ status: json['status'],
77
+ updatedAt: json['updatedAt']
78
+ };
79
+ }
80
+ function LogsDeliveryStatusResponseStatusesInnerToJSON(json) {
81
+ return LogsDeliveryStatusResponseStatusesInnerToJSONTyped(json, false);
82
+ }
83
+ function LogsDeliveryStatusResponseStatusesInnerToJSONTyped(value, ignoreDiscriminator = false) {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+ return {
88
+ trackingId: value['trackingId'],
89
+ channel: value['channel'],
90
+ status: value['status'],
91
+ updatedAt: value['updatedAt']
92
+ };
93
+ }
@@ -183,6 +183,8 @@ export * from './ListVoiceCallsResponse';
183
183
  export * from './ListVoiceCallsResponseCallsInner';
184
184
  export * from './LogQueryPostBody';
185
185
  export * from './LogsBulkRequest';
186
+ export * from './LogsDeliveryStatusResponse';
187
+ export * from './LogsDeliveryStatusResponseStatusesInner';
186
188
  export * from './LogsGetResponse';
187
189
  export * from './LogsGetResponseLogsInner';
188
190
  export * from './LogsQueryResponse';
@@ -201,6 +201,8 @@ __exportStar(require("./ListVoiceCallsResponse"), exports);
201
201
  __exportStar(require("./ListVoiceCallsResponseCallsInner"), exports);
202
202
  __exportStar(require("./LogQueryPostBody"), exports);
203
203
  __exportStar(require("./LogsBulkRequest"), exports);
204
+ __exportStar(require("./LogsDeliveryStatusResponse"), exports);
205
+ __exportStar(require("./LogsDeliveryStatusResponseStatusesInner"), exports);
204
206
  __exportStar(require("./LogsGetResponse"), exports);
205
207
  __exportStar(require("./LogsGetResponseLogsInner"), exports);
206
208
  __exportStar(require("./LogsQueryResponse"), exports);
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.Pingram = void 0;
9
9
  const src_1 = require("../generated/src");
10
10
  // SDK version for User-Agent header (injected at codegen time)
11
- const SDK_VERSION = '1.0.38';
11
+ const SDK_VERSION = '1.0.39';
12
12
  const USER_AGENT = `pingram-node/${SDK_VERSION}`;
13
13
  const src_2 = require("../generated/src");
14
14
  const src_3 = require("../generated/src");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.38-alpha.1632",
3
+ "version": "1.0.39-alpha.1633",
4
4
  "description": "Official Node.js SDK for Pingram - Send notifications via Email, SMS, Push, In-App, and more",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",