@laplace.live/internal 1.2.29 → 1.2.30

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 (2) hide show
  1. package/index.d.ts +26 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -895,6 +895,32 @@ export declare namespace LaplaceInternal {
895
895
  status: ContributionStatus
896
896
  }
897
897
 
898
+ /**
899
+ * Request body for PATCH /laplace/fertility-contribution-update/:id
900
+ * All fields are optional - only provided fields will be updated
901
+ */
902
+ export interface FertilityContributionUpdateRequest {
903
+ /** Bilibili user ID */
904
+ uid?: number
905
+ /** Unix timestamp (ms) when period started */
906
+ periodStart?: number
907
+ /** How many days this period lasted (1-15), or null to clear */
908
+ periodLength?: number | null
909
+ /** User's preferred cycle length (15-60), or null to clear */
910
+ cycleLength?: number | null
911
+ /** Evidence URL (must be HTTP/HTTPS, max 256 chars) */
912
+ source?: string
913
+ }
914
+
915
+ /**
916
+ * Response for PATCH /laplace/fertility-contribution-update/:id
917
+ */
918
+ export interface FertilityContributionUpdateResponse {
919
+ success: true
920
+ id: number
921
+ contribution?: FertilityContribution
922
+ }
923
+
898
924
  /**
899
925
  * Response for GET /laplace/fertility-contribution-stats
900
926
  * Public endpoint showing contribution statistics
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.2.29",
3
+ "version": "1.2.30",
4
4
  "module": "index.d.ts",
5
5
  "devDependencies": {
6
6
  "@types/bun": "latest"