@zyphr-dev/node-sdk 0.1.30 → 0.1.31
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 +2 -487
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -487
- package/dist/index.d.ts +1 -487
- package/dist/index.js +2 -445
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +0 -8
- package/src/src/apis/DomainsApi.ts +2 -250
- package/src/src/models/index.ts +0 -8
- package/src/src/models/DeleteDomainResponse.ts +0 -90
- package/src/src/models/DeleteDomainResponseData.ts +0 -75
- package/src/src/models/GetDomain200Response.ts +0 -88
- package/src/src/models/GetDomain200ResponseMeta.ts +0 -65
- package/src/src/models/VerificationStatusResponse.ts +0 -90
- package/src/src/models/VerificationStatusResponseData.ts +0 -148
- package/src/src/models/VerifyDomainResponse.ts +0 -90
- package/src/src/models/VerifyDomainResponseData.ts +0 -103
|
@@ -1,65 +0,0 @@
|
|
|
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 GetDomain200ResponseMeta
|
|
20
|
-
*/
|
|
21
|
-
export interface GetDomain200ResponseMeta {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof GetDomain200ResponseMeta
|
|
26
|
-
*/
|
|
27
|
-
requestId?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the GetDomain200ResponseMeta interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfGetDomain200ResponseMeta(value: object): value is GetDomain200ResponseMeta {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function GetDomain200ResponseMetaFromJSON(json: any): GetDomain200ResponseMeta {
|
|
38
|
-
return GetDomain200ResponseMetaFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function GetDomain200ResponseMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDomain200ResponseMeta {
|
|
42
|
-
if (json == null) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
|
|
47
|
-
'requestId': json['request_id'] == null ? undefined : json['request_id'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function GetDomain200ResponseMetaToJSON(json: any): GetDomain200ResponseMeta {
|
|
52
|
-
return GetDomain200ResponseMetaToJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function GetDomain200ResponseMetaToJSONTyped(value?: GetDomain200ResponseMeta | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
-
if (value == null) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'request_id': value['requestId'],
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
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
|
-
import type { VerificationStatusResponseData } from './VerificationStatusResponseData';
|
|
17
|
-
import {
|
|
18
|
-
VerificationStatusResponseDataFromJSON,
|
|
19
|
-
VerificationStatusResponseDataFromJSONTyped,
|
|
20
|
-
VerificationStatusResponseDataToJSON,
|
|
21
|
-
VerificationStatusResponseDataToJSONTyped,
|
|
22
|
-
} from './VerificationStatusResponseData';
|
|
23
|
-
import type { GetDomain200ResponseMeta } from './GetDomain200ResponseMeta';
|
|
24
|
-
import {
|
|
25
|
-
GetDomain200ResponseMetaFromJSON,
|
|
26
|
-
GetDomain200ResponseMetaFromJSONTyped,
|
|
27
|
-
GetDomain200ResponseMetaToJSON,
|
|
28
|
-
GetDomain200ResponseMetaToJSONTyped,
|
|
29
|
-
} from './GetDomain200ResponseMeta';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface VerificationStatusResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface VerificationStatusResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {VerificationStatusResponseData}
|
|
40
|
-
* @memberof VerificationStatusResponse
|
|
41
|
-
*/
|
|
42
|
-
data: VerificationStatusResponseData;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {GetDomain200ResponseMeta}
|
|
46
|
-
* @memberof VerificationStatusResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: GetDomain200ResponseMeta;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the VerificationStatusResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfVerificationStatusResponse(value: object): value is VerificationStatusResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function VerificationStatusResponseFromJSON(json: any): VerificationStatusResponse {
|
|
61
|
-
return VerificationStatusResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function VerificationStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerificationStatusResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': VerificationStatusResponseDataFromJSON(json['data']),
|
|
71
|
-
'meta': GetDomain200ResponseMetaFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function VerificationStatusResponseToJSON(json: any): VerificationStatusResponse {
|
|
76
|
-
return VerificationStatusResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function VerificationStatusResponseToJSONTyped(value?: VerificationStatusResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': VerificationStatusResponseDataToJSON(value['data']),
|
|
87
|
-
'meta': GetDomain200ResponseMetaToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,148 +0,0 @@
|
|
|
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
|
-
import type { DnsRecord } from './DnsRecord';
|
|
17
|
-
import {
|
|
18
|
-
DnsRecordFromJSON,
|
|
19
|
-
DnsRecordFromJSONTyped,
|
|
20
|
-
DnsRecordToJSON,
|
|
21
|
-
DnsRecordToJSONTyped,
|
|
22
|
-
} from './DnsRecord';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface VerificationStatusResponseData
|
|
28
|
-
*/
|
|
29
|
-
export interface VerificationStatusResponseData {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof VerificationStatusResponseData
|
|
34
|
-
*/
|
|
35
|
-
domainId: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof VerificationStatusResponseData
|
|
40
|
-
*/
|
|
41
|
-
domain: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof VerificationStatusResponseData
|
|
46
|
-
*/
|
|
47
|
-
status: VerificationStatusResponseDataStatusEnum;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof VerificationStatusResponseData
|
|
52
|
-
*/
|
|
53
|
-
recordsVerified: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof VerificationStatusResponseData
|
|
58
|
-
*/
|
|
59
|
-
recordsTotal: number;
|
|
60
|
-
/**
|
|
61
|
-
* Internal verification progress detail
|
|
62
|
-
* @type {{ [key: string]: any; }}
|
|
63
|
-
* @memberof VerificationStatusResponseData
|
|
64
|
-
*/
|
|
65
|
-
progress?: { [key: string]: any; };
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Array<DnsRecord>}
|
|
69
|
-
* @memberof VerificationStatusResponseData
|
|
70
|
-
*/
|
|
71
|
-
dnsRecords: Array<DnsRecord>;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {Date}
|
|
75
|
-
* @memberof VerificationStatusResponseData
|
|
76
|
-
*/
|
|
77
|
-
lastCheckedAt?: Date | null;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @export
|
|
83
|
-
*/
|
|
84
|
-
export const VerificationStatusResponseDataStatusEnum = {
|
|
85
|
-
PENDING: 'pending',
|
|
86
|
-
VERIFYING: 'verifying',
|
|
87
|
-
VERIFIED: 'verified',
|
|
88
|
-
FAILED: 'failed'
|
|
89
|
-
} as const;
|
|
90
|
-
export type VerificationStatusResponseDataStatusEnum = typeof VerificationStatusResponseDataStatusEnum[keyof typeof VerificationStatusResponseDataStatusEnum];
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Check if a given object implements the VerificationStatusResponseData interface.
|
|
95
|
-
*/
|
|
96
|
-
export function instanceOfVerificationStatusResponseData(value: object): value is VerificationStatusResponseData {
|
|
97
|
-
if (!('domainId' in value) || value['domainId'] === undefined) return false;
|
|
98
|
-
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
99
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
100
|
-
if (!('recordsVerified' in value) || value['recordsVerified'] === undefined) return false;
|
|
101
|
-
if (!('recordsTotal' in value) || value['recordsTotal'] === undefined) return false;
|
|
102
|
-
if (!('dnsRecords' in value) || value['dnsRecords'] === undefined) return false;
|
|
103
|
-
return true;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export function VerificationStatusResponseDataFromJSON(json: any): VerificationStatusResponseData {
|
|
107
|
-
return VerificationStatusResponseDataFromJSONTyped(json, false);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export function VerificationStatusResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerificationStatusResponseData {
|
|
111
|
-
if (json == null) {
|
|
112
|
-
return json;
|
|
113
|
-
}
|
|
114
|
-
return {
|
|
115
|
-
|
|
116
|
-
'domainId': json['domain_id'],
|
|
117
|
-
'domain': json['domain'],
|
|
118
|
-
'status': json['status'],
|
|
119
|
-
'recordsVerified': json['records_verified'],
|
|
120
|
-
'recordsTotal': json['records_total'],
|
|
121
|
-
'progress': json['progress'] == null ? undefined : json['progress'],
|
|
122
|
-
'dnsRecords': ((json['dns_records'] as Array<any>).map(DnsRecordFromJSON)),
|
|
123
|
-
'lastCheckedAt': json['last_checked_at'] == null ? undefined : (new Date(json['last_checked_at'])),
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export function VerificationStatusResponseDataToJSON(json: any): VerificationStatusResponseData {
|
|
128
|
-
return VerificationStatusResponseDataToJSONTyped(json, false);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export function VerificationStatusResponseDataToJSONTyped(value?: VerificationStatusResponseData | null, ignoreDiscriminator: boolean = false): any {
|
|
132
|
-
if (value == null) {
|
|
133
|
-
return value;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return {
|
|
137
|
-
|
|
138
|
-
'domain_id': value['domainId'],
|
|
139
|
-
'domain': value['domain'],
|
|
140
|
-
'status': value['status'],
|
|
141
|
-
'records_verified': value['recordsVerified'],
|
|
142
|
-
'records_total': value['recordsTotal'],
|
|
143
|
-
'progress': value['progress'],
|
|
144
|
-
'dns_records': ((value['dnsRecords'] as Array<any>).map(DnsRecordToJSON)),
|
|
145
|
-
'last_checked_at': value['lastCheckedAt'] == null ? undefined : ((value['lastCheckedAt'] as any).toISOString()),
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
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
|
-
import type { VerifyDomainResponseData } from './VerifyDomainResponseData';
|
|
17
|
-
import {
|
|
18
|
-
VerifyDomainResponseDataFromJSON,
|
|
19
|
-
VerifyDomainResponseDataFromJSONTyped,
|
|
20
|
-
VerifyDomainResponseDataToJSON,
|
|
21
|
-
VerifyDomainResponseDataToJSONTyped,
|
|
22
|
-
} from './VerifyDomainResponseData';
|
|
23
|
-
import type { AddDomain200ResponseMeta } from './AddDomain200ResponseMeta';
|
|
24
|
-
import {
|
|
25
|
-
AddDomain200ResponseMetaFromJSON,
|
|
26
|
-
AddDomain200ResponseMetaFromJSONTyped,
|
|
27
|
-
AddDomain200ResponseMetaToJSON,
|
|
28
|
-
AddDomain200ResponseMetaToJSONTyped,
|
|
29
|
-
} from './AddDomain200ResponseMeta';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface VerifyDomainResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface VerifyDomainResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {VerifyDomainResponseData}
|
|
40
|
-
* @memberof VerifyDomainResponse
|
|
41
|
-
*/
|
|
42
|
-
data: VerifyDomainResponseData;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {AddDomain200ResponseMeta}
|
|
46
|
-
* @memberof VerifyDomainResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: AddDomain200ResponseMeta;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the VerifyDomainResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfVerifyDomainResponse(value: object): value is VerifyDomainResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function VerifyDomainResponseFromJSON(json: any): VerifyDomainResponse {
|
|
61
|
-
return VerifyDomainResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function VerifyDomainResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyDomainResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': VerifyDomainResponseDataFromJSON(json['data']),
|
|
71
|
-
'meta': AddDomain200ResponseMetaFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function VerifyDomainResponseToJSON(json: any): VerifyDomainResponse {
|
|
76
|
-
return VerifyDomainResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function VerifyDomainResponseToJSONTyped(value?: VerifyDomainResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': VerifyDomainResponseDataToJSON(value['data']),
|
|
87
|
-
'meta': AddDomain200ResponseMetaToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,103 +0,0 @@
|
|
|
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
|
-
|