@zyphr-dev/node-sdk 0.1.31 → 0.1.33
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 +2204 -157
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2214 -145
- package/dist/index.d.ts +2214 -145
- package/dist/index.js +2066 -157
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +28 -0
- package/src/client.ts +5 -0
- package/src/src/apis/AuthOrganizationsApi.ts +823 -0
- package/src/src/apis/AuthUserProfileApi.ts +62 -0
- package/src/src/apis/DomainsApi.ts +248 -0
- package/src/src/apis/MuseApi.ts +531 -0
- package/src/src/apis/index.ts +2 -0
- package/src/src/models/AddOrganizationMemberRequest.ts +74 -0
- package/src/src/models/CreateOrganizationRequest.ts +82 -0
- package/src/src/models/DeleteDomainResponse.ts +90 -0
- package/src/src/models/DeleteDomainResponseData.ts +75 -0
- package/src/src/models/DomainResponse.ts +47 -1
- package/src/src/models/GetDomain200Response.ts +88 -0
- package/src/src/models/GetDomain200ResponseMeta.ts +65 -0
- package/src/src/models/LoginRequest.ts +12 -0
- package/src/src/models/Organization.ts +137 -0
- package/src/src/models/OrganizationListResponse.ts +90 -0
- package/src/src/models/OrganizationListResponseMeta.ts +73 -0
- package/src/src/models/OrganizationMembersListResponse.ts +90 -0
- package/src/src/models/OrganizationMembership.ts +119 -0
- package/src/src/models/OrganizationMembershipResponse.ts +90 -0
- package/src/src/models/OrganizationMembershipWithUser.ts +135 -0
- package/src/src/models/OrganizationResponse.ts +90 -0
- package/src/src/models/RegisterRequest.ts +23 -0
- package/src/src/models/SwitchOrganizationRequest.ts +75 -0
- package/src/src/models/SwitchOrganizationResponse.ts +90 -0
- package/src/src/models/SwitchOrganizationResponseData.ts +99 -0
- package/src/src/models/SwitchOrganizationResponseDataTokens.ts +103 -0
- package/src/src/models/SwitchOrganizationResponseDataUser.ts +73 -0
- package/src/src/models/UpdateOrganizationMemberRoleRequest.ts +66 -0
- package/src/src/models/UpdateOrganizationRequest.ts +81 -0
- package/src/src/models/V1MuseSubjectsSuggestPostRequest.ts +105 -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 +26 -0
|
@@ -0,0 +1,81 @@
|
|
|
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 UpdateOrganizationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateOrganizationRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateOrganizationRequest
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateOrganizationRequest
|
|
32
|
+
*/
|
|
33
|
+
slug?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof UpdateOrganizationRequest
|
|
38
|
+
*/
|
|
39
|
+
metadata?: object;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UpdateOrganizationRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUpdateOrganizationRequest(value: object): value is UpdateOrganizationRequest {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UpdateOrganizationRequestFromJSON(json: any): UpdateOrganizationRequest {
|
|
50
|
+
return UpdateOrganizationRequestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function UpdateOrganizationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrganizationRequest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
60
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
61
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function UpdateOrganizationRequestToJSON(json: any): UpdateOrganizationRequest {
|
|
66
|
+
return UpdateOrganizationRequestToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function UpdateOrganizationRequestToJSONTyped(value?: UpdateOrganizationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'slug': value['slug'],
|
|
78
|
+
'metadata': value['metadata'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
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 V1MuseSubjectsSuggestPostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface V1MuseSubjectsSuggestPostRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Optional template id. When provided, the route resolves the
|
|
24
|
+
* template body server-side. Cannot be combined with template_body.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof V1MuseSubjectsSuggestPostRequest
|
|
27
|
+
*/
|
|
28
|
+
templateId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Optional raw template body. Empty/missing is allowed —
|
|
31
|
+
* the prompt handles sparse input by falling back to channel
|
|
32
|
+
* best-practices.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof V1MuseSubjectsSuggestPostRequest
|
|
35
|
+
*/
|
|
36
|
+
templateBody?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof V1MuseSubjectsSuggestPostRequest
|
|
41
|
+
*/
|
|
42
|
+
channel: V1MuseSubjectsSuggestPostRequestChannelEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof V1MuseSubjectsSuggestPostRequest
|
|
47
|
+
*/
|
|
48
|
+
projectId: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export const V1MuseSubjectsSuggestPostRequestChannelEnum = {
|
|
56
|
+
EMAIL: 'email',
|
|
57
|
+
PUSH: 'push'
|
|
58
|
+
} as const;
|
|
59
|
+
export type V1MuseSubjectsSuggestPostRequestChannelEnum = typeof V1MuseSubjectsSuggestPostRequestChannelEnum[keyof typeof V1MuseSubjectsSuggestPostRequestChannelEnum];
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the V1MuseSubjectsSuggestPostRequest interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfV1MuseSubjectsSuggestPostRequest(value: object): value is V1MuseSubjectsSuggestPostRequest {
|
|
66
|
+
if (!('channel' in value) || value['channel'] === undefined) return false;
|
|
67
|
+
if (!('projectId' in value) || value['projectId'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function V1MuseSubjectsSuggestPostRequestFromJSON(json: any): V1MuseSubjectsSuggestPostRequest {
|
|
72
|
+
return V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function V1MuseSubjectsSuggestPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1MuseSubjectsSuggestPostRequest {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'templateId': json['template_id'] == null ? undefined : json['template_id'],
|
|
82
|
+
'templateBody': json['template_body'] == null ? undefined : json['template_body'],
|
|
83
|
+
'channel': json['channel'],
|
|
84
|
+
'projectId': json['project_id'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function V1MuseSubjectsSuggestPostRequestToJSON(json: any): V1MuseSubjectsSuggestPostRequest {
|
|
89
|
+
return V1MuseSubjectsSuggestPostRequestToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function V1MuseSubjectsSuggestPostRequestToJSONTyped(value?: V1MuseSubjectsSuggestPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'template_id': value['templateId'],
|
|
100
|
+
'template_body': value['templateBody'],
|
|
101
|
+
'channel': value['channel'],
|
|
102
|
+
'project_id': value['projectId'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
|
|
@@ -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
|
+
|