@zyphr-dev/node-sdk 0.1.35 → 0.1.36
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 +43 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -80
- package/dist/index.d.ts +47 -80
- package/dist/index.js +38 -69
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/src/.openapi-generator/FILES +1 -2
- package/src/client.ts +3 -0
- package/src/src/apis/AuthEmailOTPApi.ts +8 -8
- package/src/src/models/PhoneAuthAvailabilityResponse.ts +10 -10
- package/src/src/models/{CheckEmailOtpAvailability200ResponseData.ts → PhoneAuthAvailabilityResponseData.ts} +12 -12
- package/src/src/models/index.ts +1 -2
- package/src/src/models/CheckEmailOtpAvailability200Response.ts +0 -73
package/dist/index.cjs
CHANGED
|
@@ -215,14 +215,6 @@ __export(index_exports, {
|
|
|
215
215
|
CategoryResponseToJSONTyped: () => CategoryResponseToJSONTyped,
|
|
216
216
|
CategoryToJSON: () => CategoryToJSON,
|
|
217
217
|
CategoryToJSONTyped: () => CategoryToJSONTyped,
|
|
218
|
-
CheckEmailOtpAvailability200ResponseDataFromJSON: () => CheckEmailOtpAvailability200ResponseDataFromJSON,
|
|
219
|
-
CheckEmailOtpAvailability200ResponseDataFromJSONTyped: () => CheckEmailOtpAvailability200ResponseDataFromJSONTyped,
|
|
220
|
-
CheckEmailOtpAvailability200ResponseDataToJSON: () => CheckEmailOtpAvailability200ResponseDataToJSON,
|
|
221
|
-
CheckEmailOtpAvailability200ResponseDataToJSONTyped: () => CheckEmailOtpAvailability200ResponseDataToJSONTyped,
|
|
222
|
-
CheckEmailOtpAvailability200ResponseFromJSON: () => CheckEmailOtpAvailability200ResponseFromJSON,
|
|
223
|
-
CheckEmailOtpAvailability200ResponseFromJSONTyped: () => CheckEmailOtpAvailability200ResponseFromJSONTyped,
|
|
224
|
-
CheckEmailOtpAvailability200ResponseToJSON: () => CheckEmailOtpAvailability200ResponseToJSON,
|
|
225
|
-
CheckEmailOtpAvailability200ResponseToJSONTyped: () => CheckEmailOtpAvailability200ResponseToJSONTyped,
|
|
226
218
|
Configuration: () => Configuration,
|
|
227
219
|
ConfirmEmailVerificationRequestFromJSON: () => ConfirmEmailVerificationRequestFromJSON,
|
|
228
220
|
ConfirmEmailVerificationRequestFromJSONTyped: () => ConfirmEmailVerificationRequestFromJSONTyped,
|
|
@@ -862,6 +854,10 @@ __export(index_exports, {
|
|
|
862
854
|
PayloadTooLargeErrorFromJSONTyped: () => PayloadTooLargeErrorFromJSONTyped,
|
|
863
855
|
PayloadTooLargeErrorToJSON: () => PayloadTooLargeErrorToJSON,
|
|
864
856
|
PayloadTooLargeErrorToJSONTyped: () => PayloadTooLargeErrorToJSONTyped,
|
|
857
|
+
PhoneAuthAvailabilityResponseDataFromJSON: () => PhoneAuthAvailabilityResponseDataFromJSON,
|
|
858
|
+
PhoneAuthAvailabilityResponseDataFromJSONTyped: () => PhoneAuthAvailabilityResponseDataFromJSONTyped,
|
|
859
|
+
PhoneAuthAvailabilityResponseDataToJSON: () => PhoneAuthAvailabilityResponseDataToJSON,
|
|
860
|
+
PhoneAuthAvailabilityResponseDataToJSONTyped: () => PhoneAuthAvailabilityResponseDataToJSONTyped,
|
|
865
861
|
PhoneAuthAvailabilityResponseFromJSON: () => PhoneAuthAvailabilityResponseFromJSON,
|
|
866
862
|
PhoneAuthAvailabilityResponseFromJSONTyped: () => PhoneAuthAvailabilityResponseFromJSONTyped,
|
|
867
863
|
PhoneAuthAvailabilityResponseToJSON: () => PhoneAuthAvailabilityResponseToJSON,
|
|
@@ -1909,8 +1905,6 @@ __export(index_exports, {
|
|
|
1909
1905
|
instanceOfCategory: () => instanceOfCategory,
|
|
1910
1906
|
instanceOfCategoryListResponse: () => instanceOfCategoryListResponse,
|
|
1911
1907
|
instanceOfCategoryResponse: () => instanceOfCategoryResponse,
|
|
1912
|
-
instanceOfCheckEmailOtpAvailability200Response: () => instanceOfCheckEmailOtpAvailability200Response,
|
|
1913
|
-
instanceOfCheckEmailOtpAvailability200ResponseData: () => instanceOfCheckEmailOtpAvailability200ResponseData,
|
|
1914
1908
|
instanceOfConfirmEmailVerificationRequest: () => instanceOfConfirmEmailVerificationRequest,
|
|
1915
1909
|
instanceOfConfirmEmailVerificationResponse: () => instanceOfConfirmEmailVerificationResponse,
|
|
1916
1910
|
instanceOfConfirmEmailVerificationResponseData: () => instanceOfConfirmEmailVerificationResponseData,
|
|
@@ -2060,6 +2054,7 @@ __export(index_exports, {
|
|
|
2060
2054
|
instanceOfPayloadTooLargeErrorError: () => instanceOfPayloadTooLargeErrorError,
|
|
2061
2055
|
instanceOfPayloadTooLargeErrorErrorDetails: () => instanceOfPayloadTooLargeErrorErrorDetails,
|
|
2062
2056
|
instanceOfPhoneAuthAvailabilityResponse: () => instanceOfPhoneAuthAvailabilityResponse,
|
|
2057
|
+
instanceOfPhoneAuthAvailabilityResponseData: () => instanceOfPhoneAuthAvailabilityResponseData,
|
|
2063
2058
|
instanceOfPhoneLoginVerifyRequest: () => instanceOfPhoneLoginVerifyRequest,
|
|
2064
2059
|
instanceOfPhoneOtpSendRequest: () => instanceOfPhoneOtpSendRequest,
|
|
2065
2060
|
instanceOfPhoneOtpSentResponse: () => instanceOfPhoneOtpSentResponse,
|
|
@@ -4217,62 +4212,6 @@ function CategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4217
4212
|
};
|
|
4218
4213
|
}
|
|
4219
4214
|
|
|
4220
|
-
// src/src/models/CheckEmailOtpAvailability200ResponseData.ts
|
|
4221
|
-
function instanceOfCheckEmailOtpAvailability200ResponseData(value) {
|
|
4222
|
-
return true;
|
|
4223
|
-
}
|
|
4224
|
-
function CheckEmailOtpAvailability200ResponseDataFromJSON(json) {
|
|
4225
|
-
return CheckEmailOtpAvailability200ResponseDataFromJSONTyped(json, false);
|
|
4226
|
-
}
|
|
4227
|
-
function CheckEmailOtpAvailability200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4228
|
-
if (json == null) {
|
|
4229
|
-
return json;
|
|
4230
|
-
}
|
|
4231
|
-
return {
|
|
4232
|
-
"available": json["available"] == null ? void 0 : json["available"],
|
|
4233
|
-
"message": json["message"] == null ? void 0 : json["message"]
|
|
4234
|
-
};
|
|
4235
|
-
}
|
|
4236
|
-
function CheckEmailOtpAvailability200ResponseDataToJSON(json) {
|
|
4237
|
-
return CheckEmailOtpAvailability200ResponseDataToJSONTyped(json, false);
|
|
4238
|
-
}
|
|
4239
|
-
function CheckEmailOtpAvailability200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4240
|
-
if (value == null) {
|
|
4241
|
-
return value;
|
|
4242
|
-
}
|
|
4243
|
-
return {
|
|
4244
|
-
"available": value["available"],
|
|
4245
|
-
"message": value["message"]
|
|
4246
|
-
};
|
|
4247
|
-
}
|
|
4248
|
-
|
|
4249
|
-
// src/src/models/CheckEmailOtpAvailability200Response.ts
|
|
4250
|
-
function instanceOfCheckEmailOtpAvailability200Response(value) {
|
|
4251
|
-
return true;
|
|
4252
|
-
}
|
|
4253
|
-
function CheckEmailOtpAvailability200ResponseFromJSON(json) {
|
|
4254
|
-
return CheckEmailOtpAvailability200ResponseFromJSONTyped(json, false);
|
|
4255
|
-
}
|
|
4256
|
-
function CheckEmailOtpAvailability200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4257
|
-
if (json == null) {
|
|
4258
|
-
return json;
|
|
4259
|
-
}
|
|
4260
|
-
return {
|
|
4261
|
-
"data": json["data"] == null ? void 0 : CheckEmailOtpAvailability200ResponseDataFromJSON(json["data"])
|
|
4262
|
-
};
|
|
4263
|
-
}
|
|
4264
|
-
function CheckEmailOtpAvailability200ResponseToJSON(json) {
|
|
4265
|
-
return CheckEmailOtpAvailability200ResponseToJSONTyped(json, false);
|
|
4266
|
-
}
|
|
4267
|
-
function CheckEmailOtpAvailability200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4268
|
-
if (value == null) {
|
|
4269
|
-
return value;
|
|
4270
|
-
}
|
|
4271
|
-
return {
|
|
4272
|
-
"data": CheckEmailOtpAvailability200ResponseDataToJSON(value["data"])
|
|
4273
|
-
};
|
|
4274
|
-
}
|
|
4275
|
-
|
|
4276
4215
|
// src/src/models/ConfirmEmailVerificationRequest.ts
|
|
4277
4216
|
function instanceOfConfirmEmailVerificationRequest(value) {
|
|
4278
4217
|
if (!("token" in value) || value["token"] === void 0) return false;
|
|
@@ -9500,6 +9439,35 @@ function PayloadTooLargeErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9500
9439
|
};
|
|
9501
9440
|
}
|
|
9502
9441
|
|
|
9442
|
+
// src/src/models/PhoneAuthAvailabilityResponseData.ts
|
|
9443
|
+
function instanceOfPhoneAuthAvailabilityResponseData(value) {
|
|
9444
|
+
return true;
|
|
9445
|
+
}
|
|
9446
|
+
function PhoneAuthAvailabilityResponseDataFromJSON(json) {
|
|
9447
|
+
return PhoneAuthAvailabilityResponseDataFromJSONTyped(json, false);
|
|
9448
|
+
}
|
|
9449
|
+
function PhoneAuthAvailabilityResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
9450
|
+
if (json == null) {
|
|
9451
|
+
return json;
|
|
9452
|
+
}
|
|
9453
|
+
return {
|
|
9454
|
+
"available": json["available"] == null ? void 0 : json["available"],
|
|
9455
|
+
"message": json["message"] == null ? void 0 : json["message"]
|
|
9456
|
+
};
|
|
9457
|
+
}
|
|
9458
|
+
function PhoneAuthAvailabilityResponseDataToJSON(json) {
|
|
9459
|
+
return PhoneAuthAvailabilityResponseDataToJSONTyped(json, false);
|
|
9460
|
+
}
|
|
9461
|
+
function PhoneAuthAvailabilityResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9462
|
+
if (value == null) {
|
|
9463
|
+
return value;
|
|
9464
|
+
}
|
|
9465
|
+
return {
|
|
9466
|
+
"available": value["available"],
|
|
9467
|
+
"message": value["message"]
|
|
9468
|
+
};
|
|
9469
|
+
}
|
|
9470
|
+
|
|
9503
9471
|
// src/src/models/PhoneAuthAvailabilityResponse.ts
|
|
9504
9472
|
function instanceOfPhoneAuthAvailabilityResponse(value) {
|
|
9505
9473
|
return true;
|
|
@@ -9512,7 +9480,7 @@ function PhoneAuthAvailabilityResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9512
9480
|
return json;
|
|
9513
9481
|
}
|
|
9514
9482
|
return {
|
|
9515
|
-
"data": json["data"] == null ? void 0 :
|
|
9483
|
+
"data": json["data"] == null ? void 0 : PhoneAuthAvailabilityResponseDataFromJSON(json["data"]),
|
|
9516
9484
|
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
9517
9485
|
};
|
|
9518
9486
|
}
|
|
@@ -9524,7 +9492,7 @@ function PhoneAuthAvailabilityResponseToJSONTyped(value, ignoreDiscriminator = f
|
|
|
9524
9492
|
return value;
|
|
9525
9493
|
}
|
|
9526
9494
|
return {
|
|
9527
|
-
"data":
|
|
9495
|
+
"data": PhoneAuthAvailabilityResponseDataToJSON(value["data"]),
|
|
9528
9496
|
"meta": RequestMetaToJSON(value["meta"])
|
|
9529
9497
|
};
|
|
9530
9498
|
}
|
|
@@ -16858,7 +16826,7 @@ var AuthEmailOTPApi = class extends BaseAPI {
|
|
|
16858
16826
|
headers: headerParameters,
|
|
16859
16827
|
query: queryParameters
|
|
16860
16828
|
}, initOverrides);
|
|
16861
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
16829
|
+
return new JSONApiResponse(response, (jsonValue) => PhoneAuthAvailabilityResponseFromJSON(jsonValue));
|
|
16862
16830
|
}
|
|
16863
16831
|
/**
|
|
16864
16832
|
* Check if numeric email OTP authentication is available for this application. Requires a verified sending domain on the project.
|
|
@@ -25511,6 +25479,7 @@ var Zyphr = class {
|
|
|
25511
25479
|
// Sub-tenant CRUD + membership + the active-org switch flow.
|
|
25512
25480
|
organizations: new AuthOrganizationsApi(config),
|
|
25513
25481
|
phone: new AuthPhoneApi(config),
|
|
25482
|
+
emailOtp: new AuthEmailOTPApi(config),
|
|
25514
25483
|
profile: new AuthUserProfileApi(config),
|
|
25515
25484
|
webauthn: new AuthWebAuthnApi(config)
|
|
25516
25485
|
};
|
|
@@ -25743,14 +25712,6 @@ var SDK_VERSION = "0.1.0";
|
|
|
25743
25712
|
CategoryResponseToJSONTyped,
|
|
25744
25713
|
CategoryToJSON,
|
|
25745
25714
|
CategoryToJSONTyped,
|
|
25746
|
-
CheckEmailOtpAvailability200ResponseDataFromJSON,
|
|
25747
|
-
CheckEmailOtpAvailability200ResponseDataFromJSONTyped,
|
|
25748
|
-
CheckEmailOtpAvailability200ResponseDataToJSON,
|
|
25749
|
-
CheckEmailOtpAvailability200ResponseDataToJSONTyped,
|
|
25750
|
-
CheckEmailOtpAvailability200ResponseFromJSON,
|
|
25751
|
-
CheckEmailOtpAvailability200ResponseFromJSONTyped,
|
|
25752
|
-
CheckEmailOtpAvailability200ResponseToJSON,
|
|
25753
|
-
CheckEmailOtpAvailability200ResponseToJSONTyped,
|
|
25754
25715
|
Configuration,
|
|
25755
25716
|
ConfirmEmailVerificationRequestFromJSON,
|
|
25756
25717
|
ConfirmEmailVerificationRequestFromJSONTyped,
|
|
@@ -26390,6 +26351,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
26390
26351
|
PayloadTooLargeErrorFromJSONTyped,
|
|
26391
26352
|
PayloadTooLargeErrorToJSON,
|
|
26392
26353
|
PayloadTooLargeErrorToJSONTyped,
|
|
26354
|
+
PhoneAuthAvailabilityResponseDataFromJSON,
|
|
26355
|
+
PhoneAuthAvailabilityResponseDataFromJSONTyped,
|
|
26356
|
+
PhoneAuthAvailabilityResponseDataToJSON,
|
|
26357
|
+
PhoneAuthAvailabilityResponseDataToJSONTyped,
|
|
26393
26358
|
PhoneAuthAvailabilityResponseFromJSON,
|
|
26394
26359
|
PhoneAuthAvailabilityResponseFromJSONTyped,
|
|
26395
26360
|
PhoneAuthAvailabilityResponseToJSON,
|
|
@@ -27437,8 +27402,6 @@ var SDK_VERSION = "0.1.0";
|
|
|
27437
27402
|
instanceOfCategory,
|
|
27438
27403
|
instanceOfCategoryListResponse,
|
|
27439
27404
|
instanceOfCategoryResponse,
|
|
27440
|
-
instanceOfCheckEmailOtpAvailability200Response,
|
|
27441
|
-
instanceOfCheckEmailOtpAvailability200ResponseData,
|
|
27442
27405
|
instanceOfConfirmEmailVerificationRequest,
|
|
27443
27406
|
instanceOfConfirmEmailVerificationResponse,
|
|
27444
27407
|
instanceOfConfirmEmailVerificationResponseData,
|
|
@@ -27588,6 +27551,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
27588
27551
|
instanceOfPayloadTooLargeErrorError,
|
|
27589
27552
|
instanceOfPayloadTooLargeErrorErrorDetails,
|
|
27590
27553
|
instanceOfPhoneAuthAvailabilityResponse,
|
|
27554
|
+
instanceOfPhoneAuthAvailabilityResponseData,
|
|
27591
27555
|
instanceOfPhoneLoginVerifyRequest,
|
|
27592
27556
|
instanceOfPhoneOtpSendRequest,
|
|
27593
27557
|
instanceOfPhoneOtpSentResponse,
|