@zyphr-dev/node-sdk 0.1.68 → 0.1.70
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 +232 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +278 -25
- package/dist/index.d.ts +278 -25
- package/dist/index.js +206 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +5 -0
- package/src/src/apis/AuthMagicLinksApi.ts +12 -12
- package/src/src/apis/AuthPasswordResetApi.ts +12 -12
- package/src/src/apis/AuthUserDirectoryApi.ts +4 -4
- package/src/src/apis/WebhooksApi.ts +4 -4
- package/src/src/models/ForgotPasswordRequest.ts +11 -0
- package/src/src/models/ForgotPasswordResult.ts +88 -0
- package/src/src/models/ForgotPasswordResultData.ts +100 -0
- package/src/src/models/InviteEndUser200ResponseData.ts +16 -0
- package/src/src/models/InviteEndUserRequest.ts +8 -0
- package/src/src/models/MagicLinkSendRequest.ts +11 -0
- package/src/src/models/MagicLinkSendResult.ts +88 -0
- package/src/src/models/MagicLinkSendResultData.ts +81 -0
- package/src/src/models/ReturnedAuthLink.ts +87 -0
- package/src/src/models/index.ts +5 -0
package/dist/index.cjs
CHANGED
|
@@ -553,6 +553,15 @@ __export(index_exports, {
|
|
|
553
553
|
ForgotPasswordRequestFromJSONTyped: () => ForgotPasswordRequestFromJSONTyped,
|
|
554
554
|
ForgotPasswordRequestToJSON: () => ForgotPasswordRequestToJSON,
|
|
555
555
|
ForgotPasswordRequestToJSONTyped: () => ForgotPasswordRequestToJSONTyped,
|
|
556
|
+
ForgotPasswordResultDataFromJSON: () => ForgotPasswordResultDataFromJSON,
|
|
557
|
+
ForgotPasswordResultDataFromJSONTyped: () => ForgotPasswordResultDataFromJSONTyped,
|
|
558
|
+
ForgotPasswordResultDataLinkSuppressedReasonEnum: () => ForgotPasswordResultDataLinkSuppressedReasonEnum,
|
|
559
|
+
ForgotPasswordResultDataToJSON: () => ForgotPasswordResultDataToJSON,
|
|
560
|
+
ForgotPasswordResultDataToJSONTyped: () => ForgotPasswordResultDataToJSONTyped,
|
|
561
|
+
ForgotPasswordResultFromJSON: () => ForgotPasswordResultFromJSON,
|
|
562
|
+
ForgotPasswordResultFromJSONTyped: () => ForgotPasswordResultFromJSONTyped,
|
|
563
|
+
ForgotPasswordResultToJSON: () => ForgotPasswordResultToJSON,
|
|
564
|
+
ForgotPasswordResultToJSONTyped: () => ForgotPasswordResultToJSONTyped,
|
|
556
565
|
GenerateSubscriberToken200ResponseDataFromJSON: () => GenerateSubscriberToken200ResponseDataFromJSON,
|
|
557
566
|
GenerateSubscriberToken200ResponseDataFromJSONTyped: () => GenerateSubscriberToken200ResponseDataFromJSONTyped,
|
|
558
567
|
GenerateSubscriberToken200ResponseDataToJSON: () => GenerateSubscriberToken200ResponseDataToJSON,
|
|
@@ -792,6 +801,14 @@ __export(index_exports, {
|
|
|
792
801
|
MagicLinkSendRequestFromJSONTyped: () => MagicLinkSendRequestFromJSONTyped,
|
|
793
802
|
MagicLinkSendRequestToJSON: () => MagicLinkSendRequestToJSON,
|
|
794
803
|
MagicLinkSendRequestToJSONTyped: () => MagicLinkSendRequestToJSONTyped,
|
|
804
|
+
MagicLinkSendResultDataFromJSON: () => MagicLinkSendResultDataFromJSON,
|
|
805
|
+
MagicLinkSendResultDataFromJSONTyped: () => MagicLinkSendResultDataFromJSONTyped,
|
|
806
|
+
MagicLinkSendResultDataToJSON: () => MagicLinkSendResultDataToJSON,
|
|
807
|
+
MagicLinkSendResultDataToJSONTyped: () => MagicLinkSendResultDataToJSONTyped,
|
|
808
|
+
MagicLinkSendResultFromJSON: () => MagicLinkSendResultFromJSON,
|
|
809
|
+
MagicLinkSendResultFromJSONTyped: () => MagicLinkSendResultFromJSONTyped,
|
|
810
|
+
MagicLinkSendResultToJSON: () => MagicLinkSendResultToJSON,
|
|
811
|
+
MagicLinkSendResultToJSONTyped: () => MagicLinkSendResultToJSONTyped,
|
|
795
812
|
MagicLinkVerifyRequestFromJSON: () => MagicLinkVerifyRequestFromJSON,
|
|
796
813
|
MagicLinkVerifyRequestFromJSONTyped: () => MagicLinkVerifyRequestFromJSONTyped,
|
|
797
814
|
MagicLinkVerifyRequestToJSON: () => MagicLinkVerifyRequestToJSON,
|
|
@@ -1238,6 +1255,10 @@ __export(index_exports, {
|
|
|
1238
1255
|
ResubscribeResponseFromJSONTyped: () => ResubscribeResponseFromJSONTyped,
|
|
1239
1256
|
ResubscribeResponseToJSON: () => ResubscribeResponseToJSON,
|
|
1240
1257
|
ResubscribeResponseToJSONTyped: () => ResubscribeResponseToJSONTyped,
|
|
1258
|
+
ReturnedAuthLinkFromJSON: () => ReturnedAuthLinkFromJSON,
|
|
1259
|
+
ReturnedAuthLinkFromJSONTyped: () => ReturnedAuthLinkFromJSONTyped,
|
|
1260
|
+
ReturnedAuthLinkToJSON: () => ReturnedAuthLinkToJSON,
|
|
1261
|
+
ReturnedAuthLinkToJSONTyped: () => ReturnedAuthLinkToJSONTyped,
|
|
1241
1262
|
RevokeAllSessionsResponseDataFromJSON: () => RevokeAllSessionsResponseDataFromJSON,
|
|
1242
1263
|
RevokeAllSessionsResponseDataFromJSONTyped: () => RevokeAllSessionsResponseDataFromJSONTyped,
|
|
1243
1264
|
RevokeAllSessionsResponseDataToJSON: () => RevokeAllSessionsResponseDataToJSON,
|
|
@@ -2308,6 +2329,8 @@ __export(index_exports, {
|
|
|
2308
2329
|
instanceOfExecutionRetryResponse: () => instanceOfExecutionRetryResponse,
|
|
2309
2330
|
instanceOfExecutionRetryResponseData: () => instanceOfExecutionRetryResponseData,
|
|
2310
2331
|
instanceOfForgotPasswordRequest: () => instanceOfForgotPasswordRequest,
|
|
2332
|
+
instanceOfForgotPasswordResult: () => instanceOfForgotPasswordResult,
|
|
2333
|
+
instanceOfForgotPasswordResultData: () => instanceOfForgotPasswordResultData,
|
|
2311
2334
|
instanceOfGenerateSubscriberToken200Response: () => instanceOfGenerateSubscriberToken200Response,
|
|
2312
2335
|
instanceOfGenerateSubscriberToken200ResponseData: () => instanceOfGenerateSubscriberToken200ResponseData,
|
|
2313
2336
|
instanceOfGenerateSubscriberTokenRequest: () => instanceOfGenerateSubscriberTokenRequest,
|
|
@@ -2361,6 +2384,8 @@ __export(index_exports, {
|
|
|
2361
2384
|
instanceOfListWorkflows200ResponseMeta: () => instanceOfListWorkflows200ResponseMeta,
|
|
2362
2385
|
instanceOfLoginRequest: () => instanceOfLoginRequest,
|
|
2363
2386
|
instanceOfMagicLinkSendRequest: () => instanceOfMagicLinkSendRequest,
|
|
2387
|
+
instanceOfMagicLinkSendResult: () => instanceOfMagicLinkSendResult,
|
|
2388
|
+
instanceOfMagicLinkSendResultData: () => instanceOfMagicLinkSendResultData,
|
|
2364
2389
|
instanceOfMagicLinkVerifyRequest: () => instanceOfMagicLinkVerifyRequest,
|
|
2365
2390
|
instanceOfMagicLinkVerifyResponse: () => instanceOfMagicLinkVerifyResponse,
|
|
2366
2391
|
instanceOfMagicLinkVerifyResponseData: () => instanceOfMagicLinkVerifyResponseData,
|
|
@@ -2469,6 +2494,7 @@ __export(index_exports, {
|
|
|
2469
2494
|
instanceOfResetPasswordResponse: () => instanceOfResetPasswordResponse,
|
|
2470
2495
|
instanceOfResubscribeRequest: () => instanceOfResubscribeRequest,
|
|
2471
2496
|
instanceOfResubscribeResponse: () => instanceOfResubscribeResponse,
|
|
2497
|
+
instanceOfReturnedAuthLink: () => instanceOfReturnedAuthLink,
|
|
2472
2498
|
instanceOfRevokeAllSessionsResponse: () => instanceOfRevokeAllSessionsResponse,
|
|
2473
2499
|
instanceOfRevokeAllSessionsResponseData: () => instanceOfRevokeAllSessionsResponseData,
|
|
2474
2500
|
instanceOfRevokeSessionRequest: () => instanceOfRevokeSessionRequest,
|
|
@@ -7734,7 +7760,8 @@ function ForgotPasswordRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7734
7760
|
}
|
|
7735
7761
|
return {
|
|
7736
7762
|
"email": json["email"],
|
|
7737
|
-
"redirectUrl": json["redirect_url"] == null ? void 0 : json["redirect_url"]
|
|
7763
|
+
"redirectUrl": json["redirect_url"] == null ? void 0 : json["redirect_url"],
|
|
7764
|
+
"returnLink": json["return_link"] == null ? void 0 : json["return_link"]
|
|
7738
7765
|
};
|
|
7739
7766
|
}
|
|
7740
7767
|
function ForgotPasswordRequestToJSON(json) {
|
|
@@ -7746,7 +7773,106 @@ function ForgotPasswordRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
7746
7773
|
}
|
|
7747
7774
|
return {
|
|
7748
7775
|
"email": value["email"],
|
|
7749
|
-
"redirect_url": value["redirectUrl"]
|
|
7776
|
+
"redirect_url": value["redirectUrl"],
|
|
7777
|
+
"return_link": value["returnLink"]
|
|
7778
|
+
};
|
|
7779
|
+
}
|
|
7780
|
+
|
|
7781
|
+
// src/src/models/ReturnedAuthLink.ts
|
|
7782
|
+
function instanceOfReturnedAuthLink(value) {
|
|
7783
|
+
if (!("url" in value) || value["url"] === void 0) return false;
|
|
7784
|
+
if (!("token" in value) || value["token"] === void 0) return false;
|
|
7785
|
+
if (!("expiresAt" in value) || value["expiresAt"] === void 0) return false;
|
|
7786
|
+
return true;
|
|
7787
|
+
}
|
|
7788
|
+
function ReturnedAuthLinkFromJSON(json) {
|
|
7789
|
+
return ReturnedAuthLinkFromJSONTyped(json, false);
|
|
7790
|
+
}
|
|
7791
|
+
function ReturnedAuthLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
7792
|
+
if (json == null) {
|
|
7793
|
+
return json;
|
|
7794
|
+
}
|
|
7795
|
+
return {
|
|
7796
|
+
"url": json["url"],
|
|
7797
|
+
"token": json["token"],
|
|
7798
|
+
"expiresAt": new Date(json["expires_at"])
|
|
7799
|
+
};
|
|
7800
|
+
}
|
|
7801
|
+
function ReturnedAuthLinkToJSON(json) {
|
|
7802
|
+
return ReturnedAuthLinkToJSONTyped(json, false);
|
|
7803
|
+
}
|
|
7804
|
+
function ReturnedAuthLinkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7805
|
+
if (value == null) {
|
|
7806
|
+
return value;
|
|
7807
|
+
}
|
|
7808
|
+
return {
|
|
7809
|
+
"url": value["url"],
|
|
7810
|
+
"token": value["token"],
|
|
7811
|
+
"expires_at": value["expiresAt"].toISOString()
|
|
7812
|
+
};
|
|
7813
|
+
}
|
|
7814
|
+
|
|
7815
|
+
// src/src/models/ForgotPasswordResultData.ts
|
|
7816
|
+
var ForgotPasswordResultDataLinkSuppressedReasonEnum = {
|
|
7817
|
+
USER_NOT_FOUND: "user_not_found",
|
|
7818
|
+
IDENTITY_HAS_OTHER_AUTH_METHODS: "identity_has_other_auth_methods"
|
|
7819
|
+
};
|
|
7820
|
+
function instanceOfForgotPasswordResultData(value) {
|
|
7821
|
+
return true;
|
|
7822
|
+
}
|
|
7823
|
+
function ForgotPasswordResultDataFromJSON(json) {
|
|
7824
|
+
return ForgotPasswordResultDataFromJSONTyped(json, false);
|
|
7825
|
+
}
|
|
7826
|
+
function ForgotPasswordResultDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
7827
|
+
if (json == null) {
|
|
7828
|
+
return json;
|
|
7829
|
+
}
|
|
7830
|
+
return {
|
|
7831
|
+
"success": json["success"] == null ? void 0 : json["success"],
|
|
7832
|
+
"link": json["link"] == null ? void 0 : ReturnedAuthLinkFromJSON(json["link"]),
|
|
7833
|
+
"linkSuppressedReason": json["link_suppressed_reason"] == null ? void 0 : json["link_suppressed_reason"]
|
|
7834
|
+
};
|
|
7835
|
+
}
|
|
7836
|
+
function ForgotPasswordResultDataToJSON(json) {
|
|
7837
|
+
return ForgotPasswordResultDataToJSONTyped(json, false);
|
|
7838
|
+
}
|
|
7839
|
+
function ForgotPasswordResultDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7840
|
+
if (value == null) {
|
|
7841
|
+
return value;
|
|
7842
|
+
}
|
|
7843
|
+
return {
|
|
7844
|
+
"success": value["success"],
|
|
7845
|
+
"link": ReturnedAuthLinkToJSON(value["link"]),
|
|
7846
|
+
"link_suppressed_reason": value["linkSuppressedReason"]
|
|
7847
|
+
};
|
|
7848
|
+
}
|
|
7849
|
+
|
|
7850
|
+
// src/src/models/ForgotPasswordResult.ts
|
|
7851
|
+
function instanceOfForgotPasswordResult(value) {
|
|
7852
|
+
return true;
|
|
7853
|
+
}
|
|
7854
|
+
function ForgotPasswordResultFromJSON(json) {
|
|
7855
|
+
return ForgotPasswordResultFromJSONTyped(json, false);
|
|
7856
|
+
}
|
|
7857
|
+
function ForgotPasswordResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
7858
|
+
if (json == null) {
|
|
7859
|
+
return json;
|
|
7860
|
+
}
|
|
7861
|
+
return {
|
|
7862
|
+
"data": json["data"] == null ? void 0 : ForgotPasswordResultDataFromJSON(json["data"]),
|
|
7863
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
7864
|
+
};
|
|
7865
|
+
}
|
|
7866
|
+
function ForgotPasswordResultToJSON(json) {
|
|
7867
|
+
return ForgotPasswordResultToJSONTyped(json, false);
|
|
7868
|
+
}
|
|
7869
|
+
function ForgotPasswordResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7870
|
+
if (value == null) {
|
|
7871
|
+
return value;
|
|
7872
|
+
}
|
|
7873
|
+
return {
|
|
7874
|
+
"data": ForgotPasswordResultDataToJSON(value["data"]),
|
|
7875
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
7750
7876
|
};
|
|
7751
7877
|
}
|
|
7752
7878
|
|
|
@@ -9211,6 +9337,7 @@ function InviteEndUser200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9211
9337
|
"userId": json["user_id"] == null ? void 0 : json["user_id"],
|
|
9212
9338
|
"created": json["created"] == null ? void 0 : json["created"],
|
|
9213
9339
|
"linkSent": json["link_sent"] == null ? void 0 : json["link_sent"],
|
|
9340
|
+
"link": json["link"] == null ? void 0 : ReturnedAuthLinkFromJSON(json["link"]),
|
|
9214
9341
|
"linkSuppressedReason": json["link_suppressed_reason"] == null ? void 0 : json["link_suppressed_reason"]
|
|
9215
9342
|
};
|
|
9216
9343
|
}
|
|
@@ -9225,6 +9352,7 @@ function InviteEndUser200ResponseDataToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
9225
9352
|
"user_id": value["userId"],
|
|
9226
9353
|
"created": value["created"],
|
|
9227
9354
|
"link_sent": value["linkSent"],
|
|
9355
|
+
"link": ReturnedAuthLinkToJSON(value["link"]),
|
|
9228
9356
|
"link_suppressed_reason": value["linkSuppressedReason"]
|
|
9229
9357
|
};
|
|
9230
9358
|
}
|
|
@@ -9281,7 +9409,8 @@ function InviteEndUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9281
9409
|
"name": json["name"] == null ? void 0 : json["name"],
|
|
9282
9410
|
"metadata": json["metadata"] == null ? void 0 : json["metadata"],
|
|
9283
9411
|
"sendLink": json["send_link"] == null ? void 0 : json["send_link"],
|
|
9284
|
-
"redirectUrl": json["redirect_url"] == null ? void 0 : json["redirect_url"]
|
|
9412
|
+
"redirectUrl": json["redirect_url"] == null ? void 0 : json["redirect_url"],
|
|
9413
|
+
"returnLink": json["return_link"] == null ? void 0 : json["return_link"]
|
|
9285
9414
|
};
|
|
9286
9415
|
}
|
|
9287
9416
|
function InviteEndUserRequestToJSON(json) {
|
|
@@ -9296,7 +9425,8 @@ function InviteEndUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9296
9425
|
"name": value["name"],
|
|
9297
9426
|
"metadata": value["metadata"],
|
|
9298
9427
|
"send_link": value["sendLink"],
|
|
9299
|
-
"redirect_url": value["redirectUrl"]
|
|
9428
|
+
"redirect_url": value["redirectUrl"],
|
|
9429
|
+
"return_link": value["returnLink"]
|
|
9300
9430
|
};
|
|
9301
9431
|
}
|
|
9302
9432
|
|
|
@@ -9620,7 +9750,8 @@ function MagicLinkSendRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9620
9750
|
}
|
|
9621
9751
|
return {
|
|
9622
9752
|
"email": json["email"],
|
|
9623
|
-
"redirectUrl": json["redirect_url"] == null ? void 0 : json["redirect_url"]
|
|
9753
|
+
"redirectUrl": json["redirect_url"] == null ? void 0 : json["redirect_url"],
|
|
9754
|
+
"returnLink": json["return_link"] == null ? void 0 : json["return_link"]
|
|
9624
9755
|
};
|
|
9625
9756
|
}
|
|
9626
9757
|
function MagicLinkSendRequestToJSON(json) {
|
|
@@ -9632,7 +9763,66 @@ function MagicLinkSendRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9632
9763
|
}
|
|
9633
9764
|
return {
|
|
9634
9765
|
"email": value["email"],
|
|
9635
|
-
"redirect_url": value["redirectUrl"]
|
|
9766
|
+
"redirect_url": value["redirectUrl"],
|
|
9767
|
+
"return_link": value["returnLink"]
|
|
9768
|
+
};
|
|
9769
|
+
}
|
|
9770
|
+
|
|
9771
|
+
// src/src/models/MagicLinkSendResultData.ts
|
|
9772
|
+
function instanceOfMagicLinkSendResultData(value) {
|
|
9773
|
+
return true;
|
|
9774
|
+
}
|
|
9775
|
+
function MagicLinkSendResultDataFromJSON(json) {
|
|
9776
|
+
return MagicLinkSendResultDataFromJSONTyped(json, false);
|
|
9777
|
+
}
|
|
9778
|
+
function MagicLinkSendResultDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
9779
|
+
if (json == null) {
|
|
9780
|
+
return json;
|
|
9781
|
+
}
|
|
9782
|
+
return {
|
|
9783
|
+
"success": json["success"] == null ? void 0 : json["success"],
|
|
9784
|
+
"link": json["link"] == null ? void 0 : ReturnedAuthLinkFromJSON(json["link"])
|
|
9785
|
+
};
|
|
9786
|
+
}
|
|
9787
|
+
function MagicLinkSendResultDataToJSON(json) {
|
|
9788
|
+
return MagicLinkSendResultDataToJSONTyped(json, false);
|
|
9789
|
+
}
|
|
9790
|
+
function MagicLinkSendResultDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9791
|
+
if (value == null) {
|
|
9792
|
+
return value;
|
|
9793
|
+
}
|
|
9794
|
+
return {
|
|
9795
|
+
"success": value["success"],
|
|
9796
|
+
"link": ReturnedAuthLinkToJSON(value["link"])
|
|
9797
|
+
};
|
|
9798
|
+
}
|
|
9799
|
+
|
|
9800
|
+
// src/src/models/MagicLinkSendResult.ts
|
|
9801
|
+
function instanceOfMagicLinkSendResult(value) {
|
|
9802
|
+
return true;
|
|
9803
|
+
}
|
|
9804
|
+
function MagicLinkSendResultFromJSON(json) {
|
|
9805
|
+
return MagicLinkSendResultFromJSONTyped(json, false);
|
|
9806
|
+
}
|
|
9807
|
+
function MagicLinkSendResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
9808
|
+
if (json == null) {
|
|
9809
|
+
return json;
|
|
9810
|
+
}
|
|
9811
|
+
return {
|
|
9812
|
+
"data": json["data"] == null ? void 0 : MagicLinkSendResultDataFromJSON(json["data"]),
|
|
9813
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
9814
|
+
};
|
|
9815
|
+
}
|
|
9816
|
+
function MagicLinkSendResultToJSON(json) {
|
|
9817
|
+
return MagicLinkSendResultToJSONTyped(json, false);
|
|
9818
|
+
}
|
|
9819
|
+
function MagicLinkSendResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9820
|
+
if (value == null) {
|
|
9821
|
+
return value;
|
|
9822
|
+
}
|
|
9823
|
+
return {
|
|
9824
|
+
"data": MagicLinkSendResultDataToJSON(value["data"]),
|
|
9825
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
9636
9826
|
};
|
|
9637
9827
|
}
|
|
9638
9828
|
|
|
@@ -21129,7 +21319,7 @@ var AuthMFAApi = class extends BaseAPI {
|
|
|
21129
21319
|
// src/src/apis/AuthMagicLinksApi.ts
|
|
21130
21320
|
var AuthMagicLinksApi = class extends BaseAPI {
|
|
21131
21321
|
/**
|
|
21132
|
-
* Send a magic link email for passwordless authentication.
|
|
21322
|
+
* Send a magic link email for passwordless authentication. **Sending the email yourself:** pass `return_link: true` (with `redirect_url`) and Zyphr mints the link but sends nothing, returning it in `data.link`. Requires your application secret, so call it server-side only.
|
|
21133
21323
|
* Send a magic link
|
|
21134
21324
|
*/
|
|
21135
21325
|
async sendMagicLinkRaw(requestParameters, initOverrides) {
|
|
@@ -21165,10 +21355,10 @@ var AuthMagicLinksApi = class extends BaseAPI {
|
|
|
21165
21355
|
query: queryParameters,
|
|
21166
21356
|
body: MagicLinkSendRequestToJSON(requestParameters["magicLinkSendRequest"])
|
|
21167
21357
|
}, initOverrides);
|
|
21168
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
21358
|
+
return new JSONApiResponse(response, (jsonValue) => MagicLinkSendResultFromJSON(jsonValue));
|
|
21169
21359
|
}
|
|
21170
21360
|
/**
|
|
21171
|
-
* Send a magic link email for passwordless authentication.
|
|
21361
|
+
* Send a magic link email for passwordless authentication. **Sending the email yourself:** pass `return_link: true` (with `redirect_url`) and Zyphr mints the link but sends nothing, returning it in `data.link`. Requires your application secret, so call it server-side only.
|
|
21172
21362
|
* Send a magic link
|
|
21173
21363
|
*/
|
|
21174
21364
|
async sendMagicLink(magicLinkSendRequest, initOverrides) {
|
|
@@ -22219,7 +22409,7 @@ var AuthOrganizationsApi = class extends BaseAPI {
|
|
|
22219
22409
|
// src/src/apis/AuthPasswordResetApi.ts
|
|
22220
22410
|
var AuthPasswordResetApi = class extends BaseAPI {
|
|
22221
22411
|
/**
|
|
22222
|
-
* Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration — the response is identical whether or not the address is registered. An identity with **no password set** still receives a link, which sets a first password. This covers users migrated from a provider that cannot export password hashes. The one case where no email is sent (beyond an unknown address) is an identity that has no password but *does* have another way in — a linked OAuth provider and/or a passkey. Those users are not locked out, so no set-password link is sent; the attempt is recorded as a suppressed message visible via `GET /emails`.
|
|
22412
|
+
* Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration — the response is identical whether or not the address is registered. An identity with **no password set** still receives a link, which sets a first password. This covers users migrated from a provider that cannot export password hashes. The one case where no email is sent (beyond an unknown address) is an identity that has no password but *does* have another way in — a linked OAuth provider and/or a passkey. Those users are not locked out, so no set-password link is sent; the attempt is recorded as a suppressed message visible via `GET /emails`. **Sending the email yourself:** pass `return_link: true` (with `redirect_url`) and Zyphr mints the token but sends nothing, returning the link in `data.link`. When no link is minted, `data.link` is null and `data.link_suppressed_reason` says why. Unlike the default response, this reveals whether the address is registered — acceptable only because the endpoint requires your application secret, so it must only be called server-side.
|
|
22223
22413
|
* Request a password reset
|
|
22224
22414
|
*/
|
|
22225
22415
|
async forgotPasswordRaw(requestParameters, initOverrides) {
|
|
@@ -22255,10 +22445,10 @@ var AuthPasswordResetApi = class extends BaseAPI {
|
|
|
22255
22445
|
query: queryParameters,
|
|
22256
22446
|
body: ForgotPasswordRequestToJSON(requestParameters["forgotPasswordRequest"])
|
|
22257
22447
|
}, initOverrides);
|
|
22258
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
22448
|
+
return new JSONApiResponse(response, (jsonValue) => ForgotPasswordResultFromJSON(jsonValue));
|
|
22259
22449
|
}
|
|
22260
22450
|
/**
|
|
22261
|
-
* Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration — the response is identical whether or not the address is registered. An identity with **no password set** still receives a link, which sets a first password. This covers users migrated from a provider that cannot export password hashes. The one case where no email is sent (beyond an unknown address) is an identity that has no password but *does* have another way in — a linked OAuth provider and/or a passkey. Those users are not locked out, so no set-password link is sent; the attempt is recorded as a suppressed message visible via `GET /emails`.
|
|
22451
|
+
* Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration — the response is identical whether or not the address is registered. An identity with **no password set** still receives a link, which sets a first password. This covers users migrated from a provider that cannot export password hashes. The one case where no email is sent (beyond an unknown address) is an identity that has no password but *does* have another way in — a linked OAuth provider and/or a passkey. Those users are not locked out, so no set-password link is sent; the attempt is recorded as a suppressed message visible via `GET /emails`. **Sending the email yourself:** pass `return_link: true` (with `redirect_url`) and Zyphr mints the token but sends nothing, returning the link in `data.link`. When no link is minted, `data.link` is null and `data.link_suppressed_reason` says why. Unlike the default response, this reveals whether the address is registered — acceptable only because the endpoint requires your application secret, so it must only be called server-side.
|
|
22262
22452
|
* Request a password reset
|
|
22263
22453
|
*/
|
|
22264
22454
|
async forgotPassword(forgotPasswordRequest, initOverrides) {
|
|
@@ -23195,7 +23385,7 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
23195
23385
|
return await response.value();
|
|
23196
23386
|
}
|
|
23197
23387
|
/**
|
|
23198
|
-
* Secret-key-scoped pre-provisioning for an end user. Creates a passwordless user in the authenticating application (idempotent on email — an existing, non-deleted user is reused, not duplicated) and, when `send_link` is set, sends a first-login link so the user can set up their account without self-registration. - `send_link: \"invitation\"` sends the `invitation` auth email: a set-password link (valid 7 days) redeemed at `POST /auth/reset-password`, so the invitee ends up with a password. It has its own per-application template, separate from password reset\'s. Not sent to an identity that can already sign in. - `send_link: \"password_reset\"` sends a set-password email using the password-reset template. - `send_link: \"magic\"` sends a magic-link sign-in email. The user still has no credential afterwards. - `send_link: \"none\"` (default) creates the user with no email. A `redirect_url` is required whenever `send_link` is not \"none\"; it must match the application\'s redirect_uris allowlist (custom schemes such as yourapp://path are permitted).
|
|
23388
|
+
* Secret-key-scoped pre-provisioning for an end user. Creates a passwordless user in the authenticating application (idempotent on email — an existing, non-deleted user is reused, not duplicated) and, when `send_link` is set, sends a first-login link so the user can set up their account without self-registration. - `send_link: \"invitation\"` sends the `invitation` auth email: a set-password link (valid 7 days) redeemed at `POST /auth/reset-password`, so the invitee ends up with a password. It has its own per-application template, separate from password reset\'s. Not sent to an identity that can already sign in. - `send_link: \"password_reset\"` sends a set-password email using the password-reset template. - `send_link: \"magic\"` sends a magic-link sign-in email. The user still has no credential afterwards. - `send_link: \"none\"` (default) creates the user with no email. A `redirect_url` is required whenever `send_link` is not \"none\"; it must match the application\'s redirect_uris allowlist (custom schemes such as yourapp://path are permitted). **Sending the email yourself:** pass `return_link: true` with a `send_link` and Zyphr mints that link but sends nothing, returning it in `data.link` (`link_sent` stays false). The same `link_suppressed_reason` values apply when no link can be minted.
|
|
23199
23389
|
* Pre-provision (invite) an end user (server-side admin)
|
|
23200
23390
|
*/
|
|
23201
23391
|
async inviteEndUserRaw(requestParameters, initOverrides) {
|
|
@@ -23234,7 +23424,7 @@ var AuthUserDirectoryApi = class extends BaseAPI {
|
|
|
23234
23424
|
return new JSONApiResponse(response, (jsonValue) => InviteEndUser200ResponseFromJSON(jsonValue));
|
|
23235
23425
|
}
|
|
23236
23426
|
/**
|
|
23237
|
-
* Secret-key-scoped pre-provisioning for an end user. Creates a passwordless user in the authenticating application (idempotent on email — an existing, non-deleted user is reused, not duplicated) and, when `send_link` is set, sends a first-login link so the user can set up their account without self-registration. - `send_link: \"invitation\"` sends the `invitation` auth email: a set-password link (valid 7 days) redeemed at `POST /auth/reset-password`, so the invitee ends up with a password. It has its own per-application template, separate from password reset\'s. Not sent to an identity that can already sign in. - `send_link: \"password_reset\"` sends a set-password email using the password-reset template. - `send_link: \"magic\"` sends a magic-link sign-in email. The user still has no credential afterwards. - `send_link: \"none\"` (default) creates the user with no email. A `redirect_url` is required whenever `send_link` is not \"none\"; it must match the application\'s redirect_uris allowlist (custom schemes such as yourapp://path are permitted).
|
|
23427
|
+
* Secret-key-scoped pre-provisioning for an end user. Creates a passwordless user in the authenticating application (idempotent on email — an existing, non-deleted user is reused, not duplicated) and, when `send_link` is set, sends a first-login link so the user can set up their account without self-registration. - `send_link: \"invitation\"` sends the `invitation` auth email: a set-password link (valid 7 days) redeemed at `POST /auth/reset-password`, so the invitee ends up with a password. It has its own per-application template, separate from password reset\'s. Not sent to an identity that can already sign in. - `send_link: \"password_reset\"` sends a set-password email using the password-reset template. - `send_link: \"magic\"` sends a magic-link sign-in email. The user still has no credential afterwards. - `send_link: \"none\"` (default) creates the user with no email. A `redirect_url` is required whenever `send_link` is not \"none\"; it must match the application\'s redirect_uris allowlist (custom schemes such as yourapp://path are permitted). **Sending the email yourself:** pass `return_link: true` with a `send_link` and Zyphr mints that link but sends nothing, returning it in `data.link` (`link_sent` stays false). The same `link_suppressed_reason` values apply when no link can be minted.
|
|
23238
23428
|
* Pre-provision (invite) an end user (server-side admin)
|
|
23239
23429
|
*/
|
|
23240
23430
|
async inviteEndUser(inviteEndUserRequest, initOverrides) {
|
|
@@ -29794,7 +29984,7 @@ var WebhooksApi = class extends BaseAPI {
|
|
|
29794
29984
|
return await response.value();
|
|
29795
29985
|
}
|
|
29796
29986
|
/**
|
|
29797
|
-
* Get webhook delivery usage statistics for the current billing period.
|
|
29987
|
+
* Get webhook delivery usage statistics for this project in the current billing period. The plan limit applies to the whole account.
|
|
29798
29988
|
* Get webhook usage metrics
|
|
29799
29989
|
*/
|
|
29800
29990
|
async getWebhookUsageRaw(initOverrides) {
|
|
@@ -29817,7 +30007,7 @@ var WebhooksApi = class extends BaseAPI {
|
|
|
29817
30007
|
return new JSONApiResponse(response, (jsonValue) => WebhookUsageResponseFromJSON(jsonValue));
|
|
29818
30008
|
}
|
|
29819
30009
|
/**
|
|
29820
|
-
* Get webhook delivery usage statistics for the current billing period.
|
|
30010
|
+
* Get webhook delivery usage statistics for this project in the current billing period. The plan limit applies to the whole account.
|
|
29821
30011
|
* Get webhook usage metrics
|
|
29822
30012
|
*/
|
|
29823
30013
|
async getWebhookUsage(initOverrides) {
|
|
@@ -31666,6 +31856,15 @@ var SDK_VERSION = "0.1.0";
|
|
|
31666
31856
|
ForgotPasswordRequestFromJSONTyped,
|
|
31667
31857
|
ForgotPasswordRequestToJSON,
|
|
31668
31858
|
ForgotPasswordRequestToJSONTyped,
|
|
31859
|
+
ForgotPasswordResultDataFromJSON,
|
|
31860
|
+
ForgotPasswordResultDataFromJSONTyped,
|
|
31861
|
+
ForgotPasswordResultDataLinkSuppressedReasonEnum,
|
|
31862
|
+
ForgotPasswordResultDataToJSON,
|
|
31863
|
+
ForgotPasswordResultDataToJSONTyped,
|
|
31864
|
+
ForgotPasswordResultFromJSON,
|
|
31865
|
+
ForgotPasswordResultFromJSONTyped,
|
|
31866
|
+
ForgotPasswordResultToJSON,
|
|
31867
|
+
ForgotPasswordResultToJSONTyped,
|
|
31669
31868
|
GenerateSubscriberToken200ResponseDataFromJSON,
|
|
31670
31869
|
GenerateSubscriberToken200ResponseDataFromJSONTyped,
|
|
31671
31870
|
GenerateSubscriberToken200ResponseDataToJSON,
|
|
@@ -31905,6 +32104,14 @@ var SDK_VERSION = "0.1.0";
|
|
|
31905
32104
|
MagicLinkSendRequestFromJSONTyped,
|
|
31906
32105
|
MagicLinkSendRequestToJSON,
|
|
31907
32106
|
MagicLinkSendRequestToJSONTyped,
|
|
32107
|
+
MagicLinkSendResultDataFromJSON,
|
|
32108
|
+
MagicLinkSendResultDataFromJSONTyped,
|
|
32109
|
+
MagicLinkSendResultDataToJSON,
|
|
32110
|
+
MagicLinkSendResultDataToJSONTyped,
|
|
32111
|
+
MagicLinkSendResultFromJSON,
|
|
32112
|
+
MagicLinkSendResultFromJSONTyped,
|
|
32113
|
+
MagicLinkSendResultToJSON,
|
|
32114
|
+
MagicLinkSendResultToJSONTyped,
|
|
31908
32115
|
MagicLinkVerifyRequestFromJSON,
|
|
31909
32116
|
MagicLinkVerifyRequestFromJSONTyped,
|
|
31910
32117
|
MagicLinkVerifyRequestToJSON,
|
|
@@ -32351,6 +32558,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
32351
32558
|
ResubscribeResponseFromJSONTyped,
|
|
32352
32559
|
ResubscribeResponseToJSON,
|
|
32353
32560
|
ResubscribeResponseToJSONTyped,
|
|
32561
|
+
ReturnedAuthLinkFromJSON,
|
|
32562
|
+
ReturnedAuthLinkFromJSONTyped,
|
|
32563
|
+
ReturnedAuthLinkToJSON,
|
|
32564
|
+
ReturnedAuthLinkToJSONTyped,
|
|
32354
32565
|
RevokeAllSessionsResponseDataFromJSON,
|
|
32355
32566
|
RevokeAllSessionsResponseDataFromJSONTyped,
|
|
32356
32567
|
RevokeAllSessionsResponseDataToJSON,
|
|
@@ -33421,6 +33632,8 @@ var SDK_VERSION = "0.1.0";
|
|
|
33421
33632
|
instanceOfExecutionRetryResponse,
|
|
33422
33633
|
instanceOfExecutionRetryResponseData,
|
|
33423
33634
|
instanceOfForgotPasswordRequest,
|
|
33635
|
+
instanceOfForgotPasswordResult,
|
|
33636
|
+
instanceOfForgotPasswordResultData,
|
|
33424
33637
|
instanceOfGenerateSubscriberToken200Response,
|
|
33425
33638
|
instanceOfGenerateSubscriberToken200ResponseData,
|
|
33426
33639
|
instanceOfGenerateSubscriberTokenRequest,
|
|
@@ -33474,6 +33687,8 @@ var SDK_VERSION = "0.1.0";
|
|
|
33474
33687
|
instanceOfListWorkflows200ResponseMeta,
|
|
33475
33688
|
instanceOfLoginRequest,
|
|
33476
33689
|
instanceOfMagicLinkSendRequest,
|
|
33690
|
+
instanceOfMagicLinkSendResult,
|
|
33691
|
+
instanceOfMagicLinkSendResultData,
|
|
33477
33692
|
instanceOfMagicLinkVerifyRequest,
|
|
33478
33693
|
instanceOfMagicLinkVerifyResponse,
|
|
33479
33694
|
instanceOfMagicLinkVerifyResponseData,
|
|
@@ -33582,6 +33797,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
33582
33797
|
instanceOfResetPasswordResponse,
|
|
33583
33798
|
instanceOfResubscribeRequest,
|
|
33584
33799
|
instanceOfResubscribeResponse,
|
|
33800
|
+
instanceOfReturnedAuthLink,
|
|
33585
33801
|
instanceOfRevokeAllSessionsResponse,
|
|
33586
33802
|
instanceOfRevokeAllSessionsResponseData,
|
|
33587
33803
|
instanceOfRevokeSessionRequest,
|