@fonderie/client 0.20.0 → 0.21.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.
@@ -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;
@@ -139,6 +144,7 @@ new AuthClient(http: HttpClient, tokens: TokenStore): AuthClient
139
144
  .setAccessToken(token: string | undefined): void
140
145
  .register(input: IRegisterInput): Promise<IApiResponse<IRegisterResult>>
141
146
  .login(input: ILoginInput): Promise<IApiResponse<ILoginResult | IMfaRequiredResult>>
147
+ .appleNative(input: IAppleNativeInput): Promise<IApiResponse<ILoginResult>>
142
148
  .refreshTokens(refreshToken?: string | undefined): Promise<IApiResponse<IRefreshResult>>
143
149
  .forgotPassword(email: string): Promise<IApiResponse<undefined>>
144
150
  .resetPassword(input: IResetPasswordInput): Promise<IApiResponse<undefined>>
package/dist/index.cjs CHANGED
@@ -294,6 +294,16 @@ var AuthClient = class {
294
294
  body: input
295
295
  });
296
296
  }
297
+ // Complete a native Sign in with Apple. Returns the same token/user envelope
298
+ // as login (no MFA branch — OAuth completions don't gate on MFA). Requires
299
+ // the API to enable the provider (`providers: ['apple']` + apple config).
300
+ appleNative(input) {
301
+ return this.http.request({
302
+ method: "POST",
303
+ path: "/auth/apple/native",
304
+ body: input
305
+ });
306
+ }
297
307
  refreshTokens(refreshToken) {
298
308
  return this.http.request({
299
309
  method: "POST",