@joai/sdk 12.1.0 → 12.1.1

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/dist/index.d.mts CHANGED
@@ -735,7 +735,10 @@ declare class AuthResource {
735
735
  constructor(http: IHttpService);
736
736
  sendCode(data: AuthSendCodeRequest): Promise<IAppResponse<void>>;
737
737
  confirmCode(data: AuthConfirmCodeRequest): Promise<IAppResponse<AuthConfirmCodeResponse>>;
738
- requestEmail(email: string, redirect?: string): Promise<IAppResponse<AuthLoginResponse>>;
738
+ /** Requests a magic link. `options.team` is the team slug used to brand the email. */
739
+ requestEmail(email: string, redirect?: string, options?: {
740
+ team?: string;
741
+ }): Promise<IAppResponse<AuthLoginResponse>>;
739
742
  loginWithSocialAccessToken(provider: NativeSocialAuthProvider, accessToken: string): Promise<IAppResponse<AuthLoginResponse>>;
740
743
  exchangeNativeSession(token: string): Promise<IAppResponse<AuthNativeSessionResponse>>;
741
744
  me(): Promise<IAppResponse<AuthUser$1>>;
package/dist/index.mjs CHANGED
@@ -1073,10 +1073,12 @@ var AuthResource = class {
1073
1073
  confirmCode(data) {
1074
1074
  return this.http.post("auth/confirm-code", data);
1075
1075
  }
1076
- requestEmail(email, redirect) {
1076
+ /** Requests a magic link. `options.team` is the team slug used to brand the email. */
1077
+ requestEmail(email, redirect, options) {
1077
1078
  return this.http.post("auth/email/request", {
1078
1079
  email,
1079
- redirect
1080
+ redirect,
1081
+ ...options?.team ? { team: options.team } : {}
1080
1082
  });
1081
1083
  }
1082
1084
  loginWithSocialAccessToken(provider, accessToken) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/sdk",
3
- "version": "12.1.0",
3
+ "version": "12.1.1",
4
4
  "description": "JoAi public API SDK — build with your AI agents",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,11 +35,11 @@
35
35
  "test": "jest --config jest.config.js"
36
36
  },
37
37
  "dependencies": {
38
- "@joai/core": "^5.3.5",
38
+ "@joai/core": "^5.3.6",
39
39
  "@joai/warps": "*"
40
40
  },
41
41
  "peerDependencies": {
42
- "@joai/core": "^5.3.5"
42
+ "@joai/core": "^5.3.6"
43
43
  },
44
44
  "devDependencies": {
45
45
  "tsdown": "^0.21.0",