@spfn/auth 0.1.0-alpha.86 → 0.1.0-alpha.87

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.
@@ -22,8 +22,8 @@ declare const verifyCode: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -19,19 +19,19 @@ type SendVerificationCodeBody = InferContract<typeof sendVerificationCodeContrac
19
19
  declare const sendVerificationCode: (options: {
20
20
  body: SendVerificationCodeBody;
21
21
  }) => Promise<{
22
- success: false;
23
- error: {
24
- details?: any;
25
- message: string;
26
- code: string;
27
- };
28
- } | {
29
22
  message?: string | undefined;
30
23
  success: true;
31
24
  data: {
32
25
  success: boolean;
33
26
  expiresAt: string;
34
27
  };
28
+ } | {
29
+ success: false;
30
+ error: {
31
+ details?: any;
32
+ code: string;
33
+ message: string;
34
+ };
35
35
  }>;
36
36
 
37
37
  export { type SendVerificationCodeBody, type SendVerificationCodeResponse, sendVerificationCode };
@@ -22,8 +22,8 @@ declare const checkAccountExists: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -22,8 +22,8 @@ declare const acceptInvitation: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -22,8 +22,8 @@ declare const cancelInvitation: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -22,8 +22,8 @@ declare const deleteInvitation: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -22,8 +22,8 @@ declare const resendInvitation: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -26,8 +26,8 @@ declare const getInvitation: (options: {
26
26
  success: false;
27
27
  error: {
28
28
  details?: any;
29
- message: string;
30
29
  code: string;
30
+ message: string;
31
31
  };
32
32
  } | {
33
33
  message?: string | undefined;
@@ -50,8 +50,8 @@ declare const createInvitation: (options: {
50
50
  success: false;
51
51
  error: {
52
52
  details?: any;
53
- message: string;
54
53
  code: string;
54
+ message: string;
55
55
  };
56
56
  } | {
57
57
  message?: string | undefined;
@@ -74,8 +74,8 @@ declare const listInvitations: (options: {
74
74
  success: false;
75
75
  error: {
76
76
  details?: any;
77
- message: string;
78
77
  code: string;
78
+ message: string;
79
79
  };
80
80
  } | {
81
81
  message?: string | undefined;
@@ -22,8 +22,8 @@ declare const rotateKey: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -19,6 +19,13 @@ type LoginBody = InferContract<typeof loginContract>['body'];
19
19
  declare const login: (options: {
20
20
  body: LoginBody;
21
21
  }) => Promise<{
22
+ success: false;
23
+ error: {
24
+ details?: any;
25
+ code: string;
26
+ message: string;
27
+ };
28
+ } | {
22
29
  message?: string | undefined;
23
30
  success: true;
24
31
  data: {
@@ -27,13 +34,6 @@ declare const login: (options: {
27
34
  userId: string;
28
35
  passwordChangeRequired: boolean;
29
36
  };
30
- } | {
31
- success: false;
32
- error: {
33
- details?: any;
34
- message: string;
35
- code: string;
36
- };
37
37
  }>;
38
38
 
39
39
  export { type LoginBody, type LoginResponse, login };
@@ -22,8 +22,8 @@ declare const logout: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -22,8 +22,8 @@ declare const getMe: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -22,8 +22,8 @@ declare const changePassword: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -22,8 +22,8 @@ declare const register: (options: {
22
22
  success: false;
23
23
  error: {
24
24
  details?: any;
25
- message: string;
26
25
  code: string;
26
+ message: string;
27
27
  };
28
28
  } | {
29
29
  message?: string | undefined;
@@ -39,19 +39,19 @@ declare const authApi: {
39
39
  readonly sendVerificationCode: (options: {
40
40
  body: SendVerificationCodeBody;
41
41
  }) => Promise<{
42
- success: false;
43
- error: {
44
- details?: any;
45
- message: string;
46
- code: string;
47
- };
48
- } | {
49
42
  message?: string | undefined;
50
43
  success: true;
51
44
  data: {
52
45
  success: boolean;
53
46
  expiresAt: string;
54
47
  };
48
+ } | {
49
+ success: false;
50
+ error: {
51
+ details?: any;
52
+ code: string;
53
+ message: string;
54
+ };
55
55
  }>;
56
56
  readonly verifyCode: (options: {
57
57
  body: VerifyCodeBody;
@@ -59,8 +59,8 @@ declare const authApi: {
59
59
  success: false;
60
60
  error: {
61
61
  details?: any;
62
- message: string;
63
62
  code: string;
63
+ message: string;
64
64
  };
65
65
  } | {
66
66
  message?: string | undefined;
@@ -76,8 +76,8 @@ declare const authApi: {
76
76
  success: false;
77
77
  error: {
78
78
  details?: any;
79
- message: string;
80
79
  code: string;
80
+ message: string;
81
81
  };
82
82
  } | {
83
83
  message?: string | undefined;
@@ -94,8 +94,8 @@ declare const authApi: {
94
94
  success: false;
95
95
  error: {
96
96
  details?: any;
97
- message: string;
98
97
  code: string;
98
+ message: string;
99
99
  };
100
100
  } | {
101
101
  message?: string | undefined;
@@ -109,6 +109,13 @@ declare const authApi: {
109
109
  readonly login: (options: {
110
110
  body: LoginBody;
111
111
  }) => Promise<{
112
+ success: false;
113
+ error: {
114
+ details?: any;
115
+ code: string;
116
+ message: string;
117
+ };
118
+ } | {
112
119
  message?: string | undefined;
113
120
  success: true;
114
121
  data: {
@@ -117,13 +124,6 @@ declare const authApi: {
117
124
  userId: string;
118
125
  passwordChangeRequired: boolean;
119
126
  };
120
- } | {
121
- success: false;
122
- error: {
123
- details?: any;
124
- message: string;
125
- code: string;
126
- };
127
127
  }>;
128
128
  readonly logout: (options: {
129
129
  body: LogoutBody;
@@ -131,8 +131,8 @@ declare const authApi: {
131
131
  success: false;
132
132
  error: {
133
133
  details?: any;
134
- message: string;
135
134
  code: string;
135
+ message: string;
136
136
  };
137
137
  } | {
138
138
  message?: string | undefined;
@@ -147,8 +147,8 @@ declare const authApi: {
147
147
  success: false;
148
148
  error: {
149
149
  details?: any;
150
- message: string;
151
150
  code: string;
151
+ message: string;
152
152
  };
153
153
  } | {
154
154
  message?: string | undefined;
@@ -164,8 +164,8 @@ declare const authApi: {
164
164
  success: false;
165
165
  error: {
166
166
  details?: any;
167
- message: string;
168
167
  code: string;
168
+ message: string;
169
169
  };
170
170
  } | {
171
171
  message?: string | undefined;
@@ -180,8 +180,8 @@ declare const authApi: {
180
180
  success: false;
181
181
  error: {
182
182
  details?: any;
183
- message: string;
184
183
  code: string;
184
+ message: string;
185
185
  };
186
186
  } | {
187
187
  message?: string | undefined;
@@ -210,8 +210,8 @@ declare const authApi: {
210
210
  success: false;
211
211
  error: {
212
212
  details?: any;
213
- message: string;
214
213
  code: string;
214
+ message: string;
215
215
  };
216
216
  } | {
217
217
  message?: string | undefined;
@@ -231,8 +231,8 @@ declare const authApi: {
231
231
  success: false;
232
232
  error: {
233
233
  details?: any;
234
- message: string;
235
234
  code: string;
235
+ message: string;
236
236
  };
237
237
  } | {
238
238
  message?: string | undefined;
@@ -252,8 +252,8 @@ declare const authApi: {
252
252
  success: false;
253
253
  error: {
254
254
  details?: any;
255
- message: string;
256
255
  code: string;
256
+ message: string;
257
257
  };
258
258
  } | {
259
259
  message?: string | undefined;
@@ -289,8 +289,8 @@ declare const authApi: {
289
289
  success: false;
290
290
  error: {
291
291
  details?: any;
292
- message: string;
293
292
  code: string;
293
+ message: string;
294
294
  };
295
295
  } | {
296
296
  message?: string | undefined;
@@ -307,8 +307,8 @@ declare const authApi: {
307
307
  success: false;
308
308
  error: {
309
309
  details?: any;
310
- message: string;
311
310
  code: string;
311
+ message: string;
312
312
  };
313
313
  } | {
314
314
  message?: string | undefined;
@@ -324,8 +324,8 @@ declare const authApi: {
324
324
  success: false;
325
325
  error: {
326
326
  details?: any;
327
- message: string;
328
327
  code: string;
328
+ message: string;
329
329
  };
330
330
  } | {
331
331
  message?: string | undefined;
@@ -341,8 +341,8 @@ declare const authApi: {
341
341
  success: false;
342
342
  error: {
343
343
  details?: any;
344
- message: string;
345
344
  code: string;
345
+ message: string;
346
346
  };
347
347
  } | {
348
348
  message?: string | undefined;