@avallon-labs/sdk 32.0.0-staging.825 → 32.2.0-staging.828

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.ts CHANGED
@@ -2164,6 +2164,8 @@ interface Email {
2164
2164
  to: string[];
2165
2165
  subject: string | null;
2166
2166
  preview: string | null;
2167
+ /** Why the email was stored without processing. Null for emails that were processed normally. */
2168
+ ignored_reason: "sender_domain_not_allowed" | null;
2167
2169
  sent_at: string;
2168
2170
  /** @deprecated */
2169
2171
  received_at: string;
@@ -2238,6 +2240,8 @@ interface EmailDetail {
2238
2240
  subject: string | null;
2239
2241
  body_text: string | null;
2240
2242
  body_html: string | null;
2243
+ /** Why the email was stored without processing. Null for emails that were processed normally. */
2244
+ ignored_reason: "sender_domain_not_allowed" | null;
2241
2245
  sent_at: string;
2242
2246
  /** @deprecated */
2243
2247
  received_at: string;
@@ -2897,6 +2901,7 @@ type GetOAuthUrlProvider = (typeof GetOAuthUrlProvider)[keyof typeof GetOAuthUrl
2897
2901
  declare const GetOAuthUrlProvider: {
2898
2902
  readonly google: "google";
2899
2903
  readonly microsoft: "microsoft";
2904
+ readonly sso: "sso";
2900
2905
  };
2901
2906
 
2902
2907
  /**
@@ -2914,6 +2919,7 @@ type GetOAuthUrlParams = {
2914
2919
  * @minLength 1
2915
2920
  */
2916
2921
  code_challenge: string;
2922
+ email?: string;
2917
2923
  };
2918
2924
 
2919
2925
  /**
@@ -4835,7 +4841,7 @@ type SignInBody = {
4835
4841
  type: "oauth";
4836
4842
  code: string;
4837
4843
  verifier: string;
4838
- provider?: "google" | "microsoft";
4844
+ provider?: "google" | "microsoft" | "sso";
4839
4845
  } | {
4840
4846
  type: "email_otp";
4841
4847
  email: string;
@@ -6484,7 +6490,7 @@ declare const useSignUp: <TError = ErrorType<ErrorResponse>>(options?: {
6484
6490
  * Authenticate using one of the supported methods:
6485
6491
 
6486
6492
  - **Password:** Email and password credentials
6487
- - **OAuth:** Authorization code from OAuth flow. Pass the `provider` the flow was started with so the code is exchanged against the system that issued it.
6493
+ - **OAuth:** Authorization code from OAuth flow (social or enterprise SSO). Pass the `provider` the flow was started with so the code is exchanged against the system that issued it.
6488
6494
  - **Email OTP:** One-time password sent to email. Include the `pending_authentication_token` from sign-up when completing email verification.
6489
6495
  * @summary Sign in
6490
6496
  */
@@ -6540,6 +6546,8 @@ declare const useRefreshToken: <TError = ErrorType<ErrorResponse>>(options?: {
6540
6546
  };
6541
6547
  /**
6542
6548
  * Generate an OAuth authorization URL for a given provider. Use with PKCE flow.
6549
+
6550
+ For enterprise SSO, pass `provider=sso` together with the user's `email`; the email domain selects the SSO organization. Responds 404 when no SSO organization is configured for the domain.
6543
6551
  * @summary Get OAuth sign-in URL
6544
6552
  */
6545
6553
  declare const getGetOAuthUrlUrl: (params: GetOAuthUrlParams) => string;
package/dist/index.js CHANGED
@@ -4246,7 +4246,8 @@ var GetOAuthUrlCodeChallengeMethod = {
4246
4246
  // generated/models/getOAuthUrlProvider.ts
4247
4247
  var GetOAuthUrlProvider = {
4248
4248
  google: "google",
4249
- microsoft: "microsoft"
4249
+ microsoft: "microsoft",
4250
+ sso: "sso"
4250
4251
  };
4251
4252
 
4252
4253
  // generated/models/inboxProcessorType.ts