@djangocfg/api 2.1.359 → 2.1.361

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.
Files changed (62) hide show
  1. package/dist/auth-server.cjs +68 -0
  2. package/dist/auth-server.cjs.map +1 -1
  3. package/dist/auth-server.mjs +68 -0
  4. package/dist/auth-server.mjs.map +1 -1
  5. package/dist/auth.cjs +75 -67
  6. package/dist/auth.cjs.map +1 -1
  7. package/dist/auth.d.cts +7 -10
  8. package/dist/auth.d.ts +7 -10
  9. package/dist/auth.mjs +75 -67
  10. package/dist/auth.mjs.map +1 -1
  11. package/dist/clients.cjs +68 -0
  12. package/dist/clients.cjs.map +1 -1
  13. package/dist/clients.d.cts +14 -20
  14. package/dist/clients.d.ts +14 -20
  15. package/dist/clients.mjs +68 -0
  16. package/dist/clients.mjs.map +1 -1
  17. package/dist/hooks.cjs +68 -0
  18. package/dist/hooks.cjs.map +1 -1
  19. package/dist/hooks.mjs +68 -0
  20. package/dist/hooks.mjs.map +1 -1
  21. package/dist/index.cjs +79 -71
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +28 -40
  24. package/dist/index.d.ts +28 -40
  25. package/dist/index.mjs +79 -71
  26. package/dist/index.mjs.map +1 -1
  27. package/package.json +2 -2
  28. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts +1 -1
  29. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts +1 -1
  30. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts +1 -1
  31. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts +1 -1
  32. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts +1 -1
  33. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts +1 -1
  34. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts +1 -1
  35. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts +1 -1
  36. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts +1 -1
  37. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts +1 -1
  38. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileAvatarCreate.ts +1 -1
  39. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts +1 -1
  40. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts +1 -1
  41. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialUpdate.ts +1 -1
  42. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileRetrieve.ts +1 -1
  43. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdatePartialUpdate.ts +1 -1
  44. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdateUpdate.ts +1 -1
  45. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts +1 -1
  46. package/src/_api/generated/_cfg_accounts/openapi.json +1811 -0
  47. package/src/_api/generated/_cfg_accounts/schemas/User.ts +7 -7
  48. package/src/_api/generated/_cfg_centrifugo/hooks/useCfgCentrifugoAuthTokenRetrieve.ts +1 -1
  49. package/src/_api/generated/_cfg_centrifugo/openapi.json +132 -0
  50. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRegenerateCreate.ts +1 -1
  51. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRetrieve.ts +1 -1
  52. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDevicesRetrieve.ts +1 -1
  53. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDisableCreate.ts +1 -1
  54. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupConfirmCreate.ts +1 -1
  55. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupCreate.ts +1 -1
  56. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyBackupCreate.ts +1 -1
  57. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyCreate.ts +1 -1
  58. package/src/_api/generated/_cfg_totp/openapi.json +927 -0
  59. package/src/_api/generated/_cfg_totp/schemas/TotpVerifyUser.ts +7 -7
  60. package/src/_api/generated/helpers/auth.ts +27 -2
  61. package/src/_api/generated/openapi.json +2789 -0
  62. package/src/_api/generated/types.gen.ts +28 -40
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/api",
3
- "version": "2.1.359",
3
+ "version": "2.1.361",
4
4
  "description": "Auto-generated TypeScript API client with React hooks, SWR integration, and Zod validation for Django REST Framework backends",
5
5
  "keywords": [
6
6
  "django",
@@ -84,7 +84,7 @@
84
84
  "devDependencies": {
85
85
  "@types/node": "^24.7.2",
86
86
  "@types/react": "^19.1.0",
87
- "@djangocfg/typescript-config": "^2.1.359",
87
+ "@djangocfg/typescript-config": "^2.1.361",
88
88
  "next": "^16.2.2",
89
89
  "react": "^19.1.0",
90
90
  "tsup": "^8.5.0",
@@ -57,7 +57,7 @@ export function useCfgAccountsApiKeyRegenerateCreate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -58,7 +58,7 @@ export function useCfgAccountsApiKeyRetrieve(
58
58
  }
59
59
  return data;
60
60
  }
61
- return parsed.data as Result;
61
+ return parsed.data as unknown as Result;
62
62
  },
63
63
  config,
64
64
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsApiKeyTestCreate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -58,7 +58,7 @@ export function useCfgAccountsOauthConnectionsList(
58
58
  }
59
59
  return data;
60
60
  }
61
- return parsed.data as Result;
61
+ return parsed.data as unknown as Result;
62
62
  },
63
63
  config,
64
64
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsOauthDisconnectCreate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsOauthGithubAuthorizeCreate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsOauthGithubCallbackCreate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -58,7 +58,7 @@ export function useCfgAccountsOauthProvidersRetrieve(
58
58
  }
59
59
  return data;
60
60
  }
61
- return parsed.data as Result;
61
+ return parsed.data as unknown as Result;
62
62
  },
63
63
  config,
64
64
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsOtpRequestCreate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsOtpVerifyCreate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsProfileAvatarCreate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsProfileDeleteCreate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsProfilePartialPartialUpdate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsProfilePartialUpdate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -58,7 +58,7 @@ export function useCfgAccountsProfileRetrieve(
58
58
  }
59
59
  return data;
60
60
  }
61
- return parsed.data as Result;
61
+ return parsed.data as unknown as Result;
62
62
  },
63
63
  config,
64
64
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsProfileUpdatePartialUpdate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsProfileUpdateUpdate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );
@@ -57,7 +57,7 @@ export function useCfgAccountsTokenRefreshCreate(
57
57
  }
58
58
  return data;
59
59
  }
60
- return parsed.data as Result;
60
+ return parsed.data as unknown as Result;
61
61
  },
62
62
  config,
63
63
  );