pingram 1.0.15 → 1.0.16-alpha.1220

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,10 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountAddressesResponse, AddressResponse, CreateAddressRequest, UpdateAddressRequest } from '../models/index';
13
+ import type { AccountAddressesResponse, AddressResponse, CreateAddressRequest, SuccessResponse, UpdateAddressRequest } from '../models/index';
14
14
  export interface CreateAddressOperationRequest {
15
15
  createAddressRequest: CreateAddressRequest;
16
16
  }
17
+ export interface DeleteAddressRequest {
18
+ fullAddress: string;
19
+ }
17
20
  export interface UpdateAddressOperationRequest {
18
21
  updateAddressRequest: UpdateAddressRequest;
19
22
  }
@@ -37,6 +40,19 @@ export interface AddressesApiInterface {
37
40
  * Create a new email inbox. Omit `domain` for a built-in `@mail.pingram.io` address; set `domain` and `displayName` for a custom address on a verified domain.
38
41
  */
39
42
  createAddress(createAddressRequest: CreateAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddressResponse>;
43
+ /**
44
+ *
45
+ * @summary Delete a custom inbound address. Builtin addresses cannot be deleted.
46
+ * @param {string} fullAddress Full address to delete (e.g. hello@example.com)
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ * @memberof AddressesApiInterface
50
+ */
51
+ deleteAddressRaw(requestParameters: DeleteAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
52
+ /**
53
+ * Delete a custom inbound address. Builtin addresses cannot be deleted.
54
+ */
55
+ deleteAddress(fullAddress: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
40
56
  /**
41
57
  *
42
58
  * @summary List email inboxes (addresses) configured for receiving. Custom addresses must use a verified domain.
@@ -75,6 +91,14 @@ export declare class AddressesApi extends runtime.BaseAPI implements AddressesAp
75
91
  * Create a new email inbox. Omit `domain` for a built-in `@mail.pingram.io` address; set `domain` and `displayName` for a custom address on a verified domain.
76
92
  */
77
93
  createAddress(createAddressRequest: CreateAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AddressResponse>;
94
+ /**
95
+ * Delete a custom inbound address. Builtin addresses cannot be deleted.
96
+ */
97
+ deleteAddressRaw(requestParameters: DeleteAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
98
+ /**
99
+ * Delete a custom inbound address. Builtin addresses cannot be deleted.
100
+ */
101
+ deleteAddress(fullAddress: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
78
102
  /**
79
103
  * List email inboxes (addresses) configured for receiving. Custom addresses must use a verified domain.
80
104
  */
@@ -108,6 +108,60 @@ class AddressesApi extends runtime.BaseAPI {
108
108
  const response = await this.createAddressRaw({ createAddressRequest: createAddressRequest }, initOverrides);
109
109
  return await response.value();
110
110
  }
111
+ /**
112
+ * Delete a custom inbound address. Builtin addresses cannot be deleted.
113
+ */
114
+ async deleteAddressRaw(requestParameters, initOverrides) {
115
+ if (requestParameters['fullAddress'] == null) {
116
+ throw new runtime.RequiredError('fullAddress', 'Required parameter "fullAddress" was null or undefined when calling deleteAddress().');
117
+ }
118
+ const queryParameters = {};
119
+ const headerParameters = {};
120
+ if (this.configuration &&
121
+ (this.configuration.username !== undefined ||
122
+ this.configuration.password !== undefined)) {
123
+ headerParameters['Authorization'] =
124
+ 'Basic ' +
125
+ btoa(this.configuration.username + ':' + this.configuration.password);
126
+ }
127
+ if (this.configuration &&
128
+ (this.configuration.username !== undefined ||
129
+ this.configuration.password !== undefined)) {
130
+ headerParameters['Authorization'] =
131
+ 'Basic ' +
132
+ btoa(this.configuration.username + ':' + this.configuration.password);
133
+ }
134
+ if (this.configuration && this.configuration.accessToken) {
135
+ const token = this.configuration.accessToken;
136
+ const tokenString = await token('apiKey', []);
137
+ if (tokenString) {
138
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
139
+ }
140
+ }
141
+ if (this.configuration &&
142
+ (this.configuration.username !== undefined ||
143
+ this.configuration.password !== undefined)) {
144
+ headerParameters['Authorization'] =
145
+ 'Basic ' +
146
+ btoa(this.configuration.username + ':' + this.configuration.password);
147
+ }
148
+ let urlPath = `/addresses/{fullAddress}`;
149
+ urlPath = urlPath.replace(`{${'fullAddress'}}`, encodeURIComponent(String(requestParameters['fullAddress'])));
150
+ const response = await this.request({
151
+ path: urlPath,
152
+ method: 'DELETE',
153
+ headers: headerParameters,
154
+ query: queryParameters
155
+ }, initOverrides);
156
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SuccessResponseFromJSON)(jsonValue));
157
+ }
158
+ /**
159
+ * Delete a custom inbound address. Builtin addresses cannot be deleted.
160
+ */
161
+ async deleteAddress(fullAddress, initOverrides) {
162
+ const response = await this.deleteAddressRaw({ fullAddress: fullAddress }, initOverrides);
163
+ return await response.value();
164
+ }
111
165
  /**
112
166
  * List email inboxes (addresses) configured for receiving. Custom addresses must use a verified domain.
113
167
  */
@@ -17,6 +17,9 @@ export interface AddDomainRequest {
17
17
  export interface DeleteDomainRequest {
18
18
  sender: string;
19
19
  }
20
+ export interface StartDomainVerificationRequest {
21
+ sender: string;
22
+ }
20
23
  /**
21
24
  * DomainsApi - interface
22
25
  *
@@ -62,6 +65,19 @@ export interface DomainsApiInterface {
62
65
  * List sender domains configured for the account (for outbound email).
63
66
  */
64
67
  listDomains(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GetSendersResponseInner>>;
68
+ /**
69
+ *
70
+ * @summary Start SES domain verification (DNS readiness is checked client-side via checkDomainDns)
71
+ * @param {string} sender Sender domain (URL encoded)
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ * @memberof DomainsApiInterface
75
+ */
76
+ startDomainVerificationRaw(requestParameters: StartDomainVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GetSendersResponseInner>>>;
77
+ /**
78
+ * Start SES domain verification (DNS readiness is checked client-side via checkDomainDns)
79
+ */
80
+ startDomainVerification(sender: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GetSendersResponseInner>>;
65
81
  }
66
82
  /**
67
83
  *
@@ -91,4 +107,12 @@ export declare class DomainsApi extends runtime.BaseAPI implements DomainsApiInt
91
107
  * List sender domains configured for the account (for outbound email).
92
108
  */
93
109
  listDomains(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GetSendersResponseInner>>;
110
+ /**
111
+ * Start SES domain verification (DNS readiness is checked client-side via checkDomainDns)
112
+ */
113
+ startDomainVerificationRaw(requestParameters: StartDomainVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GetSendersResponseInner>>>;
114
+ /**
115
+ * Start SES domain verification (DNS readiness is checked client-side via checkDomainDns)
116
+ */
117
+ startDomainVerification(sender: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GetSendersResponseInner>>;
94
118
  }
@@ -212,5 +212,59 @@ class DomainsApi extends runtime.BaseAPI {
212
212
  const response = await this.listDomainsRaw(initOverrides);
213
213
  return await response.value();
214
214
  }
215
+ /**
216
+ * Start SES domain verification (DNS readiness is checked client-side via checkDomainDns)
217
+ */
218
+ async startDomainVerificationRaw(requestParameters, initOverrides) {
219
+ if (requestParameters['sender'] == null) {
220
+ throw new runtime.RequiredError('sender', 'Required parameter "sender" was null or undefined when calling startDomainVerification().');
221
+ }
222
+ const queryParameters = {};
223
+ const headerParameters = {};
224
+ if (this.configuration &&
225
+ (this.configuration.username !== undefined ||
226
+ this.configuration.password !== undefined)) {
227
+ headerParameters['Authorization'] =
228
+ 'Basic ' +
229
+ btoa(this.configuration.username + ':' + this.configuration.password);
230
+ }
231
+ if (this.configuration &&
232
+ (this.configuration.username !== undefined ||
233
+ this.configuration.password !== undefined)) {
234
+ headerParameters['Authorization'] =
235
+ 'Basic ' +
236
+ btoa(this.configuration.username + ':' + this.configuration.password);
237
+ }
238
+ if (this.configuration && this.configuration.accessToken) {
239
+ const token = this.configuration.accessToken;
240
+ const tokenString = await token('apiKey', []);
241
+ if (tokenString) {
242
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
243
+ }
244
+ }
245
+ if (this.configuration &&
246
+ (this.configuration.username !== undefined ||
247
+ this.configuration.password !== undefined)) {
248
+ headerParameters['Authorization'] =
249
+ 'Basic ' +
250
+ btoa(this.configuration.username + ':' + this.configuration.password);
251
+ }
252
+ let urlPath = `/domains/{sender}/start-verification`;
253
+ urlPath = urlPath.replace(`{${'sender'}}`, encodeURIComponent(String(requestParameters['sender'])));
254
+ const response = await this.request({
255
+ path: urlPath,
256
+ method: 'POST',
257
+ headers: headerParameters,
258
+ query: queryParameters
259
+ }, initOverrides);
260
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GetSendersResponseInnerFromJSON));
261
+ }
262
+ /**
263
+ * Start SES domain verification (DNS readiness is checked client-side via checkDomainDns)
264
+ */
265
+ async startDomainVerification(sender, initOverrides) {
266
+ const response = await this.startDomainVerificationRaw({ sender: sender }, initOverrides);
267
+ return await response.value();
268
+ }
215
269
  }
216
270
  exports.DomainsApi = DomainsApi;
@@ -4,13 +4,13 @@
4
4
  */
5
5
  export type { ConfigureSupabaseSMTPRequest, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, UpdateAccountRequest, AccountApiInterface } from './AccountApi';
6
6
  export { AccountApi } from './AccountApi';
7
- export type { CreateAddressOperationRequest, UpdateAddressOperationRequest, AddressesApiInterface } from './AddressesApi';
7
+ export type { CreateAddressOperationRequest, DeleteAddressRequest, UpdateAddressOperationRequest, AddressesApiInterface } from './AddressesApi';
8
8
  export { AddressesApi } from './AddressesApi';
9
9
  export type { CreateComponentRequest, DeleteComponentRequest, GetComponentRequest, ListComponentsRequest, PatchComponentRequest, ComponentsApiInterface } from './ComponentsApi';
10
10
  export { ComponentsApi } from './ComponentsApi';
11
11
  export type { SendRequest, DefaultApiInterface } from './DefaultApi';
12
12
  export { DefaultApi } from './DefaultApi';
13
- export type { AddDomainRequest, DeleteDomainRequest, DomainsApiInterface } from './DomainsApi';
13
+ export type { AddDomainRequest, DeleteDomainRequest, StartDomainVerificationRequest, DomainsApiInterface } from './DomainsApi';
14
14
  export { DomainsApi } from './DomainsApi';
15
15
  export type { GenerateEditorTokenRequest, EditorApiInterface } from './EditorApi';
16
16
  export { EditorApi } from './EditorApi';
@@ -0,0 +1,51 @@
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 { DomainDnsCheckRecordsInner } from './DomainDnsCheckRecordsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DomainDnsCheck
17
+ */
18
+ export interface DomainDnsCheck {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof DomainDnsCheck
23
+ */
24
+ sender: string;
25
+ /**
26
+ *
27
+ * @type {Array<DomainDnsCheckRecordsInner>}
28
+ * @memberof DomainDnsCheck
29
+ */
30
+ records: Array<DomainDnsCheckRecordsInner>;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof DomainDnsCheck
35
+ */
36
+ canStartVerification: boolean;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof DomainDnsCheck
41
+ */
42
+ checkedAt: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the DomainDnsCheck interface.
46
+ */
47
+ export declare function instanceOfDomainDnsCheck(value: object): value is DomainDnsCheck;
48
+ export declare function DomainDnsCheckFromJSON(json: any): DomainDnsCheck;
49
+ export declare function DomainDnsCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainDnsCheck;
50
+ export declare function DomainDnsCheckToJSON(json: any): DomainDnsCheck;
51
+ export declare function DomainDnsCheckToJSONTyped(value?: DomainDnsCheck | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfDomainDnsCheck = instanceOfDomainDnsCheck;
17
+ exports.DomainDnsCheckFromJSON = DomainDnsCheckFromJSON;
18
+ exports.DomainDnsCheckFromJSONTyped = DomainDnsCheckFromJSONTyped;
19
+ exports.DomainDnsCheckToJSON = DomainDnsCheckToJSON;
20
+ exports.DomainDnsCheckToJSONTyped = DomainDnsCheckToJSONTyped;
21
+ const DomainDnsCheckRecordsInner_1 = require("./DomainDnsCheckRecordsInner");
22
+ /**
23
+ * Check if a given object implements the DomainDnsCheck interface.
24
+ */
25
+ function instanceOfDomainDnsCheck(value) {
26
+ if (!('sender' in value) || value['sender'] === undefined)
27
+ return false;
28
+ if (!('records' in value) || value['records'] === undefined)
29
+ return false;
30
+ if (!('canStartVerification' in value) ||
31
+ value['canStartVerification'] === undefined)
32
+ return false;
33
+ if (!('checkedAt' in value) || value['checkedAt'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function DomainDnsCheckFromJSON(json) {
38
+ return DomainDnsCheckFromJSONTyped(json, false);
39
+ }
40
+ function DomainDnsCheckFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ sender: json['sender'],
46
+ records: json['records'].map(DomainDnsCheckRecordsInner_1.DomainDnsCheckRecordsInnerFromJSON),
47
+ canStartVerification: json['canStartVerification'],
48
+ checkedAt: json['checkedAt']
49
+ };
50
+ }
51
+ function DomainDnsCheckToJSON(json) {
52
+ return DomainDnsCheckToJSONTyped(json, false);
53
+ }
54
+ function DomainDnsCheckToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ sender: value['sender'],
60
+ records: (value['records'] ?? []).map(DomainDnsCheckRecordsInner_1.DomainDnsCheckRecordsInnerToJSON),
61
+ canStartVerification: value['canStartVerification'],
62
+ checkedAt: value['checkedAt']
63
+ };
64
+ }
@@ -0,0 +1,94 @@
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
+ *
14
+ * @export
15
+ * @interface DomainDnsCheckRecordsInner
16
+ */
17
+ export interface DomainDnsCheckRecordsInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DomainDnsCheckRecordsInner
22
+ */
23
+ id: DomainDnsCheckRecordsInnerIdEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof DomainDnsCheckRecordsInner
28
+ */
29
+ label: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof DomainDnsCheckRecordsInner
34
+ */
35
+ required: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof DomainDnsCheckRecordsInner
40
+ */
41
+ found: boolean;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof DomainDnsCheckRecordsInner
46
+ */
47
+ host: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof DomainDnsCheckRecordsInner
52
+ */
53
+ recordType: DomainDnsCheckRecordsInnerRecordTypeEnum;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof DomainDnsCheckRecordsInner
58
+ */
59
+ expected: string;
60
+ /**
61
+ *
62
+ * @type {Array<string>}
63
+ * @memberof DomainDnsCheckRecordsInner
64
+ */
65
+ observed?: Array<string>;
66
+ }
67
+ /**
68
+ * @export
69
+ * @enum {string}
70
+ */
71
+ export declare enum DomainDnsCheckRecordsInnerIdEnum {
72
+ DKIM = "dkim",
73
+ MAIL_FROM_SPF = "mail_from_spf",
74
+ MAIL_FROM_MX = "mail_from_mx",
75
+ DMARC = "dmarc",
76
+ INBOUND_MX = "inbound_mx"
77
+ }
78
+ /**
79
+ * @export
80
+ * @enum {string}
81
+ */
82
+ export declare enum DomainDnsCheckRecordsInnerRecordTypeEnum {
83
+ TXT = "TXT",
84
+ MX = "MX",
85
+ CNAME = "CNAME"
86
+ }
87
+ /**
88
+ * Check if a given object implements the DomainDnsCheckRecordsInner interface.
89
+ */
90
+ export declare function instanceOfDomainDnsCheckRecordsInner(value: object): value is DomainDnsCheckRecordsInner;
91
+ export declare function DomainDnsCheckRecordsInnerFromJSON(json: any): DomainDnsCheckRecordsInner;
92
+ export declare function DomainDnsCheckRecordsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainDnsCheckRecordsInner;
93
+ export declare function DomainDnsCheckRecordsInnerToJSON(json: any): DomainDnsCheckRecordsInner;
94
+ export declare function DomainDnsCheckRecordsInnerToJSONTyped(value?: DomainDnsCheckRecordsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,99 @@
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.DomainDnsCheckRecordsInnerRecordTypeEnum = exports.DomainDnsCheckRecordsInnerIdEnum = void 0;
17
+ exports.instanceOfDomainDnsCheckRecordsInner = instanceOfDomainDnsCheckRecordsInner;
18
+ exports.DomainDnsCheckRecordsInnerFromJSON = DomainDnsCheckRecordsInnerFromJSON;
19
+ exports.DomainDnsCheckRecordsInnerFromJSONTyped = DomainDnsCheckRecordsInnerFromJSONTyped;
20
+ exports.DomainDnsCheckRecordsInnerToJSON = DomainDnsCheckRecordsInnerToJSON;
21
+ exports.DomainDnsCheckRecordsInnerToJSONTyped = DomainDnsCheckRecordsInnerToJSONTyped;
22
+ /**
23
+ * @export
24
+ * @enum {string}
25
+ */
26
+ var DomainDnsCheckRecordsInnerIdEnum;
27
+ (function (DomainDnsCheckRecordsInnerIdEnum) {
28
+ DomainDnsCheckRecordsInnerIdEnum["DKIM"] = "dkim";
29
+ DomainDnsCheckRecordsInnerIdEnum["MAIL_FROM_SPF"] = "mail_from_spf";
30
+ DomainDnsCheckRecordsInnerIdEnum["MAIL_FROM_MX"] = "mail_from_mx";
31
+ DomainDnsCheckRecordsInnerIdEnum["DMARC"] = "dmarc";
32
+ DomainDnsCheckRecordsInnerIdEnum["INBOUND_MX"] = "inbound_mx";
33
+ })(DomainDnsCheckRecordsInnerIdEnum || (exports.DomainDnsCheckRecordsInnerIdEnum = DomainDnsCheckRecordsInnerIdEnum = {}));
34
+ /**
35
+ * @export
36
+ * @enum {string}
37
+ */
38
+ var DomainDnsCheckRecordsInnerRecordTypeEnum;
39
+ (function (DomainDnsCheckRecordsInnerRecordTypeEnum) {
40
+ DomainDnsCheckRecordsInnerRecordTypeEnum["TXT"] = "TXT";
41
+ DomainDnsCheckRecordsInnerRecordTypeEnum["MX"] = "MX";
42
+ DomainDnsCheckRecordsInnerRecordTypeEnum["CNAME"] = "CNAME";
43
+ })(DomainDnsCheckRecordsInnerRecordTypeEnum || (exports.DomainDnsCheckRecordsInnerRecordTypeEnum = DomainDnsCheckRecordsInnerRecordTypeEnum = {}));
44
+ /**
45
+ * Check if a given object implements the DomainDnsCheckRecordsInner interface.
46
+ */
47
+ function instanceOfDomainDnsCheckRecordsInner(value) {
48
+ if (!('id' in value) || value['id'] === undefined)
49
+ return false;
50
+ if (!('label' in value) || value['label'] === undefined)
51
+ return false;
52
+ if (!('required' in value) || value['required'] === undefined)
53
+ return false;
54
+ if (!('found' in value) || value['found'] === undefined)
55
+ return false;
56
+ if (!('host' in value) || value['host'] === undefined)
57
+ return false;
58
+ if (!('recordType' in value) || value['recordType'] === undefined)
59
+ return false;
60
+ if (!('expected' in value) || value['expected'] === undefined)
61
+ return false;
62
+ return true;
63
+ }
64
+ function DomainDnsCheckRecordsInnerFromJSON(json) {
65
+ return DomainDnsCheckRecordsInnerFromJSONTyped(json, false);
66
+ }
67
+ function DomainDnsCheckRecordsInnerFromJSONTyped(json, ignoreDiscriminator) {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+ id: json['id'],
73
+ label: json['label'],
74
+ required: json['required'],
75
+ found: json['found'],
76
+ host: json['host'],
77
+ recordType: json['recordType'],
78
+ expected: json['expected'],
79
+ observed: json['observed'] == null ? undefined : json['observed']
80
+ };
81
+ }
82
+ function DomainDnsCheckRecordsInnerToJSON(json) {
83
+ return DomainDnsCheckRecordsInnerToJSONTyped(json, false);
84
+ }
85
+ function DomainDnsCheckRecordsInnerToJSONTyped(value, ignoreDiscriminator = false) {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+ return {
90
+ id: value['id'],
91
+ label: value['label'],
92
+ required: value['required'],
93
+ found: value['found'],
94
+ host: value['host'],
95
+ recordType: value['recordType'],
96
+ expected: value['expected'],
97
+ observed: value['observed']
98
+ };
99
+ }
@@ -27,6 +27,8 @@ export * from './CreateKeyResponse';
27
27
  export * from './CreateOrganizationResponse';
28
28
  export * from './DeleteKeyResponse';
29
29
  export * from './DeleteUserResponse';
30
+ export * from './DomainDnsCheck';
31
+ export * from './DomainDnsCheckRecordsInner';
30
32
  export * from './EmailAuthTokenPostRequest';
31
33
  export * from './EmailComponentPatchRequest';
32
34
  export * from './EmailComponentPostRequest';
@@ -45,6 +45,8 @@ __exportStar(require("./CreateKeyResponse"), exports);
45
45
  __exportStar(require("./CreateOrganizationResponse"), exports);
46
46
  __exportStar(require("./DeleteKeyResponse"), exports);
47
47
  __exportStar(require("./DeleteUserResponse"), exports);
48
+ __exportStar(require("./DomainDnsCheck"), exports);
49
+ __exportStar(require("./DomainDnsCheckRecordsInner"), exports);
48
50
  __exportStar(require("./EmailAuthTokenPostRequest"), exports);
49
51
  __exportStar(require("./EmailComponentPatchRequest"), exports);
50
52
  __exportStar(require("./EmailComponentPostRequest"), 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.15';
11
+ const SDK_VERSION = '1.0.16';
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.15",
3
+ "version": "1.0.16-alpha.1220",
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",