@avallon-labs/sdk 32.1.0-staging.827 → 32.3.0-staging.830

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
@@ -2165,7 +2165,7 @@ interface Email {
2165
2165
  subject: string | null;
2166
2166
  preview: string | null;
2167
2167
  /** Why the email was stored without processing. Null for emails that were processed normally. */
2168
- ignored_reason: "sender_domain_not_allowed" | null;
2168
+ ignored_reason: "sender_domain_not_allowed" | "received_via_cc_or_bcc" | null;
2169
2169
  sent_at: string;
2170
2170
  /** @deprecated */
2171
2171
  received_at: string;
@@ -2241,7 +2241,7 @@ interface EmailDetail {
2241
2241
  body_text: string | null;
2242
2242
  body_html: string | null;
2243
2243
  /** Why the email was stored without processing. Null for emails that were processed normally. */
2244
- ignored_reason: "sender_domain_not_allowed" | null;
2244
+ ignored_reason: "sender_domain_not_allowed" | "received_via_cc_or_bcc" | null;
2245
2245
  sent_at: string;
2246
2246
  /** @deprecated */
2247
2247
  received_at: string;
@@ -2901,6 +2901,7 @@ type GetOAuthUrlProvider = (typeof GetOAuthUrlProvider)[keyof typeof GetOAuthUrl
2901
2901
  declare const GetOAuthUrlProvider: {
2902
2902
  readonly google: "google";
2903
2903
  readonly microsoft: "microsoft";
2904
+ readonly sso: "sso";
2904
2905
  };
2905
2906
 
2906
2907
  /**
@@ -2918,6 +2919,7 @@ type GetOAuthUrlParams = {
2918
2919
  * @minLength 1
2919
2920
  */
2920
2921
  code_challenge: string;
2922
+ email?: string;
2921
2923
  };
2922
2924
 
2923
2925
  /**
@@ -4839,7 +4841,7 @@ type SignInBody = {
4839
4841
  type: "oauth";
4840
4842
  code: string;
4841
4843
  verifier: string;
4842
- provider?: "google" | "microsoft";
4844
+ provider?: "google" | "microsoft" | "sso";
4843
4845
  } | {
4844
4846
  type: "email_otp";
4845
4847
  email: string;
@@ -6488,7 +6490,7 @@ declare const useSignUp: <TError = ErrorType<ErrorResponse>>(options?: {
6488
6490
  * Authenticate using one of the supported methods:
6489
6491
 
6490
6492
  - **Password:** Email and password credentials
6491
- - **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.
6492
6494
  - **Email OTP:** One-time password sent to email. Include the `pending_authentication_token` from sign-up when completing email verification.
6493
6495
  * @summary Sign in
6494
6496
  */
@@ -6544,6 +6546,8 @@ declare const useRefreshToken: <TError = ErrorType<ErrorResponse>>(options?: {
6544
6546
  };
6545
6547
  /**
6546
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.
6547
6551
  * @summary Get OAuth sign-in URL
6548
6552
  */
6549
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