@zyphr-dev/node-sdk 0.1.34 → 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.
@@ -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,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';
@@ -193,7 +195,6 @@ export * from './PayloadTooLargeError';
193
195
  export * from './PayloadTooLargeErrorError';
194
196
  export * from './PayloadTooLargeErrorErrorDetails';
195
197
  export * from './PhoneAuthAvailabilityResponse';
196
- export * from './PhoneAuthAvailabilityResponseData';
197
198
  export * from './PhoneLoginVerifyRequest';
198
199
  export * from './PhoneOtpSendRequest';
199
200
  export * from './PhoneOtpSentResponse';
@@ -243,6 +244,7 @@ export * from './SendBatchInAppResponse';
243
244
  export * from './SendBatchSmsData';
244
245
  export * from './SendBatchSmsRequest';
245
246
  export * from './SendBatchSmsResponse';
247
+ export * from './SendEmailOtpRegistrationRequest';
246
248
  export * from './SendEmailRequest';
247
249
  export * from './SendEmailResponse';
248
250
  export * from './SendEmailResponseData';
@@ -354,6 +356,8 @@ export * from './VerificationStatusResponse';
354
356
  export * from './VerificationStatusResponseData';
355
357
  export * from './VerifyDomainResponse';
356
358
  export * from './VerifyDomainResponseData';
359
+ export * from './VerifyEmailOtpLoginRequest';
360
+ export * from './VerifyEmailOtpRegistrationRequest';
357
361
  export * from './VerifySmsConfigData';
358
362
  export * from './VerifySmsConfigResponse';
359
363
  export * from './WaaSApplication';