@djangocfg/api 2.1.566 → 2.1.567

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/auth.mjs CHANGED
@@ -3933,8 +3933,8 @@ var OAuthConnectionSchema = z6.object({
3933
3933
  provider: OAuthProviderEnumSchema,
3934
3934
  provider_display: z6.string(),
3935
3935
  provider_username: z6.string(),
3936
- provider_email: z6.email(),
3937
- provider_avatar_url: z6.url(),
3936
+ provider_email: z6.email().or(z6.literal("")),
3937
+ provider_avatar_url: z6.url().or(z6.literal("")),
3938
3938
  connected_at: z6.string().datetime({ offset: true }),
3939
3939
  last_login_at: z6.string().datetime({ offset: true })
3940
3940
  });
@@ -3957,7 +3957,7 @@ import useSWRMutation5 from "swr/mutation";
3957
3957
  // src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeResponse.ts
3958
3958
  import { z as z9 } from "zod";
3959
3959
  var OAuthAuthorizeResponseSchema = z9.object({
3960
- authorization_url: z9.url(),
3960
+ authorization_url: z9.url().or(z9.literal("")),
3961
3961
  state: z9.string()
3962
3962
  });
3963
3963
 
@@ -4020,7 +4020,7 @@ var WebmailLinkProviderEnumSchema = z14.enum(["gmail", "outlook", "yahoo", "iclo
4020
4020
  var WebmailLinkSchema = z15.object({
4021
4021
  provider: WebmailLinkProviderEnumSchema,
4022
4022
  provider_name: z15.string(),
4023
- url: z15.url(),
4023
+ url: z15.url().or(z15.literal("")),
4024
4024
  is_search: z15.boolean()
4025
4025
  });
4026
4026
 
@@ -4087,7 +4087,7 @@ import { z as z18 } from "zod";
4087
4087
  import { z as z17 } from "zod";
4088
4088
  var UserSchema = z17.object({
4089
4089
  id: z17.number().int(),
4090
- email: z17.email(),
4090
+ email: z17.email().or(z17.literal("")),
4091
4091
  first_name: z17.string().max(50).nullable().optional(),
4092
4092
  last_name: z17.string().max(50).nullable().optional(),
4093
4093
  full_name: z17.string(),
@@ -4098,7 +4098,7 @@ var UserSchema = z17.object({
4098
4098
  position: z17.string().max(100).nullable().optional(),
4099
4099
  language: z17.string().max(10).nullable().optional(),
4100
4100
  timezone: z17.string().max(64).nullable().optional(),
4101
- avatar: z17.url().nullable(),
4101
+ avatar: z17.url().or(z17.literal("")).nullable(),
4102
4102
  is_staff: z17.boolean(),
4103
4103
  is_superuser: z17.boolean(),
4104
4104
  date_joined: z17.string().datetime({ offset: true }),
@@ -4432,8 +4432,8 @@ var CfgUserUpdateRequestSchema = z24.object({
4432
4432
  // src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeRequestRequest.ts
4433
4433
  import { z as z25 } from "zod";
4434
4434
  var OAuthAuthorizeRequestRequestSchema = z25.object({
4435
- redirect_uri: z25.url().optional(),
4436
- source_url: z25.url().optional()
4435
+ redirect_uri: z25.url().or(z25.literal("")).optional(),
4436
+ source_url: z25.url().or(z25.literal("")).optional()
4437
4437
  });
4438
4438
 
4439
4439
  // src/_api/generated/_cfg_accounts/schemas/OAuthCallbackRequestRequest.ts
@@ -4441,7 +4441,7 @@ import { z as z26 } from "zod";
4441
4441
  var OAuthCallbackRequestRequestSchema = z26.object({
4442
4442
  code: z26.string().min(10).max(500),
4443
4443
  state: z26.string().min(20).max(100),
4444
- redirect_uri: z26.url().optional(),
4444
+ redirect_uri: z26.url().or(z26.literal("")).optional(),
4445
4445
  remember_me: z26.boolean().default(false).optional()
4446
4446
  });
4447
4447
 
@@ -4470,7 +4470,7 @@ var OTPErrorResponseSchema = z29.object({
4470
4470
  import { z as z30 } from "zod";
4471
4471
  var OTPRequestRequestSchema = z30.object({
4472
4472
  identifier: z30.string().min(1),
4473
- source_url: z30.url().optional(),
4473
+ source_url: z30.url().or(z30.literal("")).optional(),
4474
4474
  marketing_consent: z30.boolean().nullable().optional(),
4475
4475
  consent_disclosure_version: z30.string().max(64).optional()
4476
4476
  });
@@ -4480,7 +4480,7 @@ import { z as z31 } from "zod";
4480
4480
  var OTPVerifyRequestSchema = z31.object({
4481
4481
  identifier: z31.string().min(1),
4482
4482
  otp: z31.string().min(4).max(4),
4483
- source_url: z31.url().optional(),
4483
+ source_url: z31.url().or(z31.literal("")).optional(),
4484
4484
  remember_me: z31.boolean().default(false).optional()
4485
4485
  });
4486
4486