@spfn/auth 0.3.0-beta.25 → 0.3.0-beta.27
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/README.md +49 -7
- package/dist/client-proof.js +3 -2
- package/dist/client-proof.js.map +1 -1
- package/dist/index.d.ts +194 -189
- package/dist/index.js +40 -40
- package/dist/index.js.map +1 -1
- package/dist/{machine-principals-CdEgxOB1.d.ts → machine-principals-BvRw8b8t.d.ts} +18 -0
- package/dist/nextjs/api.js +16 -13
- package/dist/nextjs/api.js.map +1 -1
- package/dist/server.d.ts +37 -4
- package/dist/server.js +210 -33
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export { A as AuthInitOptions, s as AuthSession, t as PERMISSION_CATEGORIES, u as PermissionCategory, v as VERIFICATION_PURPOSES, w as VERIFICATION_TARGET_TYPES, x as VerificationPurpose, y as VerificationTargetType } from './machine-principals-CdEgxOB1.js';
|
|
1
|
+
import { P as PermissionConfig, R as RoleConfig, m as mainAuthRouter, L as LoginResult, S as SendVerificationCodeResult, a as RegisterResult, b as RequestSignupLinkResult, C as ConfirmSignupLinkResult, c as RequestPasswordResetResult, d as ConfirmPasswordResetResult, e as StartDeviceAuthResult, D as DeviceAuthInfoResult, F as FinishPasskeyEnrollmentResult, f as PasskeySummary, T as TotpEnrolmentResult, g as ConfirmTotpResult, M as MfaStatus, V as VerifyMfaChallengeResult, h as RotateKeyResult, K as KeySummary, i as RevokeAllKeysResult, j as SessionBindingResult, k as SessionRenewResult, I as IssueOneTimeTokenResult, O as OAuthStartResult, l as OAuthFinalizeResponse, n as OAuthNativeResult, U as UserProfile, o as ProfileInfo, p as OAuth2ConsentView, q as OAuth2AuthorizationCodeIssued, r as OAuth2GrantSummary } from './machine-principals-BvRw8b8t.js';
|
|
2
|
+
export { A as AuthInitOptions, s as AuthSession, t as PERMISSION_CATEGORIES, u as PermissionCategory, v as VERIFICATION_PURPOSES, w as VERIFICATION_TARGET_TYPES, x as VerificationPurpose, y as VerificationTargetType } from './machine-principals-BvRw8b8t.js';
|
|
4
3
|
import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
4
|
+
import * as _spfn_core_nextjs from '@spfn/core/nextjs';
|
|
5
5
|
import * as _spfn_core_route from '@spfn/core/route';
|
|
6
6
|
import { HttpMethod } from '@spfn/core/route';
|
|
7
7
|
export { A as ACCOUNT_DELETION_REQUESTED_BY, a as ACCOUNT_DELETION_REQUEST_STATUSES, b as AccountDeletionRequestStatus, c as AccountDeletionRequestedBy, I as INVITATION_STATUSES, d as InvitationStatus, e as KEY_ALGORITHM, f as KEY_DEVICE_NAME_MAX_LENGTH, g as KEY_PLATFORM, K as KeyAlgorithmType, h as KeyPlatformType, P as PURGE_STRATEGIES, i as PurgeStrategy, j as SESSION_BINDINGS, k as SOCIAL_PROVIDERS, S as SessionBindingType, l as SocialProvider, U as USER_STATUSES, m as UserStatus } from './types-CTdoTOxM.js';
|
|
@@ -67,6 +67,10 @@ type BuiltinPermissionName = typeof BUILTIN_PERMISSIONS[keyof typeof BUILTIN_PER
|
|
|
67
67
|
* Route Map (Auto-generated)
|
|
68
68
|
*
|
|
69
69
|
* DO NOT EDIT - This file is generated by @spfn/core:route-map generator
|
|
70
|
+
*
|
|
71
|
+
* Generated with NODE_ENV=production. A route registered only under one environment is
|
|
72
|
+
* named here only when the generator ran under it, so this line changing is that
|
|
73
|
+
* difference rather than an edit.
|
|
70
74
|
*/
|
|
71
75
|
|
|
72
76
|
interface RouteInfo {
|
|
@@ -91,15 +95,32 @@ declare const routeMap: Record<string, RouteInfo>;
|
|
|
91
95
|
* });
|
|
92
96
|
* ```
|
|
93
97
|
*/
|
|
94
|
-
declare const authApi:
|
|
95
|
-
|
|
98
|
+
declare const authApi: {
|
|
99
|
+
login: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
100
|
+
body: _sinclair_typebox.TObject<{
|
|
101
|
+
email: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
102
|
+
phone: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
103
|
+
password: _sinclair_typebox.TString;
|
|
104
|
+
}>;
|
|
105
|
+
}, {
|
|
106
|
+
body: _sinclair_typebox.TObject<{
|
|
107
|
+
publicKey: _sinclair_typebox.TString;
|
|
108
|
+
keyId: _sinclair_typebox.TString;
|
|
109
|
+
fingerprint: _sinclair_typebox.TString;
|
|
110
|
+
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>;
|
|
111
|
+
oldKeyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
112
|
+
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
113
|
+
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
114
|
+
}>;
|
|
115
|
+
}, LoginResult>>;
|
|
116
|
+
sendVerificationCode: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
96
117
|
body: _sinclair_typebox.TObject<{
|
|
97
118
|
target: _sinclair_typebox.TString;
|
|
98
119
|
targetType: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"email">, _sinclair_typebox.TLiteral<"phone">]>;
|
|
99
120
|
purpose: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"registration">, _sinclair_typebox.TLiteral<"login">, _sinclair_typebox.TLiteral<"password_reset">, _sinclair_typebox.TLiteral<"email_change">, _sinclair_typebox.TLiteral<"phone_change">, _sinclair_typebox.TLiteral<"account_deletion">]>;
|
|
100
121
|
}>;
|
|
101
|
-
}, {}, SendVerificationCodeResult
|
|
102
|
-
verifyCode: _spfn_core_route.RouteDef<{
|
|
122
|
+
}, {}, SendVerificationCodeResult>>;
|
|
123
|
+
verifyCode: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
103
124
|
body: _sinclair_typebox.TObject<{
|
|
104
125
|
target: _sinclair_typebox.TString;
|
|
105
126
|
targetType: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"email">, _sinclair_typebox.TLiteral<"phone">]>;
|
|
@@ -109,8 +130,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
109
130
|
}, {}, {
|
|
110
131
|
valid: boolean;
|
|
111
132
|
verificationToken: string;
|
|
112
|
-
}
|
|
113
|
-
register: _spfn_core_route.RouteDef<{
|
|
133
|
+
}>>;
|
|
134
|
+
register: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
114
135
|
body: _sinclair_typebox.TObject<{
|
|
115
136
|
email: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
116
137
|
phone: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
@@ -127,19 +148,19 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
127
148
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
128
149
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
129
150
|
}>;
|
|
130
|
-
}, RegisterResult
|
|
131
|
-
requestSignupLink: _spfn_core_route.RouteDef<{
|
|
151
|
+
}, RegisterResult>>;
|
|
152
|
+
requestSignupLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
132
153
|
body: _sinclair_typebox.TObject<{
|
|
133
154
|
email: _sinclair_typebox.TString;
|
|
134
155
|
returnPath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
135
156
|
}>;
|
|
136
|
-
}, {}, RequestSignupLinkResult
|
|
137
|
-
confirmSignupLink: _spfn_core_route.RouteDef<{
|
|
157
|
+
}, {}, RequestSignupLinkResult>>;
|
|
158
|
+
confirmSignupLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
138
159
|
body: _sinclair_typebox.TObject<{
|
|
139
160
|
token: _sinclair_typebox.TString;
|
|
140
161
|
}>;
|
|
141
|
-
}, {}, ConfirmSignupLinkResult
|
|
142
|
-
completeSignup: _spfn_core_route.RouteDef<{
|
|
162
|
+
}, {}, ConfirmSignupLinkResult>>;
|
|
163
|
+
completeSignup: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
143
164
|
body: _sinclair_typebox.TObject<{
|
|
144
165
|
password: _sinclair_typebox.TString;
|
|
145
166
|
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
@@ -154,19 +175,19 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
154
175
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
155
176
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
156
177
|
}>;
|
|
157
|
-
}, RegisterResult
|
|
158
|
-
requestPasswordReset: _spfn_core_route.RouteDef<{
|
|
178
|
+
}, RegisterResult>>;
|
|
179
|
+
requestPasswordReset: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
159
180
|
body: _sinclair_typebox.TObject<{
|
|
160
181
|
email: _sinclair_typebox.TString;
|
|
161
182
|
returnPath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
162
183
|
}>;
|
|
163
|
-
}, {}, RequestPasswordResetResult
|
|
164
|
-
confirmPasswordReset: _spfn_core_route.RouteDef<{
|
|
184
|
+
}, {}, RequestPasswordResetResult>>;
|
|
185
|
+
confirmPasswordReset: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
165
186
|
body: _sinclair_typebox.TObject<{
|
|
166
187
|
token: _sinclair_typebox.TString;
|
|
167
188
|
}>;
|
|
168
|
-
}, {}, ConfirmPasswordResetResult
|
|
169
|
-
completePasswordReset: _spfn_core_route.RouteDef<{
|
|
189
|
+
}, {}, ConfirmPasswordResetResult>>;
|
|
190
|
+
completePasswordReset: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
170
191
|
body: _sinclair_typebox.TObject<{
|
|
171
192
|
password: _sinclair_typebox.TString;
|
|
172
193
|
}>;
|
|
@@ -180,25 +201,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
180
201
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
181
202
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
182
203
|
}>;
|
|
183
|
-
}, LoginResult
|
|
184
|
-
|
|
185
|
-
body: _sinclair_typebox.TObject<{
|
|
186
|
-
email: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
187
|
-
phone: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
188
|
-
password: _sinclair_typebox.TString;
|
|
189
|
-
}>;
|
|
190
|
-
}, {
|
|
191
|
-
body: _sinclair_typebox.TObject<{
|
|
192
|
-
publicKey: _sinclair_typebox.TString;
|
|
193
|
-
keyId: _sinclair_typebox.TString;
|
|
194
|
-
fingerprint: _sinclair_typebox.TString;
|
|
195
|
-
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>;
|
|
196
|
-
oldKeyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
197
|
-
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
198
|
-
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
199
|
-
}>;
|
|
200
|
-
}, LoginResult>;
|
|
201
|
-
startDeviceAuth: _spfn_core_route.RouteDef<{
|
|
204
|
+
}, LoginResult>>;
|
|
205
|
+
startDeviceAuth: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
202
206
|
body: _sinclair_typebox.TObject<{
|
|
203
207
|
publicKey: _sinclair_typebox.TString;
|
|
204
208
|
keyId: _sinclair_typebox.TString;
|
|
@@ -207,10 +211,11 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
207
211
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
208
212
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
209
213
|
}>;
|
|
210
|
-
}, {}, StartDeviceAuthResult
|
|
211
|
-
pollDeviceAuth: _spfn_core_route.RouteDef<{
|
|
214
|
+
}, {}, StartDeviceAuthResult>>;
|
|
215
|
+
pollDeviceAuth: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
212
216
|
body: _sinclair_typebox.TObject<{
|
|
213
217
|
deviceCode: _sinclair_typebox.TString;
|
|
218
|
+
waitMillis: _sinclair_typebox.TOptional<_sinclair_typebox.TInteger>;
|
|
214
219
|
}>;
|
|
215
220
|
}, {}, {
|
|
216
221
|
status: "pending";
|
|
@@ -225,37 +230,37 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
225
230
|
userId: string;
|
|
226
231
|
publicId: string;
|
|
227
232
|
passwordChangeRequired: boolean;
|
|
228
|
-
}
|
|
229
|
-
getDeviceAuthInfo: _spfn_core_route.RouteDef<{
|
|
233
|
+
}>>;
|
|
234
|
+
getDeviceAuthInfo: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
230
235
|
body: _sinclair_typebox.TObject<{
|
|
231
236
|
userCode: _sinclair_typebox.TString;
|
|
232
237
|
}>;
|
|
233
|
-
}, {}, DeviceAuthInfoResult
|
|
234
|
-
approveDeviceAuth: _spfn_core_route.RouteDef<{
|
|
238
|
+
}, {}, DeviceAuthInfoResult>>;
|
|
239
|
+
approveDeviceAuth: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
235
240
|
body: _sinclair_typebox.TObject<{
|
|
236
241
|
userCode: _sinclair_typebox.TString;
|
|
237
242
|
}>;
|
|
238
|
-
}, {}, DeviceAuthInfoResult
|
|
239
|
-
denyDeviceAuth: _spfn_core_route.RouteDef<{
|
|
243
|
+
}, {}, DeviceAuthInfoResult>>;
|
|
244
|
+
denyDeviceAuth: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
240
245
|
body: _sinclair_typebox.TObject<{
|
|
241
246
|
userCode: _sinclair_typebox.TString;
|
|
242
247
|
}>;
|
|
243
|
-
}, {}, void
|
|
244
|
-
passkeyRegisterOptions: _spfn_core_route.RouteDef<{
|
|
248
|
+
}, {}, void>>;
|
|
249
|
+
passkeyRegisterOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
245
250
|
body: _sinclair_typebox.TObject<{
|
|
246
251
|
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
247
252
|
}>;
|
|
248
|
-
}, {}, _simplewebauthn_server.PublicKeyCredentialCreationOptionsJSON
|
|
249
|
-
passkeyRegisterVerify: _spfn_core_route.RouteDef<{
|
|
253
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialCreationOptionsJSON>>;
|
|
254
|
+
passkeyRegisterVerify: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
250
255
|
body: _sinclair_typebox.TObject<{
|
|
251
256
|
response: _sinclair_typebox.TUnknown;
|
|
252
257
|
label: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
253
258
|
}>;
|
|
254
|
-
}, {}, FinishPasskeyEnrollmentResult
|
|
255
|
-
passkeyLoginOptions: _spfn_core_route.RouteDef<{
|
|
259
|
+
}, {}, FinishPasskeyEnrollmentResult>>;
|
|
260
|
+
passkeyLoginOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
256
261
|
body: _sinclair_typebox.TObject<{}>;
|
|
257
|
-
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON
|
|
258
|
-
passkeyLoginVerify: _spfn_core_route.RouteDef<{
|
|
262
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>>;
|
|
263
|
+
passkeyLoginVerify: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
259
264
|
body: _sinclair_typebox.TObject<{
|
|
260
265
|
response: _sinclair_typebox.TUnknown;
|
|
261
266
|
}>;
|
|
@@ -269,13 +274,13 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
269
274
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
270
275
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
271
276
|
}>;
|
|
272
|
-
}, LoginResult
|
|
273
|
-
listPasskeys: _spfn_core_route.RouteDef<{
|
|
277
|
+
}, LoginResult>>;
|
|
278
|
+
listPasskeys: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
274
279
|
body: _sinclair_typebox.TObject<{}>;
|
|
275
280
|
}, {}, {
|
|
276
281
|
passkeys: PasskeySummary[];
|
|
277
|
-
}
|
|
278
|
-
renamePasskey: _spfn_core_route.RouteDef<{
|
|
282
|
+
}>>;
|
|
283
|
+
renamePasskey: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
279
284
|
body: _sinclair_typebox.TObject<{
|
|
280
285
|
passkeyId: _sinclair_typebox.TString;
|
|
281
286
|
label: _sinclair_typebox.TString;
|
|
@@ -283,63 +288,63 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
283
288
|
}, {}, {
|
|
284
289
|
passkeyId: string;
|
|
285
290
|
label: string;
|
|
286
|
-
}
|
|
287
|
-
revokePasskey: _spfn_core_route.RouteDef<{
|
|
291
|
+
}>>;
|
|
292
|
+
revokePasskey: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
288
293
|
body: _sinclair_typebox.TObject<{
|
|
289
294
|
passkeyId: _sinclair_typebox.TString;
|
|
290
295
|
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
291
296
|
}>;
|
|
292
297
|
}, {}, {
|
|
293
298
|
passkeyId: string;
|
|
294
|
-
}
|
|
295
|
-
mfaTotpEnroll: _spfn_core_route.RouteDef<{
|
|
299
|
+
}>>;
|
|
300
|
+
mfaTotpEnroll: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
296
301
|
body: _sinclair_typebox.TObject<{}>;
|
|
297
|
-
}, {}, TotpEnrolmentResult
|
|
298
|
-
mfaTotpConfirm: _spfn_core_route.RouteDef<{
|
|
302
|
+
}, {}, TotpEnrolmentResult>>;
|
|
303
|
+
mfaTotpConfirm: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
299
304
|
body: _sinclair_typebox.TObject<{
|
|
300
305
|
code: _sinclair_typebox.TString;
|
|
301
306
|
}>;
|
|
302
|
-
}, {}, ConfirmTotpResult
|
|
303
|
-
mfaDisable: _spfn_core_route.RouteDef<{
|
|
307
|
+
}, {}, ConfirmTotpResult>>;
|
|
308
|
+
mfaDisable: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
304
309
|
body: _sinclair_typebox.TObject<{}>;
|
|
305
|
-
}, {}, void
|
|
306
|
-
mfaMarkPasskey: _spfn_core_route.RouteDef<{
|
|
310
|
+
}, {}, void>>;
|
|
311
|
+
mfaMarkPasskey: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
307
312
|
body: _sinclair_typebox.TObject<{
|
|
308
313
|
passkeyId: _sinclair_typebox.TString;
|
|
309
314
|
secondFactor: _sinclair_typebox.TBoolean;
|
|
310
315
|
}>;
|
|
311
|
-
}, {}, MfaStatus
|
|
312
|
-
mfaRegenerateRecoveryCodes: _spfn_core_route.RouteDef<{
|
|
316
|
+
}, {}, MfaStatus>>;
|
|
317
|
+
mfaRegenerateRecoveryCodes: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
313
318
|
body: _sinclair_typebox.TObject<{}>;
|
|
314
319
|
}, {}, {
|
|
315
320
|
recoveryCodes: string[];
|
|
316
|
-
}
|
|
317
|
-
mfaStatus: _spfn_core_route.RouteDef<{}, {}, MfaStatus
|
|
318
|
-
mfaStepUp: _spfn_core_route.RouteDef<{
|
|
321
|
+
}>>;
|
|
322
|
+
mfaStatus: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, MfaStatus>>;
|
|
323
|
+
mfaStepUp: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
319
324
|
body: _sinclair_typebox.TObject<{
|
|
320
325
|
code: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
321
326
|
recoveryCode: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
322
327
|
response: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
323
328
|
}>;
|
|
324
|
-
}, {}, void
|
|
325
|
-
mfaStepUpOptions: _spfn_core_route.RouteDef<{
|
|
329
|
+
}, {}, void>>;
|
|
330
|
+
mfaStepUpOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
326
331
|
body: _sinclair_typebox.TObject<{}>;
|
|
327
|
-
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON
|
|
328
|
-
mfaVerify: _spfn_core_route.RouteDef<{
|
|
332
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>>;
|
|
333
|
+
mfaVerify: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
329
334
|
body: _sinclair_typebox.TObject<{
|
|
330
335
|
challenge: _sinclair_typebox.TString;
|
|
331
336
|
code: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
332
337
|
recoveryCode: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
333
338
|
response: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
334
339
|
}>;
|
|
335
|
-
}, {}, VerifyMfaChallengeResult
|
|
336
|
-
mfaVerifyOptions: _spfn_core_route.RouteDef<{
|
|
340
|
+
}, {}, VerifyMfaChallengeResult>>;
|
|
341
|
+
mfaVerifyOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
337
342
|
body: _sinclair_typebox.TObject<{
|
|
338
343
|
challenge: _sinclair_typebox.TString;
|
|
339
344
|
}>;
|
|
340
|
-
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON
|
|
341
|
-
logout: _spfn_core_route.RouteDef<{}, {}, void
|
|
342
|
-
rotateKey: _spfn_core_route.RouteDef<{}, {
|
|
345
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>>;
|
|
346
|
+
logout: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, void>>;
|
|
347
|
+
rotateKey: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {
|
|
343
348
|
body: _sinclair_typebox.TObject<{
|
|
344
349
|
publicKey: _sinclair_typebox.TString;
|
|
345
350
|
keyId: _sinclair_typebox.TString;
|
|
@@ -348,49 +353,49 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
348
353
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
349
354
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
350
355
|
}>;
|
|
351
|
-
}, RotateKeyResult
|
|
352
|
-
listKeys: _spfn_core_route.RouteDef<{
|
|
356
|
+
}, RotateKeyResult>>;
|
|
357
|
+
listKeys: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
353
358
|
body: _sinclair_typebox.TObject<{
|
|
354
359
|
includeRevoked: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
355
360
|
}>;
|
|
356
361
|
}, {}, {
|
|
357
362
|
keys: KeySummary[];
|
|
358
|
-
}
|
|
359
|
-
revokeKey: _spfn_core_route.RouteDef<{
|
|
363
|
+
}>>;
|
|
364
|
+
revokeKey: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
360
365
|
body: _sinclair_typebox.TObject<{
|
|
361
366
|
keyId: _sinclair_typebox.TString;
|
|
362
367
|
}>;
|
|
363
368
|
}, {}, {
|
|
364
369
|
keyId: string;
|
|
365
370
|
selfRevoked: boolean;
|
|
366
|
-
}
|
|
367
|
-
revokeAllKeys: _spfn_core_route.RouteDef<{
|
|
371
|
+
}>>;
|
|
372
|
+
revokeAllKeys: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
368
373
|
body: _sinclair_typebox.TObject<{
|
|
369
374
|
includeCurrent: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
370
375
|
}>;
|
|
371
|
-
}, {}, RevokeAllKeysResult
|
|
372
|
-
confirmRevokeAllLink: _spfn_core_route.RouteDef<{
|
|
376
|
+
}, {}, RevokeAllKeysResult>>;
|
|
377
|
+
confirmRevokeAllLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
373
378
|
body: _sinclair_typebox.TObject<{
|
|
374
379
|
token: _sinclair_typebox.TString;
|
|
375
380
|
}>;
|
|
376
381
|
}, {}, {
|
|
377
382
|
expiresAt: string;
|
|
378
383
|
activeKeyCount: number;
|
|
379
|
-
}
|
|
380
|
-
consumeRevokeAllLink: _spfn_core_route.RouteDef<{
|
|
384
|
+
}>>;
|
|
385
|
+
consumeRevokeAllLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
381
386
|
body: _sinclair_typebox.TObject<{
|
|
382
387
|
token: _sinclair_typebox.TString;
|
|
383
388
|
}>;
|
|
384
389
|
}, {}, {
|
|
385
390
|
revokedCount: number;
|
|
386
|
-
}
|
|
387
|
-
changePassword: _spfn_core_route.RouteDef<{
|
|
391
|
+
}>>;
|
|
392
|
+
changePassword: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
388
393
|
body: _sinclair_typebox.TObject<{
|
|
389
394
|
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
390
395
|
newPassword: _sinclair_typebox.TString;
|
|
391
396
|
}>;
|
|
392
|
-
}, {}, void
|
|
393
|
-
getAuthSession: _spfn_core_route.RouteDef<{}, {}, {
|
|
397
|
+
}, {}, void>>;
|
|
398
|
+
getAuthSession: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, {
|
|
394
399
|
role: {
|
|
395
400
|
id: number;
|
|
396
401
|
name: string;
|
|
@@ -409,22 +414,22 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
409
414
|
emailVerified: boolean;
|
|
410
415
|
phoneVerified: boolean;
|
|
411
416
|
hasPassword: boolean;
|
|
412
|
-
}
|
|
413
|
-
setSessionBinding: _spfn_core_route.RouteDef<{
|
|
417
|
+
}>>;
|
|
418
|
+
setSessionBinding: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
414
419
|
body: _sinclair_typebox.TObject<{
|
|
415
420
|
mode: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"passkey">, _sinclair_typebox.TLiteral<"none">]>;
|
|
416
421
|
response: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
417
422
|
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
418
423
|
}>;
|
|
419
|
-
}, {}, SessionBindingResult
|
|
420
|
-
getSessionBinding: _spfn_core_route.RouteDef<{}, {}, SessionBindingResult
|
|
421
|
-
sessionBindingDisableOptions: _spfn_core_route.RouteDef<{
|
|
424
|
+
}, {}, SessionBindingResult>>;
|
|
425
|
+
getSessionBinding: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, SessionBindingResult>>;
|
|
426
|
+
sessionBindingDisableOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
422
427
|
body: _sinclair_typebox.TObject<{}>;
|
|
423
|
-
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON
|
|
424
|
-
sessionRenewOptions: _spfn_core_route.RouteDef<{
|
|
428
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>>;
|
|
429
|
+
sessionRenewOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
425
430
|
body: _sinclair_typebox.TObject<{}>;
|
|
426
|
-
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON
|
|
427
|
-
sessionRenewVerify: _spfn_core_route.RouteDef<{
|
|
431
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>>;
|
|
432
|
+
sessionRenewVerify: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
428
433
|
body: _sinclair_typebox.TObject<{
|
|
429
434
|
response: _sinclair_typebox.TUnknown;
|
|
430
435
|
}>;
|
|
@@ -435,9 +440,9 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
435
440
|
fingerprint: _sinclair_typebox.TString;
|
|
436
441
|
algorithm: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>>;
|
|
437
442
|
}>;
|
|
438
|
-
}, SessionRenewResult
|
|
439
|
-
issueOneTimeToken: _spfn_core_route.RouteDef<{}, {}, IssueOneTimeTokenResult
|
|
440
|
-
requestAccountDeletion: _spfn_core_route.RouteDef<{
|
|
443
|
+
}, SessionRenewResult>>;
|
|
444
|
+
issueOneTimeToken: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, IssueOneTimeTokenResult>>;
|
|
445
|
+
requestAccountDeletion: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
441
446
|
body: _sinclair_typebox.TObject<{
|
|
442
447
|
password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
443
448
|
verificationToken: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
@@ -446,29 +451,29 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
446
451
|
}>;
|
|
447
452
|
}, {}, {
|
|
448
453
|
purgeScheduledAt: string;
|
|
449
|
-
}
|
|
450
|
-
cancelAccountDeletion: _spfn_core_route.RouteDef<{
|
|
454
|
+
}>>;
|
|
455
|
+
cancelAccountDeletion: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
451
456
|
body: _sinclair_typebox.TObject<{
|
|
452
457
|
email: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
453
458
|
phone: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
454
459
|
password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
455
460
|
verificationToken: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
456
461
|
}>;
|
|
457
|
-
}, {}, void
|
|
458
|
-
oauthGoogleStart: _spfn_core_route.RouteDef<{
|
|
462
|
+
}, {}, void>>;
|
|
463
|
+
oauthGoogleStart: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
459
464
|
query: _sinclair_typebox.TObject<{
|
|
460
465
|
state: _sinclair_typebox.TString;
|
|
461
466
|
}>;
|
|
462
|
-
}, {}, Response
|
|
463
|
-
oauthGoogleCallback: _spfn_core_route.RouteDef<{
|
|
467
|
+
}, {}, Response>>;
|
|
468
|
+
oauthGoogleCallback: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
464
469
|
query: _sinclair_typebox.TObject<{
|
|
465
470
|
code: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
466
471
|
state: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
467
472
|
error: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
468
473
|
error_description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
469
474
|
}>;
|
|
470
|
-
}, {}, Response
|
|
471
|
-
oauthStart: _spfn_core_route.RouteDef<{
|
|
475
|
+
}, {}, Response>>;
|
|
476
|
+
oauthStart: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
472
477
|
body: _sinclair_typebox.TObject<{
|
|
473
478
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
474
479
|
returnUrl: _sinclair_typebox.TString;
|
|
@@ -478,11 +483,11 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
478
483
|
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>;
|
|
479
484
|
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
480
485
|
}>;
|
|
481
|
-
}, {}, OAuthStartResult
|
|
482
|
-
oauthProviders: _spfn_core_route.RouteDef<{}, {}, {
|
|
486
|
+
}, {}, OAuthStartResult>>;
|
|
487
|
+
oauthProviders: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, {
|
|
483
488
|
providers: ("google" | "apple" | "github" | "kakao" | "naver" | "superself")[];
|
|
484
|
-
}
|
|
485
|
-
getGoogleOAuthUrl: _spfn_core_route.RouteDef<{
|
|
489
|
+
}>>;
|
|
490
|
+
getGoogleOAuthUrl: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
486
491
|
body: _sinclair_typebox.TObject<{
|
|
487
492
|
returnUrl: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
488
493
|
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
@@ -490,24 +495,24 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
490
495
|
}>;
|
|
491
496
|
}, {}, {
|
|
492
497
|
authUrl: string;
|
|
493
|
-
}
|
|
494
|
-
oauthFinalize: _spfn_core_route.RouteDef<{
|
|
498
|
+
}>>;
|
|
499
|
+
oauthFinalize: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
495
500
|
body: _sinclair_typebox.TObject<{
|
|
496
501
|
userId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
497
502
|
keyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
498
503
|
mfaChallenge: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
499
504
|
returnUrl: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
500
505
|
}>;
|
|
501
|
-
}, {}, OAuthFinalizeResponse
|
|
502
|
-
oauthProviderStart: _spfn_core_route.RouteDef<{
|
|
506
|
+
}, {}, OAuthFinalizeResponse>>;
|
|
507
|
+
oauthProviderStart: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
503
508
|
params: _sinclair_typebox.TObject<{
|
|
504
509
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
505
510
|
}>;
|
|
506
511
|
query: _sinclair_typebox.TObject<{
|
|
507
512
|
state: _sinclair_typebox.TString;
|
|
508
513
|
}>;
|
|
509
|
-
}, {}, Response
|
|
510
|
-
oauthProviderCallback: _spfn_core_route.RouteDef<{
|
|
514
|
+
}, {}, Response>>;
|
|
515
|
+
oauthProviderCallback: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
511
516
|
params: _sinclair_typebox.TObject<{
|
|
512
517
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
513
518
|
}>;
|
|
@@ -517,8 +522,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
517
522
|
error: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
518
523
|
error_description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
519
524
|
}>;
|
|
520
|
-
}, {}, Response
|
|
521
|
-
getProviderOAuthUrl: _spfn_core_route.RouteDef<{
|
|
525
|
+
}, {}, Response>>;
|
|
526
|
+
getProviderOAuthUrl: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
522
527
|
params: _sinclair_typebox.TObject<{
|
|
523
528
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
524
529
|
}>;
|
|
@@ -529,8 +534,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
529
534
|
}>;
|
|
530
535
|
}, {}, {
|
|
531
536
|
authUrl: string;
|
|
532
|
-
}
|
|
533
|
-
oauthNative: _spfn_core_route.RouteDef<{
|
|
537
|
+
}>>;
|
|
538
|
+
oauthNative: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
534
539
|
params: _sinclair_typebox.TObject<{
|
|
535
540
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
536
541
|
}>;
|
|
@@ -549,18 +554,18 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
549
554
|
}>>;
|
|
550
555
|
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
551
556
|
}>;
|
|
552
|
-
}, {}, OAuthNativeResult
|
|
553
|
-
oauthUnlinkNotify: _spfn_core_route.RouteDef<{
|
|
557
|
+
}, {}, OAuthNativeResult>>;
|
|
558
|
+
oauthUnlinkNotify: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
554
559
|
params: _sinclair_typebox.TObject<{
|
|
555
560
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
556
561
|
}>;
|
|
557
|
-
}, {}, void | Response
|
|
558
|
-
oauthUnlinkNotifyGet: _spfn_core_route.RouteDef<{
|
|
562
|
+
}, {}, void | Response>>;
|
|
563
|
+
oauthUnlinkNotifyGet: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
559
564
|
params: _sinclair_typebox.TObject<{
|
|
560
565
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
561
566
|
}>;
|
|
562
|
-
}, {}, void | Response
|
|
563
|
-
getInvitation: _spfn_core_route.RouteDef<{
|
|
567
|
+
}, {}, void | Response>>;
|
|
568
|
+
getInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
564
569
|
params: _sinclair_typebox.TObject<{
|
|
565
570
|
token: _sinclair_typebox.TString;
|
|
566
571
|
}>;
|
|
@@ -571,8 +576,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
571
576
|
invitedBy: string;
|
|
572
577
|
expiresAt: string;
|
|
573
578
|
metadata: Record<string, any> | undefined;
|
|
574
|
-
}
|
|
575
|
-
acceptInvitation: _spfn_core_route.RouteDef<{
|
|
579
|
+
}>>;
|
|
580
|
+
acceptInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
576
581
|
body: _sinclair_typebox.TObject<{
|
|
577
582
|
token: _sinclair_typebox.TString;
|
|
578
583
|
password: _sinclair_typebox.TString;
|
|
@@ -588,8 +593,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
588
593
|
userId: number;
|
|
589
594
|
email: string;
|
|
590
595
|
role: string;
|
|
591
|
-
}
|
|
592
|
-
createInvitation: _spfn_core_route.RouteDef<{
|
|
596
|
+
}>>;
|
|
597
|
+
createInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
593
598
|
body: _sinclair_typebox.TObject<{
|
|
594
599
|
email: _sinclair_typebox.TString;
|
|
595
600
|
roleId: _sinclair_typebox.TNumber;
|
|
@@ -604,8 +609,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
604
609
|
roleId: number;
|
|
605
610
|
expiresAt: string;
|
|
606
611
|
invitationUrl: string;
|
|
607
|
-
}
|
|
608
|
-
listInvitations: _spfn_core_route.RouteDef<{
|
|
612
|
+
}>>;
|
|
613
|
+
listInvitations: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
609
614
|
query: _sinclair_typebox.TObject<{
|
|
610
615
|
status: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"pending" | "accepted" | "expired" | "cancelled">[]>>;
|
|
611
616
|
page: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
@@ -639,30 +644,30 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
639
644
|
page: number;
|
|
640
645
|
limit: number;
|
|
641
646
|
totalPages: number;
|
|
642
|
-
}
|
|
643
|
-
cancelInvitation: _spfn_core_route.RouteDef<{
|
|
647
|
+
}>>;
|
|
648
|
+
cancelInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
644
649
|
body: _sinclair_typebox.TObject<{
|
|
645
650
|
id: _sinclair_typebox.TNumber;
|
|
646
651
|
reason: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
647
652
|
}>;
|
|
648
653
|
}, {}, {
|
|
649
654
|
cancelledAt: string;
|
|
650
|
-
}
|
|
651
|
-
resendInvitation: _spfn_core_route.RouteDef<{
|
|
655
|
+
}>>;
|
|
656
|
+
resendInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
652
657
|
body: _sinclair_typebox.TObject<{
|
|
653
658
|
id: _sinclair_typebox.TNumber;
|
|
654
659
|
expiresInDays: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
655
660
|
}>;
|
|
656
661
|
}, {}, {
|
|
657
662
|
expiresAt: string;
|
|
658
|
-
}
|
|
659
|
-
deleteInvitation: _spfn_core_route.RouteDef<{
|
|
663
|
+
}>>;
|
|
664
|
+
deleteInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
660
665
|
body: _sinclair_typebox.TObject<{
|
|
661
666
|
id: _sinclair_typebox.TNumber;
|
|
662
667
|
}>;
|
|
663
|
-
}, {}, void
|
|
664
|
-
getUserProfile: _spfn_core_route.RouteDef<{}, {}, UserProfile
|
|
665
|
-
updateUserProfile: _spfn_core_route.RouteDef<{
|
|
668
|
+
}, {}, void>>;
|
|
669
|
+
getUserProfile: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, UserProfile>>;
|
|
670
|
+
updateUserProfile: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
666
671
|
body: _sinclair_typebox.TObject<{
|
|
667
672
|
displayName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
668
673
|
firstName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
@@ -679,15 +684,15 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
679
684
|
jobTitle: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
680
685
|
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TAny>>;
|
|
681
686
|
}>;
|
|
682
|
-
}, {}, ProfileInfo
|
|
683
|
-
checkUsername: _spfn_core_route.RouteDef<{
|
|
687
|
+
}, {}, ProfileInfo>>;
|
|
688
|
+
checkUsername: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
684
689
|
query: _sinclair_typebox.TObject<{
|
|
685
690
|
username: _sinclair_typebox.TString;
|
|
686
691
|
}>;
|
|
687
692
|
}, {}, {
|
|
688
693
|
available: boolean;
|
|
689
|
-
}
|
|
690
|
-
updateUsername: _spfn_core_route.RouteDef<{
|
|
694
|
+
}>>;
|
|
695
|
+
updateUsername: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
691
696
|
body: _sinclair_typebox.TObject<{
|
|
692
697
|
username: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNull]>;
|
|
693
698
|
}>;
|
|
@@ -711,15 +716,15 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
711
716
|
sessionBinding: "none" | "passkey";
|
|
712
717
|
sessionBindingChangedAt: Date | null;
|
|
713
718
|
lastLoginAt: Date | null;
|
|
714
|
-
}
|
|
715
|
-
updateLocale: _spfn_core_route.RouteDef<{
|
|
719
|
+
}>>;
|
|
720
|
+
updateLocale: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
716
721
|
body: _sinclair_typebox.TObject<{
|
|
717
722
|
locale: _sinclair_typebox.TString;
|
|
718
723
|
}>;
|
|
719
724
|
}, {}, {
|
|
720
725
|
locale: string;
|
|
721
|
-
}
|
|
722
|
-
listRoles: _spfn_core_route.RouteDef<{
|
|
726
|
+
}>>;
|
|
727
|
+
listRoles: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
723
728
|
query: _sinclair_typebox.TObject<{
|
|
724
729
|
includeInactive: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
725
730
|
}>;
|
|
@@ -736,8 +741,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
736
741
|
createdAt: Date;
|
|
737
742
|
updatedAt: Date;
|
|
738
743
|
}[];
|
|
739
|
-
}
|
|
740
|
-
createAdminRole: _spfn_core_route.RouteDef<{
|
|
744
|
+
}>>;
|
|
745
|
+
createAdminRole: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
741
746
|
body: _sinclair_typebox.TObject<{
|
|
742
747
|
name: _sinclair_typebox.TString;
|
|
743
748
|
displayName: _sinclair_typebox.TString;
|
|
@@ -758,8 +763,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
758
763
|
createdAt: Date;
|
|
759
764
|
updatedAt: Date;
|
|
760
765
|
};
|
|
761
|
-
}
|
|
762
|
-
updateAdminRole: _spfn_core_route.RouteDef<{
|
|
766
|
+
}>>;
|
|
767
|
+
updateAdminRole: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
763
768
|
params: _sinclair_typebox.TObject<{
|
|
764
769
|
id: _sinclair_typebox.TNumber;
|
|
765
770
|
}>;
|
|
@@ -782,13 +787,13 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
782
787
|
createdAt: Date;
|
|
783
788
|
updatedAt: Date;
|
|
784
789
|
};
|
|
785
|
-
}
|
|
786
|
-
deleteAdminRole: _spfn_core_route.RouteDef<{
|
|
790
|
+
}>>;
|
|
791
|
+
deleteAdminRole: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
787
792
|
params: _sinclair_typebox.TObject<{
|
|
788
793
|
id: _sinclair_typebox.TNumber;
|
|
789
794
|
}>;
|
|
790
|
-
}, {}, void
|
|
791
|
-
updateUserRole: _spfn_core_route.RouteDef<{
|
|
795
|
+
}, {}, void>>;
|
|
796
|
+
updateUserRole: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
792
797
|
params: _sinclair_typebox.TObject<{
|
|
793
798
|
userId: _sinclair_typebox.TNumber;
|
|
794
799
|
}>;
|
|
@@ -798,8 +803,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
798
803
|
}, {}, {
|
|
799
804
|
userId: number;
|
|
800
805
|
roleId: number;
|
|
801
|
-
}
|
|
802
|
-
issueOpsToken: _spfn_core_route.RouteDef<{
|
|
806
|
+
}>>;
|
|
807
|
+
issueOpsToken: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
803
808
|
body: _sinclair_typebox.TObject<{
|
|
804
809
|
name: _sinclair_typebox.TString;
|
|
805
810
|
scopes: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
|
|
@@ -816,8 +821,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
816
821
|
lastUsedAt: string | null;
|
|
817
822
|
createdAt: string | null;
|
|
818
823
|
};
|
|
819
|
-
}
|
|
820
|
-
listOpsTokens: _spfn_core_route.RouteDef<{}, {}, {
|
|
824
|
+
}>>;
|
|
825
|
+
listOpsTokens: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, {
|
|
821
826
|
opsTokens: {
|
|
822
827
|
id: number;
|
|
823
828
|
name: string;
|
|
@@ -827,8 +832,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
827
832
|
lastUsedAt: string | null;
|
|
828
833
|
createdAt: string | null;
|
|
829
834
|
}[];
|
|
830
|
-
}
|
|
831
|
-
revokeOpsToken: _spfn_core_route.RouteDef<{
|
|
835
|
+
}>>;
|
|
836
|
+
revokeOpsToken: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
832
837
|
params: _sinclair_typebox.TObject<{
|
|
833
838
|
id: _sinclair_typebox.TNumber;
|
|
834
839
|
}>;
|
|
@@ -842,9 +847,9 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
842
847
|
lastUsedAt: string | null;
|
|
843
848
|
createdAt: string | null;
|
|
844
849
|
};
|
|
845
|
-
}
|
|
846
|
-
registerOAuth2Client: _spfn_core_route.RouteDef<{}, {}, Response
|
|
847
|
-
getOAuth2Authorize: _spfn_core_route.RouteDef<{
|
|
850
|
+
}>>;
|
|
851
|
+
registerOAuth2Client: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, Response>>;
|
|
852
|
+
getOAuth2Authorize: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
848
853
|
query: _sinclair_typebox.TObject<{
|
|
849
854
|
client_id: _sinclair_typebox.TString;
|
|
850
855
|
redirect_uri: _sinclair_typebox.TString;
|
|
@@ -854,8 +859,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
854
859
|
scope: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
855
860
|
state: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
856
861
|
}>;
|
|
857
|
-
}, {}, OAuth2ConsentView
|
|
858
|
-
createOAuth2AuthorizationCode: _spfn_core_route.RouteDef<{
|
|
862
|
+
}, {}, OAuth2ConsentView>>;
|
|
863
|
+
createOAuth2AuthorizationCode: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
859
864
|
body: _sinclair_typebox.TObject<{
|
|
860
865
|
approve: _sinclair_typebox.TBoolean;
|
|
861
866
|
client_id: _sinclair_typebox.TString;
|
|
@@ -866,21 +871,21 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
866
871
|
scope: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
867
872
|
state: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
868
873
|
}>;
|
|
869
|
-
}, {}, OAuth2AuthorizationCodeIssued
|
|
870
|
-
oauth2Token: _spfn_core_route.RouteDef<{}, {}, Response
|
|
871
|
-
oauth2Revoke: _spfn_core_route.RouteDef<{}, {}, Response
|
|
872
|
-
listOAuth2Grants: _spfn_core_route.RouteDef<{}, {}, {
|
|
874
|
+
}, {}, OAuth2AuthorizationCodeIssued>>;
|
|
875
|
+
oauth2Token: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, Response>>;
|
|
876
|
+
oauth2Revoke: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, Response>>;
|
|
877
|
+
listOAuth2Grants: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, {
|
|
873
878
|
grants: OAuth2GrantSummary[];
|
|
874
|
-
}
|
|
875
|
-
revokeOAuth2Grant: _spfn_core_route.RouteDef<{
|
|
879
|
+
}>>;
|
|
880
|
+
revokeOAuth2Grant: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
876
881
|
params: _sinclair_typebox.TObject<{
|
|
877
882
|
id: _sinclair_typebox.TNumber;
|
|
878
883
|
}>;
|
|
879
884
|
}, {}, {
|
|
880
885
|
revoked: boolean;
|
|
881
|
-
}
|
|
882
|
-
oauth2AuthorizationServerMetadata: _spfn_core_route.RouteDef<{}, {}, Response
|
|
883
|
-
}
|
|
886
|
+
}>>;
|
|
887
|
+
oauth2AuthorizationServerMetadata: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, Response>>;
|
|
888
|
+
};
|
|
884
889
|
type AuthRouter = typeof mainAuthRouter;
|
|
885
890
|
|
|
886
891
|
export { type AuthRouter, BASE64_PATTERN, BUILTIN_PERMISSIONS, BUILTIN_ROLES, BUILTIN_ROLE_PERMISSIONS, type BuiltinPermissionName, type BuiltinRoleName, EMAIL_PATTERN, FINGERPRINT_PATTERN, PHONE_PATTERN, PermissionConfig, ProfileInfo, RoleConfig, UUID_PATTERN, UserProfile, authApi, routeMap as authRouteMap };
|