@zyphr-dev/node-sdk 0.1.33 → 0.1.35

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.
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { PhoneAuthAvailabilityResponseData } from './PhoneAuthAvailabilityResponseData';
16
+ import type { CheckEmailOtpAvailability200ResponseData } from './CheckEmailOtpAvailability200ResponseData';
17
17
  import {
18
- PhoneAuthAvailabilityResponseDataFromJSON,
19
- PhoneAuthAvailabilityResponseDataFromJSONTyped,
20
- PhoneAuthAvailabilityResponseDataToJSON,
21
- PhoneAuthAvailabilityResponseDataToJSONTyped,
22
- } from './PhoneAuthAvailabilityResponseData';
18
+ CheckEmailOtpAvailability200ResponseDataFromJSON,
19
+ CheckEmailOtpAvailability200ResponseDataFromJSONTyped,
20
+ CheckEmailOtpAvailability200ResponseDataToJSON,
21
+ CheckEmailOtpAvailability200ResponseDataToJSONTyped,
22
+ } from './CheckEmailOtpAvailability200ResponseData';
23
23
  import type { RequestMeta } from './RequestMeta';
24
24
  import {
25
25
  RequestMetaFromJSON,
@@ -36,10 +36,10 @@ import {
36
36
  export interface PhoneAuthAvailabilityResponse {
37
37
  /**
38
38
  *
39
- * @type {PhoneAuthAvailabilityResponseData}
39
+ * @type {CheckEmailOtpAvailability200ResponseData}
40
40
  * @memberof PhoneAuthAvailabilityResponse
41
41
  */
42
- data?: PhoneAuthAvailabilityResponseData;
42
+ data?: CheckEmailOtpAvailability200ResponseData;
43
43
  /**
44
44
  *
45
45
  * @type {RequestMeta}
@@ -65,7 +65,7 @@ export function PhoneAuthAvailabilityResponseFromJSONTyped(json: any, ignoreDisc
65
65
  }
66
66
  return {
67
67
 
68
- 'data': json['data'] == null ? undefined : PhoneAuthAvailabilityResponseDataFromJSON(json['data']),
68
+ 'data': json['data'] == null ? undefined : CheckEmailOtpAvailability200ResponseDataFromJSON(json['data']),
69
69
  'meta': json['meta'] == null ? undefined : RequestMetaFromJSON(json['meta']),
70
70
  };
71
71
  }
@@ -81,7 +81,7 @@ export function PhoneAuthAvailabilityResponseToJSONTyped(value?: PhoneAuthAvaila
81
81
 
82
82
  return {
83
83
 
84
- 'data': PhoneAuthAvailabilityResponseDataToJSON(value['data']),
84
+ 'data': CheckEmailOtpAvailability200ResponseDataToJSON(value['data']),
85
85
  'meta': RequestMetaToJSON(value['meta']),
86
86
  };
87
87
  }
@@ -0,0 +1,66 @@
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 SendEmailOtpRegistrationRequest
20
+ */
21
+ export interface SendEmailOtpRegistrationRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SendEmailOtpRegistrationRequest
26
+ */
27
+ email: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SendEmailOtpRegistrationRequest interface.
32
+ */
33
+ export function instanceOfSendEmailOtpRegistrationRequest(value: object): value is SendEmailOtpRegistrationRequest {
34
+ if (!('email' in value) || value['email'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function SendEmailOtpRegistrationRequestFromJSON(json: any): SendEmailOtpRegistrationRequest {
39
+ return SendEmailOtpRegistrationRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SendEmailOtpRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendEmailOtpRegistrationRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'email': json['email'],
49
+ };
50
+ }
51
+
52
+ export function SendEmailOtpRegistrationRequestToJSON(json: any): SendEmailOtpRegistrationRequest {
53
+ return SendEmailOtpRegistrationRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function SendEmailOtpRegistrationRequestToJSONTyped(value?: SendEmailOtpRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'email': value['email'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,65 @@
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 SetDomainInboundRequest
20
+ */
21
+ export interface SetDomainInboundRequest {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof SetDomainInboundRequest
26
+ */
27
+ enabled?: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SetDomainInboundRequest interface.
32
+ */
33
+ export function instanceOfSetDomainInboundRequest(value: object): value is SetDomainInboundRequest {
34
+ return true;
35
+ }
36
+
37
+ export function SetDomainInboundRequestFromJSON(json: any): SetDomainInboundRequest {
38
+ return SetDomainInboundRequestFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function SetDomainInboundRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetDomainInboundRequest {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
48
+ };
49
+ }
50
+
51
+ export function SetDomainInboundRequestToJSON(json: any): SetDomainInboundRequest {
52
+ return SetDomainInboundRequestToJSONTyped(json, false);
53
+ }
54
+
55
+ export function SetDomainInboundRequestToJSONTyped(value?: SetDomainInboundRequest | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'enabled': value['enabled'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,83 @@
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 VerifyEmailOtpLoginRequest
20
+ */
21
+ export interface VerifyEmailOtpLoginRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof VerifyEmailOtpLoginRequest
26
+ */
27
+ email: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof VerifyEmailOtpLoginRequest
32
+ */
33
+ code: string;
34
+ /**
35
+ *
36
+ * @type {object}
37
+ * @memberof VerifyEmailOtpLoginRequest
38
+ */
39
+ customClaims?: object;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the VerifyEmailOtpLoginRequest interface.
44
+ */
45
+ export function instanceOfVerifyEmailOtpLoginRequest(value: object): value is VerifyEmailOtpLoginRequest {
46
+ if (!('email' in value) || value['email'] === undefined) return false;
47
+ if (!('code' in value) || value['code'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function VerifyEmailOtpLoginRequestFromJSON(json: any): VerifyEmailOtpLoginRequest {
52
+ return VerifyEmailOtpLoginRequestFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function VerifyEmailOtpLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyEmailOtpLoginRequest {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'email': json['email'],
62
+ 'code': json['code'],
63
+ 'customClaims': json['custom_claims'] == null ? undefined : json['custom_claims'],
64
+ };
65
+ }
66
+
67
+ export function VerifyEmailOtpLoginRequestToJSON(json: any): VerifyEmailOtpLoginRequest {
68
+ return VerifyEmailOtpLoginRequestToJSONTyped(json, false);
69
+ }
70
+
71
+ export function VerifyEmailOtpLoginRequestToJSONTyped(value?: VerifyEmailOtpLoginRequest | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'email': value['email'],
79
+ 'code': value['code'],
80
+ 'custom_claims': value['customClaims'],
81
+ };
82
+ }
83
+
@@ -0,0 +1,91 @@
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 VerifyEmailOtpRegistrationRequest
20
+ */
21
+ export interface VerifyEmailOtpRegistrationRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof VerifyEmailOtpRegistrationRequest
26
+ */
27
+ email: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof VerifyEmailOtpRegistrationRequest
32
+ */
33
+ code: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof VerifyEmailOtpRegistrationRequest
38
+ */
39
+ name?: string;
40
+ /**
41
+ *
42
+ * @type {object}
43
+ * @memberof VerifyEmailOtpRegistrationRequest
44
+ */
45
+ metadata?: object;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the VerifyEmailOtpRegistrationRequest interface.
50
+ */
51
+ export function instanceOfVerifyEmailOtpRegistrationRequest(value: object): value is VerifyEmailOtpRegistrationRequest {
52
+ if (!('email' in value) || value['email'] === undefined) return false;
53
+ if (!('code' in value) || value['code'] === undefined) return false;
54
+ return true;
55
+ }
56
+
57
+ export function VerifyEmailOtpRegistrationRequestFromJSON(json: any): VerifyEmailOtpRegistrationRequest {
58
+ return VerifyEmailOtpRegistrationRequestFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function VerifyEmailOtpRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyEmailOtpRegistrationRequest {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'email': json['email'],
68
+ 'code': json['code'],
69
+ 'name': json['name'] == null ? undefined : json['name'],
70
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
71
+ };
72
+ }
73
+
74
+ export function VerifyEmailOtpRegistrationRequestToJSON(json: any): VerifyEmailOtpRegistrationRequest {
75
+ return VerifyEmailOtpRegistrationRequestToJSONTyped(json, false);
76
+ }
77
+
78
+ export function VerifyEmailOtpRegistrationRequestToJSONTyped(value?: VerifyEmailOtpRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'email': value['email'],
86
+ 'code': value['code'],
87
+ 'name': value['name'],
88
+ 'metadata': value['metadata'],
89
+ };
90
+ }
91
+
@@ -43,6 +43,8 @@ export * from './BulkUpsertAuthEmailTemplatesResponse';
43
43
  export * from './Category';
44
44
  export * from './CategoryListResponse';
45
45
  export * from './CategoryResponse';
46
+ export * from './CheckEmailOtpAvailability200Response';
47
+ export * from './CheckEmailOtpAvailability200ResponseData';
46
48
  export * from './ConfirmEmailVerificationRequest';
47
49
  export * from './ConfirmEmailVerificationResponse';
48
50
  export * from './ConfirmEmailVerificationResponseData';
@@ -116,6 +118,14 @@ export * from './GetDomain200ResponseMeta';
116
118
  export * from './GetWaaSEndpoint200Response';
117
119
  export * from './GetWaaSUsage200Response';
118
120
  export * from './InAppNotification';
121
+ export * from './InboundAttachmentUrlResponse';
122
+ export * from './InboundAttachmentUrlResponseData';
123
+ export * from './InboundEmail';
124
+ export * from './InboundEmailAttachment';
125
+ export * from './InboundEmailFrom';
126
+ export * from './InboundEmailListResponse';
127
+ export * from './InboundEmailListResponseMeta';
128
+ export * from './InboundEmailResponse';
119
129
  export * from './InboxListMeta';
120
130
  export * from './InboxListResponse';
121
131
  export * from './InboxNotificationResponse';
@@ -185,7 +195,6 @@ export * from './PayloadTooLargeError';
185
195
  export * from './PayloadTooLargeErrorError';
186
196
  export * from './PayloadTooLargeErrorErrorDetails';
187
197
  export * from './PhoneAuthAvailabilityResponse';
188
- export * from './PhoneAuthAvailabilityResponseData';
189
198
  export * from './PhoneLoginVerifyRequest';
190
199
  export * from './PhoneOtpSendRequest';
191
200
  export * from './PhoneOtpSentResponse';
@@ -235,6 +244,7 @@ export * from './SendBatchInAppResponse';
235
244
  export * from './SendBatchSmsData';
236
245
  export * from './SendBatchSmsRequest';
237
246
  export * from './SendBatchSmsResponse';
247
+ export * from './SendEmailOtpRegistrationRequest';
238
248
  export * from './SendEmailRequest';
239
249
  export * from './SendEmailResponse';
240
250
  export * from './SendEmailResponseData';
@@ -263,6 +273,7 @@ export * from './SendWebhookTestEventRequest';
263
273
  export * from './SessionListResponse';
264
274
  export * from './SessionListResponseData';
265
275
  export * from './SessionListResponseDataSessionInfo';
276
+ export * from './SetDomainInboundRequest';
266
277
  export * from './SetPreferencesRequest';
267
278
  export * from './SetPreferencesRequestPreferencesInner';
268
279
  export * from './SignInAnonymouslyRequest';
@@ -345,6 +356,8 @@ export * from './VerificationStatusResponse';
345
356
  export * from './VerificationStatusResponseData';
346
357
  export * from './VerifyDomainResponse';
347
358
  export * from './VerifyDomainResponseData';
359
+ export * from './VerifyEmailOtpLoginRequest';
360
+ export * from './VerifyEmailOtpRegistrationRequest';
348
361
  export * from './VerifySmsConfigData';
349
362
  export * from './VerifySmsConfigResponse';
350
363
  export * from './WaaSApplication';