@zyphr-dev/node-sdk 0.1.52 → 0.1.54
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 +57 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +69 -18
- package/dist/index.d.ts +69 -18
- package/dist/index.js +52 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +1 -0
- package/src/src/apis/AuthEmailVerificationApi.ts +20 -17
- package/src/src/models/ApplicationSelf.ts +9 -0
- package/src/src/models/ConfirmEmailVerificationResponseData.ts +8 -0
- package/src/src/models/ResendEmailVerificationRequest.ts +65 -0
- package/src/src/models/SendEmailVerificationRequest.ts +1 -1
- package/src/src/models/SetSelfApplicationTestRecipientsRequest.ts +9 -1
- package/src/src/models/index.ts +1 -0
package/package.json
CHANGED
|
@@ -318,6 +318,7 @@ src/models/RenderTemplateRequest.ts
|
|
|
318
318
|
src/models/ReorderWorkflowStepsRequest.ts
|
|
319
319
|
src/models/ReplayWebhookEventsRequest.ts
|
|
320
320
|
src/models/RequestMeta.ts
|
|
321
|
+
src/models/ResendEmailVerificationRequest.ts
|
|
321
322
|
src/models/ResetPasswordRequest.ts
|
|
322
323
|
src/models/ResetPasswordResponse.ts
|
|
323
324
|
src/models/ResubscribeRequest.ts
|
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
ApiError,
|
|
19
19
|
ConfirmEmailVerificationRequest,
|
|
20
20
|
ConfirmEmailVerificationResponse,
|
|
21
|
+
ResendEmailVerificationRequest,
|
|
21
22
|
SendEmailVerificationRequest,
|
|
22
23
|
SuccessResult,
|
|
23
24
|
} from '../models/index';
|
|
@@ -28,6 +29,8 @@ import {
|
|
|
28
29
|
ConfirmEmailVerificationRequestToJSON,
|
|
29
30
|
ConfirmEmailVerificationResponseFromJSON,
|
|
30
31
|
ConfirmEmailVerificationResponseToJSON,
|
|
32
|
+
ResendEmailVerificationRequestFromJSON,
|
|
33
|
+
ResendEmailVerificationRequestToJSON,
|
|
31
34
|
SendEmailVerificationRequestFromJSON,
|
|
32
35
|
SendEmailVerificationRequestToJSON,
|
|
33
36
|
SuccessResultFromJSON,
|
|
@@ -38,8 +41,8 @@ export interface AuthEmailVerificationApiConfirmEmailVerificationOperationReques
|
|
|
38
41
|
confirmEmailVerificationRequest: ConfirmEmailVerificationRequest;
|
|
39
42
|
}
|
|
40
43
|
|
|
41
|
-
export interface
|
|
42
|
-
|
|
44
|
+
export interface AuthEmailVerificationApiResendEmailVerificationOperationRequest {
|
|
45
|
+
resendEmailVerificationRequest?: ResendEmailVerificationRequest;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
export interface AuthEmailVerificationApiSendEmailVerificationOperationRequest {
|
|
@@ -54,7 +57,7 @@ export interface AuthEmailVerificationApiSendEmailVerificationOperationRequest {
|
|
|
54
57
|
*/
|
|
55
58
|
export interface AuthEmailVerificationApiInterface {
|
|
56
59
|
/**
|
|
57
|
-
* Verify the user\'s email using
|
|
60
|
+
* Verify the user\'s email using a token you collected yourself. IMPORTANT: the emailed verification LINK verifies the address server-side **on click** and then redirects to `redirect_url`. So if you take the token off that redirect and post it here, it is already redeemed — and this endpoint treats that as an idempotent **success** (`200` with `already_verified: true`), not an error. Only a genuinely invalid / expired / unknown token returns `400`. `send` / `confirm` / `resend` are NOT a mandatory matched set — `confirm` is for flows where you collect the token directly rather than landing the hosted redirect. Recommended pattern for the redirect landing: call `confirm`, ignore its result, then read the user\'s verified state back and report that — correct whether or not the link already consumed the token.
|
|
58
61
|
* @summary Confirm email verification
|
|
59
62
|
* @param {ConfirmEmailVerificationRequest} confirmEmailVerificationRequest
|
|
60
63
|
* @param {*} [options] Override http request option.
|
|
@@ -64,7 +67,7 @@ export interface AuthEmailVerificationApiInterface {
|
|
|
64
67
|
confirmEmailVerificationRaw(requestParameters: AuthEmailVerificationApiConfirmEmailVerificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConfirmEmailVerificationResponse>>;
|
|
65
68
|
|
|
66
69
|
/**
|
|
67
|
-
* Verify the user\'s email using
|
|
70
|
+
* Verify the user\'s email using a token you collected yourself. IMPORTANT: the emailed verification LINK verifies the address server-side **on click** and then redirects to `redirect_url`. So if you take the token off that redirect and post it here, it is already redeemed — and this endpoint treats that as an idempotent **success** (`200` with `already_verified: true`), not an error. Only a genuinely invalid / expired / unknown token returns `400`. `send` / `confirm` / `resend` are NOT a mandatory matched set — `confirm` is for flows where you collect the token directly rather than landing the hosted redirect. Recommended pattern for the redirect landing: call `confirm`, ignore its result, then read the user\'s verified state back and report that — correct whether or not the link already consumed the token.
|
|
68
71
|
* Confirm email verification
|
|
69
72
|
*/
|
|
70
73
|
confirmEmailVerification(confirmEmailVerificationRequest: ConfirmEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConfirmEmailVerificationResponse>;
|
|
@@ -72,21 +75,21 @@ export interface AuthEmailVerificationApiInterface {
|
|
|
72
75
|
/**
|
|
73
76
|
* Resend the verification email to the authenticated user. Rate limited to once per 60 seconds.
|
|
74
77
|
* @summary Resend email verification
|
|
75
|
-
* @param {
|
|
78
|
+
* @param {ResendEmailVerificationRequest} [resendEmailVerificationRequest]
|
|
76
79
|
* @param {*} [options] Override http request option.
|
|
77
80
|
* @throws {RequiredError}
|
|
78
81
|
* @memberof AuthEmailVerificationApiInterface
|
|
79
82
|
*/
|
|
80
|
-
resendEmailVerificationRaw(requestParameters:
|
|
83
|
+
resendEmailVerificationRaw(requestParameters: AuthEmailVerificationApiResendEmailVerificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResult>>;
|
|
81
84
|
|
|
82
85
|
/**
|
|
83
86
|
* Resend the verification email to the authenticated user. Rate limited to once per 60 seconds.
|
|
84
87
|
* Resend email verification
|
|
85
88
|
*/
|
|
86
|
-
resendEmailVerification(
|
|
89
|
+
resendEmailVerification(resendEmailVerificationRequest?: ResendEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResult>;
|
|
87
90
|
|
|
88
91
|
/**
|
|
89
|
-
* Send an email verification link to the authenticated user.
|
|
92
|
+
* Send an email verification link to the authenticated user. Requires all three credentials simultaneously: the application key (`X-Application-Key`), the application secret (`X-Application-Secret`), and the end user\'s `Authorization: Bearer` token. If the recipient is blocked by the application\'s `auth_email_mode=allowlist` gate, the request is still **accepted with 200** (mirroring `POST /auth/forgot-password`): no email is sent, and the suppression is recorded as a `messages` row (`status=suppressed`, `status_reason=recipient_not_allowlisted`) and an `email.suppressed` webhook. It is NOT a 500.
|
|
90
93
|
* @summary Send email verification
|
|
91
94
|
* @param {SendEmailVerificationRequest} [sendEmailVerificationRequest]
|
|
92
95
|
* @param {*} [options] Override http request option.
|
|
@@ -96,7 +99,7 @@ export interface AuthEmailVerificationApiInterface {
|
|
|
96
99
|
sendEmailVerificationRaw(requestParameters: AuthEmailVerificationApiSendEmailVerificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResult>>;
|
|
97
100
|
|
|
98
101
|
/**
|
|
99
|
-
* Send an email verification link to the authenticated user.
|
|
102
|
+
* Send an email verification link to the authenticated user. Requires all three credentials simultaneously: the application key (`X-Application-Key`), the application secret (`X-Application-Secret`), and the end user\'s `Authorization: Bearer` token. If the recipient is blocked by the application\'s `auth_email_mode=allowlist` gate, the request is still **accepted with 200** (mirroring `POST /auth/forgot-password`): no email is sent, and the suppression is recorded as a `messages` row (`status=suppressed`, `status_reason=recipient_not_allowlisted`) and an `email.suppressed` webhook. It is NOT a 500.
|
|
100
103
|
* Send email verification
|
|
101
104
|
*/
|
|
102
105
|
sendEmailVerification(sendEmailVerificationRequest?: SendEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResult>;
|
|
@@ -109,7 +112,7 @@ export interface AuthEmailVerificationApiInterface {
|
|
|
109
112
|
export class AuthEmailVerificationApi extends runtime.BaseAPI implements AuthEmailVerificationApiInterface {
|
|
110
113
|
|
|
111
114
|
/**
|
|
112
|
-
* Verify the user\'s email using
|
|
115
|
+
* Verify the user\'s email using a token you collected yourself. IMPORTANT: the emailed verification LINK verifies the address server-side **on click** and then redirects to `redirect_url`. So if you take the token off that redirect and post it here, it is already redeemed — and this endpoint treats that as an idempotent **success** (`200` with `already_verified: true`), not an error. Only a genuinely invalid / expired / unknown token returns `400`. `send` / `confirm` / `resend` are NOT a mandatory matched set — `confirm` is for flows where you collect the token directly rather than landing the hosted redirect. Recommended pattern for the redirect landing: call `confirm`, ignore its result, then read the user\'s verified state back and report that — correct whether or not the link already consumed the token.
|
|
113
116
|
* Confirm email verification
|
|
114
117
|
*/
|
|
115
118
|
async confirmEmailVerificationRaw(requestParameters: AuthEmailVerificationApiConfirmEmailVerificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConfirmEmailVerificationResponse>> {
|
|
@@ -146,7 +149,7 @@ export class AuthEmailVerificationApi extends runtime.BaseAPI implements AuthEma
|
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
/**
|
|
149
|
-
* Verify the user\'s email using
|
|
152
|
+
* Verify the user\'s email using a token you collected yourself. IMPORTANT: the emailed verification LINK verifies the address server-side **on click** and then redirects to `redirect_url`. So if you take the token off that redirect and post it here, it is already redeemed — and this endpoint treats that as an idempotent **success** (`200` with `already_verified: true`), not an error. Only a genuinely invalid / expired / unknown token returns `400`. `send` / `confirm` / `resend` are NOT a mandatory matched set — `confirm` is for flows where you collect the token directly rather than landing the hosted redirect. Recommended pattern for the redirect landing: call `confirm`, ignore its result, then read the user\'s verified state back and report that — correct whether or not the link already consumed the token.
|
|
150
153
|
* Confirm email verification
|
|
151
154
|
*/
|
|
152
155
|
async confirmEmailVerification(confirmEmailVerificationRequest: ConfirmEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConfirmEmailVerificationResponse> {
|
|
@@ -158,7 +161,7 @@ export class AuthEmailVerificationApi extends runtime.BaseAPI implements AuthEma
|
|
|
158
161
|
* Resend the verification email to the authenticated user. Rate limited to once per 60 seconds.
|
|
159
162
|
* Resend email verification
|
|
160
163
|
*/
|
|
161
|
-
async resendEmailVerificationRaw(requestParameters:
|
|
164
|
+
async resendEmailVerificationRaw(requestParameters: AuthEmailVerificationApiResendEmailVerificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResult>> {
|
|
162
165
|
const queryParameters: any = {};
|
|
163
166
|
|
|
164
167
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -186,7 +189,7 @@ export class AuthEmailVerificationApi extends runtime.BaseAPI implements AuthEma
|
|
|
186
189
|
method: 'POST',
|
|
187
190
|
headers: headerParameters,
|
|
188
191
|
query: queryParameters,
|
|
189
|
-
body:
|
|
192
|
+
body: ResendEmailVerificationRequestToJSON(requestParameters['resendEmailVerificationRequest']),
|
|
190
193
|
}, initOverrides);
|
|
191
194
|
|
|
192
195
|
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessResultFromJSON(jsonValue));
|
|
@@ -196,13 +199,13 @@ export class AuthEmailVerificationApi extends runtime.BaseAPI implements AuthEma
|
|
|
196
199
|
* Resend the verification email to the authenticated user. Rate limited to once per 60 seconds.
|
|
197
200
|
* Resend email verification
|
|
198
201
|
*/
|
|
199
|
-
async resendEmailVerification(
|
|
200
|
-
const response = await this.resendEmailVerificationRaw({
|
|
202
|
+
async resendEmailVerification(resendEmailVerificationRequest?: ResendEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResult> {
|
|
203
|
+
const response = await this.resendEmailVerificationRaw({ resendEmailVerificationRequest: resendEmailVerificationRequest }, initOverrides);
|
|
201
204
|
return await response.value();
|
|
202
205
|
}
|
|
203
206
|
|
|
204
207
|
/**
|
|
205
|
-
* Send an email verification link to the authenticated user.
|
|
208
|
+
* Send an email verification link to the authenticated user. Requires all three credentials simultaneously: the application key (`X-Application-Key`), the application secret (`X-Application-Secret`), and the end user\'s `Authorization: Bearer` token. If the recipient is blocked by the application\'s `auth_email_mode=allowlist` gate, the request is still **accepted with 200** (mirroring `POST /auth/forgot-password`): no email is sent, and the suppression is recorded as a `messages` row (`status=suppressed`, `status_reason=recipient_not_allowlisted`) and an `email.suppressed` webhook. It is NOT a 500.
|
|
206
209
|
* Send email verification
|
|
207
210
|
*/
|
|
208
211
|
async sendEmailVerificationRaw(requestParameters: AuthEmailVerificationApiSendEmailVerificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResult>> {
|
|
@@ -240,7 +243,7 @@ export class AuthEmailVerificationApi extends runtime.BaseAPI implements AuthEma
|
|
|
240
243
|
}
|
|
241
244
|
|
|
242
245
|
/**
|
|
243
|
-
* Send an email verification link to the authenticated user.
|
|
246
|
+
* Send an email verification link to the authenticated user. Requires all three credentials simultaneously: the application key (`X-Application-Key`), the application secret (`X-Application-Secret`), and the end user\'s `Authorization: Bearer` token. If the recipient is blocked by the application\'s `auth_email_mode=allowlist` gate, the request is still **accepted with 200** (mirroring `POST /auth/forgot-password`): no email is sent, and the suppression is recorded as a `messages` row (`status=suppressed`, `status_reason=recipient_not_allowlisted`) and an `email.suppressed` webhook. It is NOT a 500.
|
|
244
247
|
* Send email verification
|
|
245
248
|
*/
|
|
246
249
|
async sendEmailVerification(sendEmailVerificationRequest?: SendEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResult> {
|
|
@@ -59,6 +59,12 @@ export interface ApplicationSelf {
|
|
|
59
59
|
* @memberof ApplicationSelf
|
|
60
60
|
*/
|
|
61
61
|
authEmailMode: ApplicationSelfAuthEmailModeEnum;
|
|
62
|
+
/**
|
|
63
|
+
* When true (sc-7680), passwords found in the HaveIBeenPwned breach corpus are rejected at register/reset (and returned `valid:false` by `/auth/password-strength`). When false (default), breach info is advisory only. Fail-open: a breach-source outage never blocks auth.
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof ApplicationSelf
|
|
66
|
+
*/
|
|
67
|
+
passwordDisallowBreached: boolean;
|
|
62
68
|
}
|
|
63
69
|
|
|
64
70
|
|
|
@@ -101,6 +107,7 @@ export function instanceOfApplicationSelf(value: object): value is ApplicationSe
|
|
|
101
107
|
if (!('signingAlgorithm' in value) || value['signingAlgorithm'] === undefined) return false;
|
|
102
108
|
if (!('testRecipients' in value) || value['testRecipients'] === undefined) return false;
|
|
103
109
|
if (!('authEmailMode' in value) || value['authEmailMode'] === undefined) return false;
|
|
110
|
+
if (!('passwordDisallowBreached' in value) || value['passwordDisallowBreached'] === undefined) return false;
|
|
104
111
|
return true;
|
|
105
112
|
}
|
|
106
113
|
|
|
@@ -120,6 +127,7 @@ export function ApplicationSelfFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
120
127
|
'signingAlgorithm': json['signing_algorithm'],
|
|
121
128
|
'testRecipients': json['test_recipients'],
|
|
122
129
|
'authEmailMode': json['auth_email_mode'],
|
|
130
|
+
'passwordDisallowBreached': json['password_disallow_breached'],
|
|
123
131
|
};
|
|
124
132
|
}
|
|
125
133
|
|
|
@@ -140,6 +148,7 @@ export function ApplicationSelfToJSONTyped(value?: ApplicationSelf | null, ignor
|
|
|
140
148
|
'signing_algorithm': value['signingAlgorithm'],
|
|
141
149
|
'test_recipients': value['testRecipients'],
|
|
142
150
|
'auth_email_mode': value['authEmailMode'],
|
|
151
|
+
'password_disallow_breached': value['passwordDisallowBreached'],
|
|
143
152
|
};
|
|
144
153
|
}
|
|
145
154
|
|
|
@@ -31,6 +31,12 @@ export interface ConfirmEmailVerificationResponseData {
|
|
|
31
31
|
* @memberof ConfirmEmailVerificationResponseData
|
|
32
32
|
*/
|
|
33
33
|
email?: string;
|
|
34
|
+
/**
|
|
35
|
+
* True when the address was already verified (the emailed link consumed the token on click). Still a 200 — an idempotent success, not an error (sc-7721).
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof ConfirmEmailVerificationResponseData
|
|
38
|
+
*/
|
|
39
|
+
alreadyVerified?: boolean;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -52,6 +58,7 @@ export function ConfirmEmailVerificationResponseDataFromJSONTyped(json: any, ign
|
|
|
52
58
|
|
|
53
59
|
'success': json['success'] == null ? undefined : json['success'],
|
|
54
60
|
'email': json['email'] == null ? undefined : json['email'],
|
|
61
|
+
'alreadyVerified': json['already_verified'] == null ? undefined : json['already_verified'],
|
|
55
62
|
};
|
|
56
63
|
}
|
|
57
64
|
|
|
@@ -68,6 +75,7 @@ export function ConfirmEmailVerificationResponseDataToJSONTyped(value?: ConfirmE
|
|
|
68
75
|
|
|
69
76
|
'success': value['success'],
|
|
70
77
|
'email': value['email'],
|
|
78
|
+
'already_verified': value['alreadyVerified'],
|
|
71
79
|
};
|
|
72
80
|
}
|
|
73
81
|
|
|
@@ -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 ## Account Sending Status Every authenticated response carries the account\'s current sending state so you can surface it in your own tooling without a separate call: - `X-Account-Sending-Status`: `active`, `throttled`, or `frozen` - `X-Account-Sending-Status-Reason`: human-readable reason (present only when the status is `throttled` or `frozen`) This header is informational and non-blocking on non-send endpoints (reads, billing, and deliverability stay available). Send-capable endpoints additionally enforce the state: a frozen account receives `403 account_frozen` and a throttled account receives `429 account_throttled`, both with the reason in the error message. ## 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 ResendEmailVerificationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ResendEmailVerificationRequest {
|
|
22
|
+
/**
|
|
23
|
+
* URL to redirect to after verification
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ResendEmailVerificationRequest
|
|
26
|
+
*/
|
|
27
|
+
redirectUrl?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ResendEmailVerificationRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfResendEmailVerificationRequest(value: object): value is ResendEmailVerificationRequest {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ResendEmailVerificationRequestFromJSON(json: any): ResendEmailVerificationRequest {
|
|
38
|
+
return ResendEmailVerificationRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ResendEmailVerificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResendEmailVerificationRequest {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'redirectUrl': json['redirect_url'] == null ? undefined : json['redirect_url'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ResendEmailVerificationRequestToJSON(json: any): ResendEmailVerificationRequest {
|
|
52
|
+
return ResendEmailVerificationRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ResendEmailVerificationRequestToJSONTyped(value?: ResendEmailVerificationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'redirect_url': value['redirectUrl'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -20,7 +20,7 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface SendEmailVerificationRequest {
|
|
22
22
|
/**
|
|
23
|
-
* URL to redirect to after verification
|
|
23
|
+
* URL to redirect to after verification (snake_case `redirect_url` — a camelCase `redirectUrl` is ignored and the hosted verification page is used instead). Must match one of the application's configured redirect URIs.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof SendEmailVerificationRequest
|
|
26
26
|
*/
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
* Provide test_recipients
|
|
17
|
+
* Provide any of test_recipients, auth_email_mode, or password_disallow_breached. Omitting one leaves that value unchanged; sending none is a 400. Unknown fields are rejected (400).
|
|
18
18
|
* @export
|
|
19
19
|
* @interface SetSelfApplicationTestRecipientsRequest
|
|
20
20
|
*/
|
|
@@ -31,6 +31,12 @@ export interface SetSelfApplicationTestRecipientsRequest {
|
|
|
31
31
|
* @memberof SetSelfApplicationTestRecipientsRequest
|
|
32
32
|
*/
|
|
33
33
|
authEmailMode?: SetSelfApplicationTestRecipientsRequestAuthEmailModeEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Optional (sc-7680/sc-7697). When true, reject HIBP-breached passwords at register/reset. Omit to leave unchanged.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof SetSelfApplicationTestRecipientsRequest
|
|
38
|
+
*/
|
|
39
|
+
passwordDisallowBreached?: boolean;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
|
|
@@ -63,6 +69,7 @@ export function SetSelfApplicationTestRecipientsRequestFromJSONTyped(json: any,
|
|
|
63
69
|
|
|
64
70
|
'testRecipients': json['test_recipients'] == null ? undefined : json['test_recipients'],
|
|
65
71
|
'authEmailMode': json['auth_email_mode'] == null ? undefined : json['auth_email_mode'],
|
|
72
|
+
'passwordDisallowBreached': json['password_disallow_breached'] == null ? undefined : json['password_disallow_breached'],
|
|
66
73
|
};
|
|
67
74
|
}
|
|
68
75
|
|
|
@@ -79,6 +86,7 @@ export function SetSelfApplicationTestRecipientsRequestToJSONTyped(value?: SetSe
|
|
|
79
86
|
|
|
80
87
|
'test_recipients': value['testRecipients'],
|
|
81
88
|
'auth_email_mode': value['authEmailMode'],
|
|
89
|
+
'password_disallow_breached': value['passwordDisallowBreached'],
|
|
82
90
|
};
|
|
83
91
|
}
|
|
84
92
|
|
package/src/src/models/index.ts
CHANGED
|
@@ -277,6 +277,7 @@ export * from './RenderTemplateRequest';
|
|
|
277
277
|
export * from './ReorderWorkflowStepsRequest';
|
|
278
278
|
export * from './ReplayWebhookEventsRequest';
|
|
279
279
|
export * from './RequestMeta';
|
|
280
|
+
export * from './ResendEmailVerificationRequest';
|
|
280
281
|
export * from './ResetPasswordRequest';
|
|
281
282
|
export * from './ResetPasswordResponse';
|
|
282
283
|
export * from './ResubscribeRequest';
|