@zyphr-dev/node-sdk 0.1.30 → 0.1.32
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/dist/index.cjs +28 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +42 -2
- package/dist/index.d.ts +42 -2
- package/dist/index.js +26 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/src/apis/DomainsApi.ts +6 -6
- package/src/src/models/DomainResponse.ts +47 -1
package/package.json
CHANGED
|
@@ -195,7 +195,7 @@ export class DomainsApi extends runtime.BaseAPI implements DomainsApiInterface {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
const response = await this.request({
|
|
198
|
-
path: `/
|
|
198
|
+
path: `/domains`,
|
|
199
199
|
method: 'POST',
|
|
200
200
|
headers: headerParameters,
|
|
201
201
|
query: queryParameters,
|
|
@@ -235,7 +235,7 @@ export class DomainsApi extends runtime.BaseAPI implements DomainsApiInterface {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
const response = await this.request({
|
|
238
|
-
path: `/
|
|
238
|
+
path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
239
239
|
method: 'DELETE',
|
|
240
240
|
headers: headerParameters,
|
|
241
241
|
query: queryParameters,
|
|
@@ -274,7 +274,7 @@ export class DomainsApi extends runtime.BaseAPI implements DomainsApiInterface {
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
const response = await this.request({
|
|
277
|
-
path: `/
|
|
277
|
+
path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
278
278
|
method: 'GET',
|
|
279
279
|
headers: headerParameters,
|
|
280
280
|
query: queryParameters,
|
|
@@ -313,7 +313,7 @@ export class DomainsApi extends runtime.BaseAPI implements DomainsApiInterface {
|
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
const response = await this.request({
|
|
316
|
-
path: `/
|
|
316
|
+
path: `/domains/{id}/verification-status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
317
317
|
method: 'GET',
|
|
318
318
|
headers: headerParameters,
|
|
319
319
|
query: queryParameters,
|
|
@@ -345,7 +345,7 @@ export class DomainsApi extends runtime.BaseAPI implements DomainsApiInterface {
|
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
const response = await this.request({
|
|
348
|
-
path: `/
|
|
348
|
+
path: `/domains`,
|
|
349
349
|
method: 'GET',
|
|
350
350
|
headers: headerParameters,
|
|
351
351
|
query: queryParameters,
|
|
@@ -384,7 +384,7 @@ export class DomainsApi extends runtime.BaseAPI implements DomainsApiInterface {
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
const response = await this.request({
|
|
387
|
-
path: `/
|
|
387
|
+
path: `/domains/{id}/verify`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
388
388
|
method: 'POST',
|
|
389
389
|
headers: headerParameters,
|
|
390
390
|
query: queryParameters,
|
|
@@ -70,7 +70,25 @@ export interface DomainResponse {
|
|
|
70
70
|
*/
|
|
71
71
|
verificationToken?: string;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* AWS SES identity-verification sub-status. Surfaced so callers can
|
|
74
|
+
* see WHY top-level `status` is still `pending` when all DNS records
|
|
75
|
+
* report `verified: true` — typically because SES DKIM propagation
|
|
76
|
+
* hasn't completed yet (can take a few minutes after DNS records
|
|
77
|
+
* land). Top-level `status` only flips to `verified` once both this
|
|
78
|
+
* and `ses_dkim_status` are `success`.
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof DomainResponse
|
|
82
|
+
*/
|
|
83
|
+
sesIdentityStatus?: DomainResponseSesIdentityStatusEnum;
|
|
84
|
+
/**
|
|
85
|
+
* AWS SES DKIM verification sub-status. See `ses_identity_status`.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof DomainResponse
|
|
88
|
+
*/
|
|
89
|
+
sesDkimStatus?: DomainResponseSesDkimStatusEnum;
|
|
90
|
+
/**
|
|
91
|
+
* Timestamp when verification first succeeded. Cleared to null if status later reverts away from `verified` (e.g. DNS records observed but SES DKIM not yet propagated).
|
|
74
92
|
* @type {Date}
|
|
75
93
|
* @memberof DomainResponse
|
|
76
94
|
*/
|
|
@@ -107,6 +125,30 @@ export const DomainResponseStatusEnum = {
|
|
|
107
125
|
} as const;
|
|
108
126
|
export type DomainResponseStatusEnum = typeof DomainResponseStatusEnum[keyof typeof DomainResponseStatusEnum];
|
|
109
127
|
|
|
128
|
+
/**
|
|
129
|
+
* @export
|
|
130
|
+
*/
|
|
131
|
+
export const DomainResponseSesIdentityStatusEnum = {
|
|
132
|
+
PENDING: 'pending',
|
|
133
|
+
SUCCESS: 'success',
|
|
134
|
+
FAILED: 'failed',
|
|
135
|
+
TEMPORARY_FAILURE: 'temporary_failure',
|
|
136
|
+
NOT_STARTED: 'not_started'
|
|
137
|
+
} as const;
|
|
138
|
+
export type DomainResponseSesIdentityStatusEnum = typeof DomainResponseSesIdentityStatusEnum[keyof typeof DomainResponseSesIdentityStatusEnum];
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @export
|
|
142
|
+
*/
|
|
143
|
+
export const DomainResponseSesDkimStatusEnum = {
|
|
144
|
+
PENDING: 'pending',
|
|
145
|
+
SUCCESS: 'success',
|
|
146
|
+
FAILED: 'failed',
|
|
147
|
+
TEMPORARY_FAILURE: 'temporary_failure',
|
|
148
|
+
NOT_STARTED: 'not_started'
|
|
149
|
+
} as const;
|
|
150
|
+
export type DomainResponseSesDkimStatusEnum = typeof DomainResponseSesDkimStatusEnum[keyof typeof DomainResponseSesDkimStatusEnum];
|
|
151
|
+
|
|
110
152
|
|
|
111
153
|
/**
|
|
112
154
|
* Check if a given object implements the DomainResponse interface.
|
|
@@ -139,6 +181,8 @@ export function DomainResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
139
181
|
'recordsVerified': json['records_verified'],
|
|
140
182
|
'recordsTotal': json['records_total'],
|
|
141
183
|
'verificationToken': json['verification_token'] == null ? undefined : json['verification_token'],
|
|
184
|
+
'sesIdentityStatus': json['ses_identity_status'] == null ? undefined : json['ses_identity_status'],
|
|
185
|
+
'sesDkimStatus': json['ses_dkim_status'] == null ? undefined : json['ses_dkim_status'],
|
|
142
186
|
'verifiedAt': json['verified_at'] == null ? undefined : (new Date(json['verified_at'])),
|
|
143
187
|
'lastCheckedAt': json['last_checked_at'] == null ? undefined : (new Date(json['last_checked_at'])),
|
|
144
188
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -164,6 +208,8 @@ export function DomainResponseToJSONTyped(value?: DomainResponse | null, ignoreD
|
|
|
164
208
|
'records_verified': value['recordsVerified'],
|
|
165
209
|
'records_total': value['recordsTotal'],
|
|
166
210
|
'verification_token': value['verificationToken'],
|
|
211
|
+
'ses_identity_status': value['sesIdentityStatus'],
|
|
212
|
+
'ses_dkim_status': value['sesDkimStatus'],
|
|
167
213
|
'verified_at': value['verifiedAt'] == null ? undefined : ((value['verifiedAt'] as any).toISOString()),
|
|
168
214
|
'last_checked_at': value['lastCheckedAt'] == null ? undefined : ((value['lastCheckedAt'] as any).toISOString()),
|
|
169
215
|
'created_at': ((value['createdAt']).toISOString()),
|