@fonderie/client 0.20.0 → 0.22.0
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/brain/signatures.md +7 -0
- package/dist/index.cjs +25 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/brain/signatures.md
CHANGED
|
@@ -84,6 +84,11 @@ new AuditClient(http: HttpClient, tokens: TokenStore): AuditClient
|
|
|
84
84
|
.setWorkspaceId(workspaceId: string | undefined): void
|
|
85
85
|
.listEvents(input?: IListAuditEventsInput, opts?: IReadOptions | undefined): Promise<IApiResponse<IAuditPageResult>>
|
|
86
86
|
|
|
87
|
+
interface IAppleNativeInput {
|
|
88
|
+
identityToken: string;
|
|
89
|
+
nonce?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
87
92
|
interface IChangePasswordInput {
|
|
88
93
|
currentPassword: string;
|
|
89
94
|
newPassword: string;
|
|
@@ -137,8 +142,10 @@ interface IUpdateProfileInput {
|
|
|
137
142
|
new AuthClient(http: HttpClient, tokens: TokenStore): AuthClient
|
|
138
143
|
.mfa: MfaClient
|
|
139
144
|
.setAccessToken(token: string | undefined): void
|
|
145
|
+
.providers(): Promise<IApiResponse<IAuthProvidersResult>>
|
|
140
146
|
.register(input: IRegisterInput): Promise<IApiResponse<IRegisterResult>>
|
|
141
147
|
.login(input: ILoginInput): Promise<IApiResponse<ILoginResult | IMfaRequiredResult>>
|
|
148
|
+
.appleNative(input: IAppleNativeInput): Promise<IApiResponse<ILoginResult>>
|
|
142
149
|
.refreshTokens(refreshToken?: string | undefined): Promise<IApiResponse<IRefreshResult>>
|
|
143
150
|
.forgotPassword(email: string): Promise<IApiResponse<undefined>>
|
|
144
151
|
.resetPassword(input: IResetPasswordInput): Promise<IApiResponse<undefined>>
|
package/dist/index.cjs
CHANGED
|
@@ -280,6 +280,21 @@ var AuthClient = class {
|
|
|
280
280
|
if (!token) this.http.clearCache();
|
|
281
281
|
}
|
|
282
282
|
// ── Public ─────────────────────────────────────────────────────────────────
|
|
283
|
+
/**
|
|
284
|
+
* Which sign-in methods this deployment can actually honour.
|
|
285
|
+
*
|
|
286
|
+
* Public — the login screen needs it before anyone has signed in. Ask the
|
|
287
|
+
* server rather than shipping a build-time flag: the flag stores the same
|
|
288
|
+
* fact twice and lets the two disagree, and the symptom is a user clicking
|
|
289
|
+
* a provider the server cannot complete and landing on the provider's own
|
|
290
|
+
* error page, which the app cannot explain.
|
|
291
|
+
*/
|
|
292
|
+
providers() {
|
|
293
|
+
return this.http.request({
|
|
294
|
+
method: "GET",
|
|
295
|
+
path: "/auth/providers"
|
|
296
|
+
});
|
|
297
|
+
}
|
|
283
298
|
register(input) {
|
|
284
299
|
return this.http.request({
|
|
285
300
|
method: "POST",
|
|
@@ -294,6 +309,16 @@ var AuthClient = class {
|
|
|
294
309
|
body: input
|
|
295
310
|
});
|
|
296
311
|
}
|
|
312
|
+
// Complete a native Sign in with Apple. Returns the same token/user envelope
|
|
313
|
+
// as login (no MFA branch — OAuth completions don't gate on MFA). Requires
|
|
314
|
+
// the API to enable the provider (`providers: ['apple']` + apple config).
|
|
315
|
+
appleNative(input) {
|
|
316
|
+
return this.http.request({
|
|
317
|
+
method: "POST",
|
|
318
|
+
path: "/auth/apple/native",
|
|
319
|
+
body: input
|
|
320
|
+
});
|
|
321
|
+
}
|
|
297
322
|
refreshTokens(refreshToken) {
|
|
298
323
|
return this.http.request({
|
|
299
324
|
method: "POST",
|