@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.js CHANGED
@@ -1916,62 +1916,6 @@ function CategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
1916
1916
  };
1917
1917
  }
1918
1918
 
1919
- // src/src/models/CheckEmailOtpAvailability200ResponseData.ts
1920
- function instanceOfCheckEmailOtpAvailability200ResponseData(value) {
1921
- return true;
1922
- }
1923
- function CheckEmailOtpAvailability200ResponseDataFromJSON(json) {
1924
- return CheckEmailOtpAvailability200ResponseDataFromJSONTyped(json, false);
1925
- }
1926
- function CheckEmailOtpAvailability200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
1927
- if (json == null) {
1928
- return json;
1929
- }
1930
- return {
1931
- "available": json["available"] == null ? void 0 : json["available"],
1932
- "message": json["message"] == null ? void 0 : json["message"]
1933
- };
1934
- }
1935
- function CheckEmailOtpAvailability200ResponseDataToJSON(json) {
1936
- return CheckEmailOtpAvailability200ResponseDataToJSONTyped(json, false);
1937
- }
1938
- function CheckEmailOtpAvailability200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
1939
- if (value == null) {
1940
- return value;
1941
- }
1942
- return {
1943
- "available": value["available"],
1944
- "message": value["message"]
1945
- };
1946
- }
1947
-
1948
- // src/src/models/CheckEmailOtpAvailability200Response.ts
1949
- function instanceOfCheckEmailOtpAvailability200Response(value) {
1950
- return true;
1951
- }
1952
- function CheckEmailOtpAvailability200ResponseFromJSON(json) {
1953
- return CheckEmailOtpAvailability200ResponseFromJSONTyped(json, false);
1954
- }
1955
- function CheckEmailOtpAvailability200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1956
- if (json == null) {
1957
- return json;
1958
- }
1959
- return {
1960
- "data": json["data"] == null ? void 0 : CheckEmailOtpAvailability200ResponseDataFromJSON(json["data"])
1961
- };
1962
- }
1963
- function CheckEmailOtpAvailability200ResponseToJSON(json) {
1964
- return CheckEmailOtpAvailability200ResponseToJSONTyped(json, false);
1965
- }
1966
- function CheckEmailOtpAvailability200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
1967
- if (value == null) {
1968
- return value;
1969
- }
1970
- return {
1971
- "data": CheckEmailOtpAvailability200ResponseDataToJSON(value["data"])
1972
- };
1973
- }
1974
-
1975
1919
  // src/src/models/ConfirmEmailVerificationRequest.ts
1976
1920
  function instanceOfConfirmEmailVerificationRequest(value) {
1977
1921
  if (!("token" in value) || value["token"] === void 0) return false;
@@ -7199,6 +7143,35 @@ function PayloadTooLargeErrorToJSONTyped(value, ignoreDiscriminator = false) {
7199
7143
  };
7200
7144
  }
7201
7145
 
7146
+ // src/src/models/PhoneAuthAvailabilityResponseData.ts
7147
+ function instanceOfPhoneAuthAvailabilityResponseData(value) {
7148
+ return true;
7149
+ }
7150
+ function PhoneAuthAvailabilityResponseDataFromJSON(json) {
7151
+ return PhoneAuthAvailabilityResponseDataFromJSONTyped(json, false);
7152
+ }
7153
+ function PhoneAuthAvailabilityResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7154
+ if (json == null) {
7155
+ return json;
7156
+ }
7157
+ return {
7158
+ "available": json["available"] == null ? void 0 : json["available"],
7159
+ "message": json["message"] == null ? void 0 : json["message"]
7160
+ };
7161
+ }
7162
+ function PhoneAuthAvailabilityResponseDataToJSON(json) {
7163
+ return PhoneAuthAvailabilityResponseDataToJSONTyped(json, false);
7164
+ }
7165
+ function PhoneAuthAvailabilityResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
7166
+ if (value == null) {
7167
+ return value;
7168
+ }
7169
+ return {
7170
+ "available": value["available"],
7171
+ "message": value["message"]
7172
+ };
7173
+ }
7174
+
7202
7175
  // src/src/models/PhoneAuthAvailabilityResponse.ts
7203
7176
  function instanceOfPhoneAuthAvailabilityResponse(value) {
7204
7177
  return true;
@@ -7211,7 +7184,7 @@ function PhoneAuthAvailabilityResponseFromJSONTyped(json, ignoreDiscriminator) {
7211
7184
  return json;
7212
7185
  }
7213
7186
  return {
7214
- "data": json["data"] == null ? void 0 : CheckEmailOtpAvailability200ResponseDataFromJSON(json["data"]),
7187
+ "data": json["data"] == null ? void 0 : PhoneAuthAvailabilityResponseDataFromJSON(json["data"]),
7215
7188
  "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
7216
7189
  };
7217
7190
  }
@@ -7223,7 +7196,7 @@ function PhoneAuthAvailabilityResponseToJSONTyped(value, ignoreDiscriminator = f
7223
7196
  return value;
7224
7197
  }
7225
7198
  return {
7226
- "data": CheckEmailOtpAvailability200ResponseDataToJSON(value["data"]),
7199
+ "data": PhoneAuthAvailabilityResponseDataToJSON(value["data"]),
7227
7200
  "meta": RequestMetaToJSON(value["meta"])
7228
7201
  };
7229
7202
  }
@@ -14557,7 +14530,7 @@ var AuthEmailOTPApi = class extends BaseAPI {
14557
14530
  headers: headerParameters,
14558
14531
  query: queryParameters
14559
14532
  }, initOverrides);
14560
- return new JSONApiResponse(response, (jsonValue) => CheckEmailOtpAvailability200ResponseFromJSON(jsonValue));
14533
+ return new JSONApiResponse(response, (jsonValue) => PhoneAuthAvailabilityResponseFromJSON(jsonValue));
14561
14534
  }
14562
14535
  /**
14563
14536
  * Check if numeric email OTP authentication is available for this application. Requires a verified sending domain on the project.
@@ -23210,6 +23183,7 @@ var Zyphr = class {
23210
23183
  // Sub-tenant CRUD + membership + the active-org switch flow.
23211
23184
  organizations: new AuthOrganizationsApi(config),
23212
23185
  phone: new AuthPhoneApi(config),
23186
+ emailOtp: new AuthEmailOTPApi(config),
23213
23187
  profile: new AuthUserProfileApi(config),
23214
23188
  webauthn: new AuthWebAuthnApi(config)
23215
23189
  };
@@ -23441,14 +23415,6 @@ export {
23441
23415
  CategoryResponseToJSONTyped,
23442
23416
  CategoryToJSON,
23443
23417
  CategoryToJSONTyped,
23444
- CheckEmailOtpAvailability200ResponseDataFromJSON,
23445
- CheckEmailOtpAvailability200ResponseDataFromJSONTyped,
23446
- CheckEmailOtpAvailability200ResponseDataToJSON,
23447
- CheckEmailOtpAvailability200ResponseDataToJSONTyped,
23448
- CheckEmailOtpAvailability200ResponseFromJSON,
23449
- CheckEmailOtpAvailability200ResponseFromJSONTyped,
23450
- CheckEmailOtpAvailability200ResponseToJSON,
23451
- CheckEmailOtpAvailability200ResponseToJSONTyped,
23452
23418
  Configuration,
23453
23419
  ConfirmEmailVerificationRequestFromJSON,
23454
23420
  ConfirmEmailVerificationRequestFromJSONTyped,
@@ -24088,6 +24054,10 @@ export {
24088
24054
  PayloadTooLargeErrorFromJSONTyped,
24089
24055
  PayloadTooLargeErrorToJSON,
24090
24056
  PayloadTooLargeErrorToJSONTyped,
24057
+ PhoneAuthAvailabilityResponseDataFromJSON,
24058
+ PhoneAuthAvailabilityResponseDataFromJSONTyped,
24059
+ PhoneAuthAvailabilityResponseDataToJSON,
24060
+ PhoneAuthAvailabilityResponseDataToJSONTyped,
24091
24061
  PhoneAuthAvailabilityResponseFromJSON,
24092
24062
  PhoneAuthAvailabilityResponseFromJSONTyped,
24093
24063
  PhoneAuthAvailabilityResponseToJSON,
@@ -25135,8 +25105,6 @@ export {
25135
25105
  instanceOfCategory,
25136
25106
  instanceOfCategoryListResponse,
25137
25107
  instanceOfCategoryResponse,
25138
- instanceOfCheckEmailOtpAvailability200Response,
25139
- instanceOfCheckEmailOtpAvailability200ResponseData,
25140
25108
  instanceOfConfirmEmailVerificationRequest,
25141
25109
  instanceOfConfirmEmailVerificationResponse,
25142
25110
  instanceOfConfirmEmailVerificationResponseData,
@@ -25286,6 +25254,7 @@ export {
25286
25254
  instanceOfPayloadTooLargeErrorError,
25287
25255
  instanceOfPayloadTooLargeErrorErrorDetails,
25288
25256
  instanceOfPhoneAuthAvailabilityResponse,
25257
+ instanceOfPhoneAuthAvailabilityResponseData,
25289
25258
  instanceOfPhoneLoginVerifyRequest,
25290
25259
  instanceOfPhoneOtpSendRequest,
25291
25260
  instanceOfPhoneOtpSentResponse,