@supernova-studio/client 1.9.2 → 1.9.3

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
@@ -45,6 +45,8 @@ var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
45
45
 
46
46
 
47
47
 
48
+
49
+
48
50
 
49
51
 
50
52
 
@@ -218,6 +220,20 @@ var PluginOAuthRequestSchema = _zod.z.object({
218
220
  oAuthCode: _zod.z.string().optional(),
219
221
  createdAt: _zod.z.coerce.date()
220
222
  });
223
+ var AuthV2Request = _zod.z.object({
224
+ code: _zod.z.string().optional(),
225
+ state: _zod.z.string(),
226
+ codeChallenge: _zod.z.string(),
227
+ codeChallengeMethod: _zod.z.string(),
228
+ redirectUri: _zod.z.string(),
229
+ sessionId: _zod.z.string()
230
+ });
231
+ var AuthV2Session = _zod.z.object({
232
+ id: _zod.z.string(),
233
+ refreshToken: _zod.z.string(),
234
+ expiresAt: _zod.z.coerce.date(),
235
+ createdAt: _zod.z.coerce.date()
236
+ });
221
237
  var CardSchema = _zod.z.object({
222
238
  cardId: _zod.z.string().nullish(),
223
239
  last4: _zod.z.string().length(4).nullish(),
@@ -937,15 +953,6 @@ var SupernovaException = class _SupernovaException extends Error {
937
953
  static badRequest(message) {
938
954
  return new _SupernovaException("BadRequest", message);
939
955
  }
940
- static codeMismatch(message) {
941
- return new _SupernovaException("CodeMismatch", message);
942
- }
943
- static passwordMismatch(message) {
944
- return new _SupernovaException("PasswordMismatch", message);
945
- }
946
- static passwordSameAsUsername(message) {
947
- return new _SupernovaException("PasswordSameAsUsername", message);
948
- }
949
956
  };
950
957
  function tryParseUrl(url) {
951
958
  try {