@spfn/auth 0.3.0-beta.26 → 0.3.0-beta.28
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 +195 -9
- package/dist/client-proof.d.ts +8 -1
- package/dist/client-proof.js +58 -2
- package/dist/client-proof.js.map +1 -1
- package/dist/config.d.ts +6 -6
- package/dist/errors.d.ts +104 -2
- package/dist/errors.js +69 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +504 -446
- package/dist/index.js +114 -40
- package/dist/index.js.map +1 -1
- package/dist/{machine-principals-CdEgxOB1.d.ts → machine-principals-B0bjs-0K.d.ts} +914 -285
- package/dist/server.d.ts +430 -175
- package/dist/server.js +1710 -655
- package/dist/server.js.map +1 -1
- package/migrations/20260926054221_friendly_hitman/migration.sql +28 -0
- package/migrations/20260926054221_friendly_hitman/snapshot.json +6691 -0
- 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, a as RegisterResult, S as SendVerificationCodeResult, b as StartDeviceAuthResult, D as DeviceAuthInfoResult, I as IssueDeviceLinkResult, c as RedeemDeviceLinkResult, d as DeviceLinkStatusResult, e as RotateKeyResult, K as KeySummary, f as RevokeAllKeysResult, g as IssueOneTimeTokenResult, U as UserProfile, h as ProfileInfo, O as OAuthStartResult, i as OAuthFinalizeResponse, j as OAuthNativeResult, k as RequestSignupLinkResult, C as ConfirmSignupLinkResult, l as RequestPasswordResetResult, n as ConfirmPasswordResetResult, F as FinishPasskeyEnrollmentResult, o as PasskeySummary, T as TotpEnrolmentResult, p as ConfirmTotpResult, M as MfaStatus, V as VerifyMfaChallengeResult, q as SessionBindingResult, r as SessionRenewResult, s as OAuth2ConsentView, t as OAuth2AuthorizationCodeIssued, u as OAuth2GrantSummary } from './machine-principals-B0bjs-0K.js';
|
|
2
|
+
export { A as AuthInitOptions, v as AuthSession, w as PERMISSION_CATEGORIES, x as PermissionCategory, y as VERIFICATION_PURPOSES, z as VERIFICATION_TARGET_TYPES, B as VerificationPurpose, E as VerificationTargetType } from './machine-principals-B0bjs-0K.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';
|
|
@@ -11,6 +11,31 @@ import '@spfn/core/event';
|
|
|
11
11
|
import 'hono';
|
|
12
12
|
import '@spfn/auth/server';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @spfn/auth - Built-in Roles and Permissions
|
|
16
|
+
*
|
|
17
|
+
* Core roles and permissions required by the auth package
|
|
18
|
+
* These cannot be deleted and are automatically created on initialization
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Built-in roles (required by package)
|
|
23
|
+
* These roles are always created and cannot be deleted
|
|
24
|
+
*/
|
|
25
|
+
declare const BUILTIN_ROLES: Record<string, RoleConfig>;
|
|
26
|
+
/**
|
|
27
|
+
* Built-in permissions (required by package)
|
|
28
|
+
* These permissions are always created and cannot be deleted
|
|
29
|
+
*/
|
|
30
|
+
declare const BUILTIN_PERMISSIONS: Record<string, PermissionConfig>;
|
|
31
|
+
/**
|
|
32
|
+
* Built-in role-permission mappings
|
|
33
|
+
* Defines default permissions for each built-in role
|
|
34
|
+
*/
|
|
35
|
+
declare const BUILTIN_ROLE_PERMISSIONS: Record<string, string[]>;
|
|
36
|
+
type BuiltinRoleName = keyof typeof BUILTIN_ROLE_PERMISSIONS;
|
|
37
|
+
type BuiltinPermissionName = typeof BUILTIN_PERMISSIONS[keyof typeof BUILTIN_PERMISSIONS]['name'];
|
|
38
|
+
|
|
14
39
|
/**
|
|
15
40
|
* Email regex pattern (RFC 5322 compliant)
|
|
16
41
|
* Validates: local-part@domain.tld
|
|
@@ -38,35 +63,14 @@ declare const UUID_PATTERN = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[
|
|
|
38
63
|
*/
|
|
39
64
|
declare const BASE64_PATTERN = "^[A-Za-z0-9+/]+=*$";
|
|
40
65
|
|
|
41
|
-
/**
|
|
42
|
-
* @spfn/auth - Built-in Roles and Permissions
|
|
43
|
-
*
|
|
44
|
-
* Core roles and permissions required by the auth package
|
|
45
|
-
* These cannot be deleted and are automatically created on initialization
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Built-in roles (required by package)
|
|
50
|
-
* These roles are always created and cannot be deleted
|
|
51
|
-
*/
|
|
52
|
-
declare const BUILTIN_ROLES: Record<string, RoleConfig>;
|
|
53
|
-
/**
|
|
54
|
-
* Built-in permissions (required by package)
|
|
55
|
-
* These permissions are always created and cannot be deleted
|
|
56
|
-
*/
|
|
57
|
-
declare const BUILTIN_PERMISSIONS: Record<string, PermissionConfig>;
|
|
58
|
-
/**
|
|
59
|
-
* Built-in role-permission mappings
|
|
60
|
-
* Defines default permissions for each built-in role
|
|
61
|
-
*/
|
|
62
|
-
declare const BUILTIN_ROLE_PERMISSIONS: Record<string, string[]>;
|
|
63
|
-
type BuiltinRoleName = keyof typeof BUILTIN_ROLE_PERMISSIONS;
|
|
64
|
-
type BuiltinPermissionName = typeof BUILTIN_PERMISSIONS[keyof typeof BUILTIN_PERMISSIONS]['name'];
|
|
65
|
-
|
|
66
66
|
/**
|
|
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,32 +95,12 @@ declare const routeMap: Record<string, RouteInfo>;
|
|
|
91
95
|
* });
|
|
92
96
|
* ```
|
|
93
97
|
*/
|
|
94
|
-
declare const authApi:
|
|
95
|
-
|
|
96
|
-
body: _sinclair_typebox.TObject<{
|
|
97
|
-
target: _sinclair_typebox.TString;
|
|
98
|
-
targetType: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"email">, _sinclair_typebox.TLiteral<"phone">]>;
|
|
99
|
-
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
|
-
}>;
|
|
101
|
-
}, {}, SendVerificationCodeResult>;
|
|
102
|
-
verifyCode: _spfn_core_route.RouteDef<{
|
|
103
|
-
body: _sinclair_typebox.TObject<{
|
|
104
|
-
target: _sinclair_typebox.TString;
|
|
105
|
-
targetType: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"email">, _sinclair_typebox.TLiteral<"phone">]>;
|
|
106
|
-
code: _sinclair_typebox.TString;
|
|
107
|
-
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">]>;
|
|
108
|
-
}>;
|
|
109
|
-
}, {}, {
|
|
110
|
-
valid: boolean;
|
|
111
|
-
verificationToken: string;
|
|
112
|
-
}>;
|
|
113
|
-
register: _spfn_core_route.RouteDef<{
|
|
98
|
+
declare const authApi: {
|
|
99
|
+
login: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
114
100
|
body: _sinclair_typebox.TObject<{
|
|
115
101
|
email: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
116
102
|
phone: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
117
|
-
verificationToken: _sinclair_typebox.TString;
|
|
118
103
|
password: _sinclair_typebox.TString;
|
|
119
|
-
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
120
104
|
}>;
|
|
121
105
|
}, {
|
|
122
106
|
body: _sinclair_typebox.TObject<{
|
|
@@ -124,55 +108,21 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
124
108
|
keyId: _sinclair_typebox.TString;
|
|
125
109
|
fingerprint: _sinclair_typebox.TString;
|
|
126
110
|
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>;
|
|
111
|
+
oldKeyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
127
112
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
128
113
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
129
114
|
}>;
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
body: _sinclair_typebox.TObject<{
|
|
133
|
-
email: _sinclair_typebox.TString;
|
|
134
|
-
returnPath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
135
|
-
}>;
|
|
136
|
-
}, {}, RequestSignupLinkResult>;
|
|
137
|
-
confirmSignupLink: _spfn_core_route.RouteDef<{
|
|
138
|
-
body: _sinclair_typebox.TObject<{
|
|
139
|
-
token: _sinclair_typebox.TString;
|
|
140
|
-
}>;
|
|
141
|
-
}, {}, ConfirmSignupLinkResult>;
|
|
142
|
-
completeSignup: _spfn_core_route.RouteDef<{
|
|
115
|
+
}, LoginResult>>;
|
|
116
|
+
register: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
143
117
|
body: _sinclair_typebox.TObject<{
|
|
118
|
+
email: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
119
|
+
phone: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
120
|
+
verificationToken: _sinclair_typebox.TString;
|
|
144
121
|
password: _sinclair_typebox.TString;
|
|
145
122
|
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
146
123
|
}>;
|
|
147
124
|
}, {
|
|
148
125
|
body: _sinclair_typebox.TObject<{
|
|
149
|
-
setupSecret: _sinclair_typebox.TString;
|
|
150
|
-
publicKey: _sinclair_typebox.TString;
|
|
151
|
-
keyId: _sinclair_typebox.TString;
|
|
152
|
-
fingerprint: _sinclair_typebox.TString;
|
|
153
|
-
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>;
|
|
154
|
-
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
155
|
-
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
156
|
-
}>;
|
|
157
|
-
}, RegisterResult>;
|
|
158
|
-
requestPasswordReset: _spfn_core_route.RouteDef<{
|
|
159
|
-
body: _sinclair_typebox.TObject<{
|
|
160
|
-
email: _sinclair_typebox.TString;
|
|
161
|
-
returnPath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
162
|
-
}>;
|
|
163
|
-
}, {}, RequestPasswordResetResult>;
|
|
164
|
-
confirmPasswordReset: _spfn_core_route.RouteDef<{
|
|
165
|
-
body: _sinclair_typebox.TObject<{
|
|
166
|
-
token: _sinclair_typebox.TString;
|
|
167
|
-
}>;
|
|
168
|
-
}, {}, ConfirmPasswordResetResult>;
|
|
169
|
-
completePasswordReset: _spfn_core_route.RouteDef<{
|
|
170
|
-
body: _sinclair_typebox.TObject<{
|
|
171
|
-
password: _sinclair_typebox.TString;
|
|
172
|
-
}>;
|
|
173
|
-
}, {
|
|
174
|
-
body: _sinclair_typebox.TObject<{
|
|
175
|
-
setupSecret: _sinclair_typebox.TString;
|
|
176
126
|
publicKey: _sinclair_typebox.TString;
|
|
177
127
|
keyId: _sinclair_typebox.TString;
|
|
178
128
|
fingerprint: _sinclair_typebox.TString;
|
|
@@ -180,25 +130,26 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
180
130
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
181
131
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
182
132
|
}>;
|
|
183
|
-
},
|
|
184
|
-
|
|
133
|
+
}, RegisterResult>>;
|
|
134
|
+
sendVerificationCode: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
185
135
|
body: _sinclair_typebox.TObject<{
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
136
|
+
target: _sinclair_typebox.TString;
|
|
137
|
+
targetType: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"email">, _sinclair_typebox.TLiteral<"phone">]>;
|
|
138
|
+
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">]>;
|
|
189
139
|
}>;
|
|
190
|
-
}, {
|
|
140
|
+
}, {}, SendVerificationCodeResult>>;
|
|
141
|
+
verifyCode: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
191
142
|
body: _sinclair_typebox.TObject<{
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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">[]>>;
|
|
143
|
+
target: _sinclair_typebox.TString;
|
|
144
|
+
targetType: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"email">, _sinclair_typebox.TLiteral<"phone">]>;
|
|
145
|
+
code: _sinclair_typebox.TString;
|
|
146
|
+
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">]>;
|
|
199
147
|
}>;
|
|
200
|
-
},
|
|
201
|
-
|
|
148
|
+
}, {}, {
|
|
149
|
+
valid: boolean;
|
|
150
|
+
verificationToken: string;
|
|
151
|
+
}>>;
|
|
152
|
+
startDeviceAuth: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
202
153
|
body: _sinclair_typebox.TObject<{
|
|
203
154
|
publicKey: _sinclair_typebox.TString;
|
|
204
155
|
keyId: _sinclair_typebox.TString;
|
|
@@ -207,10 +158,11 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
207
158
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
208
159
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
209
160
|
}>;
|
|
210
|
-
}, {}, StartDeviceAuthResult
|
|
211
|
-
pollDeviceAuth: _spfn_core_route.RouteDef<{
|
|
161
|
+
}, {}, StartDeviceAuthResult>>;
|
|
162
|
+
pollDeviceAuth: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
212
163
|
body: _sinclair_typebox.TObject<{
|
|
213
164
|
deviceCode: _sinclair_typebox.TString;
|
|
165
|
+
waitMillis: _sinclair_typebox.TOptional<_sinclair_typebox.TInteger>;
|
|
214
166
|
}>;
|
|
215
167
|
}, {}, {
|
|
216
168
|
status: "pending";
|
|
@@ -225,121 +177,77 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
225
177
|
userId: string;
|
|
226
178
|
publicId: string;
|
|
227
179
|
passwordChangeRequired: boolean;
|
|
228
|
-
}
|
|
229
|
-
getDeviceAuthInfo: _spfn_core_route.RouteDef<{
|
|
180
|
+
}>>;
|
|
181
|
+
getDeviceAuthInfo: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
230
182
|
body: _sinclair_typebox.TObject<{
|
|
231
183
|
userCode: _sinclair_typebox.TString;
|
|
232
184
|
}>;
|
|
233
|
-
}, {}, DeviceAuthInfoResult
|
|
234
|
-
approveDeviceAuth: _spfn_core_route.RouteDef<{
|
|
185
|
+
}, {}, DeviceAuthInfoResult>>;
|
|
186
|
+
approveDeviceAuth: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
235
187
|
body: _sinclair_typebox.TObject<{
|
|
236
188
|
userCode: _sinclair_typebox.TString;
|
|
237
189
|
}>;
|
|
238
|
-
}, {}, DeviceAuthInfoResult
|
|
239
|
-
denyDeviceAuth: _spfn_core_route.RouteDef<{
|
|
190
|
+
}, {}, DeviceAuthInfoResult>>;
|
|
191
|
+
denyDeviceAuth: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
240
192
|
body: _sinclair_typebox.TObject<{
|
|
241
193
|
userCode: _sinclair_typebox.TString;
|
|
242
194
|
}>;
|
|
243
|
-
}, {}, void
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
247
|
-
}>;
|
|
248
|
-
}, {}, _simplewebauthn_server.PublicKeyCredentialCreationOptionsJSON>;
|
|
249
|
-
passkeyRegisterVerify: _spfn_core_route.RouteDef<{
|
|
250
|
-
body: _sinclair_typebox.TObject<{
|
|
251
|
-
response: _sinclair_typebox.TUnknown;
|
|
252
|
-
label: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
253
|
-
}>;
|
|
254
|
-
}, {}, FinishPasskeyEnrollmentResult>;
|
|
255
|
-
passkeyLoginOptions: _spfn_core_route.RouteDef<{
|
|
256
|
-
body: _sinclair_typebox.TObject<{}>;
|
|
257
|
-
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>;
|
|
258
|
-
passkeyLoginVerify: _spfn_core_route.RouteDef<{
|
|
259
|
-
body: _sinclair_typebox.TObject<{
|
|
260
|
-
response: _sinclair_typebox.TUnknown;
|
|
261
|
-
}>;
|
|
262
|
-
}, {
|
|
195
|
+
}, {}, void>>;
|
|
196
|
+
issueDeviceLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, IssueDeviceLinkResult>>;
|
|
197
|
+
redeemDeviceLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
263
198
|
body: _sinclair_typebox.TObject<{
|
|
199
|
+
userCode: _sinclair_typebox.TString;
|
|
264
200
|
publicKey: _sinclair_typebox.TString;
|
|
265
201
|
keyId: _sinclair_typebox.TString;
|
|
266
202
|
fingerprint: _sinclair_typebox.TString;
|
|
267
|
-
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]
|
|
268
|
-
oldKeyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
203
|
+
algorithm: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>>;
|
|
269
204
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
270
205
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
271
206
|
}>;
|
|
272
|
-
},
|
|
273
|
-
|
|
274
|
-
body: _sinclair_typebox.TObject<{}>;
|
|
275
|
-
}, {}, {
|
|
276
|
-
passkeys: PasskeySummary[];
|
|
277
|
-
}>;
|
|
278
|
-
renamePasskey: _spfn_core_route.RouteDef<{
|
|
279
|
-
body: _sinclair_typebox.TObject<{
|
|
280
|
-
passkeyId: _sinclair_typebox.TString;
|
|
281
|
-
label: _sinclair_typebox.TString;
|
|
282
|
-
}>;
|
|
283
|
-
}, {}, {
|
|
284
|
-
passkeyId: string;
|
|
285
|
-
label: string;
|
|
286
|
-
}>;
|
|
287
|
-
revokePasskey: _spfn_core_route.RouteDef<{
|
|
288
|
-
body: _sinclair_typebox.TObject<{
|
|
289
|
-
passkeyId: _sinclair_typebox.TString;
|
|
290
|
-
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
291
|
-
}>;
|
|
292
|
-
}, {}, {
|
|
293
|
-
passkeyId: string;
|
|
294
|
-
}>;
|
|
295
|
-
mfaTotpEnroll: _spfn_core_route.RouteDef<{
|
|
296
|
-
body: _sinclair_typebox.TObject<{}>;
|
|
297
|
-
}, {}, TotpEnrolmentResult>;
|
|
298
|
-
mfaTotpConfirm: _spfn_core_route.RouteDef<{
|
|
207
|
+
}, {}, RedeemDeviceLinkResult>>;
|
|
208
|
+
getDeviceLinkStatus: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
299
209
|
body: _sinclair_typebox.TObject<{
|
|
300
|
-
|
|
210
|
+
linkId: _sinclair_typebox.TString;
|
|
211
|
+
waitMillis: _sinclair_typebox.TOptional<_sinclair_typebox.TInteger>;
|
|
301
212
|
}>;
|
|
302
|
-
}, {},
|
|
303
|
-
|
|
304
|
-
body: _sinclair_typebox.TObject<{}>;
|
|
305
|
-
}, {}, void>;
|
|
306
|
-
mfaMarkPasskey: _spfn_core_route.RouteDef<{
|
|
213
|
+
}, {}, DeviceLinkStatusResult>>;
|
|
214
|
+
confirmDeviceLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
307
215
|
body: _sinclair_typebox.TObject<{
|
|
308
|
-
|
|
309
|
-
|
|
216
|
+
linkId: _sinclair_typebox.TString;
|
|
217
|
+
choice: _sinclair_typebox.TInteger;
|
|
310
218
|
}>;
|
|
311
|
-
}, {},
|
|
312
|
-
|
|
313
|
-
body: _sinclair_typebox.TObject<{}>;
|
|
314
|
-
}, {}, {
|
|
315
|
-
recoveryCodes: string[];
|
|
316
|
-
}>;
|
|
317
|
-
mfaStatus: _spfn_core_route.RouteDef<{}, {}, MfaStatus>;
|
|
318
|
-
mfaStepUp: _spfn_core_route.RouteDef<{
|
|
219
|
+
}, {}, DeviceLinkStatusResult>>;
|
|
220
|
+
denyDeviceLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
319
221
|
body: _sinclair_typebox.TObject<{
|
|
320
|
-
|
|
321
|
-
recoveryCode: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
322
|
-
response: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
222
|
+
linkId: _sinclair_typebox.TString;
|
|
323
223
|
}>;
|
|
324
|
-
}, {},
|
|
325
|
-
|
|
326
|
-
body: _sinclair_typebox.TObject<{}>;
|
|
327
|
-
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>;
|
|
328
|
-
mfaVerify: _spfn_core_route.RouteDef<{
|
|
224
|
+
}, {}, DeviceLinkStatusResult>>;
|
|
225
|
+
cancelDeviceLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
329
226
|
body: _sinclair_typebox.TObject<{
|
|
330
|
-
|
|
331
|
-
code: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
332
|
-
recoveryCode: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
333
|
-
response: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
227
|
+
linkId: _sinclair_typebox.TString;
|
|
334
228
|
}>;
|
|
335
|
-
}, {},
|
|
336
|
-
|
|
229
|
+
}, {}, DeviceLinkStatusResult>>;
|
|
230
|
+
pollDeviceLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
337
231
|
body: _sinclair_typebox.TObject<{
|
|
338
|
-
|
|
232
|
+
deviceCode: _sinclair_typebox.TString;
|
|
233
|
+
waitMillis: _sinclair_typebox.TOptional<_sinclair_typebox.TInteger>;
|
|
339
234
|
}>;
|
|
340
|
-
}, {},
|
|
341
|
-
|
|
342
|
-
|
|
235
|
+
}, {}, {
|
|
236
|
+
status: "pending";
|
|
237
|
+
intervalMillis: number;
|
|
238
|
+
} | {
|
|
239
|
+
email?: string | undefined;
|
|
240
|
+
phone?: string | undefined;
|
|
241
|
+
sessionBinding?: "none" | "passkey" | undefined;
|
|
242
|
+
keyExpiresAtMillis?: number | undefined;
|
|
243
|
+
status: "approved";
|
|
244
|
+
mfaRequired: boolean;
|
|
245
|
+
userId: string;
|
|
246
|
+
publicId: string;
|
|
247
|
+
passwordChangeRequired: boolean;
|
|
248
|
+
}>>;
|
|
249
|
+
logout: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, void>>;
|
|
250
|
+
rotateKey: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {
|
|
343
251
|
body: _sinclair_typebox.TObject<{
|
|
344
252
|
publicKey: _sinclair_typebox.TString;
|
|
345
253
|
keyId: _sinclair_typebox.TString;
|
|
@@ -348,49 +256,34 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
348
256
|
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
349
257
|
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
350
258
|
}>;
|
|
351
|
-
}, RotateKeyResult
|
|
352
|
-
listKeys: _spfn_core_route.RouteDef<{
|
|
259
|
+
}, RotateKeyResult>>;
|
|
260
|
+
listKeys: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
353
261
|
body: _sinclair_typebox.TObject<{
|
|
354
262
|
includeRevoked: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
355
263
|
}>;
|
|
356
264
|
}, {}, {
|
|
357
265
|
keys: KeySummary[];
|
|
358
|
-
}
|
|
359
|
-
revokeKey: _spfn_core_route.RouteDef<{
|
|
266
|
+
}>>;
|
|
267
|
+
revokeKey: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
360
268
|
body: _sinclair_typebox.TObject<{
|
|
361
269
|
keyId: _sinclair_typebox.TString;
|
|
362
270
|
}>;
|
|
363
271
|
}, {}, {
|
|
364
272
|
keyId: string;
|
|
365
273
|
selfRevoked: boolean;
|
|
366
|
-
}
|
|
367
|
-
revokeAllKeys: _spfn_core_route.RouteDef<{
|
|
274
|
+
}>>;
|
|
275
|
+
revokeAllKeys: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
368
276
|
body: _sinclair_typebox.TObject<{
|
|
369
277
|
includeCurrent: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
370
278
|
}>;
|
|
371
|
-
}, {}, RevokeAllKeysResult
|
|
372
|
-
|
|
373
|
-
body: _sinclair_typebox.TObject<{
|
|
374
|
-
token: _sinclair_typebox.TString;
|
|
375
|
-
}>;
|
|
376
|
-
}, {}, {
|
|
377
|
-
expiresAt: string;
|
|
378
|
-
activeKeyCount: number;
|
|
379
|
-
}>;
|
|
380
|
-
consumeRevokeAllLink: _spfn_core_route.RouteDef<{
|
|
381
|
-
body: _sinclair_typebox.TObject<{
|
|
382
|
-
token: _sinclair_typebox.TString;
|
|
383
|
-
}>;
|
|
384
|
-
}, {}, {
|
|
385
|
-
revokedCount: number;
|
|
386
|
-
}>;
|
|
387
|
-
changePassword: _spfn_core_route.RouteDef<{
|
|
279
|
+
}, {}, RevokeAllKeysResult>>;
|
|
280
|
+
changePassword: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
388
281
|
body: _sinclair_typebox.TObject<{
|
|
389
282
|
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
390
283
|
newPassword: _sinclair_typebox.TString;
|
|
391
284
|
}>;
|
|
392
|
-
}, {}, void
|
|
393
|
-
getAuthSession: _spfn_core_route.RouteDef<{}, {}, {
|
|
285
|
+
}, {}, void>>;
|
|
286
|
+
getAuthSession: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, {
|
|
394
287
|
role: {
|
|
395
288
|
id: number;
|
|
396
289
|
name: string;
|
|
@@ -401,7 +294,7 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
401
294
|
id: number;
|
|
402
295
|
name: string;
|
|
403
296
|
displayName: string;
|
|
404
|
-
category: "
|
|
297
|
+
category: "custom" | "user" | "auth" | "rbac" | "system" | undefined;
|
|
405
298
|
}[];
|
|
406
299
|
userId: number;
|
|
407
300
|
publicId: string;
|
|
@@ -409,80 +302,195 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
409
302
|
emailVerified: boolean;
|
|
410
303
|
phoneVerified: boolean;
|
|
411
304
|
hasPassword: boolean;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
305
|
+
}>>;
|
|
306
|
+
issueOneTimeToken: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, IssueOneTimeTokenResult>>;
|
|
307
|
+
getInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
308
|
+
params: _sinclair_typebox.TObject<{
|
|
309
|
+
token: _sinclair_typebox.TString;
|
|
418
310
|
}>;
|
|
419
|
-
}, {},
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}
|
|
427
|
-
|
|
311
|
+
}, {}, {
|
|
312
|
+
email: string;
|
|
313
|
+
role: string;
|
|
314
|
+
roleDisplayName: string;
|
|
315
|
+
invitedBy: string;
|
|
316
|
+
expiresAt: string;
|
|
317
|
+
metadata: Record<string, any> | undefined;
|
|
318
|
+
}>>;
|
|
319
|
+
acceptInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
428
320
|
body: _sinclair_typebox.TObject<{
|
|
429
|
-
|
|
321
|
+
token: _sinclair_typebox.TString;
|
|
322
|
+
password: _sinclair_typebox.TString;
|
|
430
323
|
}>;
|
|
431
324
|
}, {
|
|
432
325
|
body: _sinclair_typebox.TObject<{
|
|
433
326
|
publicKey: _sinclair_typebox.TString;
|
|
434
327
|
keyId: _sinclair_typebox.TString;
|
|
435
328
|
fingerprint: _sinclair_typebox.TString;
|
|
436
|
-
algorithm: _sinclair_typebox.
|
|
329
|
+
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>;
|
|
437
330
|
}>;
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
|
|
331
|
+
}, {
|
|
332
|
+
userId: number;
|
|
333
|
+
email: string;
|
|
334
|
+
role: string;
|
|
335
|
+
}>>;
|
|
336
|
+
createInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
441
337
|
body: _sinclair_typebox.TObject<{
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
338
|
+
email: _sinclair_typebox.TString;
|
|
339
|
+
roleId: _sinclair_typebox.TNumber;
|
|
340
|
+
expiresInDays: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
341
|
+
expiresAt: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
342
|
+
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TAny>;
|
|
446
343
|
}>;
|
|
447
344
|
}, {}, {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}>;
|
|
457
|
-
}, {}, void>;
|
|
458
|
-
oauthGoogleStart: _spfn_core_route.RouteDef<{
|
|
459
|
-
query: _sinclair_typebox.TObject<{
|
|
460
|
-
state: _sinclair_typebox.TString;
|
|
461
|
-
}>;
|
|
462
|
-
}, {}, Response>;
|
|
463
|
-
oauthGoogleCallback: _spfn_core_route.RouteDef<{
|
|
345
|
+
id: number;
|
|
346
|
+
email: string;
|
|
347
|
+
token: string;
|
|
348
|
+
roleId: number;
|
|
349
|
+
expiresAt: string;
|
|
350
|
+
invitationUrl: string;
|
|
351
|
+
}>>;
|
|
352
|
+
listInvitations: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
464
353
|
query: _sinclair_typebox.TObject<{
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
error_description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
354
|
+
status: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"pending" | "accepted" | "expired" | "cancelled">[]>>;
|
|
355
|
+
page: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
356
|
+
limit: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
469
357
|
}>;
|
|
470
|
-
}, {},
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
358
|
+
}, {}, {
|
|
359
|
+
invitations: {
|
|
360
|
+
id: number;
|
|
361
|
+
email: string;
|
|
362
|
+
token: string;
|
|
363
|
+
roleId: number;
|
|
364
|
+
invitedBy: number;
|
|
365
|
+
status: "pending" | "accepted" | "expired" | "cancelled";
|
|
366
|
+
expiresAt: Date;
|
|
367
|
+
acceptedAt: Date | null;
|
|
368
|
+
cancelledAt: Date | null;
|
|
369
|
+
metadata: Record<string, any> | null;
|
|
370
|
+
createdAt: Date;
|
|
371
|
+
updatedAt: Date;
|
|
372
|
+
role: {
|
|
373
|
+
id: number;
|
|
374
|
+
name: string;
|
|
375
|
+
displayName: string;
|
|
376
|
+
};
|
|
377
|
+
inviter: {
|
|
378
|
+
id: number;
|
|
379
|
+
email: string | null;
|
|
380
|
+
};
|
|
381
|
+
}[];
|
|
382
|
+
total: number;
|
|
383
|
+
page: number;
|
|
384
|
+
limit: number;
|
|
385
|
+
totalPages: number;
|
|
386
|
+
}>>;
|
|
387
|
+
cancelInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
388
|
+
body: _sinclair_typebox.TObject<{
|
|
389
|
+
id: _sinclair_typebox.TNumber;
|
|
390
|
+
reason: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
391
|
+
}>;
|
|
392
|
+
}, {}, {
|
|
393
|
+
cancelledAt: string;
|
|
394
|
+
}>>;
|
|
395
|
+
resendInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
396
|
+
body: _sinclair_typebox.TObject<{
|
|
397
|
+
id: _sinclair_typebox.TNumber;
|
|
398
|
+
expiresInDays: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
399
|
+
}>;
|
|
400
|
+
}, {}, {
|
|
401
|
+
expiresAt: string;
|
|
402
|
+
}>>;
|
|
403
|
+
deleteInvitation: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
404
|
+
body: _sinclair_typebox.TObject<{
|
|
405
|
+
id: _sinclair_typebox.TNumber;
|
|
406
|
+
}>;
|
|
407
|
+
}, {}, void>>;
|
|
408
|
+
getUserProfile: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, UserProfile>>;
|
|
409
|
+
updateUserProfile: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
410
|
+
body: _sinclair_typebox.TObject<{
|
|
411
|
+
displayName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
412
|
+
firstName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
413
|
+
lastName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
414
|
+
avatarUrl: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
415
|
+
bio: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
416
|
+
locale: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
417
|
+
timezone: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
418
|
+
dateOfBirth: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
419
|
+
gender: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
420
|
+
website: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
421
|
+
location: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
422
|
+
company: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
423
|
+
jobTitle: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
424
|
+
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TAny>>;
|
|
425
|
+
}>;
|
|
426
|
+
}, {}, ProfileInfo>>;
|
|
427
|
+
checkUsername: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
428
|
+
query: _sinclair_typebox.TObject<{
|
|
429
|
+
username: _sinclair_typebox.TString;
|
|
430
|
+
}>;
|
|
431
|
+
}, {}, {
|
|
432
|
+
available: boolean;
|
|
433
|
+
}>>;
|
|
434
|
+
updateUsername: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
435
|
+
body: _sinclair_typebox.TObject<{
|
|
436
|
+
username: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNull]>;
|
|
437
|
+
}>;
|
|
438
|
+
}, {}, {
|
|
439
|
+
deletedAt: Date | null;
|
|
440
|
+
deletedBy: string | null;
|
|
441
|
+
createdAt: Date;
|
|
442
|
+
updatedAt: Date;
|
|
443
|
+
id: number;
|
|
444
|
+
publicId: string;
|
|
445
|
+
email: string | null;
|
|
446
|
+
phone: string | null;
|
|
447
|
+
username: string | null;
|
|
448
|
+
passwordHash: string | null;
|
|
449
|
+
passwordChangeRequired: boolean;
|
|
450
|
+
roleId: number;
|
|
451
|
+
status: "active" | "inactive" | "suspended" | "pending_deletion" | "deleted";
|
|
452
|
+
emailVerifiedAt: Date | null;
|
|
453
|
+
phoneVerifiedAt: Date | null;
|
|
454
|
+
keyEpoch: number;
|
|
455
|
+
sessionBinding: "none" | "passkey";
|
|
456
|
+
sessionBindingChangedAt: Date | null;
|
|
457
|
+
lastLoginAt: Date | null;
|
|
458
|
+
}>>;
|
|
459
|
+
updateLocale: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
460
|
+
body: _sinclair_typebox.TObject<{
|
|
461
|
+
locale: _sinclair_typebox.TString;
|
|
462
|
+
}>;
|
|
463
|
+
}, {}, {
|
|
464
|
+
locale: string;
|
|
465
|
+
}>>;
|
|
466
|
+
oauthGoogleStart: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
467
|
+
query: _sinclair_typebox.TObject<{
|
|
468
|
+
state: _sinclair_typebox.TString;
|
|
469
|
+
}>;
|
|
470
|
+
}, {}, Response>>;
|
|
471
|
+
oauthGoogleCallback: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
472
|
+
query: _sinclair_typebox.TObject<{
|
|
473
|
+
code: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
474
|
+
state: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
475
|
+
error: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
476
|
+
error_description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
477
|
+
}>;
|
|
478
|
+
}, {}, Response>>;
|
|
479
|
+
oauthStart: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
480
|
+
body: _sinclair_typebox.TObject<{
|
|
481
|
+
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
482
|
+
returnUrl: _sinclair_typebox.TString;
|
|
483
|
+
publicKey: _sinclair_typebox.TString;
|
|
476
484
|
keyId: _sinclair_typebox.TString;
|
|
477
485
|
fingerprint: _sinclair_typebox.TString;
|
|
478
486
|
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>;
|
|
479
487
|
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
480
488
|
}>;
|
|
481
|
-
}, {}, OAuthStartResult
|
|
482
|
-
oauthProviders: _spfn_core_route.RouteDef<{}, {}, {
|
|
489
|
+
}, {}, OAuthStartResult>>;
|
|
490
|
+
oauthProviders: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, {
|
|
483
491
|
providers: ("google" | "apple" | "github" | "kakao" | "naver" | "superself")[];
|
|
484
|
-
}
|
|
485
|
-
getGoogleOAuthUrl: _spfn_core_route.RouteDef<{
|
|
492
|
+
}>>;
|
|
493
|
+
getGoogleOAuthUrl: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
486
494
|
body: _sinclair_typebox.TObject<{
|
|
487
495
|
returnUrl: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
488
496
|
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
@@ -490,24 +498,24 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
490
498
|
}>;
|
|
491
499
|
}, {}, {
|
|
492
500
|
authUrl: string;
|
|
493
|
-
}
|
|
494
|
-
oauthFinalize: _spfn_core_route.RouteDef<{
|
|
501
|
+
}>>;
|
|
502
|
+
oauthFinalize: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
495
503
|
body: _sinclair_typebox.TObject<{
|
|
496
504
|
userId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
497
505
|
keyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
498
506
|
mfaChallenge: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
499
507
|
returnUrl: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
500
508
|
}>;
|
|
501
|
-
}, {}, OAuthFinalizeResponse
|
|
502
|
-
oauthProviderStart: _spfn_core_route.RouteDef<{
|
|
509
|
+
}, {}, OAuthFinalizeResponse>>;
|
|
510
|
+
oauthProviderStart: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
503
511
|
params: _sinclair_typebox.TObject<{
|
|
504
512
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
505
513
|
}>;
|
|
506
514
|
query: _sinclair_typebox.TObject<{
|
|
507
515
|
state: _sinclair_typebox.TString;
|
|
508
516
|
}>;
|
|
509
|
-
}, {}, Response
|
|
510
|
-
oauthProviderCallback: _spfn_core_route.RouteDef<{
|
|
517
|
+
}, {}, Response>>;
|
|
518
|
+
oauthProviderCallback: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
511
519
|
params: _sinclair_typebox.TObject<{
|
|
512
520
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
513
521
|
}>;
|
|
@@ -517,8 +525,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
517
525
|
error: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
518
526
|
error_description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
519
527
|
}>;
|
|
520
|
-
}, {}, Response
|
|
521
|
-
getProviderOAuthUrl: _spfn_core_route.RouteDef<{
|
|
528
|
+
}, {}, Response>>;
|
|
529
|
+
getProviderOAuthUrl: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
522
530
|
params: _sinclair_typebox.TObject<{
|
|
523
531
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
524
532
|
}>;
|
|
@@ -529,8 +537,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
529
537
|
}>;
|
|
530
538
|
}, {}, {
|
|
531
539
|
authUrl: string;
|
|
532
|
-
}
|
|
533
|
-
oauthNative: _spfn_core_route.RouteDef<{
|
|
540
|
+
}>>;
|
|
541
|
+
oauthNative: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
534
542
|
params: _sinclair_typebox.TObject<{
|
|
535
543
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
536
544
|
}>;
|
|
@@ -549,185 +557,235 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
549
557
|
}>>;
|
|
550
558
|
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
551
559
|
}>;
|
|
552
|
-
}, {}, OAuthNativeResult
|
|
553
|
-
oauthUnlinkNotify: _spfn_core_route.RouteDef<{
|
|
560
|
+
}, {}, OAuthNativeResult>>;
|
|
561
|
+
oauthUnlinkNotify: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
554
562
|
params: _sinclair_typebox.TObject<{
|
|
555
563
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
556
564
|
}>;
|
|
557
|
-
}, {}, void | Response
|
|
558
|
-
oauthUnlinkNotifyGet: _spfn_core_route.RouteDef<{
|
|
565
|
+
}, {}, void | Response>>;
|
|
566
|
+
oauthUnlinkNotifyGet: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
559
567
|
params: _sinclair_typebox.TObject<{
|
|
560
568
|
provider: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"google" | "apple" | "github" | "kakao" | "naver" | "superself">[]>;
|
|
561
569
|
}>;
|
|
562
|
-
}, {}, void | Response
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
570
|
+
}, {}, void | Response>>;
|
|
571
|
+
requestAccountDeletion: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
572
|
+
body: _sinclair_typebox.TObject<{
|
|
573
|
+
password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
574
|
+
verificationToken: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
575
|
+
reason: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
576
|
+
immediate: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
566
577
|
}>;
|
|
567
578
|
}, {}, {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
579
|
+
purgeScheduledAt: string;
|
|
580
|
+
}>>;
|
|
581
|
+
cancelAccountDeletion: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
582
|
+
body: _sinclair_typebox.TObject<{
|
|
583
|
+
email: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
584
|
+
phone: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
585
|
+
password: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
586
|
+
verificationToken: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
587
|
+
}>;
|
|
588
|
+
}, {}, void>>;
|
|
589
|
+
requestSignupLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
590
|
+
body: _sinclair_typebox.TObject<{
|
|
591
|
+
email: _sinclair_typebox.TString;
|
|
592
|
+
returnPath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
593
|
+
}>;
|
|
594
|
+
}, {}, RequestSignupLinkResult>>;
|
|
595
|
+
confirmSignupLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
576
596
|
body: _sinclair_typebox.TObject<{
|
|
577
597
|
token: _sinclair_typebox.TString;
|
|
598
|
+
}>;
|
|
599
|
+
}, {}, ConfirmSignupLinkResult>>;
|
|
600
|
+
completeSignup: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
601
|
+
body: _sinclair_typebox.TObject<{
|
|
578
602
|
password: _sinclair_typebox.TString;
|
|
603
|
+
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
579
604
|
}>;
|
|
580
605
|
}, {
|
|
581
606
|
body: _sinclair_typebox.TObject<{
|
|
607
|
+
setupSecret: _sinclair_typebox.TString;
|
|
582
608
|
publicKey: _sinclair_typebox.TString;
|
|
583
609
|
keyId: _sinclair_typebox.TString;
|
|
584
610
|
fingerprint: _sinclair_typebox.TString;
|
|
585
611
|
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>;
|
|
612
|
+
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
613
|
+
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
586
614
|
}>;
|
|
587
|
-
},
|
|
588
|
-
|
|
589
|
-
email: string;
|
|
590
|
-
role: string;
|
|
591
|
-
}>;
|
|
592
|
-
createInvitation: _spfn_core_route.RouteDef<{
|
|
615
|
+
}, RegisterResult>>;
|
|
616
|
+
requestPasswordReset: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
593
617
|
body: _sinclair_typebox.TObject<{
|
|
594
618
|
email: _sinclair_typebox.TString;
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
619
|
+
returnPath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
620
|
+
}>;
|
|
621
|
+
}, {}, RequestPasswordResetResult>>;
|
|
622
|
+
confirmPasswordReset: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
623
|
+
body: _sinclair_typebox.TObject<{
|
|
624
|
+
token: _sinclair_typebox.TString;
|
|
625
|
+
}>;
|
|
626
|
+
}, {}, ConfirmPasswordResetResult>>;
|
|
627
|
+
completePasswordReset: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
628
|
+
body: _sinclair_typebox.TObject<{
|
|
629
|
+
password: _sinclair_typebox.TString;
|
|
630
|
+
}>;
|
|
631
|
+
}, {
|
|
632
|
+
body: _sinclair_typebox.TObject<{
|
|
633
|
+
setupSecret: _sinclair_typebox.TString;
|
|
634
|
+
publicKey: _sinclair_typebox.TString;
|
|
635
|
+
keyId: _sinclair_typebox.TString;
|
|
636
|
+
fingerprint: _sinclair_typebox.TString;
|
|
637
|
+
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>;
|
|
638
|
+
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
639
|
+
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
640
|
+
}>;
|
|
641
|
+
}, LoginResult>>;
|
|
642
|
+
passkeyRegisterOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
643
|
+
body: _sinclair_typebox.TObject<{
|
|
644
|
+
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
645
|
+
}>;
|
|
646
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialCreationOptionsJSON>>;
|
|
647
|
+
passkeyRegisterVerify: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
648
|
+
body: _sinclair_typebox.TObject<{
|
|
649
|
+
response: _sinclair_typebox.TUnknown;
|
|
650
|
+
label: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
599
651
|
}>;
|
|
652
|
+
}, {}, FinishPasskeyEnrollmentResult>>;
|
|
653
|
+
passkeyLoginOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
654
|
+
body: _sinclair_typebox.TObject<{}>;
|
|
655
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>>;
|
|
656
|
+
passkeyLoginVerify: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
657
|
+
body: _sinclair_typebox.TObject<{
|
|
658
|
+
response: _sinclair_typebox.TUnknown;
|
|
659
|
+
}>;
|
|
660
|
+
}, {
|
|
661
|
+
body: _sinclair_typebox.TObject<{
|
|
662
|
+
publicKey: _sinclair_typebox.TString;
|
|
663
|
+
keyId: _sinclair_typebox.TString;
|
|
664
|
+
fingerprint: _sinclair_typebox.TString;
|
|
665
|
+
algorithm: _sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>;
|
|
666
|
+
oldKeyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
667
|
+
deviceName: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
668
|
+
platform: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ios" | "android" | "web" | "desktop">[]>>;
|
|
669
|
+
}>;
|
|
670
|
+
}, LoginResult>>;
|
|
671
|
+
listPasskeys: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
672
|
+
body: _sinclair_typebox.TObject<{}>;
|
|
600
673
|
}, {}, {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}>;
|
|
608
|
-
listInvitations: _spfn_core_route.RouteDef<{
|
|
609
|
-
query: _sinclair_typebox.TObject<{
|
|
610
|
-
status: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"pending" | "accepted" | "expired" | "cancelled">[]>>;
|
|
611
|
-
page: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
612
|
-
limit: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
674
|
+
passkeys: PasskeySummary[];
|
|
675
|
+
}>>;
|
|
676
|
+
renamePasskey: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
677
|
+
body: _sinclair_typebox.TObject<{
|
|
678
|
+
passkeyId: _sinclair_typebox.TString;
|
|
679
|
+
label: _sinclair_typebox.TString;
|
|
613
680
|
}>;
|
|
614
681
|
}, {}, {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
roleId: number;
|
|
620
|
-
invitedBy: number;
|
|
621
|
-
status: "pending" | "accepted" | "expired" | "cancelled";
|
|
622
|
-
expiresAt: Date;
|
|
623
|
-
acceptedAt: Date | null;
|
|
624
|
-
cancelledAt: Date | null;
|
|
625
|
-
metadata: Record<string, any> | null;
|
|
626
|
-
createdAt: Date;
|
|
627
|
-
updatedAt: Date;
|
|
628
|
-
role: {
|
|
629
|
-
id: number;
|
|
630
|
-
name: string;
|
|
631
|
-
displayName: string;
|
|
632
|
-
};
|
|
633
|
-
inviter: {
|
|
634
|
-
id: number;
|
|
635
|
-
email: string | null;
|
|
636
|
-
};
|
|
637
|
-
}[];
|
|
638
|
-
total: number;
|
|
639
|
-
page: number;
|
|
640
|
-
limit: number;
|
|
641
|
-
totalPages: number;
|
|
642
|
-
}>;
|
|
643
|
-
cancelInvitation: _spfn_core_route.RouteDef<{
|
|
682
|
+
passkeyId: string;
|
|
683
|
+
label: string;
|
|
684
|
+
}>>;
|
|
685
|
+
revokePasskey: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
644
686
|
body: _sinclair_typebox.TObject<{
|
|
645
|
-
|
|
646
|
-
|
|
687
|
+
passkeyId: _sinclair_typebox.TString;
|
|
688
|
+
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
647
689
|
}>;
|
|
648
690
|
}, {}, {
|
|
649
|
-
|
|
650
|
-
}
|
|
651
|
-
|
|
691
|
+
passkeyId: string;
|
|
692
|
+
}>>;
|
|
693
|
+
mfaTotpEnroll: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
694
|
+
body: _sinclair_typebox.TObject<{}>;
|
|
695
|
+
}, {}, TotpEnrolmentResult>>;
|
|
696
|
+
mfaTotpConfirm: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
652
697
|
body: _sinclair_typebox.TObject<{
|
|
653
|
-
|
|
654
|
-
|
|
698
|
+
code: _sinclair_typebox.TString;
|
|
699
|
+
}>;
|
|
700
|
+
}, {}, ConfirmTotpResult>>;
|
|
701
|
+
mfaDisable: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
702
|
+
body: _sinclair_typebox.TObject<{}>;
|
|
703
|
+
}, {}, void>>;
|
|
704
|
+
mfaMarkPasskey: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
705
|
+
body: _sinclair_typebox.TObject<{
|
|
706
|
+
passkeyId: _sinclair_typebox.TString;
|
|
707
|
+
secondFactor: _sinclair_typebox.TBoolean;
|
|
655
708
|
}>;
|
|
709
|
+
}, {}, MfaStatus>>;
|
|
710
|
+
mfaRegenerateRecoveryCodes: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
711
|
+
body: _sinclair_typebox.TObject<{}>;
|
|
656
712
|
}, {}, {
|
|
657
|
-
|
|
658
|
-
}
|
|
659
|
-
|
|
713
|
+
recoveryCodes: string[];
|
|
714
|
+
}>>;
|
|
715
|
+
mfaStatus: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, MfaStatus>>;
|
|
716
|
+
mfaStepUp: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
660
717
|
body: _sinclair_typebox.TObject<{
|
|
661
|
-
|
|
718
|
+
code: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
719
|
+
recoveryCode: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
720
|
+
response: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
662
721
|
}>;
|
|
663
|
-
}, {}, void
|
|
664
|
-
|
|
665
|
-
|
|
722
|
+
}, {}, void>>;
|
|
723
|
+
mfaStepUpOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
724
|
+
body: _sinclair_typebox.TObject<{}>;
|
|
725
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>>;
|
|
726
|
+
mfaVerify: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
666
727
|
body: _sinclair_typebox.TObject<{
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
bio: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
672
|
-
locale: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
673
|
-
timezone: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
674
|
-
dateOfBirth: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
675
|
-
gender: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
676
|
-
website: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
677
|
-
location: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
678
|
-
company: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
679
|
-
jobTitle: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
680
|
-
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TAny>>;
|
|
728
|
+
challenge: _sinclair_typebox.TString;
|
|
729
|
+
code: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
730
|
+
recoveryCode: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
731
|
+
response: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
681
732
|
}>;
|
|
682
|
-
}, {},
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
733
|
+
}, {}, VerifyMfaChallengeResult>>;
|
|
734
|
+
mfaVerifyOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
735
|
+
body: _sinclair_typebox.TObject<{
|
|
736
|
+
challenge: _sinclair_typebox.TString;
|
|
686
737
|
}>;
|
|
687
|
-
}, {},
|
|
688
|
-
|
|
689
|
-
}>;
|
|
690
|
-
updateUsername: _spfn_core_route.RouteDef<{
|
|
738
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>>;
|
|
739
|
+
confirmRevokeAllLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
691
740
|
body: _sinclair_typebox.TObject<{
|
|
692
|
-
|
|
741
|
+
token: _sinclair_typebox.TString;
|
|
693
742
|
}>;
|
|
694
743
|
}, {}, {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
id: number;
|
|
700
|
-
publicId: string;
|
|
701
|
-
email: string | null;
|
|
702
|
-
phone: string | null;
|
|
703
|
-
username: string | null;
|
|
704
|
-
passwordHash: string | null;
|
|
705
|
-
passwordChangeRequired: boolean;
|
|
706
|
-
roleId: number;
|
|
707
|
-
status: "active" | "inactive" | "suspended" | "pending_deletion" | "deleted";
|
|
708
|
-
emailVerifiedAt: Date | null;
|
|
709
|
-
phoneVerifiedAt: Date | null;
|
|
710
|
-
keyEpoch: number;
|
|
711
|
-
sessionBinding: "none" | "passkey";
|
|
712
|
-
sessionBindingChangedAt: Date | null;
|
|
713
|
-
lastLoginAt: Date | null;
|
|
714
|
-
}>;
|
|
715
|
-
updateLocale: _spfn_core_route.RouteDef<{
|
|
744
|
+
expiresAt: string;
|
|
745
|
+
activeKeyCount: number;
|
|
746
|
+
}>>;
|
|
747
|
+
consumeRevokeAllLink: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
716
748
|
body: _sinclair_typebox.TObject<{
|
|
717
|
-
|
|
749
|
+
token: _sinclair_typebox.TString;
|
|
718
750
|
}>;
|
|
719
751
|
}, {}, {
|
|
720
|
-
|
|
721
|
-
}
|
|
722
|
-
|
|
752
|
+
revokedCount: number;
|
|
753
|
+
}>>;
|
|
754
|
+
setSessionBinding: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
755
|
+
body: _sinclair_typebox.TObject<{
|
|
756
|
+
mode: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"passkey">, _sinclair_typebox.TLiteral<"none">]>;
|
|
757
|
+
response: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
758
|
+
currentPassword: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
759
|
+
}>;
|
|
760
|
+
}, {}, SessionBindingResult>>;
|
|
761
|
+
getSessionBinding: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, SessionBindingResult>>;
|
|
762
|
+
sessionBindingDisableOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
763
|
+
body: _sinclair_typebox.TObject<{}>;
|
|
764
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>>;
|
|
765
|
+
sessionRenewOptions: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
766
|
+
body: _sinclair_typebox.TObject<{}>;
|
|
767
|
+
}, {}, _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>>;
|
|
768
|
+
sessionRenewVerify: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
769
|
+
body: _sinclair_typebox.TObject<{
|
|
770
|
+
response: _sinclair_typebox.TUnknown;
|
|
771
|
+
}>;
|
|
772
|
+
}, {
|
|
773
|
+
body: _sinclair_typebox.TObject<{
|
|
774
|
+
publicKey: _sinclair_typebox.TString;
|
|
775
|
+
keyId: _sinclair_typebox.TString;
|
|
776
|
+
fingerprint: _sinclair_typebox.TString;
|
|
777
|
+
algorithm: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"ES256" | "RS256">[]>>;
|
|
778
|
+
}>;
|
|
779
|
+
}, SessionRenewResult>>;
|
|
780
|
+
listRoles: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
723
781
|
query: _sinclair_typebox.TObject<{
|
|
724
782
|
includeInactive: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
725
783
|
}>;
|
|
726
784
|
}, {}, {
|
|
727
785
|
roles: {
|
|
728
786
|
description: string | null;
|
|
729
|
-
name: string;
|
|
730
787
|
id: number;
|
|
788
|
+
name: string;
|
|
731
789
|
displayName: string;
|
|
732
790
|
isBuiltin: boolean;
|
|
733
791
|
isSystem: boolean;
|
|
@@ -736,8 +794,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
736
794
|
createdAt: Date;
|
|
737
795
|
updatedAt: Date;
|
|
738
796
|
}[];
|
|
739
|
-
}
|
|
740
|
-
createAdminRole: _spfn_core_route.RouteDef<{
|
|
797
|
+
}>>;
|
|
798
|
+
createAdminRole: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
741
799
|
body: _sinclair_typebox.TObject<{
|
|
742
800
|
name: _sinclair_typebox.TString;
|
|
743
801
|
displayName: _sinclair_typebox.TString;
|
|
@@ -748,8 +806,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
748
806
|
}, {}, {
|
|
749
807
|
role: {
|
|
750
808
|
description: string | null;
|
|
751
|
-
name: string;
|
|
752
809
|
id: number;
|
|
810
|
+
name: string;
|
|
753
811
|
displayName: string;
|
|
754
812
|
isBuiltin: boolean;
|
|
755
813
|
isSystem: boolean;
|
|
@@ -758,8 +816,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
758
816
|
createdAt: Date;
|
|
759
817
|
updatedAt: Date;
|
|
760
818
|
};
|
|
761
|
-
}
|
|
762
|
-
updateAdminRole: _spfn_core_route.RouteDef<{
|
|
819
|
+
}>>;
|
|
820
|
+
updateAdminRole: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
763
821
|
params: _sinclair_typebox.TObject<{
|
|
764
822
|
id: _sinclair_typebox.TNumber;
|
|
765
823
|
}>;
|
|
@@ -772,8 +830,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
772
830
|
}, {}, {
|
|
773
831
|
role: {
|
|
774
832
|
description: string | null;
|
|
775
|
-
name: string;
|
|
776
833
|
id: number;
|
|
834
|
+
name: string;
|
|
777
835
|
displayName: string;
|
|
778
836
|
isBuiltin: boolean;
|
|
779
837
|
isSystem: boolean;
|
|
@@ -782,13 +840,13 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
782
840
|
createdAt: Date;
|
|
783
841
|
updatedAt: Date;
|
|
784
842
|
};
|
|
785
|
-
}
|
|
786
|
-
deleteAdminRole: _spfn_core_route.RouteDef<{
|
|
843
|
+
}>>;
|
|
844
|
+
deleteAdminRole: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
787
845
|
params: _sinclair_typebox.TObject<{
|
|
788
846
|
id: _sinclair_typebox.TNumber;
|
|
789
847
|
}>;
|
|
790
|
-
}, {}, void
|
|
791
|
-
updateUserRole: _spfn_core_route.RouteDef<{
|
|
848
|
+
}, {}, void>>;
|
|
849
|
+
updateUserRole: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
792
850
|
params: _sinclair_typebox.TObject<{
|
|
793
851
|
userId: _sinclair_typebox.TNumber;
|
|
794
852
|
}>;
|
|
@@ -798,8 +856,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
798
856
|
}, {}, {
|
|
799
857
|
userId: number;
|
|
800
858
|
roleId: number;
|
|
801
|
-
}
|
|
802
|
-
issueOpsToken: _spfn_core_route.RouteDef<{
|
|
859
|
+
}>>;
|
|
860
|
+
issueOpsToken: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
803
861
|
body: _sinclair_typebox.TObject<{
|
|
804
862
|
name: _sinclair_typebox.TString;
|
|
805
863
|
scopes: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
|
|
@@ -816,8 +874,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
816
874
|
lastUsedAt: string | null;
|
|
817
875
|
createdAt: string | null;
|
|
818
876
|
};
|
|
819
|
-
}
|
|
820
|
-
listOpsTokens: _spfn_core_route.RouteDef<{}, {}, {
|
|
877
|
+
}>>;
|
|
878
|
+
listOpsTokens: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, {
|
|
821
879
|
opsTokens: {
|
|
822
880
|
id: number;
|
|
823
881
|
name: string;
|
|
@@ -827,8 +885,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
827
885
|
lastUsedAt: string | null;
|
|
828
886
|
createdAt: string | null;
|
|
829
887
|
}[];
|
|
830
|
-
}
|
|
831
|
-
revokeOpsToken: _spfn_core_route.RouteDef<{
|
|
888
|
+
}>>;
|
|
889
|
+
revokeOpsToken: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
832
890
|
params: _sinclair_typebox.TObject<{
|
|
833
891
|
id: _sinclair_typebox.TNumber;
|
|
834
892
|
}>;
|
|
@@ -842,9 +900,9 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
842
900
|
lastUsedAt: string | null;
|
|
843
901
|
createdAt: string | null;
|
|
844
902
|
};
|
|
845
|
-
}
|
|
846
|
-
registerOAuth2Client: _spfn_core_route.RouteDef<{}, {}, Response
|
|
847
|
-
getOAuth2Authorize: _spfn_core_route.RouteDef<{
|
|
903
|
+
}>>;
|
|
904
|
+
registerOAuth2Client: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, Response>>;
|
|
905
|
+
getOAuth2Authorize: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
848
906
|
query: _sinclair_typebox.TObject<{
|
|
849
907
|
client_id: _sinclair_typebox.TString;
|
|
850
908
|
redirect_uri: _sinclair_typebox.TString;
|
|
@@ -854,8 +912,8 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
854
912
|
scope: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
855
913
|
state: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
856
914
|
}>;
|
|
857
|
-
}, {}, OAuth2ConsentView
|
|
858
|
-
createOAuth2AuthorizationCode: _spfn_core_route.RouteDef<{
|
|
915
|
+
}, {}, OAuth2ConsentView>>;
|
|
916
|
+
createOAuth2AuthorizationCode: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
859
917
|
body: _sinclair_typebox.TObject<{
|
|
860
918
|
approve: _sinclair_typebox.TBoolean;
|
|
861
919
|
client_id: _sinclair_typebox.TString;
|
|
@@ -866,21 +924,21 @@ declare const authApi: _spfn_core_nextjs.Client<_spfn_core_route.Router<{
|
|
|
866
924
|
scope: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
867
925
|
state: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
868
926
|
}>;
|
|
869
|
-
}, {}, OAuth2AuthorizationCodeIssued
|
|
870
|
-
oauth2Token: _spfn_core_route.RouteDef<{}, {}, Response
|
|
871
|
-
oauth2Revoke: _spfn_core_route.RouteDef<{}, {}, Response
|
|
872
|
-
listOAuth2Grants: _spfn_core_route.RouteDef<{}, {}, {
|
|
927
|
+
}, {}, OAuth2AuthorizationCodeIssued>>;
|
|
928
|
+
oauth2Token: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, Response>>;
|
|
929
|
+
oauth2Revoke: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, Response>>;
|
|
930
|
+
listOAuth2Grants: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, {
|
|
873
931
|
grants: OAuth2GrantSummary[];
|
|
874
|
-
}
|
|
875
|
-
revokeOAuth2Grant: _spfn_core_route.RouteDef<{
|
|
932
|
+
}>>;
|
|
933
|
+
revokeOAuth2Grant: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{
|
|
876
934
|
params: _sinclair_typebox.TObject<{
|
|
877
935
|
id: _sinclair_typebox.TNumber;
|
|
878
936
|
}>;
|
|
879
937
|
}, {}, {
|
|
880
938
|
revoked: boolean;
|
|
881
|
-
}
|
|
882
|
-
oauth2AuthorizationServerMetadata: _spfn_core_route.RouteDef<{}, {}, Response
|
|
883
|
-
}
|
|
939
|
+
}>>;
|
|
940
|
+
oauth2AuthorizationServerMetadata: _spfn_core_nextjs.RouteClient<_spfn_core_route.RouteDef<{}, {}, Response>>;
|
|
941
|
+
};
|
|
884
942
|
type AuthRouter = typeof mainAuthRouter;
|
|
885
943
|
|
|
886
944
|
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 };
|