@zyphr-dev/node-sdk 0.1.27 → 0.1.30
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 +889 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +958 -10
- package/dist/index.d.ts +958 -10
- package/dist/index.js +808 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +16 -0
- package/src/client.ts +3 -0
- package/src/src/apis/DomainsApi.ts +405 -0
- package/src/src/apis/index.ts +1 -0
- package/src/src/models/AddDomain200Response.ts +88 -0
- package/src/src/models/AddDomain200ResponseMeta.ts +73 -0
- package/src/src/models/AddDomainRequest.ts +66 -0
- package/src/src/models/DeleteDomainResponse.ts +90 -0
- package/src/src/models/DeleteDomainResponseData.ts +75 -0
- package/src/src/models/DnsRecord.ts +127 -0
- package/src/src/models/DomainListResponse.ts +90 -0
- package/src/src/models/DomainListResponseMeta.ts +89 -0
- package/src/src/models/DomainResponse.ts +173 -0
- package/src/src/models/GetDomain200Response.ts +88 -0
- package/src/src/models/GetDomain200ResponseMeta.ts +65 -0
- package/src/src/models/VerificationStatusResponse.ts +90 -0
- package/src/src/models/VerificationStatusResponseData.ts +148 -0
- package/src/src/models/VerifyDomainResponse.ts +90 -0
- package/src/src/models/VerifyDomainResponseData.ts +103 -0
- package/src/src/models/index.ts +15 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Zyphr API
|
|
5
|
+
* Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@zyphr.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VerifyDomainResponseData
|
|
20
|
+
*/
|
|
21
|
+
export interface VerifyDomainResponseData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VerifyDomainResponseData
|
|
26
|
+
*/
|
|
27
|
+
jobId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VerifyDomainResponseData
|
|
32
|
+
*/
|
|
33
|
+
domainId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof VerifyDomainResponseData
|
|
38
|
+
*/
|
|
39
|
+
domain: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof VerifyDomainResponseData
|
|
44
|
+
*/
|
|
45
|
+
status: VerifyDomainResponseDataStatusEnum;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const VerifyDomainResponseDataStatusEnum = {
|
|
53
|
+
VERIFYING: 'verifying'
|
|
54
|
+
} as const;
|
|
55
|
+
export type VerifyDomainResponseDataStatusEnum = typeof VerifyDomainResponseDataStatusEnum[keyof typeof VerifyDomainResponseDataStatusEnum];
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the VerifyDomainResponseData interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfVerifyDomainResponseData(value: object): value is VerifyDomainResponseData {
|
|
62
|
+
if (!('jobId' in value) || value['jobId'] === undefined) return false;
|
|
63
|
+
if (!('domainId' in value) || value['domainId'] === undefined) return false;
|
|
64
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
65
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function VerifyDomainResponseDataFromJSON(json: any): VerifyDomainResponseData {
|
|
70
|
+
return VerifyDomainResponseDataFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function VerifyDomainResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyDomainResponseData {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'jobId': json['job_id'],
|
|
80
|
+
'domainId': json['domain_id'],
|
|
81
|
+
'domain': json['domain'],
|
|
82
|
+
'status': json['status'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function VerifyDomainResponseDataToJSON(json: any): VerifyDomainResponseData {
|
|
87
|
+
return VerifyDomainResponseDataToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function VerifyDomainResponseDataToJSONTyped(value?: VerifyDomainResponseData | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'job_id': value['jobId'],
|
|
98
|
+
'domain_id': value['domainId'],
|
|
99
|
+
'domain': value['domain'],
|
|
100
|
+
'status': value['status'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
package/src/src/models/index.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AddDomain200Response';
|
|
4
|
+
export * from './AddDomain200ResponseMeta';
|
|
5
|
+
export * from './AddDomainRequest';
|
|
3
6
|
export * from './AddTopicSubscribersRequest';
|
|
4
7
|
export * from './ApiError';
|
|
5
8
|
export * from './ApiErrorError';
|
|
@@ -66,6 +69,8 @@ export * from './CreateWaaSEndpointResponse';
|
|
|
66
69
|
export * from './CreateWaaSEventType201Response';
|
|
67
70
|
export * from './CreateWaaSEventTypeRequest';
|
|
68
71
|
export * from './CreateWebhookRequest';
|
|
72
|
+
export * from './DeleteDomainResponse';
|
|
73
|
+
export * from './DeleteDomainResponseData';
|
|
69
74
|
export * from './DeleteResult';
|
|
70
75
|
export * from './DeleteResultData';
|
|
71
76
|
export * from './Device';
|
|
@@ -76,6 +81,10 @@ export * from './DevicePushTopicListResponseMeta';
|
|
|
76
81
|
export * from './DeviceResponse';
|
|
77
82
|
export * from './DeviceStats';
|
|
78
83
|
export * from './DeviceStatsResponse';
|
|
84
|
+
export * from './DnsRecord';
|
|
85
|
+
export * from './DomainListResponse';
|
|
86
|
+
export * from './DomainListResponseMeta';
|
|
87
|
+
export * from './DomainResponse';
|
|
79
88
|
export * from './EmailAddress';
|
|
80
89
|
export * from './EmailAttachment';
|
|
81
90
|
export * from './EmailEvent';
|
|
@@ -100,6 +109,8 @@ export * from './GenerateSubscriberToken200Response';
|
|
|
100
109
|
export * from './GenerateSubscriberToken200ResponseData';
|
|
101
110
|
export * from './GenerateSubscriberTokenRequest';
|
|
102
111
|
export * from './GenerateWaaSPortalToken201Response';
|
|
112
|
+
export * from './GetDomain200Response';
|
|
113
|
+
export * from './GetDomain200ResponseMeta';
|
|
103
114
|
export * from './GetWaaSEndpoint200Response';
|
|
104
115
|
export * from './GetWaaSUsage200Response';
|
|
105
116
|
export * from './InAppNotification';
|
|
@@ -312,6 +323,10 @@ export * from './UserDevicesDeleteResponseData';
|
|
|
312
323
|
export * from './ValidateResetTokenRequest';
|
|
313
324
|
export * from './ValidateResetTokenResponse';
|
|
314
325
|
export * from './ValidateResetTokenResponseData';
|
|
326
|
+
export * from './VerificationStatusResponse';
|
|
327
|
+
export * from './VerificationStatusResponseData';
|
|
328
|
+
export * from './VerifyDomainResponse';
|
|
329
|
+
export * from './VerifyDomainResponseData';
|
|
315
330
|
export * from './VerifySmsConfigData';
|
|
316
331
|
export * from './VerifySmsConfigResponse';
|
|
317
332
|
export * from './WaaSApplication';
|